/* ========================================================================
   Verilense — Hi-fi enterprise landing page
   Dark navy + signal green. Geist + Geist Mono.
   ======================================================================== */

:root {
  /* surfaces */
  --bg:          #07101f;   /* deep navy-black */
  --bg-1:        #0b1727;   /* section alt */
  --bg-2:        #101f33;   /* card */
  --bg-3:        #15273e;   /* elevated card */
  --bg-inv:      #f5f7fa;
  --line:        rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --line-soft:   rgba(255,255,255,0.04);

  /* type */
  --fg:          #f3f6fa;
  --fg-1:        #c7d0dc;
  --fg-2:        #8b97a8;
  --fg-3:        #5a6678;
  --fg-inv:      #07101f;

  /* accent */
  --accent:      #34d18c;       /* verilense signal green */
  --accent-2:    #57e3a1;
  --accent-soft: rgba(52,209,140,0.12);
  --accent-line: rgba(52,209,140,0.35);
  --accent-ink:  #07101f;

  --warn:        #f0b441;
  --bad:         #ef6e5b;

  /* radius */
  --r-sm: 4px;
  --r:    6px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* type scale */
  --t-display: clamp(48px, 6.4vw, 88px);
  --t-h1:      clamp(36px, 4.2vw, 56px);
  --t-h2:      clamp(28px, 2.8vw, 40px);
  --t-h3:      22px;
  --t-body:    16px;
  --t-small:   14px;
  --t-eyebrow: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

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

/* ============================================================ Background grid */

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

.page {
  position: relative;
  z-index: 1;
}

/* ============================================================ Mono / eyebrow */

.mono {
  font-family: 'Geist Mono', ui-monospace, "SF Mono", Menlo, monospace;
  font-feature-settings: "ss02";
}

.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
  margin-right: 8px;
  box-shadow: 0 0 12px var(--accent);
}

/* ============================================================ Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7,16,31,0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent) 0 22%, transparent 22% 36%, var(--accent) 36% 38%, transparent 38% 60%, rgba(255,255,255,0.6) 60% 62%, transparent 62%);
  outline: 1px solid var(--accent-line);
  outline-offset: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-1);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.has-caret::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.2px solid currentColor;
  border-bottom: 1.2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
  opacity: 0.6;
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language switcher — segmented pill */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  overflow: hidden;
  margin-right: 4px;
  background: rgba(255,255,255,0.02);
}
.lang-switch button {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--fg-2);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-weight: 500;
}
.lang-switch button:hover { color: var(--fg); }
.lang-switch button.on {
  background: var(--fg);
  color: var(--bg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--fg-1); background: rgba(255,255,255,0.03); }

.btn-ghost {
  background: transparent;
  color: var(--fg-1);
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============================================================ Section shell */

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 32px;
}
.section-alt { background: var(--bg-1); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 64px;
}

.h1 {
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-1);
  max-width: 60ch;
  text-wrap: pretty;
}
.body { color: var(--fg-1); }
.muted { color: var(--fg-2); }

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* faint glow behind lens */
  content: "";
  position: absolute;
  width: 900px; height: 900px;
  right: -200px; top: -300px;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text { position: relative; z-index: 2; }

.hero-display {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero-display .accent { color: var(--accent); }
.hero-display .strike {
  position: relative;
  white-space: nowrap;
}
.hero-display .strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  top: 54%;
  height: 4px;
  background: var(--bad);
  transform: rotate(-2deg);
  border-radius: 2px;
  opacity: 0.85;
}

.hero-sub {
  margin-top: 28px;
  max-width: 540px;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-trust {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-trust-label { font-size: 12px; color: var(--fg-3); letter-spacing: 0.04em; }
.hero-trust-marks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-trust-marks .badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  height: 560px;
}

/* ============================================================ Lens visual */

.lens {
  position: relative;
  width: 100%;
  height: 100%;
}
.lens svg { width: 100%; height: 100%; display: block; }

/* ============================================================ Live mock card (hero overlay) */

.live-card {
  position: absolute;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px var(--line) inset;
  max-width: 320px;
  animation: float 6s ease-in-out infinite;
}

.live-card .lc-cam {
  width: 56px; height: 40px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1a3148, #0d1b2c);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.live-card .lc-cam::before {
  content: "";
  position: absolute;
  inset: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,0.04) 4px 5px);
}
.live-card .lc-cam::after {
  content: "";
  position: absolute;
  width: 18px; height: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 2px;
  top: 14px; left: 18px;
}

.live-card .lc-body { flex: 1; min-width: 0; }
.live-card .lc-title { font-weight: 500; color: var(--fg); margin-bottom: 2px; }
.live-card .lc-meta { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--fg-3); letter-spacing: 0.04em; }

.live-card.match { border-color: var(--accent-line); }
.live-card.match .lc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.live-card.flag { border-color: rgba(239,110,91,0.35); }
.live-card.flag .lc-badge { color: var(--bad); }
.live-card.flag .lc-cam::after { border-color: var(--bad); background: rgba(239,110,91,0.18); }

.live-card .lc-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
.live-card.flag .lc-pulse { background: var(--bad); animation-name: pulse-bad; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,209,140,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(52,209,140,0); }
}
@keyframes pulse-bad {
  0%   { box-shadow: 0 0 0 0 rgba(239,110,91,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(239,110,91,0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

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

.logos {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.logos-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  flex-shrink: 0;
  max-width: 200px;
  line-height: 1.5;
}
.logos-row {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0.7;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-1);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-mark svg { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.9; }

/* ============================================================ Problem section */

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

.problem-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.problem-point {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.problem-point .pp-num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}
.problem-point .pp-text {
  font-size: 16px;
  color: var(--fg-1);
  line-height: 1.45;
}
.problem-point .pp-text strong { color: var(--fg); font-weight: 500; }
.problem-point .pp-cost {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--bad);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.problem-quote {
  margin-top: 56px;
  padding: 32px;
  border: 1px solid var(--accent-line);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border-radius: var(--r-lg);
  font-size: 22px;
  line-height: 1.4;
  color: var(--fg);
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}
.problem-quote .q-mark {
  display: block;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

/* ============================================================ How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  background: transparent;
  transition: background .2s;
}
.step:last-child { border-right: none; }
.step:hover { background: var(--bg-1); }

.step-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.step-icon {
  margin-left: auto;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-1);
}

.step-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.step-desc { color: var(--fg-2); font-size: 14px; line-height: 1.55; }

.step-diagram {
  margin-top: 16px;
  height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

/* ============================================================ Use cases */

.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.usecase {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.usecase:hover {
  border-color: var(--line-strong);
  background: var(--bg-3);
  transform: translateY(-2px);
}
.usecase-vis {
  height: 180px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
}
.usecase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-soft);
}
.usecase-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.usecase-desc { color: var(--fg-2); font-size: 14px; line-height: 1.55; }
.usecase-stats {
  display: flex;
  gap: 24px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.usecase-stat .k { font-size: 22px; font-weight: 600; color: var(--accent); letter-spacing: -0.02em; }
.usecase-stat .v { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-top: 2px; }

/* ============================================================ Custom use case card */

.usecase-custom {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.usecase-custom::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -80px; top: -120px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.uc-custom-left, .uc-custom-right { position: relative; z-index: 1; }

.uc-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.uc-example {
  background: var(--bg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--fg-1);
  transition: background .15s, color .15s;
}
.uc-example:hover { background: var(--bg-2); color: var(--fg); }
.uc-example-n {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  width: 22px;
}
.uc-example-t { line-height: 1.35; }

/* ============================================================ Trust */

.trust {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust-cell {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 140px;
}
.trust-cell .tc-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-cell .tc-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.trust-cell .tc-desc { font-size: 13px; color: var(--fg-2); line-height: 1.5; }

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

.cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 32px;
  text-align: center;
}
.cta-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  text-wrap: balance;
}
.cta-headline .accent { color: var(--accent); }
.cta-sub { font-size: 17px; color: var(--fg-2); max-width: 540px; margin: 0 auto 36px; line-height: 1.5; }
.cta-buttons { display: inline-flex; gap: 12px; }

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

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-minimal { padding: 56px 32px 48px; }
.footer-min-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-min-inner .brand { margin-bottom: 4px; }
.footer-min-inner .blurb {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 480px;
  margin: 0;
}
.footer-min-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.footer-min-cta {
  color: var(--accent);
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-transform: none;
}
.footer-min-cta:hover { color: var(--accent-2); }
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .blurb { color: var(--fg-2); font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-1); font-size: 14px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

/* ============================================================ Demo modal */

.dm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: dm-fade 0.2s ease-out;
}
@keyframes dm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dm-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 36px 36px 28px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--line) inset;
  animation: dm-rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes dm-rise {
  from { transform: translateY(8px) scale(0.985); opacity: 0; }
  to   { transform: translateY(0)    scale(1);     opacity: 1; }
}

.dm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px; height: 32px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.dm-close:hover { color: var(--fg); border-color: var(--line-strong); background: rgba(255,255,255,0.04); }

.dm-head { margin-bottom: 24px; }
.dm-sub  { color: var(--fg-2); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }

.dm-form { display: flex; flex-direction: column; gap: 20px; }

.dm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dm-field { display: flex; flex-direction: column; gap: 6px; }
.dm-field-full { grid-column: 1 / -1; }

.dm-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-weight: 500;
}
.dm-req { color: var(--accent); margin-left: 4px; }

.dm-input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  padding: 11px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}
.dm-input::placeholder { color: var(--fg-3); }
.dm-input:hover { border-color: var(--fg-3); }
.dm-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-1);
}

.dm-textarea { resize: vertical; min-height: 84px; font-family: inherit; }

.dm-select-wrap { position: relative; }
.dm-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 1.4px solid var(--fg-2);
  border-bottom: 1.4px solid var(--fg-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.dm-select { padding-right: 32px; cursor: pointer; }
.dm-select option { background: var(--bg-1); color: var(--fg); }

.dm-error {
  color: var(--bad);
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.04em;
}
.dm-field:has(.dm-error) .dm-input { border-color: var(--bad); }

.dm-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 4px;
}
.dm-foot-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 320px;
}
.dm-privacy {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
}
.dm-direct {
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
}
.dm-direct a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.dm-direct a:hover { color: var(--accent-2); text-decoration: underline; }
.dm-actions { display: flex; gap: 8px; }

.dm-success {
  text-align: center;
  padding: 24px 0 8px;
}
.dm-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid var(--accent-line);
}

.dm-submit-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(239,110,91,0.4);
  background: rgba(239,110,91,0.08);
  border-radius: var(--r);
  color: var(--bad);
  font-size: 13px;
  margin-top: -4px;
}
.dm-submit-error a {
  color: var(--bad);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.dm-submit-error a:hover { color: var(--fg); }

@media (max-width: 520px) {
  .dm-modal { padding: 28px 22px 22px; border-radius: var(--r-lg); }
  .dm-grid { grid-template-columns: 1fr; }
  .dm-foot { flex-direction: column; align-items: stretch; }
  .dm-actions { justify-content: flex-end; }
}

/* ============================================================ Tweaks panel */
.tweaks-panel { z-index: 100; }

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

/* Medium / tablet */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px 56px; }
  .hero-visual { height: 380px; }
  .split-2 { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .usecases { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .usecase-custom { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .uc-examples { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section-inner { padding: 72px 24px; }
}

/* Small / large phone */
@media (max-width: 720px) {
  :root {
    --t-display: clamp(40px, 11vw, 56px);
    --t-h1:      clamp(28px, 7vw, 38px);
    --t-h2:      clamp(22px, 5.5vw, 28px);
  }

  /* Nav — keep one row, scale paddings */
  .nav-inner { padding: 12px 16px; gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 20px; height: 20px; }
  .nav-cta { gap: 8px; }
  .lang-switch { margin-right: 0; }
  .lang-switch button { padding: 7px 9px; min-height: 32px; }
  .btn-sm { padding: 8px 12px; font-size: 13px; min-height: 36px; }

  /* Hero */
  .hero::before {
    width: 600px; height: 600px;
    right: -200px; top: -200px;
  }
  .hero-inner {
    padding: 32px 20px 48px;
    gap: 24px;
  }
  .hero-display { font-size: var(--t-display); letter-spacing: -0.03em; line-height: 1; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-cta { margin-top: 28px; flex-wrap: wrap; }
  .hero-cta .btn-lg { font-size: 14px; padding: 12px 18px; min-height: 44px; flex: 1 1 auto; justify-content: center; }
  .hero-visual { height: 320px; margin: 0 -8px; }
  /* Bring floating cards inside the viewport */
  .live-card { max-width: 240px; padding: 10px 12px; font-size: 12px; }
  .live-card .lc-cam { width: 44px; height: 32px; }
  .live-card.match { top: 16px !important; left: 8px !important; }
  .live-card.flag  { bottom: 16px !important; right: 8px !important; }

  /* Section padding */
  .section-inner { padding: 56px 20px; }
  .section-head { margin-bottom: 36px; gap: 16px; }
  .lede { font-size: 16px; }

  /* Problem point rows — stack cost under text on phones */
  .problem-point {
    grid-template-columns: 32px 1fr;
    gap: 12px 12px;
    padding: 20px 0;
  }
  .problem-point .pp-num { font-size: 11px; }
  .problem-point .pp-text { font-size: 15px; }
  .problem-point .pp-cost {
    grid-column: 2 / -1;
    font-size: 11px;
    white-space: normal;
  }

  .problem-quote { padding: 24px; font-size: 18px; }

  /* How — steps padding */
  .step { padding: 28px 20px; }
  .step-title { font-size: 20px; }

  /* Use cases */
  .usecase { padding: 22px; }
  .usecase-vis { height: 160px; }
  .usecase-title { font-size: 20px; }
  .usecase-stats { gap: 20px; }
  .usecase-stat .k { font-size: 20px; }

  /* Custom usecase card */
  .usecase-custom { padding: 24px 20px; gap: 24px; }
  .usecase-custom::before { width: 240px; height: 240px; right: -100px; top: -120px; }

  /* CTA */
  .cta-inner { padding: 80px 20px; }
  .cta-headline { font-size: clamp(32px, 8vw, 48px); letter-spacing: -0.025em; }
  .cta-sub { font-size: 15px; margin-bottom: 28px; }
  .cta-buttons { display: flex; flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto; }
  .cta-buttons .btn { justify-content: center; min-height: 48px; font-size: 15px; }

  /* Footer */
  .footer-minimal { padding: 40px 20px 32px; }
  .footer-min-inner .blurb { font-size: 13px; }

  /* Tap targets — anything that's clickable */
  .btn { min-height: 40px; }
  .btn-lg { min-height: 48px; }

  /* Trust + footer cleanup (defensive even though sections removed) */
  .trust-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 32px; }
}

/* Extra-small / iPhone SE */
@media (max-width: 420px) {
  .nav-inner { padding: 10px 14px; }
  .brand span:last-child { display: inline; }
  .lang-switch button { padding: 6px 8px; font-size: 10px; }

  .hero-inner { padding: 24px 16px 40px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-lg { width: 100%; }
  .hero-visual { height: 280px; }

  .section-inner { padding: 48px 16px; }

  .problem-quote { padding: 20px; font-size: 17px; }

  .usecase-custom { padding: 20px 16px; }
  .uc-example { padding: 14px 16px; font-size: 13px; }

  .cta-inner { padding: 64px 16px; }
}

/* iOS — bump form inputs to 16px to prevent zoom-on-focus */
@media (max-width: 720px) {
  .dm-input,
  .dm-input.dm-select,
  .dm-textarea {
    font-size: 16px;
  }
  .dm-modal { padding: 28px 20px 20px; }
  .dm-overlay { padding: 12px; }
  .dm-foot { gap: 12px; }
  .dm-privacy { max-width: 100%; }
  .dm-actions { justify-content: stretch; width: 100%; }
  .dm-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
}

/* Disable the bg grid on small screens — it competes with content for visual bandwidth */
@media (max-width: 720px) {
  .bg-grid { background-size: 56px 56px; opacity: 0.6; }
}

/* Reduced motion — calm the floating cards + dashed-ring spin */
@media (prefers-reduced-motion: reduce) {
  .live-card { animation: none; }
  .lc-pulse { animation: none; box-shadow: none; }
}
