/* ABOUTME: Cinematic dark theme styles for the Kansa FLOW landing variant.
   ABOUTME: Premium motion-forward scroll journey — pipeline, stats, cited assessment, bento, CTA. */

/* ============ TOKENS ============ */
:root {
  --bg:        #0b0d11;
  --bg-2:      #0f1217;
  --surface:   #161a21;
  --surface-2: #1d222b;
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.16);

  --ink:       #f4f5f7;          /* headings */
  --body:      rgba(255, 255, 255, 0.78); /* body — ~10.4:1 on --bg, AA pass */
  --muted:     rgba(255, 255, 255, 0.60); /* labels — ~7.4:1, AA pass */

  --orange:    #ff6500;
  --orange-2:  #ff8a3d;          /* lighter orange for text on dark, AA pass */
  --cyan:      #00a8f4;
  --cyan-2:    #5cc8ff;          /* lighter cyan for text, AA pass */

  --glow-orange: rgba(255, 101, 0, 0.35);
  --glow-cyan:   rgba(0, 168, 244, 0.28);

  --maxw: 1160px;
  --pad:  clamp(20px, 5vw, 40px);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
}
p { margin: 0; }

/* fine grain overlay for premium texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  background: var(--orange);
  color: #1a0c00;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--cyan-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ BUTTONS ============ */
.solid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #1a0c00;
  font-weight: 600;
  font-family: var(--sans);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  box-shadow: 0 8px 30px -8px var(--glow-orange);
  white-space: nowrap;
}
.solid-btn:hover {
  background: #ff7a26;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px -10px var(--glow-orange);
}
.solid-btn.lg { padding: 15px 30px; font-size: 1.05rem; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.ghost-btn:hover { border-color: var(--orange); background: rgba(255, 101, 0, 0.08); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  padding: 8px 4px;
  position: relative;
}
.link-btn svg { transition: transform 0.3s var(--ease); }
.link-btn:hover svg { transform: translateY(3px); }
.link-btn::after {
  content: "";
  position: absolute;
  left: 4px; bottom: 2px;
  width: calc(100% - 8px); height: 1px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.link-btn:hover::after { transform: scaleX(1); }

/* ============ NAV ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--orange);
  box-shadow: 0 0 16px var(--glow-orange);
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 1.02rem;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad) 26px;
  background: rgba(11, 13, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--body);
  font-size: 1.05rem;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type, .mobile-menu .solid-btn, .mobile-menu .ghost-btn { border-bottom: none; }
.mobile-menu .solid-btn, .mobile-menu .ghost-btn { margin-top: 10px; justify-content: center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 96px;
  padding-bottom: 80px;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,13,17,0.85) 28%, rgba(11,13,17,0.30) 56%, rgba(11,13,17,0.05) 80%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%, transparent 70%, rgba(11,13,17,0.6) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--cyan-2);
  text-transform: uppercase;
  margin-bottom: 26px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 168, 244, 0.06);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(100deg, var(--orange-2), var(--orange) 55%, #ffb37a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-deck {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--body);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-trust {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 56px auto 0;
  padding-inline: var(--pad);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.hero-trust strong { color: var(--ink); font-weight: 500; }

/* ============ SCENE SHARED ============ */
section { position: relative; }
.journey, .product, .difference, .bento-section, .trust {
  padding-block: clamp(80px, 12vw, 150px);
}
.scene-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.scene-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--orange-2);
  margin-bottom: 18px;
}
.scene-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 600;
}
.scene-sub {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--body);
}
.scene-sub strong, .scene-sub em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ============ JOURNEY / PIPELINE ============ */
.journey { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.pipeline { position: relative; }
.pipeline-rail {
  position: absolute;
  left: 27px; top: 18px; bottom: 18px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.rail-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: linear-gradient(180deg, var(--orange), var(--cyan));
  box-shadow: 0 0 14px var(--glow-orange);
  transition: height 0.2s linear;
}
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 6vw, 64px);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}
.step-node {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-2);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.5s;
}
.step.is-active .step-node {
  border-color: var(--orange);
  background: rgba(255, 101, 0, 0.12);
  box-shadow: 0 0 0 6px rgba(255, 101, 0, 0.06), 0 0 28px -4px var(--glow-orange);
}
.step.is-active .step-num { color: var(--orange-2); }
.step-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s;
}
.step.is-active .step-body {
  border-color: var(--line-2);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}
.step-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; }
.step-body p { color: var(--body); max-width: 60ch; }
.step-tag {
  display: inline-block;
  margin-top: 18px !important;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan-2);
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 168, 244, 0.05);
}

/* ============ PROOF / STATS ============ */
.proof {
  position: relative;
  padding-block: clamp(110px, 15vw, 200px);
  overflow: clip;
}
.proof-bg { position: absolute; inset: 0; z-index: 0; }
.proof-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.proof-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 50%, rgba(11,13,17,0.30), rgba(11,13,17,0.86) 80%),
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}
.proof-inner { position: relative; z-index: 2; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
.stat {
  text-align: center;
  background: rgba(22, 26, 33, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px) 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num.word {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.stat-label {
  display: block;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============ PRODUCT MOMENT ============ */
.product { background: var(--bg-2); }
.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.product-copy .kicker { margin-bottom: 16px; }
.product-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-points li {
  position: relative;
  padding-left: 30px;
  color: var(--body);
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--orange-2), var(--orange));
  box-shadow: 0 0 12px var(--glow-orange);
}

.assessment {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 60px -30px var(--glow-orange);
}
.assessment-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}
.win-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-dot:nth-child(1) { background: #ff5f56; }
.win-dot:nth-child(2) { background: #ffbd2e; }
.win-dot:nth-child(3) { background: #27c93f; }
.assessment-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.finding {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.finding:last-child { border-bottom: none; }
.finding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ctrl {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan-2);
  letter-spacing: 0.02em;
}
.verdict {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.v-pass    { color: #6ee79a; background: rgba(39, 201, 63, 0.12); border-color: rgba(39, 201, 63, 0.3); }
.v-partial { color: #ffce6b; background: rgba(255, 189, 46, 0.12); border-color: rgba(255, 189, 46, 0.3); }
.v-fail    { color: #ff8a85; background: rgba(255, 95, 86, 0.12); border-color: rgba(255, 95, 86, 0.3); }
.req {
  color: var(--body);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.cite {
  margin: 0;
  position: relative;
  padding: 14px 16px 14px 20px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--orange);
  font-size: 0.92rem;
  color: var(--body);
  font-style: italic;
}
.cite.no-cite { border-left-color: #ff5f56; font-style: normal; color: var(--muted); }
.cite cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ============ DIFFERENTIATOR ============ */
.difference { background: var(--bg); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.diff-card {
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.diff-card:hover { transform: translateY(-4px); }
.diff-card.muted { opacity: 0.78; }
.diff-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
}
.diff-tag.accent { color: var(--orange-2); }
.diff-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.diff-card p { color: var(--body); }
.diff-card.hero-card {
  background: linear-gradient(160deg, rgba(255,101,0,0.14), var(--surface-2) 60%);
  border-color: rgba(255, 101, 0, 0.4);
  box-shadow: 0 30px 70px -34px var(--glow-orange);
  opacity: 1;
}

/* ============ BENTO ============ */
.bento-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: clamp(14px, 2vw, 22px);
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tile p { color: var(--body); font-size: 0.97rem; }
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-column: span 2; grid-row: span 2; }
.tile--accent {
  grid-column: span 2;
  background: linear-gradient(150deg, rgba(0,168,244,0.14), var(--surface) 65%);
  border-color: rgba(0, 168, 244, 0.3);
  justify-content: center;
  align-items: flex-start;
}
.tile-stat {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cyan-2);
}
.tile--accent p { margin-top: 12px; color: var(--ink); }
.chips {
  list-style: none;
  margin: auto 0 0;
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--body);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* ============ TRUST ============ */
.trust { background: var(--bg-2); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.8vw, 32px);
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.trust-item:hover { border-color: rgba(0,168,244,0.3); transform: translateY(-3px); }
.trust-item h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}
.trust-item h3::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--glow-cyan);
}
.trust-item p { color: var(--body); font-size: 0.96rem; }

/* ============ FINAL CTA ============ */
.final-cta {
  position: relative;
  padding-block: clamp(120px, 18vw, 240px);
  text-align: center;
  overflow: clip;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 70%;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 35%, transparent 70%, var(--bg) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: 760px; }
.cta-inner h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.cta-inner > p { color: var(--body); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 36px; }
.cta-actions {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 88px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 32ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col a, .footer-col address {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
  line-height: 1.9;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--orange-2); }

/* ============ REVEAL ANIMATION (enhances already-visible content) ============ */
/* Reveals only hide once JS confirms it is running AND can reveal them.
   Without JS (or if it never runs) every .reveal stays fully visible. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.js-ready .reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .product-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide, .tile--tall { grid-column: span 2; grid-row: auto; }
  .tile--accent { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--tall, .tile--accent { grid-column: span 1; }
  .hero-cta { gap: 16px; }
  .pipeline-rail { left: 22px; }
  .step { grid-template-columns: 46px 1fr; gap: 16px; }
  .step-node { width: 46px; height: 46px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { transform: none !important; }
  .rail-fill { transition: none; }
}
