/* ================================================================
   LOGODDS LABS — Design System v3 "Quant Journal"
   Paper-first editorial. Graph-paper precision. Ink & plotted color.
   Light is the default; `.dark` on <html> switches to warm ink.
   ================================================================ */

/* ── 1. Tokens ──────────────────────────────────────────────── */
:root {
  /* Paper (light default) */
  --bg-base:     #f6f2ea;
  --bg-surface:  #efeade;
  --bg-elevated: #fdfbf4;
  --bg-card:     #fdfbf4;

  /* Rules & hairlines */
  --border:        rgba(31, 28, 22, 0.14);
  --border-hover:  rgba(31, 28, 22, 0.38);
  --grid-line:     rgba(31, 28, 22, 0.06);

  /* Ink */
  --text-primary:   #1f1c16;
  --text-secondary: #57513f;
  --text-muted:     #6b6456;

  /* Accent — Ultramarine (the plotted line) */
  --accent:       #2444c4;
  --accent-light: #1b36a6;
  --accent-dark:  #16297f;
  --accent-glow:  rgba(36, 68, 196, 0.10);

  /* Accent 2 — Vermilion (the data mark) */
  --accent-2:      #c2410c;
  --accent-2-glow: rgba(194, 65, 12, 0.10);

  /* Product accents */
  --aura-color:        #2444c4;
  --aura-glow:         rgba(36,  68, 196, 0.09);
  --fireplus-color:    #c2410c;
  --fireplus-glow:     rgba(194, 65,  12, 0.09);
  --glimpsein-color:   #146c46;
  --glimpsein-glow:    rgba(20, 108,  70, 0.09);
  --aeos-color:        #6d28d9;
  --aeos-glow:         rgba(109, 40, 217, 0.09);

  /* Ink block (footer, inverted panels) */
  --ink-block:      #201c15;
  --ink-block-text: #ece5d5;

  /* Hard shadow (print offset, replaces glow) */
  --shadow-hard:      6px 6px 0 rgba(31, 28, 22, 0.10);
  --shadow-hard-deep: 8px 8px 0 rgba(31, 28, 22, 0.14);

  /* Spacing */
  --section-py:    clamp(88px, 11vw, 148px);
  --container-max: 1160px;

  /* Radii — near-print, crisp */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  /* Typography */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

/* Warm-ink dark mode */
.dark {
  --bg-base:     #16130d;
  --bg-surface:  #1c1811;
  --bg-elevated: #221d14;
  --bg-card:     #221d14;

  --border:        rgba(240, 233, 218, 0.13);
  --border-hover:  rgba(240, 233, 218, 0.34);
  --grid-line:     rgba(240, 233, 218, 0.05);

  --text-primary:   #f2ecdd;
  --text-secondary: #b3a992;
  --text-muted:     #978c72;

  --accent:       #6d84ef;
  --accent-light: #98abff;
  --accent-dark:  #5065c9;
  --accent-glow:  rgba(109, 132, 239, 0.13);

  --accent-2:      #e8703c;
  --accent-2-glow: rgba(232, 112, 60, 0.13);

  --aura-color:        #7f95f5;
  --aura-glow:         rgba(127, 149, 245, 0.11);
  --fireplus-color:    #e8703c;
  --fireplus-glow:     rgba(232, 112, 60, 0.11);
  --glimpsein-color:   #3fa87a;
  --glimpsein-glow:    rgba(63, 168, 122, 0.11);
  --aeos-color:        #a78bfa;
  --aeos-glow:         rgba(167, 139, 250, 0.11);

  --ink-block:      #0f0d08;
  --ink-block-text: #e9e2d0;

  --shadow-hard:      6px 6px 0 rgba(0, 0, 0, 0.35);
  --shadow-hard-deep: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

/* ── 2. Reset + Base ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--t-slow), color var(--t-slow);
}

::selection {
  background: var(--accent);
  color: #fdfbf4;
}

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

ul { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Lucide icons — size responds to font-size context via 1em */
svg[data-lucide] {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 1.75;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* ── 3. Typography ──────────────────────────────────────────── */
/* Eyebrow — figure caption with a plotted rule */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-2);
  flex-shrink: 0;
}
/* Centered contexts get symmetric rules */
.section-header .eyebrow,
.hero-content .eyebrow,
.about-inner .eyebrow,
.contact-cta .eyebrow,
.fp-cost-wrapper .eyebrow,
.fp-cta-inner .eyebrow,
.aura-cta-inner .eyebrow {
  justify-content: center;
}
.section-header .eyebrow::after,
.hero-content .eyebrow::after,
.about-inner .eyebrow::after,
.contact-cta .eyebrow::after,
.fp-cost-wrapper .eyebrow::after,
.fp-cta-inner .eyebrow::after,
.aura-cta-inner .eyebrow::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent-2);
  flex-shrink: 0;
}

.section-headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 560;
  font-variation-settings: 'opsz' 60;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 22px;
  text-wrap: balance;
}

.section-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── 4. Layout ──────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-headline { margin-bottom: 24px; }

/* ── 5. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background var(--t-base), color var(--t-base), border-color var(--t-base);
  border: 1px solid transparent;
  font-family: inherit;
}

/* Primary — solid ink, print-offset hover */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdfbf4;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent-glow), 4px 4px 0 1px rgba(36, 68, 196, 0.35);
}
.dark .btn-primary:hover { color: #10131f; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-primary);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--border);
}

/* Nav CTA button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--t-base), color var(--t-base);
  white-space: nowrap;
  border: 1px solid var(--text-primary);
}
.btn-nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdfbf4;
}
.dark .btn-nav-cta:hover { color: #10131f; }

/* ── 6. Navigation ──────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-slow), border-color var(--t-slow);
}

.site-nav.scrolled {
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.dark .site-nav.scrolled {
  background: rgba(22, 19, 13, 0.88);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 620;
  font-variation-settings: 'opsz' 40;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-brand:hover { color: var(--accent); }

.nav-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

/* Desktop nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  line-height: 1;
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.dark .nav-link:hover { background: var(--bg-elevated); }

.nav-chevron {
  font-size: 0.55rem;
  transition: transform var(--t-base);
  opacity: 0.6;
}

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

/* Theme toggle */
.btn-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  font-family: inherit;
}
.btn-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

/* Products dropdown */
.nav-item-dropdown { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 272px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  padding: 6px;
  box-shadow: var(--shadow-hard);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}

/* Open via JS click (all screen sizes) */
.nav-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown.is-open ~ * .nav-chevron,
#products-btn[aria-expanded="true"] .nav-chevron { transform: rotate(-180deg); }

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}
.nav-dropdown-item:hover { background: var(--bg-surface); }
.dark .nav-dropdown-item:hover { background: rgba(240, 233, 218, 0.06); }

.dropdown-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-aura      { background: var(--aura-color); }
.dot-fireplus  { background: var(--fireplus-color); }
.dot-glimpsein { background: var(--glimpsein-color); }
.dot-aeos      { background: var(--aeos-color); }

.dropdown-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.dropdown-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-left: auto;
  cursor: pointer;
}

/* ── 7. Page Breadcrumb ─────────────────────────────────────── */
/* Shown on product pages — sits just below the fixed nav */
.page-breadcrumb {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  white-space: nowrap;
}
.breadcrumb-home:hover { color: var(--accent); }
.breadcrumb-home i, .breadcrumb-home svg { font-size: 0.7rem; }

.breadcrumb-sep { color: var(--text-muted); font-size: 0.7rem; }

.breadcrumb-current {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compensate hero padding for the breadcrumb bar height (~34px) */
.has-breadcrumb .hero-section,
.has-breadcrumb [class*="-hero"] {
  padding-top: 154px;
}

/* ── 8. Hero ─────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

/* Graph-paper grid + warm plotted tints */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 42% 40%, black 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 42% 40%, black 20%, transparent 78%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 25%, rgba(194, 65, 12, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 10% 78%, rgba(36, 68, 196, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Bottom hairline to close the hero like a chart frame */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

/* Center-aligned editorial hero */
.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-content .eyebrow { justify-content: center; }

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  font-weight: 520;
  font-variation-settings: 'opsz' 84;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Word-rise animation (spans injected by script.js) */
.hero-headline.is-split { animation: none; opacity: 1; transform: none; }
.hero-headline .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-headline .w-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: wordRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.1s + var(--wi, 0) * 0.05s);
}
@keyframes wordRise {
  to { transform: translateY(0); }
}

.hero-subheadline {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-ctas .btn { padding: 14px 28px; font-size: 0.92rem; }

/* Stat strip — data readout, ruled like a table footer */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 56px 0 0;
  padding: 20px 0 0;
  max-width: 560px;
  border-top: 1px solid var(--border-hover);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0 28px 0 0;
  margin-right: 28px;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-stat-sep {
  width: 1px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
  margin-right: 28px;
}

/* Sigmoid curve — the brand plot, now a first-class visual */
.hero-curve {
  position: absolute;
  bottom: 110px;
  right: 4%;
  width: clamp(240px, 26vw, 400px);
  height: auto;
  color: var(--accent-2);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}
.dark .hero-curve { opacity: 0.55; }

.hero-curve-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawCurve 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes drawCurve {
  to { stroke-dashoffset: 0; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.15rem;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll-hint a { color: inherit; }
.hero-scroll-hint a:hover { color: var(--text-secondary); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* Hero entrance animations */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.24s; }
.fade-delay-3 { animation-delay: 0.4s; }
.fade-delay-4 { animation-delay: 0.58s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 9. Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }

/* Reduced motion — disable all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .fade-in-up,
  .hero-headline .w-inner {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-scroll-hint { animation: none; }
  .hero-curve-path { animation: none; stroke-dashoffset: 0; }
}

/* ── 10. About Section ──────────────────────────────────────── */
.section-about {
  padding: var(--section-py) 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dark .section-about { background: var(--bg-surface); }

.about-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* The about body reads like an editorial lede */
.about-inner .section-body {
  margin: 0 auto 52px;
  max-width: 660px;
  font-family: var(--font-heading);
  font-weight: 420;
  font-variation-settings: 'opsz' 30;
  font-size: 1.22rem;
  line-height: 1.72;
  color: var(--text-primary);
}

.pillars {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 9px 18px;
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.pillar:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--border);
}

.pillar-icon { font-size: 1rem; }
.pillar-indigo   { color: var(--aura-color); }
.pillar-amber    { color: var(--fireplus-color); }
.pillar-emerald  { color: var(--glimpsein-color); }

/* ── 11. Products Section ───────────────────────────────────── */
.section-products {
  padding: var(--section-py) 0;
}

/* Connected step panel — same construction as the approach section */
.products-steps {
  display: flex;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-base);
  box-shadow: var(--shadow-hard);
}
.dark .products-steps { background: var(--bg-elevated); }

.product-step {
  flex: 1;
  padding: 40px 30px;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t-base);
}
.product-step:last-child { border-right: none; }
.product-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.product-step:hover::before { transform: scaleX(1); }

.step-aura::before      { background: var(--aura-color); }
.step-fireplus::before  { background: var(--fireplus-color); }
.step-glimpsein::before { background: var(--glimpsein-color); }
.step-aeos::before      { background: var(--aeos-color); }
.step-aura:hover      { background: var(--aura-glow); }
.step-fireplus:hover  { background: var(--fireplus-glow); }
.step-glimpsein:hover { background: var(--glimpsein-glow); }
.step-aeos:hover      { background: var(--aeos-glow); }

/* Ghost serif numeral */
.product-step-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 40;
  color: var(--text-primary);
  opacity: 0.14;
  line-height: 1;
  transition: opacity var(--t-base), color var(--t-base);
}
.step-aura:hover      .product-step-num { opacity: 0.6; color: var(--aura-color); }
.step-fireplus:hover  .product-step-num { opacity: 0.6; color: var(--fireplus-color); }
.step-glimpsein:hover .product-step-num { opacity: 0.6; color: var(--glimpsein-color); }
.step-aeos:hover      .product-step-num { opacity: 0.6; color: var(--aeos-color); }

.product-step-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.step-aura      .product-step-icon { color: var(--aura-color); }
.step-fireplus  .product-step-icon { color: var(--fireplus-color); }
.step-glimpsein .product-step-icon { color: var(--glimpsein-color); }
.step-aeos      .product-step-icon { color: var(--aeos-color); }

.product-step-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  line-height: 1.4;
  width: fit-content;
}
.tag-aura      { color: var(--aura-color);      background: var(--aura-glow); }
.tag-fireplus  { color: var(--fireplus-color);  background: var(--fireplus-glow); }
.tag-glimpsein { color: var(--glimpsein-color); background: var(--glimpsein-glow); }
.tag-aeos      { color: var(--aeos-color);      background: var(--aeos-glow); }

.product-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
.status-live { color: #147a44; background: rgba(20, 122, 68, 0.1); }
.status-dev  { color: var(--fireplus-color); background: var(--fireplus-glow); }
.status-soon { color: var(--text-muted); background: var(--bg-surface); border: 1px dashed var(--border-hover); }
.dark .status-soon { background: rgba(240, 233, 218, 0.04); }

.product-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 560;
  font-variation-settings: 'opsz' 50;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

/* CTA link — underlined editorial link */
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: auto;
  padding-top: 6px;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: gap var(--t-fast), border-color var(--t-fast);
}
.product-link:hover { gap: 11px; border-bottom-color: currentColor; }
.link-aura      { color: var(--aura-color); }
.link-fireplus  { color: var(--fireplus-color); }
.link-glimpsein { color: var(--glimpsein-color); }
.link-aeos      { color: var(--aeos-color); }

/* ── 12. Services Section ───────────────────────────────────── */
.section-services {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

/* ── 13. AI Approach Section ────────────────────────────────── */
.section-approach {
  padding: var(--section-py) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.dark .section-approach { background: var(--bg-surface); }

/* Faint grid echo behind the approach panel */
.section-approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.section-approach .container { position: relative; }

/* Connected step panel */
.approach-steps {
  display: flex;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-base);
  box-shadow: var(--shadow-hard);
}
.dark .approach-steps { background: var(--bg-elevated); }

.approach-step {
  flex: 1;
  padding: 40px 30px;
  border-right: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--t-base);
}
.approach-step:last-child { border-right: none; }
.approach-step:hover { background: var(--accent-glow); }
.approach-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.approach-step:hover::before { transform: scaleX(1); }

/* Ghost serif numeral */
.approach-step-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'opsz' 40;
  color: var(--text-primary);
  opacity: 0.14;
  line-height: 1;
  transition: opacity var(--t-base), color var(--t-base);
}
.approach-step:hover .approach-step-num { opacity: 0.6; color: var(--accent); }

.approach-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  font-size: 1.05rem;
  color: var(--accent);
  flex-shrink: 0;
}

.approach-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 4px 9px;
}

.approach-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 560;
  font-variation-settings: 'opsz' 40;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.approach-desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── 14. Principles Section ─────────────────────────────────── */
.section-principles {
  padding: var(--section-py) 0;
  border-bottom: 1px solid var(--border);
}

/* Two-column: pull quote (left) + stacked cards (right) */
.principles-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: center;
}

.principles-quote {
  position: relative;
  padding-top: 40px;
}
.principles-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 9rem;
  font-weight: 400;
  color: var(--accent-2);
  opacity: 0.35;
  position: absolute;
  top: -28px;
  left: -12px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 480;
  font-style: italic;
  font-variation-settings: 'opsz' 60;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 26px;
  quotes: none;
}

.pull-cite {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

.principles-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-hover);
}

.principle-card {
  padding: 26px 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: padding-left var(--t-base), background var(--t-base);
}
.principle-card:hover {
  padding-left: 20px;
  background: var(--bg-elevated);
}
.dark .principle-card:hover { background: var(--bg-surface); }

.principle-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: border-color var(--t-base);
}
.principle-card:hover .principle-icon { border-color: var(--accent); }

.principle-body { flex: 1; }

.principle-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 560;
  font-variation-settings: 'opsz' 40;
  color: var(--text-primary);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.principle-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── 15. Contact Section ────────────────────────────────────── */
.section-contact {
  padding: calc(var(--section-py) * 1.1) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Chart-frame grid behind the CTA */
.section-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}
.section-contact > .container { position: relative; z-index: 1; }

/* Centered copy block */
.contact-cta {
  max-width: 640px;
  margin: 0 auto 64px;
}
.contact-cta .section-headline {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.contact-cta .section-body   { margin-bottom: 36px; }

/* Horizontal details strip */
.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 44px;
  border-top: 1px solid var(--border-hover);
}
.contact-detail-sep {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.contact-details .contact-row   { gap: 12px; text-align: left; }
.contact-details .contact-socials { padding-top: 0; }

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.6;
}
a.contact-value:hover { color: var(--accent); }

.contact-socials {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.social-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--accent-glow);
}

/* ── 16. Footer — ink block bookend ─────────────────────────── */
.site-footer {
  padding: 56px 0 48px;
  background: var(--ink-block);
  color: var(--ink-block-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 560;
  font-variation-settings: 'opsz' 40;
  color: var(--ink-block-text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(236, 229, 213, 0.55);
  margin-bottom: 20px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(236, 229, 213, 0.4);
  letter-spacing: 0.01em;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 229, 213, 0.45);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.86rem;
  color: rgba(236, 229, 213, 0.7);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: #fff; }

/* ── 17. Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-step { padding: 30px 22px; }
  .approach-step { padding: 30px 22px; }
  .principles-layout { gap: 48px; }
  .contact-details { gap: 24px; }
  .hero-curve { opacity: 0.3; }
}

@media (max-width: 768px) {
  /* Nav: show hamburger, hide menu */
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 1;
  }

  .nav-link {
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
  }

  /* Mobile dropdown — inline */
  .nav-item-dropdown { position: static; }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 4px 28px;
    background: transparent;
    display: none;
  }
  .nav-dropdown.is-open { display: block; }
  .nav-item-dropdown:hover .nav-dropdown { display: none; }
  .nav-item-dropdown:hover .nav-dropdown.is-open { display: block; }

  .nav-dropdown-item {
    padding: 9px 12px;
    border-radius: var(--r-sm);
  }

  .nav-actions {
    flex-direction: row;
    padding: 16px 4px 8px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    justify-content: space-between;
  }

  /* Products steps */
  .products-steps { flex-direction: column; }
  .product-step { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .product-step:last-child { border-bottom: none; }

  /* Approach — stack steps vertically */
  .approach-steps { flex-direction: column; }
  .approach-step { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .approach-step:last-child { border-bottom: none; }

  /* Principles — single column */
  .principles-layout { grid-template-columns: 1fr; gap: 48px; }
  .principles-quote::before { font-size: 6rem; top: -18px; }

  /* Contact */
  .contact-detail-sep { display: none; }
  .contact-details { flex-direction: column; gap: 20px; align-items: flex-start; padding-left: 12px; text-align: left; }
  .contact-details .contact-row { align-items: flex-start; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }

  /* Pillars */
  .pillars { gap: 12px; justify-content: center; }

  /* Hero */
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .hero-curve {
    top: auto;
    bottom: 90px;
    transform: none;
    width: 220px;
    opacity: 0.2;
    right: -12px;
  }
  .hero-stats { margin-top: 44px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.5rem; }
  .section-headline { font-size: 1.75rem; }
  .product-step { padding: 24px 20px; }
  .principle-card { padding: 20px 4px; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-tagline { max-width: 100%; }
  .pillars { flex-direction: column; align-items: center; gap: 10px; }
  .hero-stats { padding-top: 16px; margin-top: 36px; }
  .hero-stat { padding-right: 16px; margin-right: 16px; }
  .hero-stat-sep { display: none; }
  .hero-curve { display: none; }
}
