/* ===== D Route - Premium SaaS Stylesheet ===== */
/* Note: System fonts only - spec requires no external deps beyond Tailwind CDN */

:root {
  --color-bg: #030712;
  --color-bg-2: #0a0f1f;
  --color-surface: rgba(13, 22, 39, 0.55);
  --color-surface-2: rgba(20, 30, 50, 0.7);
  --color-border: rgba(96, 165, 250, 0.15);
  --color-border-strong: rgba(96, 165, 250, 0.3);
  --color-accent: #3b82f6;
  --color-accent-2: #60a5fa;
  --color-accent-3: #2563eb;
  --color-accent-glow: rgba(59, 130, 246, 0.4);
  --color-text: #e5e7eb;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 80px rgba(59, 130, 246, 0.25);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(96,165,250,0.08);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Animated Background Grid ===== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(59,130,246,0.20), transparent 60%),
    radial-gradient(1000px 700px at 90% 10%, rgba(37,99,235,0.20), transparent 60%),
    radial-gradient(900px 700px at 50% 100%, rgba(96,165,250,0.15), transparent 60%),
    linear-gradient(180deg, #030712, #050a1a 50%, #030712);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(96,165,250,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ===== Mouse Glow ===== */
.mouse-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  filter: blur(40px);
}

/* ===== Glass Surfaces ===== */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.glass-strong {
  background: var(--color-surface-2);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
}

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 7, 18, 0.6);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb 60%, #1e40af);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(59,130,246,0.5), inset 0 0 0 1px rgba(255,255,255,0.15);
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-links a.active { color: white; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 6px 22px rgba(59,130,246,0.45), inset 0 0 0 1px rgba(255,255,255,0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.65), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.btn-ghost {
  color: var(--color-text);
  background: rgba(255,255,255,0.03);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--color-border-strong);
}

.btn-outline {
  color: white;
  background: transparent;
  border-color: var(--color-border-strong);
}

.btn-outline:hover { background: rgba(59,130,246,0.12); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-xl { padding: 16px 32px; font-size: 1.05rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--color-border-strong);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 22px;
  color: white;
  letter-spacing: -0.025em;
}

.hero h1 .gradient {
  background: linear-gradient(120deg, #60a5fa, #3b82f6 40%, #93c5fd 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-stat {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
}

.hero-stat .label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Sections ===== */
.section {
  padding: 100px 24px;
  position: relative;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--color-border-strong);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: white;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 660px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head { text-align: center; margin-bottom: 60px; }

/* ===== Feature Cards ===== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15,23,42,0.7), rgba(7,12,28,0.4));
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(59,130,246,0.12), transparent 40%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.1));
  border: 1px solid var(--color-border-strong);
  display: grid;
  place-items: center;
  color: #93c5fd;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ===== Model Cloud ===== */
.model-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 50px;
}

.model-chip {
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition);
  cursor: default;
}

.model-chip:hover {
  border-color: var(--color-border-strong);
  background: rgba(59,130,246,0.15);
  transform: translateY(-2px);
}

.model-chip .dot-color {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, #3b82f6);
  box-shadow: 0 0 8px var(--c, #3b82f6);
}

/* ===== Comparison Table ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.compare-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  position: relative;
}

.compare-card.us {
  background: linear-gradient(160deg, rgba(59,130,246,0.18), rgba(37,99,235,0.06));
  border: 1px solid var(--color-border-strong);
}

.compare-card.them {
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.compare-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
}

.compare-list .icon-ok { color: #22c55e; flex-shrink: 0; }
.compare-list .icon-no { color: #ef4444; flex-shrink: 0; }

.compare-list .muted { color: var(--color-text-dim); text-decoration: line-through; }

/* ===== Pricing ===== */
.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(59,130,246,0.15), rgba(15,23,42,0.7));
  border: 1px solid var(--color-border-strong);
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 60%);
  pointer-events: none;
}

.pricing-card .badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.pricing-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0 8px;
}

.pricing-card .price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #93c5fd;
}

.pricing-card .price .num {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.pricing-card .price .per {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.pricing-card .desc {
  color: var(--color-text-muted);
  margin-bottom: 26px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.pricing-features .check {
  color: #22c55e;
  flex-shrink: 0;
}

.pricing-card .cta-block { display: flex; flex-direction: column; gap: 10px; }

/* ===== Code Tabs ===== */
.code-block {
  border-radius: var(--radius-lg);
  background: rgba(5, 10, 25, 0.85);
  border: 1px solid var(--color-border-strong);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}

.code-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}

.code-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.code-tab:hover { color: white; }

.code-tab.active {
  color: white;
  background: rgba(59,130,246,0.15);
  border-bottom: 2px solid #3b82f6;
}

.code-content {
  padding: 20px 24px;
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #cbd5e1;
  overflow-x: auto;
  white-space: pre;
  display: none;
}

.code-content.active { display: block; }

.code-content .k { color: #c084fc; }       /* keyword */
.code-content .s { color: #86efac; }       /* string */
.code-content .n { color: #fbbf24; }       /* number */
.code-content .c { color: #64748b; font-style: italic; } /* comment */
.code-content .v { color: #93c5fd; }       /* variable */
.code-content .f { color: #60a5fa; }       /* function */
.code-content .p { color: #f472b6; }       /* punctuation */

/* ===== Dashboard Preview Cards ===== */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dash-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15,23,42,0.9), rgba(7,12,28,0.6));
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
}

.dash-mock {
  height: 160px;
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(0,0,0,0.3));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--color-border);
}

.dash-mock .icon-large {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}

.dash-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
}

.dash-body {
  padding: 22px;
}

.dash-body h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.dash-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--color-border-strong); }

.faq-item.open {
  background: rgba(20, 30, 50, 0.7);
  border-color: var(--color-border-strong);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
}

.faq-q .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  display: grid;
  place-items: center;
  color: #93c5fd;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  margin-top: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(59,130,246,0.3), transparent 60%),
    linear-gradient(135deg, rgba(59,130,246,0.18), rgba(15,23,42,0.7));
  border: 1px solid var(--color-border-strong);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: white;
  margin: 0 0 14px;
}

.cta-banner p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 28px;
}

/* ===== Footer ===== */
.footer {
  padding: 80px 24px 36px;
  border-top: 1px solid var(--color-border);
  background: rgba(3, 7, 18, 0.7);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer h5 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer a:hover { color: white; }

.footer-brand p {
  color: var(--color-text-muted);
  margin: 12px 0 18px;
  font-size: 0.95rem;
  max-width: 360px;
}

.footer-socials { display: flex; gap: 10px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  transition: all 0.25s ease;
}

.social-btn:hover {
  background: rgba(59,130,246,0.18);
  border-color: var(--color-border-strong);
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 50px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--color-text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Forms ===== */
.form-shell {
  max-width: 460px;
  margin: 80px auto;
  padding: 44px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(20,30,50,0.7), rgba(7,12,28,0.5));
  border: 1px solid var(--color-border-strong);
  position: relative;
  z-index: 2;
}

.form-shell h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.form-shell .form-sub {
  color: var(--color-text-muted);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.field-group { margin-bottom: 16px; }

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.field-input,
input[type="email"], input[type="password"], input[type="text"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.field-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.form-cta { margin-top: 22px; }
.form-cta .btn { width: 100%; justify-content: center; }

.form-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-foot a { color: #93c5fd; text-decoration: none; }
.form-foot a:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--color-text-dim);
  font-size: 0.8rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.social-login .btn { justify-content: center; }

/* ===== Util classes ===== */
.center-text { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 30px; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: #93c5fd; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sticky CTA button ===== */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 36px rgba(59,130,246,0.5);
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 40;
  transition: transform 0.3s ease;
}

.float-cta.visible { display: inline-flex; }
.float-cta:hover { transform: translateY(-2px); }

/* ===== Mobile ===== */
.mobile-toggle { display: none; }

@media (max-width: 900px) {
  .hero { padding: 80px 18px 60px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 18px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pricing-card { padding: 28px; }
  .pricing-card .price .num { font-size: 3rem; }
  .pricing-features { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: white;
    cursor: pointer;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3,7,18,0.98);
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 18px;
    align-items: flex-start;
  }
  .nav-inner { padding: 12px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.3rem; }
  .dashboard h1 { font-size: 1.7rem; }
  .pricing-features { grid-template-columns: 1fr; }
  .form-shell { margin: 40px 18px; padding: 30px 24px; }
  .social-login { grid-template-columns: 1fr; }
}

/* ===== Misc ===== */
.divider-vertical {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 6px;
}

.kbd {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.text-gradient {
  background: linear-gradient(120deg, #93c5fd, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.format-json, code, pre {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
}

/* ===== Dashboard layout ===== */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 30px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar {
  padding: 24px;
  background: rgba(15,23,42,0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sidebar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: all 0.2s ease;
}
.sidebar li a:hover { background: rgba(59,130,246,0.1); color: white; }
.sidebar li a.active { background: rgba(59,130,246,0.18); color: white; }

.stat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
  background: rgba(15,23,42,0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
}

.stat-card .delta {
  font-size: 0.85rem;
  color: #22c55e;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ===== 404 / Success pages ===== */
.center-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}

.center-page .code-num {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}

.center-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin: 0 0 12px;
}

.center-page p {
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 auto 26px;
}
