/* ============================================================
   microbuild — styles.css
   Theme: light (default) + dark (data-theme="dark")
   ============================================================ */

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

/* ─── LIGHT THEME (default) ──────────────────────────────────── */
/*
   Color decisions grounded in research:
   – Cool near-white bg → reinforces premium / trust (CXL)
   – Deep indigo accent → cool = luxury perception (CXL)
   – Warm coral CTA on cool bg → maximum contrast (both studies)
   – Clear text hierarchy gap (Marco Lopes: visual weight)
   – HSB-aligned hover states: same hue, lower brightness
*/
:root {
  --bg-primary:     #F7F7F9;          /* cool near-white, premium neutral    */
  --bg-secondary:   #EEEFF3;          /* clean mid-tone, no purple cast       */
  --bg-card:        #FFFFFF;          /* pure white card, max contrast        */
  --border:         rgba(0,0,0,0.07); /* soft definition on light surfaces    */
  --border-hover:   rgba(0,0,0,0.13); /* clear state feedback                 */
  --text-primary:   #0A0A0D;          /* near-black, cool-tinted              */
  --text-secondary: #52525B;          /* clear step down from primary         */
  --text-muted:     #71717A;          /* quiet supporting copy                */
  --accent:         #4F46E5;          /* deep indigo — trust + premium (CXL)  */
  --accent-hover:   #4338CA;          /* HSB: same hue, −10% brightness       */
  --cta:            #FF385C;          /* Airbnb Rausch — warm, high contrast  */
  --cta-hover:      #E8284F;          /* HSB: same hue (349°), −8% brightness */
  --cta-shadow:     rgba(255,56,92,0.20); /* warm tinted shadow, not heavy    */
  --success:        #16A34A;
  --card-shadow:    0 1px 3px rgba(0,0,0,0.055), 0 1px 2px rgba(0,0,0,0.035);
  --nav-bg:         rgba(247,247,249,0.92);
  --nav-border:     rgba(0,0,0,0.08);
  --hero-grid-line: rgba(0,0,0,0.05);
  --hero-radial:    rgba(79,70,229,0.065);
  --principle-hover:#F1F1F6;
  --scrollbar-thumb:rgba(0,0,0,0.12);
  --max-width:      1200px;
  --content-width:  800px;
  --section-gap:    140px;
}

/* ─── DARK THEME ─────────────────────────────────────────────── */
/*
   – Near-black base keeps 90% monochrome feel (original brief)
   – Softer indigo accent on dark: still cool, less harsh
   – Same coral CTA: consistency builds brand recognition (Marco Lopes)
   – Hover: HSB same hue, +8% brightness for dark bg contrast
*/
[data-theme="dark"] {
  --bg-primary:     #08080B;          /* slightly deeper, richer black        */
  --bg-secondary:   #101014;          /* subtle cool-dark mid-tone            */
  --bg-card:        #141418;          /* clean card lift off bg               */
  --border:         rgba(255,255,255,0.055);
  --border-hover:   rgba(255,255,255,0.11);
  --text-primary:   #F8F8FA;          /* slightly warm white, not harsh       */
  --text-secondary: #A0A0AA;          /* cooler mid-gray                      */
  --text-muted:     #6E6E78;          /* quiet, doesn't compete               */
  --accent:         #7B87F6;          /* slightly more vibrant indigo on dark */
  --accent-hover:   #9EA8FA;          /* HSB: same hue, +15% brightness      */
  --cta:            #FF385C;          /* same coral — brand consistency        */
  --cta-hover:      #FF5270;          /* HSB: same hue, +8% brightness       */
  --cta-shadow:     rgba(255,56,92,0.18); /* lighter on dark, avoids glare   */
  --success:        #22C55E;
  --card-shadow:    none;             /* dark bg: shadows invisible, skip    */
  --nav-bg:         rgba(8,8,11,0.88);
  --nav-border:     rgba(255,255,255,0.06);
  --hero-grid-line: rgba(255,255,255,0.027);
  --hero-radial:    rgba(123,135,246,0.08);
  --principle-hover:#18181D;
  --scrollbar-thumb:rgba(255,255,255,0.09);
}

/* ─── BASE ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.3s ease;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

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

/* ─── THEME TRANSITION (targeted) ───────────────────────────── */
.nav,
.product-card,
.principle,
.btn-secondary,
.step-indicator,
.manifesto,
.products,
.philosophy,
.process,
.cta-section,
footer,
.product-card-footer,
.product-card-icon,
.product-card-arrow,
.manifesto-stat-row,
.principles-grid {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--nav-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  /* keep logo readable in light mode */
  filter: none;
  transition: opacity 0.2s ease, filter 0.4s ease;
}

/* invert to white on dark background */
[data-theme="dark"] .nav-logo-img {
  filter: brightness(0) invert(1);
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.8;
}

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: rgba(128, 128, 128, 0.07);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Theme toggle button */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(128, 128, 128, 0.08);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Ambient dual-spot: indigo top-left, coral bottom-right */
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(79, 70, 229, 0.055) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(255, 56, 92, 0.04)  0%, transparent 65%),
    var(--bg-primary);
  transition: background 0.4s ease;
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(123, 135, 246, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(255, 56, 92, 0.05)  0%, transparent 65%),
    var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, black 10%, transparent 75%);
  transition: background-image 0.4s ease;
}

.hero-radial {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 560px;
  background: radial-gradient(ellipse, var(--hero-radial) 0%, transparent 62%);
  transition: background 0.4s ease;
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  transition: background 0.4s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  opacity: 0;
}

.hero-label-line {
  width: 24px;
  height: 1px;
  background: var(--text-muted);
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 28px;
  opacity: 0;
  /* Gradient text — light mode: near-black → warm mid-gray */
  background: linear-gradient(160deg, #0A0A0D 30%, #7A7A85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline em {
  font-style: normal;
  /* color handled by parent gradient — no override needed */
}

/* Dark mode headline: white → muted with a whisper of indigo */
[data-theme="dark"] .hero-headline {
  background: linear-gradient(160deg, #F8F8FA 25%, #9098C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 52px;
  font-weight: 400;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
}

/* ─── HERO TRUST LINE ────────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  opacity: 0; /* animated by GSAP */
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.trust-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-sep {
  color: var(--border-hover);
  font-size: 0.75rem;
  user-select: none;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #FF385C 0%, #FF6040 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  padding: 12px 24px;
  font-size: 0.9375rem;
  box-shadow:
    0 2px 16px rgba(255, 56, 92, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);  /* premium inner highlight */
  transition:
    background-position 0.5s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(255, 56, 92, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Shine sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -65%;
  width: 32%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-16deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 125%;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);          /* muted — clearly subordinate to primary */
  border: 1px solid var(--border);   /* softest possible border                */
}

.btn-secondary:hover {
  color: var(--text-secondary);      /* steps up slightly on hover              */
  border-color: var(--border-hover);
  background: rgba(128,128,128,0.04);
  transform: translateY(-1px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* ─── SECTIONS ───────────────────────────────────────────────── */
section {
  padding: var(--section-gap) 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-muted);
}

/* ─── MANIFESTO ──────────────────────────────────────────────── */
.manifesto {
  border-top: 1px solid var(--border);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.manifesto-left h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.manifesto-left h2 span {
  color: var(--text-secondary);
}

.manifesto-right {
  padding-top: 4px;
}

.manifesto-right p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-right p:last-child {
  margin-bottom: 0;
}

.manifesto-stat-row {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.manifesto-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-stat-num span {
  /* color handled by parent gradient */
}

.manifesto-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── PRODUCTS ───────────────────────────────────────────────── */
.products {
  border-top: 1px solid var(--border);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.products-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.products-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 260px;
  text-align: right;
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ─── PRODUCT CARD ───────────────────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: var(--card-shadow);    /* subtle depth on light, none on dark  */
  transition:
    border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background-color 0.4s ease;
}

.product-card:hover {
  border-color: rgba(79, 70, 229, 0.22);
  transform: translateY(-4px);
  /* Aurora: indigo edge glow + lifted shadow */
  box-shadow:
    0 0 0 1px rgba(79, 70, 229, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(255, 56, 92, 0.05);
}

[data-theme="dark"] .product-card:hover {
  border-color: rgba(123, 135, 246, 0.28);
  box-shadow:
    0 0 0 1px rgba(123, 135, 246, 0.14),
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(255, 56, 92, 0.07);
}

/* Inner top-edge gradient on hover */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    linear-gradient(160deg,
      rgba(79, 70, 229, 0.07) 0%,
      rgba(255, 56, 92, 0.04) 50%,
      transparent 80%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

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

[data-theme="dark"] .product-card::before {
  background:
    linear-gradient(160deg,
      rgba(123, 135, 246, 0.1) 0%,
      rgba(255, 56, 92, 0.05) 50%,
      transparent 80%);
}

.product-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color 0.3s ease, background-color 0.4s ease;
}

.product-card:hover .product-card-icon {
  border-color: rgba(79, 70, 229, 0.35);
}

.product-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.product-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.product-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--success);
  letter-spacing: 0.03em;
}

.product-status-dot {
  width: 5px;
  height: 5px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
}

.product-status-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.2;
  animation: pulse 2s ease infinite;
}

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

.product-card-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card-arrow {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ─── PHILOSOPHY ─────────────────────────────────────────────── */
.philosophy {
  border-top: 1px solid var(--border);
}

.philosophy-header {
  max-width: 680px;
  margin-bottom: 80px;
}

.philosophy-header h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.philosophy-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.principle {
  background: var(--bg-card);
  padding: 40px 44px;
  transition: background 0.25s ease;
}

.principle:hover {
  background: var(--principle-hover);
}

.principle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: inline-block;
  /* Gradient: indigo → coral — the two brand colors in one micro-detail */
  background: linear-gradient(90deg, var(--accent) 0%, #FF385C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.principle h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

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

/* ─── BUILD PROCESS ──────────────────────────────────────────── */
.process {
  border-top: 1px solid var(--border);
}

.process-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}

.process-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
}

.process-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
  z-index: 0;
  transition: background 0.4s ease;
}

.process-step {
  position: relative;
  padding: 0 24px;
}

.step-indicator {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s ease, background-color 0.4s ease, box-shadow 0.3s ease;
}

.step-indicator svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.process-step:hover .step-indicator {
  border-color: rgba(79, 70, 229, 0.4);
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: block;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── CTA ────────────────────────────────────────────────────── */
.cta-section {
  border-top: 1px solid var(--border);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 56, 92, 0.05) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 50% 0%,   rgba(79, 70, 229, 0.04) 0%, transparent 65%);
  transition: background 0.4s ease;
}

[data-theme="dark"] .cta-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 56, 92, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 50% 0%,   rgba(123, 135, 246, 0.06) 0%, transparent 65%);
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: block;
}

.cta-section h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 22px;
  background: linear-gradient(155deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.45;
  filter: none;
  transition: opacity 0.2s ease, filter 0.4s ease;
}

[data-theme="dark"] .footer-logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.footer-center {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-right {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ─── SCROLL REVEAL INITIAL STATE ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

/* 1024px — large tablet / small laptop */
@media (max-width: 1024px) {
  .container, .nav-inner, .footer-inner { padding: 0 36px; }
  .products-grid  { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* 960px — tablet landscape */
@media (max-width: 960px) {
  :root { --section-gap: 100px; }

  .container, .nav-inner, .footer-inner { padding: 0 28px; }

  .manifesto-grid     { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-stat-row { gap: 32px; }

  /* 2-column product grid at tablet */
  .products-grid  { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .products-header p { text-align: left; max-width: 100%; }

  .principles-grid { grid-template-columns: 1fr; }

  .process-header  { grid-template-columns: 1fr; gap: 20px; }
  .process-steps   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
}

/* 768px — tablet portrait */
@media (max-width: 768px) {
  :root { --section-gap: 80px; }

  .container, .nav-inner, .footer-inner { padding: 0 24px; }

  /* Switch to single-column products */
  .products-grid  { grid-template-columns: 1fr; gap: 12px; }

  .hero-headline  { font-size: clamp(2.25rem, 7vw, 3.5rem); }
  .hero-sub       { font-size: 1rem; max-width: 100%; }

  .manifesto-left h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

  .principle { padding: 32px 36px; }

  .process-steps { grid-template-columns: 1fr 1fr; }
}

/* 640px — mobile */
@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .container, .nav-inner, .footer-inner { padding: 0 20px; }

  .nav-hamburger  { display: flex; }
  .desktop-only   { display: none; }
  .nav-links      { display: none; }
  .theme-toggle   { display: flex; }

  .hero-headline  { font-size: 2.25rem; }
  .hero-sub       { font-size: 0.9375rem; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .hero-trust     { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust-sep      { display: none; }

  .manifesto-stat-row { gap: 24px; }

  .principle      { padding: 28px 24px; }

  .process-steps  { grid-template-columns: 1fr; }
  .process-step   { padding: 0 0 0 4px; }

  .cta-actions    { flex-direction: column; align-items: center; }
  .footer-inner   { flex-direction: column; gap: 16px; text-align: center; }
}

/* 375px — small mobile */
@media (max-width: 375px) {
  .container, .nav-inner, .footer-inner { padding: 0 16px; }

  .hero-headline  { font-size: 2rem; }
  .product-card   { padding: 24px; }
  .principle      { padding: 24px 20px; }
  .manifesto-stat-row { flex-direction: column; gap: 20px; }
  .cta-inner      { max-width: 100%; }
}

/* ─── HAMBURGER BUTTON ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  z-index: 200;
}

.nav-hamburger:hover {
  border-color: var(--text-muted);
  background: rgba(128,128,128,0.05);
}

.bar {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.25s ease,
              width    0.25s ease;
}

/* X state when menu is open */
.nav-hamburger.is-open .bar-top    { transform: translateY(3.25px) rotate(45deg); }
.nav-hamburger.is-open .bar-bottom { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── FULL-SCREEN MOBILE MENU ────────────────────────────────── */
.mobile-menu {
  display: none; /* toggled by JS */
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-primary);
  flex-direction: column;
  overflow-y: auto;
  /* Backdrop for polished feel */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s ease;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 96px 32px 48px;
  gap: 0;
}

@media (max-width: 375px) {
  .mobile-menu-inner { padding: 88px 20px 40px; }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 56px;
}

.mobile-nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, border-color 0.2s ease;
  opacity: 0; /* animated by GSAP */
}

.mobile-nav-link::after {
  content: '↗';
  font-size: 0.5em;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  transform: translateY(0);
}

.mobile-nav-link:hover {
  color: var(--accent);
  border-color: var(--border-hover);
}

.mobile-nav-link:hover::after {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* CTA link in mobile menu */
.mobile-nav-link--cta {
  color: var(--cta);
  border-bottom-color: transparent;
  margin-top: 8px;
}

.mobile-nav-link--cta::after {
  color: var(--cta);
  opacity: 0.7;
}

.mobile-nav-link--cta:hover {
  color: var(--cta-hover);
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0; /* animated by GSAP */
}

.mobile-menu-foot .mono {
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ─── SHOW HAMBURGER + HIDE DESKTOP ITEMS ON MOBILE ─────────── */
@media (max-width: 640px) {
  .nav-hamburger  { display: flex; }
  .desktop-only   { display: none; }
  .nav-links      { display: none; }
  .theme-toggle   { display: flex; } /* keep theme toggle visible */

  .hero-headline  { font-size: 2.5rem; }
  .hero-sub       { font-size: 1rem; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .process-steps  { grid-template-columns: 1fr; }
  .cta-actions    { flex-direction: column; }
  .footer-inner   { flex-direction: column; gap: 16px; text-align: center; }
}
