/* ============================================
   Lune — Design System
   ============================================ */

:root {
  /* Brand palette (from logo) */
  --bg:           #0A1410;
  --bg-elev-1:    #0F1F1A;
  --bg-elev-2:    #142A24;
  --bg-glass:     rgba(15, 31, 26, 0.72);
  --border:       rgba(111, 207, 181, 0.14);
  --border-strong:rgba(111, 207, 181, 0.28);

  --mint:         #6FCFB5;
  --mint-bright:  #8FE0CB;
  --mint-dim:     rgba(111, 207, 181, 0.55);
  --mint-glow:    rgba(111, 207, 181, 0.18);

  --text:         #F2F7F5;
  --text-muted:   #8FA39C;
  /* --text-dim lightened from #5C6F69 (~3.4:1) to hit WCAG AA 4.5:1 on --bg */
  --text-dim:     #7A8E88;

  --danger:       #E07B6F;

  /* Type scale */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & radii */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 12px 40px -12px rgba(0,0,0,0.6);
  --shadow-mint: 0 18px 60px -20px rgba(111, 207, 181, 0.35);

  /* Layout */
  --container: 1200px;
  --nav-height: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 600ms;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Global focus-visible — keyboard accessibility
   Applies to every interactive element. Hidden from mouse users via
   :focus-visible so it only appears for keyboard / a11y nav.
   ============================================ */

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--mint-bright);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline-offset: 4px;
}

/* ============================================
   Skip-to-content link — appears on first Tab press
   ============================================ */

.skip-to-content {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  background: var(--mint);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--bg);
  outline-offset: 2px;
}

/* Make sure scroll-to-anchor accounts for fixed nav */
:target { scroll-margin-top: calc(var(--nav-height) + 24px); }
#main-content { scroll-margin-top: 0; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(111, 207, 181, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 30%, rgba(111, 207, 181, 0.06), transparent 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--mint); color: var(--bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-dim); }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--mint);
}

.gradient-text {
  background: linear-gradient(135deg, var(--mint-bright) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================
   Layout primitives
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; position: relative; }
.section--sm { padding: 56px 0; }
.section--lg { padding: 128px 0; }

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header p { font-size: 1.125rem; margin-top: 1rem; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--mint);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--mint-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-mint);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn--link {
  color: var(--mint);
  /* Guarantee 44px tap height per WCAG 2.5.5 / Apple HIG */
  padding: 0.65rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn--link:hover { color: var(--mint-bright); }
.btn--link .arrow { transition: transform var(--t-fast) var(--ease); }
.btn--link:hover .arrow { transform: translateX(4px); }

/* Text-only button — used as the secondary CTA next to a filled primary */
.btn--text {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  border: none;
}
.btn--text:hover { color: var(--mint); }
.btn--text .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.btn--text:hover .arrow { transform: translateX(4px); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
/* Frosted blur lives on a pseudo-element so .nav itself stays free of
   backdrop-filter — otherwise that property creates a containing block for
   position:fixed descendants (like the mobile drawer), which would clip the
   drawer to the 72px nav height once scrolled. */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease);
  pointer-events: none;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav.is-scrolled::before {
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  color: var(--mint);
  border-radius: 6px;
  overflow: hidden;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
  position: relative;
  padding: 12px 4px; /* 44px+ hit area incl line-height */
  min-height: 44px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px;
}

/* The mobile CTA list item only renders inside the mobile drawer (≤720px). */
.nav-mobile-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: all var(--t-fast) var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: all var(--t-fast) var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   Hero — redesigned with the lunar motif
   ============================================ */

/* Tiny scattered stars — pure CSS dot pattern */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(143, 224, 203, 0.7), transparent 60%),
    radial-gradient(1px 1px at 28% 64%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(2px 2px at 58% 18%, rgba(143, 224, 203, 0.45), transparent 60%),
    radial-gradient(1px 1px at 76% 76%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 38%, rgba(143, 224, 203, 0.5), transparent 60%),
    radial-gradient(1px 1px at 44% 88%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 78%, rgba(143, 224, 203, 0.55), transparent 60%),
    radial-gradient(1px 1px at 96% 14%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 36% 38%, rgba(143, 224, 203, 0.4), transparent 60%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}

/* ============================================
   Display stats — full-width editorial moment
   ============================================ */

.stats-feature {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  padding: 24px 0;
  gap: 0;
}
/* Connector line removed — was colliding with the descenders of "B+" / "%".
   The vertical column separators below already do the work of grouping. */
.stats-feature .stat-big {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.stats-feature .stat-big + .stat-big::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}
.stat-big-value {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--mint-bright), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  /* Tabular figures stop the digit-width from shifting as counter ticks up. */
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-big .counter {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}
.stat-big-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}
.stat-big-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .stats-feature {
    grid-template-columns: 1fr;
    padding: 16px 0;
    gap: 28px;
  }
  .stats-feature::before { display: none; }
  .stats-feature .stat-big + .stat-big::before { display: none; }
}

/* ============================================
   Product card accent variants
   ============================================ */

.product-card--enrich,
.product-card--engage,
.product-card--target {
  position: relative;
  overflow: hidden;
}
.product-card--enrich::after,
.product-card--engage::after,
.product-card--target::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, var(--mint)) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.product-card--enrich { --accent: #6FCFB5; }
.product-card--engage { --accent: #B6A6FF; }
.product-card--target { --accent: #F5B27E; }

.product-card--enrich .product-icon { color: #6FCFB5; background: rgba(111, 207, 181, 0.12); border-color: rgba(111, 207, 181, 0.32); }
.product-card--engage .product-icon { color: #B6A6FF; background: rgba(182, 166, 255, 0.12); border-color: rgba(182, 166, 255, 0.32); }
.product-card--target .product-icon { color: #F5B27E; background: rgba(245, 178, 126, 0.12); border-color: rgba(245, 178, 126, 0.32); }

.product-card--enrich .btn--link { color: #6FCFB5; }
.product-card--engage .btn--link { color: #B6A6FF; }
.product-card--target .btn--link { color: #F5B27E; }

/* Mini-preview pill row inside each product card */
.product-preview {
  display: flex;
  flex-wrap: nowrap;       /* never wrap - design intent is a single line */
  gap: 5px;
  margin: 1rem 0 1.25rem;
  min-width: 0;            /* let flex children shrink under tight widths */
  overflow: hidden;        /* belt-and-braces — pill row clips, doesn't wrap */
}
.product-preview span {
  font-size: 0.7rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, monospace;
  white-space: nowrap;     /* each pill stays on one line */
  flex-shrink: 0;          /* but the row itself drives layout, not each pill */
}
.product-card--enrich .product-preview span:first-child { color: #6FCFB5; border-color: rgba(111, 207, 181, 0.4); }
.product-card--engage .product-preview span:first-child { color: #B6A6FF; border-color: rgba(182, 166, 255, 0.4); }
.product-card--target .product-preview span:first-child { color: #F5B27E; border-color: rgba(245, 178, 126, 0.4); }

/* ============================================
   Section background variants
   ============================================ */

.section--alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-elev-1) 8%, var(--bg-elev-1) 92%, transparent 100%);
}

.section--mesh {
  position: relative;
  overflow: hidden;
}
.section--mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 10% 30%, rgba(111, 207, 181, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 70%, rgba(143, 224, 203, 0.06), transparent 60%);
  pointer-events: none;
}
.section--mesh > * { position: relative; }

/* Per-module accent variants for section--mesh on the products page */
.section--mesh.section--accent-engage::before {
  background:
    radial-gradient(ellipse 50% 60% at 12% 28%, rgba(182, 166, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 72%, rgba(182, 166, 255, 0.06), transparent 60%);
}
.section--mesh.section--accent-target::before {
  background:
    radial-gradient(ellipse 50% 60% at 12% 28%, rgba(245, 178, 126, 0.12), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 72%, rgba(245, 178, 126, 0.06), transparent 60%);
}

/* Accent eyebrows per module — color override */
.eyebrow--engage { color: #B6A6FF; }
.eyebrow--engage::before { background: #B6A6FF; }
.eyebrow--target { color: #F5B27E; }
.eyebrow--target::before { background: #F5B27E; }

/* ============================================
   Hero kicker — quiet category descriptor above the H1
   ============================================ */

.hero-kicker {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
}

/* ============================================
   Why Lune — dense inline strip (was a 4-card grid)
   ============================================ */

.why-strip {
  list-style: none;
  margin: 0;
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-strip li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 2px solid var(--mint);
}
.why-strip li strong {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.why-strip li span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
@media (max-width: 960px) {
  .why-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .why-strip { grid-template-columns: 1fr; }
}

/* ============================================
   Proof — editorial moment with two contrasting stats
   ============================================ */

.proof {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.proof-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}
.proof-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 3rem;
}
.proof-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 2rem;
  position: relative;
}
.proof-stat-row::before {
  content: 'vs';
  position: absolute;
  left: 50%;
  bottom: 38%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg);
  padding: 0 12px;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.proof-stat--muted { opacity: 0.55; border-style: dashed; }
.proof-stat-value {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--mint-bright), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-stat--muted .proof-stat-value {
  background: none;
  -webkit-text-fill-color: var(--text-muted);
  color: var(--text-muted);
}
.proof-stat-value small {
  font-size: 0.5em;
  font-weight: 400;
  margin-left: 2px;
}
.proof-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.proof-source {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.proof-source a { color: var(--mint); text-decoration: none; }
.proof-source a:hover { color: var(--mint-bright); }

@media (max-width: 640px) {
  .proof-stat-row { gap: 16px; }
  .proof-stat { padding: 18px 10px; }
  .proof-stat-row::before { bottom: 42%; font-size: 0.7rem; padding: 0 8px; }
}

/* ============================================
   Section header row — eyebrow+h2 on left, link on right
   ============================================ */

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-header--row h2 { margin: 0; }
.section-header--row .btn--text { padding-right: 0; }

/* ============================================
   Case teaser cards — embedded home-page case stories
   ============================================ */

.case-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-teaser {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.case-teaser::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), transparent 80%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.case-teaser:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.case-teaser:hover::after { opacity: 1; }
.case-teaser-tag {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
.case-teaser h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.case-teaser p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}
.case-teaser-cta {
  font-size: 0.88rem;
  color: var(--mint);
  margin-top: 8px;
}
.case-teaser-cta .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
.case-teaser:hover .case-teaser-cta .arrow { transform: translate(2px, -2px); }

@media (max-width: 900px) {
  .case-teaser-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Future grid — pitch page "Noted from the latest design pass"
   ============================================ */

.future-group {
  margin-bottom: 56px;
}
.future-group:last-child { margin-bottom: 0; }
.future-group-title {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.future-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}
.future-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  padding: 4px 10px;
  border: 1px solid rgba(95, 181, 161, 0.32);
  border-radius: 999px;
  background: rgba(95, 181, 161, 0.05);
}
.future-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 4px 0 0;
  color: var(--text);
}
.future-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 960px) {
  .future-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .future-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Location row — about.html "Where we are"
   ============================================ */

.location-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.location-row > div { max-width: 520px; }
.location-row h2 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3vw, 2rem); }
.location-row p { margin: 0; color: var(--text-muted); }

/* ============================================
   Contact "What happens next" block
   ============================================ */

.next-steps {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.next-steps h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
}
.next-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.next-steps-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.next-steps-num {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--mint);
  font-weight: 500;
}
.next-steps-list strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
}
.next-steps-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .next-steps-list { grid-template-columns: 1fr; }
}

/* ============================================
   Feature CTA row — primary + text-link side by side
   ============================================ */

.feature-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============================================
   Enrich mock — raw transaction string -> structured payload
   ============================================ */

.enrich-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.enrich-mock-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* Raw JSON-ish stream */
.enrich-mock-input pre {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.enrich-mock-input .tk-k { color: var(--mint-bright); }
.enrich-mock-input .tk-s { color: #E6C68A; }       /* strings = warm amber */
.enrich-mock-input .tk-n { color: #C3B6FF; }       /* numbers = lavender */
.enrich-mock-input .tk-c { color: var(--text-dim); font-style: italic; }  /* comment */

.enrich-mock-arrow {
  text-align: center;
  font-size: 1.3rem;
  color: var(--mint);
  line-height: 1;
}

/* Enriched output — bank-app-style transaction card */
.enrich-mock-output {
  padding: 0;
}
.enrich-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(111, 207, 181, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(111, 207, 181, 0.06), rgba(111, 207, 181, 0.02));
}
.enrich-card-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.enrich-card-logo svg { width: 100%; height: 100%; display: block; }
.enrich-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.enrich-card-main strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}
.enrich-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.enrich-card-meta svg { color: var(--text-dim); }
.enrich-card-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.enrich-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.enrich-card-right strong {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.enrich-card-carbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #8FE0CB;
}
@media (max-width: 540px) {
  .enrich-card { grid-template-columns: auto 1fr; row-gap: 8px; }
  .enrich-card-right { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* ============================================
   Engage — three sub-modules grid (replaces alternating feature-row)
   ============================================ */

.engage-header {
  max-width: 720px;
  margin-bottom: 48px;
}
.engage-header h2 { margin-bottom: 1rem; }
.engage-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.engage-sub {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  position: relative;
  transition: all var(--t-med) var(--ease);
}
.engage-sub:hover {
  border-color: rgba(182, 166, 255, 0.4);
  transform: translateY(-3px);
}
.engage-sub-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(182, 166, 255, 0.12);
  border: 1px solid rgba(182, 166, 255, 0.32);
  color: #B6A6FF;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.engage-sub h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.engage-sub p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.engage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.engage-meta > span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.engage-meta .feature-cta-row { margin-top: 0; }

@media (max-width: 900px) {
  .engage-sub-grid { grid-template-columns: 1fr; }
  .engage-meta { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Target mock — segment definition -> measured offer
   ============================================ */

.target-mock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.target-mock-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}
.target-mock-segment,
.target-mock-offer {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.target-mock-offer {
  background: rgba(245, 178, 126, 0.05);
  border-color: rgba(245, 178, 126, 0.32);
}
.target-mock-segment strong,
.target-mock-offer strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}
.target-mock-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.target-mock-arrow {
  align-self: center;
  font-size: 1.4rem;
  color: #F5B27E;
  line-height: 1;
}
.target-mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 178, 126, 0.2);
}
.target-mock-stats > div { display: flex; flex-direction: column; gap: 2px; }
.target-mock-stats span {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.target-mock-stats strong {
  font-size: 1.1rem;
  color: #F5B27E;
  font-weight: 500;
  margin: 0;
}
@media (max-width: 720px) {
  .target-mock { grid-template-columns: 1fr; }
  .target-mock-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ============================================
   Pull-quote — full-bleed editorial moment
   ============================================ */

.pull-quote {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.pull-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 50% 50%, rgba(111, 207, 181, 0.10), transparent 70%);
  pointer-events: none;
}
.pull-quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: var(--mint);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin: 0 auto 1rem;
  height: 4rem;
}
.pull-quote-text {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto;
  color: var(--text);
}
.pull-quote-attr {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pull-quote-attr strong { color: var(--text); font-weight: 500; font-size: 1rem; }
.pull-quote-attr .placeholder-note {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ============================================
   Moon-phase divider between sections
   ============================================ */

.moon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 0;
  opacity: 0.6;
}
.moon-divider-phase {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mint);
  position: relative;
  flex-shrink: 0;
}
.moon-divider-phase:nth-child(1) { box-shadow: inset 11px 0 0 var(--bg-elev-2); }
.moon-divider-phase:nth-child(2) { box-shadow: inset 6px 0 0 var(--bg-elev-2); }
.moon-divider-phase:nth-child(3) { box-shadow: none; }
.moon-divider-phase:nth-child(4) { box-shadow: inset -6px 0 0 var(--bg-elev-2); }
.moon-divider-phase:nth-child(5) { box-shadow: inset -11px 0 0 var(--bg-elev-2); }

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: calc(var(--nav-height) + 64px) 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 .line { display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  background: var(--bg-elev-1);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================
   Stats
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, transparent 100%);
  backdrop-filter: blur(20px);
  position: relative;
}

.stat { text-align: center; }
.stat-value {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 500;
  color: var(--mint);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ============================================
   Product cards
   ============================================ */

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

.product-card {
  position: relative;
  padding: 2.25rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--t-med) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.product-card--compact {
  padding: 1.75rem;
  min-height: 240px;
}
.product-card--compact h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}
.product-card--compact p {
  font-size: 0.92rem;
  flex-grow: 1;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 0% 0%, var(--mint-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}

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

.product-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--mint-glow);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--mint);
  margin-bottom: 1.75rem;
}
.product-icon svg { width: 24px; height: 24px; }

.product-card h3 {
  margin-bottom: 0.75rem;
}

.product-card p { flex-grow: 1; }

.product-card .btn--link {
  margin-top: auto;
  align-self: flex-start;
}

/* ============================================
   Feature rows (alternating product detail)
   ============================================ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row--reverse .feature-text { order: 2; }
.feature-row--reverse .feature-visual { order: 1; }

.feature-text h2 { margin-bottom: 1.25rem; }
.feature-text p { font-size: 1.05rem; margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  color: var(--text);
  font-size: 0.98rem;
}
.feature-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--mint);
}

.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}
.feature-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(10, 20, 16, 0.4) 100%);
  pointer-events: none;
}

/* ============================================
   Clients / Logo strip
   ============================================ */

.clients {
  text-align: center;
}
.clients-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2.5rem;
}
.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
}
.client-logo {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.client-logo:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.client-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .client-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .client-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Compliance / Trust badges
   ============================================ */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.trust-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--mint-glow);
  display: grid;
  place-items: center;
  color: var(--mint);
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}
.trust-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Case study cards
   ============================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.case-card-image {
  aspect-ratio: 16 / 9;
  background: var(--bg-elev-2);
  position: relative;
  overflow: hidden;
}
.case-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.case-card:hover .case-card-image img { transform: scale(1.04); }
.case-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 20, 16, 0.7) 100%);
}

/* Logo-tile variant: 1:1 white square, logo centred, no overlay or zoom */
.case-card-image--logo {
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 6%;
}
.case-card-image--logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: none;
}
.case-card:hover .case-card-image--logo img { transform: none; }
.case-card-image--logo::after { display: none; }
.case-card-body { padding: 1.75rem; flex-grow: 1; display: flex; flex-direction: column; }
.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.case-card h3 { margin-bottom: 0.5rem; }
.case-card .case-meta {
  display: flex; gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.case-meta-item strong {
  display: block;
  color: var(--mint);
  font-size: 1.5rem;
  font-weight: 500;
}
.case-meta-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Careers
   ============================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
}
.value-card .value-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--mint);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.value-card p { font-size: 0.95rem; margin: 0; }

.jobs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  transition: all var(--t-fast) var(--ease);
  text-align: left;
}
.job:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}
.job-title { font-size: 1.05rem; font-weight: 500; color: var(--text); }
.job-meta { font-size: 0.9rem; color: var(--text-muted); }
.job-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--mint);
  transition: all var(--t-fast) var(--ease);
}
.job:hover .job-arrow {
  background: var(--mint);
  color: var(--bg);
  border-color: var(--mint);
}

/* ============================================
   Contact / Form
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--mint-glow);
  display: grid;
  place-items: center;
  color: var(--mint);
  flex-shrink: 0;
}
.contact-detail-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-detail-text span,
.contact-detail-text a {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-detail-text a:hover { color: var(--mint); }

.form {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-field label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--mint);
}
.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--mint);
  min-height: 1.4em;
}

/* Per-field inline error message — sits below the input */
.form-field-error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--danger);
  line-height: 1.4;
}

/* Required indicator on form labels */
.form-field label .req,
.form-required-hint .req {
  color: var(--danger);
  margin-left: 4px;
  font-weight: 500;
}
.form-required-hint {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   CTA banner
   ============================================ */

.cta-banner {
  padding: 80px 64px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, var(--mint-glow), transparent 70%),
    radial-gradient(ellipse 60% 100% at 100% 100%, var(--mint-glow), transparent 70%),
    var(--bg-elev-1);
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; max-width: 540px; margin: 0 auto 2rem; }

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.footer-legal-links a {
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
.footer-legal-links a:hover { color: var(--mint); }

.footer-pitch-note {
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(111, 207, 181, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}
.footer-pitch-note a {
  color: var(--mint);
  font-weight: 500;
}
.footer-pitch-note a:hover { color: var(--mint-bright); text-decoration: underline; }

.footer-address {
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease);
}
.footer-address:hover { color: var(--mint); }

/* ============================================
   Pitch page
   ============================================ */
.pitch-hero {
  padding: calc(var(--nav-height) + 80px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pitch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--mint-glow), transparent 70%);
  pointer-events: none;
}
.pitch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--mint);
  background: var(--mint-glow);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.compare-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
}
.compare-card h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.compare-card--before h4 { color: var(--text-dim); }
.compare-card--after h4 { color: var(--mint); }
.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.compare-card li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  margin-top: 8px;
}
.compare-card--after li::before { background: var(--mint); }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.roadmap-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
}
.roadmap-phase {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
  font-weight: 500;
}
.roadmap-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.roadmap-card p { font-size: 0.92rem; margin: 0; }

.pitch-signature {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
}
.pitch-signature p { color: var(--text); font-size: 1.05rem; margin-bottom: 1.25rem; }
.pitch-signature .name {
  font-weight: 600;
  color: var(--mint);
  margin-bottom: 0.25rem;
}
.pitch-signature .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
}
.socials { display: flex; gap: 1rem; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.socials a:hover {
  border-color: var(--mint);
  color: var(--mint);
}

/* ============================================
   Page header (sub-pages)
   ============================================ */

.page-header {
  padding: calc(var(--nav-height) + 48px) 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--mint-glow), transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
}
.page-header p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ============================================
   Reveal animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  /* Reveal animations: show immediately, no transform */
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  /* Kill decorative continuous animations */
  .hero-badge .dot { animation: none; }
  /* Disable button/link micro-transforms on hover */
  .btn--primary:hover,
  .product-card:hover,
  .industry-card:hover,
  .engage-sub:hover,
  .case-teaser:hover {
    transform: none;
  }
  .btn--link:hover .arrow,
  .btn--text:hover .arrow,
  .case-teaser:hover .case-teaser-cta .arrow { transform: none; }
  /* Counter animation falls back to final value (handled in app.js) */
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .products-grid { grid-template-columns: 1fr; }
  .products-grid--four { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; margin-bottom: 80px; }
  .feature-row--reverse .feature-text { order: 1; }
  .feature-row--reverse .feature-visual { order: 2; }
  .case-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .job { grid-template-columns: 1fr auto; }
  .job .job-meta { display: none; }
  .cta-banner { padding: 48px 24px; }
}

/* Nav drawer activates earlier than other mobile tweaks — iPad portrait
   (≤900px) gets the hamburger because the full desktop nav can't fit
   comfortably between the logo and the Schedule-a-Demo button. */
@media (max-width: 900px) {
  .nav-cta .btn--primary,
  .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: calc(var(--nav-height) - 1px);
    left: 0; right: 0;
    bottom: 0;
    margin: 0;
    padding: 16px 22px 32px;
    background: var(--bg);
    overflow-y: auto;
    transform: translateY(-105%);
    opacity: 0;
    transition: transform 0.32s var(--ease), opacity 0.2s var(--ease);
    pointer-events: none;
    border-top: 1px solid var(--border);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { margin: 0; }
  .nav-links a {
    display: block;
    padding: 18px 6px;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a[aria-current="page"] { color: var(--mint); }
  .nav-links a[aria-current="page"]::after { display: none; }

  .nav-mobile-cta { display: block; margin-top: 24px; }
  .nav-mobile-cta a {
    display: block !important;
    text-align: center;
    border-bottom: none !important;
    background: var(--mint);
    color: var(--bg) !important;
    padding: 14px 18px !important;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem !important;
    transition: background var(--t-fast) var(--ease);
  }
  .nav-mobile-cta a:hover { background: var(--mint-bright); }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav {
    background: var(--bg);
    border-bottom-color: var(--border);
  }
  body.nav-open .nav::before {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 720px) {
  .hero { padding-top: calc(var(--nav-height) + 60px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* General mobile spacing tweaks */
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--sm { padding: 40px 0; }
  .page-header { padding-top: calc(var(--nav-height) + 60px); padding-bottom: 60px; }
  .cta-banner { padding: 40px 24px; }
  .feature-row { gap: 32px; margin-bottom: 56px; }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .stats { padding: 28px 20px; }
  .stat-value { font-size: 1.85rem; }
  .stats { gap: 14px; }
  .product-card { padding: 1.75rem; min-height: 280px; }
  .case-card-body, .form { padding: 1.5rem; }
  .docs-shell { padding: calc(var(--nav-height) + 24px) 18px 60px; }
  .docs-content { padding: 0; }
  .docs-sidebar { margin-bottom: 8px; padding-bottom: 12px; }
}

/* ============================================
   Placeholder markers (transparency)
   ============================================ */

.placeholder-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
  background: rgba(224, 123, 111, 0.12);
  color: #E07B6F;
  border: 1px solid rgba(224, 123, 111, 0.45);
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 1.4;
  white-space: nowrap;
}

.placeholder-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0.9rem 1.1rem;
  background: rgba(224, 123, 111, 0.07);
  border: 1px solid rgba(224, 123, 111, 0.25);
  border-radius: var(--radius);
  color: #E8A097;
  font-size: 0.88rem;
  line-height: 1.5;
}
.placeholder-banner svg {
  flex-shrink: 0;
  color: #E07B6F;
}
.placeholder-banner strong { color: #E07B6F; font-weight: 600; }

/* ============================================
   Helpers (replace inline styles)
   ============================================ */

.btn--block { width: 100%; justify-content: center; }
.text-left { text-align: left; }

.cta-banner--quote {
  text-align: left;
  padding: 64px;
}
.cta-banner--quote h2 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.cta-banner--quote p { margin: 0; }
.cta-banner--quote .attribution { color: var(--text); font-weight: 500; }

.lead { font-size: 1.05rem; margin-bottom: 2rem; }

/* ============================================
   Industries page
   ============================================ */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.industry-card {
  padding: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  transition: all var(--t-med) var(--ease);
}
.industry-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.industry-card .product-icon { margin-bottom: 1.5rem; }
.industry-card h3 { margin-bottom: 0.75rem; }
.industry-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.industry-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
}
.industry-card li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

/* Per-card accent variants */
.industry-card {
  position: relative;
  overflow: hidden;
}
.industry-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--mint));
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.industry-card:hover::before { opacity: 1; }
.industry-card:hover { border-color: var(--card-accent, var(--border-strong)); }
.industry-card--retail   { --card-accent: #6FCFB5; }
.industry-card--neobanks { --card-accent: #B6A6FF; }
.industry-card--fintechs { --card-accent: #F5B27E; }
.industry-card--retail   .product-icon { color: #6FCFB5; background: rgba(111, 207, 181, 0.12); border-color: rgba(111, 207, 181, 0.32); }
.industry-card--neobanks .product-icon { color: #B6A6FF; background: rgba(182, 166, 255, 0.12); border-color: rgba(182, 166, 255, 0.32); }
.industry-card--fintechs .product-icon { color: #F5B27E; background: rgba(245, 178, 126, 0.12); border-color: rgba(245, 178, 126, 0.32); }

.industry-card-uses {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.industry-card-uses li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  padding: 5px 0;
  color: var(--text-muted);
  line-height: 1.45;
}
.industry-card-uses li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--card-accent, var(--mint));
  margin-top: 0.55em;
  flex-shrink: 0;
}
.industry-card-modules {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.industry-card-modules > span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}
.industry-card-modules strong {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ============================================
   About page — team & milestones
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  overflow: hidden;
  transition: all var(--t-fast) var(--ease);
}
.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.team-photo {
  aspect-ratio: 1 / 1;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter var(--t-med) var(--ease);
}
.team-card:hover .team-photo img { filter: grayscale(0); }
.team-body { padding: 1.25rem 1.25rem 1.5rem; }
.team-body h4 { font-size: 1.05rem; margin-bottom: 4px; }
.team-body p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

.milestones {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}
.milestones::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}
.milestone {
  position: relative;
  padding: 0 0 2.5rem;
}
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: '';
  position: absolute;
  left: -32px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--mint);
}
.milestone-year {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--mint);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.milestone h4 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.milestone p { margin: 0; font-size: 0.95rem; }

/* ============================================
   Docs page
   ============================================ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.doc-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  transition: all var(--t-fast) var(--ease);
  display: block;
}
.doc-card:hover {
  border-color: var(--mint);
  transform: translateY(-3px);
}
.doc-card .doc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background: var(--mint-glow);
  color: var(--mint);
  margin-bottom: 1rem;
}
.doc-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.doc-card p { margin: 0; font-size: 0.92rem; }

.code-block {
  background: #06100C;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.code-block .tok-key { color: var(--mint); }
.code-block .tok-str { color: #E8C480; }
.code-block .tok-num { color: #C49EFF; }
.code-block .tok-com { color: var(--text-dim); font-style: italic; }

/* ============================================
   Sign-in
   ============================================ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
}
.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.auth-card .auth-sub {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.auth-footer a { color: var(--mint); }

/* ============================================
   Blog
   ============================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.blog-image {
  aspect-ratio: 16 / 10;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.blog-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-body { padding: 1.5rem; }
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-meta .blog-cat { color: var(--mint); }
.blog-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.blog-body p { font-size: 0.92rem; margin: 0; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  overflow: hidden;
  margin-bottom: 64px;
}
.blog-featured-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.blog-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-body h2 { margin-bottom: 1rem; }

/* ============================================
   Legal pages
   ============================================ */

.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.legal h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.legal h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}
.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.legal ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--mint-bright); }
.legal-updated {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 2rem;
}

/* ============================================
   Press page
   ============================================ */

.press-list { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin: 0 auto; }
.press-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  align-items: center;
  transition: all var(--t-fast) var(--ease);
}
.press-item:hover { border-color: var(--border-strong); }
.press-date { font-size: 0.85rem; color: var(--mint); letter-spacing: 0.05em; }
.press-title { font-weight: 500; color: var(--text); }
.press-source { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   404
   ============================================ */

.error-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--nav-height) 24px 40px;
  text-align: center;
}
.error-code {
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(135deg, var(--mint-bright) 0%, var(--mint) 60%, var(--bg-elev-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.error-shell h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.error-shell p { max-width: 480px; margin: 0 auto 2rem; }

/* ============================================
   Docs site (sidebar + content + code tabs)
   ============================================ */

.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  gap: 56px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  padding: 4px 0;
}

.docs-nav-section { margin-bottom: 24px; }
.docs-nav-heading {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  padding: 0 12px;
}
.docs-nav-section ul { list-style: none; padding: 0; margin: 0; }
.docs-nav-section li { margin: 0; }
.docs-nav-section a {
  display: block;
  padding: 7px 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.docs-nav-section a:hover { color: var(--text); background: var(--bg-elev-1); }
.docs-nav-section a[aria-current="page"] {
  color: var(--mint);
  background: var(--mint-glow);
  font-weight: 500;
}

.docs-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 12px;
  margin-top: 8px;
  transition: color var(--t-fast) var(--ease);
}
.docs-back:hover { color: var(--mint); }

.docs-content {
  min-width: 0;
}

.docs-content .docs-banner {
  padding: 0.7rem 1rem;
  background: rgba(111, 207, 181, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.docs-content .docs-banner strong { color: var(--mint); }

.docs-page-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
}
.docs-breadcrumb {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.docs-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.docs-breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.docs-breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-dim);
}
.docs-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.docs-breadcrumb a:hover { color: var(--mint); }
.docs-breadcrumb [aria-current="page"] {
  color: var(--mint);
  font-weight: 500;
}
.docs-page-header h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}
.docs-page-header p {
  font-size: 1.05rem;
  margin: 0;
  max-width: 720px;
}

.docs-content h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.docs-content h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--text);
}
.docs-content p {
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 720px;
}
.docs-content p code,
.docs-content li code,
.docs-content table code {
  background: var(--bg-elev-1);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--mint);
  border: 1px solid var(--border);
}
.docs-content ul { padding-left: 1.25rem; max-width: 720px; }
.docs-content ul li { color: var(--text-muted); line-height: 1.7; padding: 0.25rem 0; }
.docs-content a { color: var(--mint); }
.docs-content a:hover { color: var(--mint-bright); text-decoration: underline; }

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  max-width: 760px;
}
.docs-content table th,
.docs-content table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs-content table th {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.docs-content table td:first-child { color: var(--text); }

.docs-next {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.docs-next a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev-1);
  transition: all var(--t-fast) var(--ease);
}
.docs-next a:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
  text-decoration: none;
}
.docs-next span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.docs-next strong {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.docs-next a:hover strong { color: var(--mint); }

/* Code tabs */
.code-tabs {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #06100C;
  max-width: 760px;
}
.code-tabs-buttons {
  display: flex;
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.code-tabs-buttons button {
  padding: 9px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.code-tabs-buttons button:hover { color: var(--text); }
.code-tabs-buttons button[aria-selected="true"] {
  color: var(--mint);
  border-bottom-color: var(--mint);
}
.code-tabs-panel { display: none; margin: 0; }
.code-tabs-panel[data-active="true"] { display: block; }
.code-tabs-panel pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-x: auto;
}
.code-tabs-panel pre .tok-key { color: var(--mint); }
.code-tabs-panel pre .tok-str { color: #E8C480; }
.code-tabs-panel pre .tok-num { color: #C49EFF; }
.code-tabs-panel pre .tok-com { color: var(--text-dim); font-style: italic; }

@media (max-width: 960px) {
  .docs-shell { grid-template-columns: 1fr; gap: 24px; padding-top: calc(var(--nav-height) + 16px); }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }
  .docs-next { grid-template-columns: 1fr; }
}

/* ============================================
   Cookie consent (banner + preferences modal)
   ============================================ */

.consent-banner {
  position: fixed;
  z-index: 200;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.consent-banner-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.consent-banner-text { flex: 1; min-width: 280px; }
.consent-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.consent-banner-text p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}
.consent-banner-text a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.consent-banner-buttons .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.consent-modal[hidden] { display: none; }
.consent-modal.is-visible { opacity: 1; }

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 9, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.consent-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 2rem 2rem 1.5rem;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px -20px rgba(0,0,0,0.7);
}
.consent-modal.is-visible .consent-modal-card {
  animation: consent-pop 0.22s var(--ease);
}
@keyframes consent-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.consent-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.consent-modal-close:hover {
  background: var(--bg-elev-2);
  color: var(--text);
}

.consent-modal-card h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  padding-right: 36px;
}
.consent-modal-intro {
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.consent-category {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
.consent-category:first-of-type { border-top: none; padding-top: 0; }
.consent-category p {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}
.consent-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.consent-category-label,
.consent-category-row strong {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.consent-locked-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  padding: 0.25rem 0.6rem;
  background: var(--mint-glow);
  border-radius: 4px;
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.consent-toggle-track::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.consent-toggle input:checked ~ .consent-toggle-track {
  background: var(--mint);
  border-color: var(--mint);
}
.consent-toggle input:checked ~ .consent-toggle-track::before {
  transform: translateX(20px);
  background: var(--bg);
}
.consent-toggle input:focus-visible ~ .consent-toggle-track {
  box-shadow: 0 0 0 3px var(--mint-glow);
}

.consent-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.consent-modal-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .consent-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }
  .consent-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-banner-buttons { justify-content: flex-end; }
  .consent-modal-card { padding: 1.5rem 1.25rem; }
  .consent-modal-actions { justify-content: stretch; }
  .consent-modal-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================
   Responsive — new components
   ============================================ */

@media (max-width: 960px) {
  .industries-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 2rem; }
  .press-item { grid-template-columns: 1fr; gap: 8px; }
  .press-source { display: none; }
  .cta-banner--quote { padding: 40px 28px; }
  .auth-card { padding: 2rem 1.5rem; }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; }
}
