*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-900: #0a0e17;
  --bg-800: #111827;
  --bg-700: #1a2332;
  --brand-400: #59c0ff;
  --brand-500: #33a1ff;
  --brand-600: #1a82f5;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --border: rgba(75, 85, 99, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-900);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--brand-400), #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  white-space: nowrap;
}

.logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0;
}


.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--brand-600);
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.logo-img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  object-fit: contain;
}

.logo-accent {
  color: var(--brand-400);
}

.feature-icon i,
.feature-icon svg {
  color: var(--brand-400);
  font-size: 1.1rem;
}


.nav-links {
  display: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-muted {
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-link-muted:hover {
  color: white;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brand-600);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-500);
}

.btn-secondary {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.btn-secondary:hover {
  border-color: #6b7280;
  background: var(--bg-700);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(4px);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
}

.input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: var(--bg-800);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 1px var(--brand-500);
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 31rem;
  background: rgba(26, 130, 245, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(51, 161, 255, 0.3);
  background: rgba(51, 161, 255, 0.1);
  color: #93c5fd;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 48rem;
  margin: 0 auto 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.hero-preview {
  max-width: 56rem;
  margin: 4rem auto 0;
  padding: 0.25rem;
}

.preview-inner {
  background: var(--bg-900);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 1rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-red {
  background: rgba(239, 68, 68, 0.8);
}

.dot-yellow {
  background: rgba(234, 179, 8, 0.8);
}

.dot-green {
  background: rgba(34, 197, 94, 0.8);
}

.preview-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-box {
  background: var(--bg-800);
  border-radius: 0.5rem;
  padding: 1rem;
}

.stat-box p:first-child {
  font-size: 0.75rem;
  color: #6b7280;
}

.stat-box p:last-child {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.stat-blue {
  color: var(--brand-400);
}

.stat-green {
  color: #4ade80;
}

.stat-cyan {
  color: #22d3ee;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-alt {
  padding: 6rem 0;
  border-top: 1px solid #1f2937;
  border-bottom: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(51, 161, 255, 0.3);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 130, 245, 0.2);
  border-radius: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.platform-card {
  padding: 2rem;
}

.platform-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #374151;
  background: var(--bg-700);
  font-size: 0.75rem;
  color: #d1d5db;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.highlight {
  border-color: rgba(51, 161, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(51, 161, 255, 0.3);
}

.pricing-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(26, 130, 245, 0.2);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: #d1d5db;
}

.pricing-features li::before {
  content: "✓";
  color: var(--brand-400);
  font-weight: 700;
}

/* CTA */
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 130, 245, 0.2), rgba(8, 145, 178, 0.1));
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-box p {
  position: relative;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-box .btn {
  position: relative;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
}

.auth-box {
  width: 100%;
  max-width: 28rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.auth-header p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.auth-form {
  padding: 2rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand-400);
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1rem;
}

.form-note a {
  color: var(--brand-400);
}

/* Dashboard */
.dashboard-header {
  border-bottom: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.5);
  padding: 0.75rem 0;
}

.dashboard-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  font-size: 0.875rem;
  color: var(--muted);
}

.plan-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(26, 130, 245, 0.2);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-layout {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 14rem 1fr;
  }
}

.sidebar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .sidebar {
    flex-direction: column;
    overflow: visible;
  }
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.sidebar-btn:hover {
  background: var(--bg-700);
  color: white;
}

.sidebar-btn.active {
  background: rgba(26, 130, 245, 0.2);
  color: #93c5fd;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.dash-stat {
  padding: 1.25rem;
}

.activity-list {
  margin-top: 1rem;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(26, 36, 52, 0.5);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.activity-item span:last-child {
  color: #6b7280;
}

.api-key {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--bg-700);
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: #93c5fd;
  margin-top: 0.5rem;
  word-break: break-all;
}

.code-block {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(26, 36, 52, 0.5);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.code-block pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.upgrade-box {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(51, 161, 255, 0.3);
  background: rgba(51, 161, 255, 0.05);
  border-radius: 0.5rem;
}

.upgrade-box p:first-child {
  color: #93c5fd;
  font-weight: 500;
  font-size: 0.875rem;
}

.upgrade-box p:nth-child(2) {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0.5rem 0 1rem;
}

/* Content pages */
.page-hero {
  padding: 7rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.content-page {
  padding: 3rem 0 6rem;
}

.content-narrow {
  max-width: 48rem;
  margin: 0 auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.info-card {
  padding: 1.5rem;
  text-align: center;
}

.info-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

.info-table {
  padding: 2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1f2937;
  font-size: 0.875rem;
}

.info-row span:first-child {
  color: var(--muted);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.legal-content p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--brand-400);
}

.muted {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Footer */
.footer {
  border-top: 1px solid #1f2937;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 20rem;
}

.footer h4 {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid #1f2937;
  font-size: 0.875rem;
  color: #6b7280;
}