/* ============================================================
   Formetric — styles.css
   Design system + layout + components + responsive + animations
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #FFFFFF;
  --bg-secondary:  #F5F5F7;
  --bg-dark:       #0A0E14;
  --bg-dark-2:     #161B22;
  --text:          #1D1D1F;
  --text-secondary:#6E6E73;
  --text-tertiary: #86868B;
  --accent:        #0071E3;
  --accent-hover:  #0077ED;
  --tech:          #00D4FF;
  --tech-glow:     rgba(0, 212, 255, 0.45);
  --hot:           #FF3B30;
  --warm:          #FF9F0A;
  --cool:          #34C759;
  --border:        #D2D2D7;
  --border-dark:   #2A2F38;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;

  --s-1:  4px; --s-2:  8px; --s-3:  16px; --s-4:  24px; --s-5:  32px;
  --s-6:  48px; --s-7:  64px; --s-8:  96px; --s-9:  128px; --s-10: 192px;

  --max-w: 1120px;
  --max-w-wide: 1280px;
  --header-h: 64px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --d-fast: 200ms; --d-med: 400ms; --d-slow: 700ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
ul { list-style: none; padding: 0; margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
}
.h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.h3 { font-size: clamp(22px, 2.4vw, 30px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tech);
  margin-bottom: var(--s-4);
  display: inline-block;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 400;
  max-width: 640px;
}
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center;
  z-index: 100;
  transition: background var(--d-med) var(--ease), backdrop-filter var(--d-med) var(--ease), border-color var(--d-med) var(--ease), color var(--d-med) var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--text);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.site-header.on-dark { color: #fff; }
.site-header.on-dark.is-scrolled {
  background: rgba(10, 14, 20, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.header-inner {
  width: 100%;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand { display: inline-flex; align-items: center; height: 32px; }
.brand-wordmark {
  height: 28px; width: auto; display: block;
  transition: opacity var(--d-fast) var(--ease);
}
.brand-wordmark.light { display: none; }
.site-header.on-dark .brand-wordmark.dark { display: none; }
.site-header.on-dark .brand-wordmark.light { display: block; }

.nav-primary {
  display: flex; gap: var(--s-5);
  font-size: 14.5px; font-weight: 500;
}
.nav-primary a {
  position: relative;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--d-fast) var(--ease);
}
.nav-primary a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width var(--d-fast) var(--ease);
}
.nav-primary a:hover { color: var(--text); }
.nav-primary a:hover::after { width: 100%; }
.nav-primary a.active { color: var(--text); }
.site-header.on-dark .nav-primary a { color: rgba(255,255,255,0.65); }
.site-header.on-dark .nav-primary a:hover, .site-header.on-dark .nav-primary a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 6px; right: 6px;
  height: 1.5px; background: currentColor;
  transition: transform var(--d-fast) var(--ease), opacity var(--d-fast) var(--ease), top var(--d-fast) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 16px; }
.menu-toggle span:nth-child(3) { top: 21px; }
.menu-toggle.is-open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0;
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 100px var(--s-5) var(--s-5);
  gap: var(--s-4);
  opacity: 0; pointer-events: none;
  transition: opacity var(--d-med) var(--ease);
}
.nav-mobile.is-open { opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-size: 28px; font-weight: 600; color: #fff; letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform var(--d-fast) var(--ease), background var(--d-fast) var(--ease), color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 113, 227, 0.25);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text); transform: translateY(-1px); }
.site-header.on-dark .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.site-header.on-dark .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.10);
}
.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-on-dark { background: #fff; color: var(--bg-dark); }
.btn-on-dark:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.btn-ghost-light {
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
}

/* ---------- Layout ---------- */
.section { padding: var(--s-9) var(--s-4); position: relative; }
.section-tight { padding: var(--s-8) var(--s-4); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .lead { color: rgba(255,255,255,0.7); }
.section-grey { background: var(--bg-secondary); }
.container { max-width: var(--max-w); margin: 0 auto; }
.container-wide { max-width: var(--max-w-wide); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ---------- HERO (DARK, FULL-BLEED) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--s-7)) var(--s-4) var(--s-7);
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg-canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  z-index: 0;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(10, 14, 20, 0.50) 0%, rgba(10, 14, 20, 0.85) 65%, rgba(10, 14, 20, 0.97) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.5) 0%, transparent 25%, transparent 70%, rgba(10, 14, 20, 0.95) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, transparent 25%, black 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, black 80%);
}
.hero-content {
  position: relative; z-index: 3;
  max-width: var(--max-w); width: 100%;
  margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin: 0 auto var(--s-4);
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.hero h1 .accent {
  background: linear-gradient(90deg, #fff 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  margin: 0 auto var(--s-6);
  max-width: 580px;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero .eyebrow { text-shadow: 0 2px 16px rgba(0,0,0,0.5); }

/* Three-beat punch tagline below the lead */
.hero-tagline {
  margin: calc(-1 * var(--s-3)) auto var(--s-5);
  max-width: 580px;
  font-size: clamp(15px, 1.35vw, 18px);
  color: #fff;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-tagline strong {
  font-weight: 600;
  color: #fff;
}
.hero-tagline strong + strong {
  margin-left: 4px;
}
.hero-cta {
  display: flex; gap: var(--s-3);
  justify-content: center; flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

/* HUD overlays in the corners of the hero */
.hero-hud {
  position: absolute; z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}
.hero-hud-tl { top: calc(var(--header-h) + 24px); left: 32px; }
.hero-hud-tr { top: calc(var(--header-h) + 24px); right: 32px; text-align: right; }
.hero-hud-bl { bottom: 32px; left: 32px; }
.hero-hud-br { bottom: 32px; right: 32px; text-align: right; }
.hero-hud-pill {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-hud-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 6px var(--tech);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
.hud-legend { display: inline-flex; align-items: center; gap: 8px; }
.hud-legend .gradient {
  width: 96px; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1a3fb8 0%, #34C759 35%, #FF9F0A 70%, #FF3B30 100%);
}

/* Trust strip — embedded in hero, on dark, 4 items */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 1px solid rgba(255,255,255,0.10);
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.trust-item .num {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.trust-item .num .unit { color: var(--tech); margin-left: 2px; }
.trust-item .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  animation: bob 2.8s var(--ease) infinite;
}
.scroll-cue .line {
  width: 1px; height: 22px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.45));
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(4px); }
}

/* ---------- Section header ---------- */
.section-head { max-width: 760px; margin-bottom: var(--s-7); }
.section-head.center {
  text-align: center;
  margin-left: auto; margin-right: auto;
}
.section-head .h2 { margin-bottom: var(--s-3); }

/* ---------- Cards (Built differently) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

/* Industry-first chip / badge */
.first-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 212, 255, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.40);
  color: var(--tech);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: flex-start;
}
.hero-firsts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.hero-firsts .first-chip {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.18), rgba(0, 212, 255, 0.06));
  border-color: rgba(0, 212, 255, 0.50);
  color: #fff;
  padding: 6px 14px;
  font-size: 11.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.card-chip {
  margin-bottom: var(--s-3);
}
.card-highlight {
  position: relative;
  border-color: rgba(0, 113, 227, 0.30);
  background: linear-gradient(180deg, #fff 0%, rgba(0, 212, 255, 0.04) 100%);
}
.card-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.55), rgba(0, 113, 227, 0.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  border: 1px solid var(--border);
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease), border-color var(--d-med) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 113, 227, 0.2);
}
.card .card-icon {
  width: 48px; height: 48px;
  margin-bottom: var(--s-4);
  color: var(--accent);
}
.card .card-title {
  font-size: 22px; font-weight: 600;
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}
.card .card-body {
  color: var(--text-secondary);
  font-size: 16px; line-height: 1.55;
}

/* ---------- How it works ---------- */
.steps {
  display: flex; flex-direction: column;
  gap: var(--s-9);
  margin-top: var(--s-7);
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.step-text { display: flex; flex-direction: column; gap: var(--s-3); }
.step-num {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.1em;
  color: var(--tech); font-weight: 500;
}
.step h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.step p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}
.step.reverse > .step-visual { order: -1; }
.step-visual {
  background: var(--bg-dark);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.step-visual canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.step-visual .hud-corner {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- Compare table ---------- */
.compare-wrap {
  background: var(--bg-dark-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14.5px;
}
.compare-table thead th {
  font-family: var(--font-sans);
  text-align: left;
  padding: var(--s-4);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
  border-bottom: 1px solid var(--border-dark);
  color: rgba(255,255,255,0.92);
}
.compare-table thead th:nth-child(2) { color: var(--tech); }
.compare-table tbody td {
  padding: 16px var(--s-4);
  border-bottom: 1px solid var(--border-dark);
  color: rgba(255,255,255,0.78);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .check {
  display: inline-flex; align-items: center;
  gap: 6px; color: var(--cool);
}
.compare-table .x { color: rgba(255,255,255,0.35); }
.compare-table .partial { color: rgba(255, 200, 80, 0.85); }
.compare-table tbody td:first-child {
  font-family: var(--font-sans);
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* Wide compare variant (6 columns) */
.compare-table-wide {
  font-size: 13.5px;
  min-width: 880px;
}
.compare-table-wide thead th {
  font-size: 14px;
  padding: var(--s-3);
  vertical-align: bottom;
}
.compare-table-wide thead th .th-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}
.compare-table-wide tbody td {
  padding: 14px var(--s-3);
  font-size: 13px;
}
.compare-table-wide .feature-col { width: 22%; }
.compare-table-wide .us-col {
  background: rgba(64, 224, 208, 0.06);
  color: var(--tech);
}
.compare-table-wide tbody td.us-col,
.compare-table-wide tbody td:nth-child(2) {
  background: rgba(64, 224, 208, 0.04);
  border-right: 1px solid rgba(64, 224, 208, 0.15);
  border-left: 1px solid rgba(64, 224, 208, 0.15);
}

/* ---------- Schedule a demo block ---------- */
.schedule-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-5);
  align-items: stretch;
  margin-top: var(--s-5);
}
.schedule-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.schedule-step {
  position: relative;
  padding-left: 36px;
}
.schedule-num {
  position: absolute;
  left: 0; top: 2px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cool);
  color: white;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.schedule-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.schedule-step p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.schedule-cta-block {
  background: linear-gradient(135deg, #0a0e14 0%, #161b26 100%);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-3);
  border: 1px solid rgba(64, 224, 208, 0.20);
}
.schedule-cta-btn {
  width: 100%;
}
.schedule-cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.schedule-cta-note a {
  color: var(--cool);
  text-decoration: none;
  font-family: var(--font-mono);
}
.schedule-cta-note a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .schedule-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .schedule-card {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

/* Card chip badge variant — for non-highlighted cards */
.card .card-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cool);
  background: rgba(0, 113, 227, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: var(--s-3);
  border: 1px solid rgba(0, 113, 227, 0.18);
}

/* ---------- Language toggle (flag buttons) ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}
.site-header.on-dark .lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.lang-btn {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
  transition: background var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}
.lang-btn:hover {
  color: var(--text-primary);
}
.site-header.on-dark .lang-btn {
  color: rgba(255, 255, 255, 0.55);
}
.site-header.on-dark .lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}
.lang-btn.is-active {
  background: var(--bg-elevated, #fff);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.site-header.on-dark .lang-btn.is-active {
  background: rgba(255, 255, 255, 0.92);
  color: #0a0e14;
}
.lang-flag {
  font-size: 14px;
  line-height: 1;
}

/* Hide language toggle in mobile when nav-cta gets crowded — show inside mobile menu instead */
@media (max-width: 768px) {
  .nav-cta .lang-toggle { display: none; }
  .nav-mobile .lang-toggle {
    display: inline-flex;
    margin: var(--s-3) 0 0;
  }
}
@media (min-width: 769px) {
  .nav-mobile .lang-toggle { display: none; }
}

/* ---------- Real software screenshots (block + grid) ---------- */
.screenshots-block {
  margin-top: var(--s-7);
}
.screenshots-block-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}
.screenshots-grid {
  display: grid;
  gap: var(--s-4);
}
.screenshots-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.screenshots-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.screenshots-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.screenshots-grid.featured-row {
  grid-template-columns: 1fr;
  margin-top: var(--s-4);
  max-width: 720px;
}

.screenshot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: var(--s-3);
  transition: border-color var(--d-fast) var(--ease), transform var(--d-fast) var(--ease);
}
.screenshot-card:hover {
  border-color: rgba(0, 113, 227, 0.30);
  transform: translateY(-2px);
}
.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  display: block;
  background: #f5f7fa;
  object-fit: contain;
}
.screenshot-card figcaption {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 0 var(--s-2) var(--s-2);
}
.screenshot-card figcaption strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}
.screenshot-card figcaption code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(255, 95, 31, 0.08);
  color: #c2410c;
  padding: 1px 5px;
  border-radius: 3px;
}

/* Featured row — analysis panel is portrait, so center it nicely */
.screenshot-portrait img {
  max-width: 380px;
  margin: 0 auto;
}

/* UI panels strip — bigger size for readability */
.ui-strip .screenshot-ui img {
  background: #0b0e16;
  max-height: 480px;
  object-fit: contain;
}
.ui-strip .screenshot-ui figcaption {
  font-size: 13.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .screenshots-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .screenshots-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .screenshots-grid.cols-2,
  .screenshots-grid.cols-3,
  .screenshots-grid.cols-4 { grid-template-columns: 1fr; }
}

/* "Why TPMS" sub-grid — explainer above the 7-pattern grid */
.tpms-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.why-item .why-icon {
  width: 36px;
  height: 36px;
  color: var(--tech);
  margin-bottom: var(--s-2);
}
.why-item h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.why-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ---------- TPMS Pattern Grid ---------- */
.patterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.pattern-card {
  background: var(--bg-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: default;
  transition: transform var(--d-med) var(--ease), box-shadow var(--d-med) var(--ease);
  border: 1px solid var(--border-dark);
}
.pattern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pattern-card canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.pattern-card .pattern-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent, rgba(10,14,20,0.92));
  z-index: 2;
}
.pattern-card .pattern-name {
  font-size: 16px; font-weight: 600;
  color: #fff; letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.pattern-card .pattern-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--tech); text-transform: uppercase;
}
.patterns-7 { grid-template-columns: repeat(4, 1fr); }
.patterns-7 > .pattern-card:nth-child(5) { grid-column: 1 / span 2; aspect-ratio: 2 / 1; }
.patterns-7 > .pattern-card:nth-child(5) .pattern-name,
.patterns-7 > .pattern-card:nth-child(5) .pattern-tag { font-size: 16px; }

/* ---------- Validation split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.research-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--shadow-sm);
}
.specimens-vis {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.specimens-vis canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.research-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.research-stats .stat .num {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.research-stats .stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-secondary);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- CTA final ---------- */
.cta-final { position: relative; text-align: center; overflow: hidden; }
.cta-final .container { position: relative; z-index: 2; }
.cta-final-bg { position: absolute; inset: 0; z-index: 0; }
.cta-final-bg canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  opacity: 0.6;
}
.cta-final h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
}
.cta-final .lead {
  margin: 0 auto var(--s-5);
  color: rgba(255,255,255,0.7);
  max-width: 540px;
}
.cta-final-cta {
  display: flex; gap: var(--s-3);
  justify-content: center; flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: var(--s-7) var(--s-4) var(--s-5);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.footer-brand {
  display: flex; flex-direction: column;
  gap: var(--s-3);
  max-width: 320px;
}
.footer-brand .brand-wordmark { height: 28px; width: auto; }
.footer-brand p {
  font-size: 14px; line-height: 1.55;
  margin: 0;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--s-3);
  letter-spacing: 0;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--d-fast) var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--s-4);
  margin-top: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: 0 auto;
}

/* ---------- Demo page ---------- */
.demo-hero {
  text-align: center;
  padding: calc(var(--header-h) + var(--s-7)) var(--s-4) var(--s-6);
  max-width: var(--max-w);
  margin: 0 auto;
}
.demo-hero .h1 { margin-bottom: var(--s-3); font-size: clamp(36px, 5vw, 64px); }
.demo-hero .lead { margin: 0 auto var(--s-5); }
.demo-stage {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--s-4) var(--s-9);
}
.demo-stage-frame {
  position: relative;
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
}
.demo-stage-frame canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.demo-stage-overlay {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
}
.hud-row .hud-pill {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hud-row .hud-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tech);
  box-shadow: 0 0 6px var(--tech);
  animation: pulse-dot 2.4s var(--ease) infinite;
}
.demo-controls {
  display: flex; justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.demo-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px; font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease);
}
.demo-pill:hover { color: var(--text); border-color: var(--text-secondary); }
.demo-pill.is-active {
  background: var(--text); color: #fff;
  border-color: var(--text);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  max-width: var(--max-w);
  margin: var(--s-7) auto 0;
  padding: 0 var(--s-4);
}
.gallery-item {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-item .thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
.gallery-item .thumb canvas {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
}
.gallery-item .body { padding: var(--s-4); }
.gallery-item .body h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 4px;
}
.gallery-item .body p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0; line-height: 1.5;
}
.gallery-item .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tech);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--s-2);
}

/* ---------- Contact page ---------- */
.contact-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--s-7)) var(--s-4) var(--s-9);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.contact-form {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.form-row textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  line-height: 1.5;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.contact-form button { align-self: flex-start; margin-top: var(--s-3); }
.contact-info { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-info .info-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.contact-info .info-block p,
.contact-info .info-block a {
  font-size: 17px;
  color: var(--text);
  margin: 0;
  display: block;
}
.contact-info .info-block a:hover { color: var(--accent); }

/* ---------- Cookies banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  z-index: 90;
  display: flex; align-items: center;
  gap: var(--s-3);
  padding: 14px 18px;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  transition: transform 600ms var(--ease-out);
  max-width: calc(100% - 32px);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner .btn { padding: 6px 14px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .patterns { grid-template-columns: repeat(3, 1fr); }
  .patterns-7 > .pattern-card:nth-child(5) { grid-column: auto; aspect-ratio: 1; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); max-width: 540px; }
  .tpms-why { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: var(--s-7) var(--s-4); }
  .section-tight { padding: var(--s-7) var(--s-4); }
  .nav-primary, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: flex; align-items: center; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .patterns { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: var(--s-4); }
  .step.reverse > .step-visual { order: 0; }
  .steps { gap: var(--s-7); }
  .compare-table { font-size: 13px; }
  .compare-table thead th, .compare-table tbody td { padding: 12px; }
  .split { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; gap: var(--s-4); border-top: none; padding-top: 0; max-width: none; }
  .tpms-why { grid-template-columns: 1fr; padding: var(--s-4) 0; gap: var(--s-3); }
  .gallery { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .form-row-2 { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { font-size: 12px; }
  .hero { padding-top: calc(var(--header-h) + var(--s-5)); }
  .hero-hud { font-size: 9px; }
  .hero-hud-bl, .hero-hud-tl { left: 16px; }
  .hero-hud-br, .hero-hud-tr { right: 16px; }
  .hero h1 { font-size: clamp(40px, 12vw, 64px); }
  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .patterns { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-hud-tr, .hero-hud-tl { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
