/* ==================== src/styles/global.css ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&family=Inter:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ---------------------------------------------------------------------
   Kcube Labs design tokens
   Elevated from vaniai-app/public/arch/business-architecture.html — the
   most resolved, most consistently-reused palette across the company's
   own real materials. See the approved plan for the full rationale.
   --------------------------------------------------------------------- */
:root {
  /* brand */
  --navy: #0a1628;
  --navy-2: #0f2040;
  --navy-3: #1a3055;
  --gold: #c9a84c;
  --gold-2: #e8c97a;
  --gold-3: #f5e4b0;
  --teal: #0d6e6e;
  --teal-2: #0f8f8f;

  /* semantic (data only, never decorative) */
  --good: #1a6b45;
  --bad: #8b1a2e;
  --warn: #9c5a08;

  /* surfaces + text, light mode default */
  --bg: #faf8f4;
  --bg-raised: #ffffff;
  --bg-sunken: #f2ede4;
  --ink: #0a1628;
  --ink-2: #2d4163;
  --ink-3: #5a7498;
  --ink-4: #8fa8c5;
  --border: rgba(10, 22, 40, 0.1);
  --border-2: rgba(10, 22, 40, 0.06);

  /* Volt AI's own real, existing identity — used only on /volt-ai */
  --volt: #10b981;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060d1a;
    --bg-raised: #0f1c30;
    --bg-sunken: #0a1628;
    --ink: #f4f1ea;
    --ink-2: #c7d3e6;
    --ink-3: #8fa8c5;
    --ink-4: #5a7498;
    --border: rgba(244, 241, 234, 0.12);
    --border-2: rgba(244, 241, 234, 0.07);
  }
}

:root[data-theme="dark"] {
  --bg: #060d1a;
  --bg-raised: #0f1c30;
  --bg-sunken: #0a1628;
  --ink: #f4f1ea;
  --ink-2: #c7d3e6;
  --ink-3: #8fa8c5;
  --ink-4: #5a7498;
  --border: rgba(244, 241, 234, 0.12);
  --border-2: rgba(244, 241, 234, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.lede {
  color: var(--ink-3);
  max-width: 62ch;
  line-height: 1.8;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

a {
  color: inherit;
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }
}

/* AnimatedStat (React island, src/components/ui/animated-stat.tsx) —
   global equivalent of Stat.astro's scoped styles, since a plain .tsx
   island can't use Astro's component-scoped <style>. */
.stat-card {
  padding: 1.75rem;
  border-radius: 16px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(10, 22, 40, 0.05);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .stat-card-value { color: var(--gold-2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stat-card-value { color: var(--gold-2); }
}
.stat-card-label {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.5;
}
.stat-card-sub {
  font-size: 0.72rem;
  color: var(--ink-4);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}

/* respect reduced motion everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==================== Nav (src/components/Nav.astro) ==================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1.5rem;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
  }
  .brand img {
    height: 22px;
    width: auto;
    border-radius: 3px;
  }
  .brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: -0.01em;
  }
  .links {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
  }
  .link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-3);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
  }
  .link:hover {
    color: var(--ink);
    background: var(--bg-sunken);
  }
  .link.active {
    color: var(--navy);
    background: var(--bg-sunken);
    font-weight: 700;
  }
  :root[data-theme="dark"] .link.active {
    color: var(--gold);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .link.active {
      color: var(--gold);
    }
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }
  #theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  #theme-toggle:hover {
    background: var(--bg-sunken);
    color: var(--ink);
  }
  .icon-moon { display: none; }
  :root[data-theme="dark"] .icon-sun { display: none; }
  :root[data-theme="dark"] .icon-moon { display: block; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
  }
  .cta {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .cta:hover {
    background: var(--teal);
  }

  .menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
  }
  .menu-toggle:hover {
    background: var(--bg-sunken);
  }
  .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

  .mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .mobile-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    padding: 0.75rem 0.25rem;
    border-radius: 8px;
  }
  .mobile-link:hover,
  .mobile-link.active {
    color: var(--navy);
    background: var(--bg-sunken);
  }
  :root[data-theme="dark"] .mobile-link.active { color: var(--gold); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mobile-link.active { color: var(--gold); }
  }
  .mobile-cta {
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 700;
    background: var(--navy);
    color: #fff;
  }
  .mobile-cta:hover { background: var(--teal); color: #fff; }

  @media (max-width: 860px) {
    .links { display: none; }
    .cta { display: none; }
    .menu-toggle { display: inline-flex; }
    .mobile-menu:not([hidden]) { display: flex; }
  }

/* ==================== Footer (src/components/Footer.astro) ==================== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6rem;
    padding-block: 3.5rem 2rem;
  }
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-brand {
    max-width: 320px;
  }
  .footer-brand img {
    height: 24px;
    margin-bottom: 0.75rem;
    border-radius: 3px;
  }
  .footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.7;
  }
  .footer-cols {
    display: flex;
    gap: 3.5rem;
  }
  .fct {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
  }
  .footer-cols a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-bottom: 0.55rem;
    transition: color 0.15s;
  }
  .footer-cols a:hover {
    color: #fff;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
  }
  .badge {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
  }

/* ==================== Stat (src/components/Stat.astro) ==================== */
.stat {
    padding: 1.75rem;
    border-radius: 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(10, 22, 40, 0.05);
    position: relative;
    overflow: hidden;
  }
  .stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
  }
  .stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.4rem;
  }
  :root[data-theme="dark"] .stat-value { color: var(--gold-2); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .stat-value { color: var(--gold-2); }
  }
  .stat-label {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.5;
  }
  .stat-sub {
    font-size: 0.72rem;
    color: var(--ink-4);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
  }

/* ==================== ProductCard (src/components/ProductCard.astro) ==================== */
.pcard {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
  }
  .pcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.12);
    border-color: var(--gold);
  }
  .pcard-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
  }
  .pcard-title {
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
  }
  .pcard-desc {
    color: var(--ink-3);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
  }
  .pcard-stat {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-2);
  }
  .pcard-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--navy);
  }
  :root[data-theme="dark"] .pcard-stat-value { color: var(--gold-2); }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pcard-stat-value { color: var(--gold-2); }
  }
  .pcard-stat-label {
    font-size: 0.75rem;
    color: var(--ink-4);
    margin-top: 0.2rem;
  }
  .pcard-cta {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--teal);
  }

/* ==================== BaseLayout (src/layouts/BaseLayout.astro) ==================== */
[data-volt-scoped="true"] {
    --gold: var(--volt);
    --gold-2: #34d399;
    --gold-3: #6ee7b7;
  }

/* ==================== Home (src/pages/index.astro) ==================== */
@scope ([data-page="home"]) {
.hero {
    padding-block: 5rem 4rem;
  }
  .hero-inner {
    max-width: 780px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-block: 1.25rem 1.5rem;
  }
  .hero-title em {
    font-style: italic;
    color: var(--gold);
  }
  .hero-lede {
    font-size: 1.1rem;
  }

  .s-header {
    margin-bottom: 2.5rem;
  }
  .s-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-block: 0.6rem 0.75rem;
  }

  .products {
    padding-block: 3rem;
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .proof {
    padding-block: 3rem;
  }
  .proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
  }

  .cta-band {
    padding-block: 4rem 6rem;
  }
  .cta-band-inner {
    background: var(--navy);
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
  }
  .cta-band-inner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    max-width: 640px;
    margin-inline: auto;
  }
  .cta-band-inner .lede {
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 1rem auto 2rem;
  }
  .cta-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .btn-primary, .btn-secondary {
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .btn-primary {
    background: var(--gold);
    color: var(--navy);
  }
  .btn-primary:hover {
    background: var(--gold-2);
  }
  .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
  }
  .btn-secondary:hover {
    border-color: #fff;
  }
}

/* ==================== Vani OS (src/pages/vani-os.astro) ==================== */
@scope ([data-page="vani-os"]) {
.hero { padding-block: 4.5rem 3rem; }
  .hero-inner { max-width: 780px; }
  .vani-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    margin-block: 1.1rem 1.4rem;
    max-width: 800px;
  }
  .hero-title em { font-style: italic; color: var(--gold); }
  .hero-lede { font-size: 1.05rem; max-width: 68ch; }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    padding-block: 1rem 3rem;
  }

  section.container { padding-block: 3rem; }
  .s-header { margin-bottom: 2.25rem; }
  .s-header h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-block: 0.55rem 0.7rem; }

  .module-grid, .screen-grid, .proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  .module-card, .screen-card {
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    position: relative;
  }
  .module-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
  }
  .module-card p, .screen-card p {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.6;
  }
  .screen-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .screen-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    min-width: 0;
  }
  .live-dot {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--good);
    background: color-mix(in srgb, var(--good) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--good) 30%, transparent);
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    white-space: nowrap;
  }

  .pullquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--ink-2);
    border-left: 3px solid var(--gold);
    padding: 0.5rem 0 0.5rem 1.75rem;
    max-width: 70ch;
    margin: 0;
  }

  .pricing-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
  }
  .price-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    padding: 2rem;
  }
  .price-card.feat {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(201, 168, 76, 0.15);
  }
  .price-tier {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
  }
  .price-amt {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
  }
  .price-amt span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-4);
  }
  .price-card p {
    font-size: 0.85rem;
    color: var(--ink-3);
    line-height: 1.65;
  }

  .cta-band { padding-block: 3rem 6rem; }
  .cta-band-inner {
    background: var(--navy);
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
  }
  .cta-band-inner h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    max-width: 640px;
    margin-inline: auto;
  }
  .cta-band-inner .lede {
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 1rem auto 2rem;
  }
  .cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-primary, .btn-secondary {
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
  }
  .btn-primary { background: var(--gold); color: var(--navy); }
  .btn-primary:hover { background: var(--gold-2); }
  .btn-secondary { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
  .btn-secondary:hover { border-color: #fff; }
}

/* ==================== VANI AI + The Pitch (src/pages/vani-ai.astro) ==================== */
@scope ([data-page="vani-ai"]) {
.hero { padding-block: 4.5rem 3rem; }
  .hero-inner { max-width: 780px; }
  .vani-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 1.25rem;
  }
  .hero-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-block: 1.1rem 1.4rem; max-width: 800px; }
  .hero-title em { font-style: italic; color: var(--gold); }
  .hero-lede { font-size: 1.05rem; max-width: 68ch; }

  .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; padding-block: 1rem 3rem; }
  section.container { padding-block: 3rem; }
  .s-header { margin-bottom: 2.25rem; }
  .s-header h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-block: 0.55rem 0.7rem; }

  .pipeline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
  }
  .pipeline-step {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
  }
  .pipeline-arrow { color: var(--gold); font-size: 0.9rem; }

  .dogfood-card {
    background: var(--navy);
    border-radius: 20px;
    padding: 2.75rem;
  }
  .dogfood-card h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.75rem; }
  .dogfood-card .lede { color: rgba(255,255,255,0.6); max-width: 68ch; }

  .feature-grid, .proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
  .feature-card {
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
  }
  .feature-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--navy); }
  .feature-card p { font-size: 0.85rem; color: var(--ink-3); line-height: 1.6; }

  .tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
  .tier-card {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    padding: 2rem;
  }
  .tier-card.feat { border-color: var(--gold); box-shadow: 0 10px 40px rgba(201, 168, 76, 0.15); }
  .tier-name { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
  .tier-price { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-bottom: 1rem; color: var(--navy); }
  .tier-price span { font-size: 0.8rem; font-weight: 500; color: var(--ink-4); display: block; margin-top: 0.2rem; }
  .tier-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.65rem; }
  .tier-card li {
    font-size: 0.83rem;
    color: var(--ink-3);
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
  }
  .tier-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
  }

  .cta-band { padding-block: 3rem 6rem; }
  .cta-band-inner { background: var(--navy); border-radius: 24px; padding: 3.5rem; text-align: center; }
  .cta-band-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 640px; margin-inline: auto; }
  .cta-band-inner .lede { color: rgba(255, 255, 255, 0.6); max-width: 560px; margin: 1rem auto 2rem; }
  .cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-primary, .btn-secondary { padding: 0.85rem 1.75rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
  .btn-primary { background: var(--gold); color: var(--navy); }
  .btn-primary:hover { background: var(--gold-2); }
  .btn-secondary { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
  .btn-secondary:hover { border-color: #fff; }
}

/* ==================== Volt AI (src/pages/volt-ai.astro) ==================== */
@scope ([data-page="volt-ai"]) {
.hero { padding-block: 4.5rem 3rem; }
  .hero-inner { max-width: 780px; }
  .volt-mark {
    width: 44px;
    height: 44px;
    color: var(--volt);
    margin-bottom: 1.25rem;
  }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-block: 1rem 1.4rem; }
  .hero-title em { font-style: italic; color: var(--volt); }
  .hero-lede { font-size: 1.05rem; max-width: 66ch; }

  .maturity-note {
    padding-block: 0 2rem;
  }
  .maturity-note p {
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-left: 3px solid var(--volt);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.7;
    max-width: 70ch;
  }

  section.container { padding-block: 2.75rem; }
  .s-header { margin-bottom: 2rem; }
  .s-header h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-block: 0.5rem 0.65rem; }

  .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
  .check-list li {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1.1rem 2.5rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--ink-2);
    line-height: 1.6;
  }
  .check-list li::before {
    content: "✓";
    position: absolute;
    left: 1.1rem;
    top: 1.1rem;
    color: var(--volt);
    font-weight: 700;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  .feature-card {
    padding: 1.5rem;
    border-radius: 14px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
  }
  .feature-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; color: var(--ink); }
  .feature-card p { font-size: 0.85rem; color: var(--ink-3); line-height: 1.6; }

  .cta-band { padding-block: 3rem 6rem; }
  .cta-band-inner {
    background: #062d22;
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
  }
  .cta-band-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.8vw, 1.9rem); max-width: 620px; margin-inline: auto; }
  .cta-band-inner .lede { color: rgba(255, 255, 255, 0.6); max-width: 540px; margin: 1rem auto 2rem; }
  .cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-primary, .btn-secondary { padding: 0.85rem 1.75rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
  .btn-primary { background: var(--volt); color: #04140f; }
  .btn-primary:hover { background: #34d399; }
  .btn-secondary { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
  .btn-secondary:hover { border-color: #fff; }
}

/* ==================== About (src/pages/about.astro) ==================== */
@scope ([data-page="about"]) {
.hero { padding-block: 4.5rem 3rem; }
  .hero-inner { max-width: 780px; }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-block: 1rem 1.4rem; }
  .hero-title em { font-style: italic; color: var(--gold); }
  .hero-lede { font-size: 1.05rem; max-width: 68ch; }
  .hero-lede a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

  .story {
    display: grid;
    gap: 2.5rem;
    padding-block: 2rem 3rem;
  }
  .story-block h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }
  .story-block .lede { max-width: 70ch; }

  .contact {
    padding-block: 2rem 6rem;
  }
  .contact-card {
    background: var(--navy);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
  }
  .contact-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.75rem; }
  .contact-card .lede { color: rgba(255,255,255,0.65); margin-inline: auto; }
  .contact-card a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

}

/* ==================== Dhurandhar (src/pages/dhurandhar.astro) ====================
   Real, deployed identity at dhurandhar.kcubelabs.com is cream + blue +
   Archivo/JetBrains Mono — a genuinely different, more "engineering
   dossier" personality than the rest of the site (deliberately blunt about
   legal risk, guardrails-first). Kept as its own accent here, the same way
   Volt AI keeps its emerald — not forced into the navy/gold system. */
@scope ([data-page="dhurandhar"]) {
  --dhur-accent: #2B4FE0;
  --dhur-accent-2: #7C97FF;

  .hero { padding-block: 4.5rem 3rem; }
  .hero-inner { max-width: 780px; }
  .hero-title {
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-block: 1rem 1.4rem;
  }
  .hero-lede { font-size: 1.05rem; max-width: 66ch; }
  .hero-lede em { font-style: normal; color: var(--dhur-accent); font-weight: 600; }
  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-4);
    margin-top: 1.75rem;
  }
  .hero-meta strong { color: var(--ink-2); }

  .thesis {
    padding-block: 2rem 3rem;
  }
  .thesis p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: 70ch;
  }
  .thesis strong { color: var(--ink); }

  section.container { padding-block: 2.75rem; }
  .s-header { margin-bottom: 2rem; }
  .s-header h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-block: 0.5rem 0.65rem; }

  .channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .channel-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-top: 3px solid var(--border);
  }
  .channel-card.linkedin { border-top-color: #0A66C2; }
  .channel-card.email { border-top-color: #A8631F; }
  .channel-head { display: flex; align-items: center; gap: 0.6rem; }
  .channel-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-weight: 600;
    background: var(--bg-sunken);
    color: var(--ink-3);
  }
  .channel-card h3 { font-size: 1.05rem; margin: 0; }
  .channel-card p { font-size: 0.88rem; color: var(--ink-3); line-height: 1.6; margin: 0; }
  .channel-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
  .channel-steps li { font-size: 0.82rem; color: var(--ink-3); display: flex; gap: 0.6rem; }
  .channel-steps .n { font-family: var(--font-mono); color: var(--ink-4); font-size: 0.7rem; flex-shrink: 0; }
  .channel-stop {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
  }

  .switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
  }
  .switch-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    padding: 1.5rem;
  }
  .switch-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.6rem; }
  .switch-name { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--ink); }
  .switch-state {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 700;
    background: var(--bg-sunken);
    color: var(--ink-4);
    white-space: nowrap;
  }
  .switch-state.on { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
  .switch-card p { font-size: 0.82rem; color: var(--ink-3); line-height: 1.55; margin: 0; }

  .legal { padding-block: 1rem 2.75rem; }
  .legal-callout {
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: color-mix(in srgb, var(--bad) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
  }
  .legal-mark { font-family: var(--font-mono); font-weight: 700; color: var(--bad); flex-shrink: 0; }
  .legal-callout p { margin: 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.65; }
  .legal-callout strong { color: var(--bad); }

  .cta-band { padding-block: 1rem 6rem; }
  .cta-band-inner {
    background: #0B0B0C;
    border-radius: 24px;
    padding: 3.5rem;
    text-align: center;
  }
  .cta-band-inner h2 { color: #F5F2E8; font-size: clamp(1.4rem, 2.8vw, 1.9rem); max-width: 620px; margin-inline: auto; }
  .cta-band-inner .lede { color: #B9B4A5; max-width: 540px; margin: 1rem auto 2rem; }
  .cta-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-primary, .btn-secondary { padding: 0.85rem 1.75rem; border-radius: 10px; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
  .btn-primary { background: var(--dhur-accent-2); color: #0B0B0C; }
  .btn-primary:hover { background: #9FB2FF; }
  .btn-secondary { border: 1px solid rgba(255, 255, 255, 0.25); color: #F5F2E8; }
  .btn-secondary:hover { border-color: #fff; }
}

/* ==================== Cross-page dark-mode overrides ====================
   Pulled out of their page's @scope block: a `:root[data-theme="dark"]`
   (or `:root:not([data-theme="light"])`) ancestor selector doesn't reliably
   apply inside an `@scope (...)` block in this browser's implementation —
   confirmed live (module/screen/feature names stayed navy-on-navy in dark
   mode until these were moved out here). Each class below is still unique
   to the one page it's used on, so this is safe unscoped. */
:root[data-theme="dark"] .hero-title em { color: var(--gold-2); }
:root[data-theme="dark"] .module-name,
:root[data-theme="dark"] .screen-name,
:root[data-theme="dark"] .feature-name { color: var(--ink); }
:root[data-theme="dark"] .price-amt,
:root[data-theme="dark"] .tier-price { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-title em { color: var(--gold-2); }
  :root:not([data-theme="light"]) .module-name,
  :root:not([data-theme="light"]) .screen-name,
  :root:not([data-theme="light"]) .feature-name { color: var(--ink); }
  :root:not([data-theme="light"]) .price-amt,
  :root:not([data-theme="light"]) .tier-price { color: var(--ink); }
}
