/* ==========================================================================
   Parallax Worlds — shared stylesheet
   ========================================================================== */

/* Neue Machina (display) — served by cdnfonts.com; Space Grotesk fallback */
@import url("https://fonts.cdnfonts.com/css/neue-machina");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&family=Space+Grotesk:wght@300;400;500;600&display=swap");

:root {
  --bg: #0b0b0a;
  --bg-2: #131210;
  --bg-3: #1a1816;
  --line: #2a2724;
  --line-2: #38332e;
  --ink: #f3eee2;
  --ink-2: #a39d8e;
  --ink-3: #5a554c;
  --accent: #92DDAA;
  --accent-2: #6BC78A;
  --accent-dim: rgba(146, 221, 170, 0.12);
  --warn: #ff6b35;
  --display: "Neue Machina", "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1320px;
  /* Vertical rhythm — one source of truth for all section spacing */
  --section-y: 96px;
  --block-y: 48px;
  /* Approx combined height of top-banner + sticky nav. Used so hero sections
     can fill exactly the viewport area below the bars. */
  --top-bars: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

/* === HELPERS / SHARED ATOMS === */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mono-label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* Brand accent — applied via <em> globally. No italics, no serif: company font, green
   with a subtle filled-chip background so the word pops. box-decoration-break ensures
   the chip stays continuous when the highlighted phrase wraps to a second line. */
em, .accent {
  font-style: normal;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.02em 0.18em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* === STATIC "AS SEEN IN" BANNER === */
.top-banner {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 101;
}
.top-banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; padding: 10px 24px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
  flex-wrap: wrap;
}
.top-banner-lead { opacity: 0.75; }
.top-banner-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--accent); text-decoration: none; transition: color 0.2s; }
a.top-banner-name:hover { color: var(--accent-2); }
.top-banner-name + .top-banner-name::before {
  content: ""; width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%; opacity: 0.6;
  margin-right: 18px;
}

/* === NAV === */
nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(11, 11, 10, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; max-width: var(--max); margin: 0 auto;
}
.logo svg { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13px; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* Hamburger — hidden on desktop, shown when the mobile breakpoint kicks in */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* Dropdown panel that lives inside the sticky <nav> */
.nav-mobile {
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 10, 0.94);
  backdrop-filter: blur(20px);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 8px 20px 24px;
  display: flex; flex-direction: column; align-items: stretch;
}
.nav-mobile a:not(.btn) {
  display: block;
  padding: 16px 4px;
  color: var(--ink); text-decoration: none;
  font-family: var(--mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:not(.btn):last-of-type { border-bottom: 0; }
.nav-mobile .btn { margin-top: 18px; align-self: flex-start; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 22px;
  background: var(--accent); color: #0a0a0a;
  border: none; border-radius: 999px;
  font-family: var(--display); font-weight: 500;
  font-size: 14px; text-decoration: none; cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-arrow {
  width: 22px; height: 22px;
  background: #0a0a0a; color: var(--accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line-2);
  color: var(--ink); padding: 11px 22px;
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-ghost .btn-arrow { background: var(--ink); color: var(--bg); }

/* === HERO === */
.hero {
  padding: 88px 0 var(--section-y);
  min-height: calc(100svh - var(--top-bars));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero > .container { width: 100%; }
.hero-mesh {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 92% 80% at 50% 45%, #000 28%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 92% 80% at 50% 45%, #000 28%, transparent 92%);
  pointer-events: none;
}
/* Slow Ken-Burns drift on the mesh — gives the static photo motion */
.hero-mesh::before {
  content: ""; position: absolute;
  inset: -8%;
  background: url("./assets/mesh.jpg") center/cover no-repeat;
  opacity: 0.42;
  transform-origin: 50% 50%;
  animation: mesh-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
/* Scanline / sweep overlay — subtle vertical highlight that scans across */
.hero-mesh::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(146,221,170,0.08), transparent 60%),
    linear-gradient(115deg, transparent 30%, rgba(146,221,170,0.10) 50%, transparent 70%);
  background-size: 100% 100%, 250% 100%;
  animation: mesh-sweep 9s linear infinite;
  mix-blend-mode: screen;
}
@keyframes mesh-drift {
  0%   { transform: scale(1.04) translate(-1.5%, 0.5%); }
  50%  { transform: scale(1.10) translate(1.5%, -1%);  }
  100% { transform: scale(1.04) translate(0.5%, 1.5%); }
}
@keyframes mesh-sweep {
  0%   { background-position: 0 0, -120% 0; }
  100% { background-position: 0 0, 120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh::before, .hero-mesh::after { animation: none; }
}
.hero .container { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; align-items: center; }

.hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink); margin: 28px 0;
  max-width: 880px;
}

/* Hero sits over the green mesh, so the global pale-green em chip washes out.
   Use a darker, more opaque chip here for legibility. */
.hero h1 em {
  background: rgba(20, 50, 32, 0.72);
  color: var(--accent);
  padding: 0.02em 0.22em;
}

/* "Proud member of" strip — sits where the gray sub-paragraph used to. Compact, white silhouettes. */
.hero-members { margin: 0 0 44px; max-width: 560px; }
.hero-members-label {
  font-family: var(--mono); font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink); margin-bottom: 18px;
}
.hero-members-row {
  display: flex; align-items: center;
  gap: 32px; flex-wrap: nowrap;
}
.hero-members-row .member-logo { flex-shrink: 0; }
.hero-members-row .member-logo .name { white-space: nowrap; }
.hero-members-row .member-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  opacity: 0.85; transition: opacity 0.2s, transform 0.2s;
}
.hero-members-row .member-logo:hover { opacity: 1; transform: translateY(-1px); }
.hero-members-row .member-logo img {
  height: 38px; width: auto; max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hero-members-row .member-logo .name {
  font-family: var(--display); font-weight: 500;
  font-size: 18px; color: var(--ink); letter-spacing: -0.005em;
}
/* ARM Institute lockup — square icon mark + wordmark text. Icon is sized
   smaller than the A3/SEMI wordmark heights so the visual weight matches. */
.hero-members-row .member-logo-arm img {
  height: 32px; max-width: none;
}

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

/* Hero visual — animated wireframe orb */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; margin-left: auto; }
.orb-frame {
  position: absolute; inset: 0;
  border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.orb-frame::before {
  content: "// digital twin → preview";
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.05em;
}
.orb-frame::after {
  content: "01:23:46 / capture active";
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.05em;
}
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; border-width: 0; }
.tick-tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tick-tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tick-bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tick-br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.orb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.orb svg { width: 80%; height: 80%; animation: spin 24s linear infinite; }
@keyframes spin { from { transform: rotateY(0deg) rotateX(15deg); } to { transform: rotateY(360deg) rotateX(15deg); } }
.orb-label {
  position: absolute;
  font-family: var(--mono); font-size: 10px;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--bg); padding: 3px 7px;
  border: 1px solid var(--line-2); border-radius: 3px;
}
.orb-label-1 { top: 22%; left: 12%; }
.orb-label-2 { bottom: 28%; right: 10%; }
.orb-label-3 { top: 50%; right: 18%; }
.orb-label::before { content: ""; position: absolute; width: 24px; height: 1px; background: var(--accent); top: 50%; }
.orb-label-1::before { right: -24px; }
.orb-label-2::before { left: -24px; }
.orb-label-3::before { left: -24px; }

/* === ZERO RISK POLICY — flagship promise card === */
.zero-risk {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, rgba(146,221,170,0.04), transparent 60%);
  position: relative;
}
.zero-risk-card {
  max-width: 980px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 56px 64px;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(146,221,170,0.08), 0 20px 60px rgba(0,0,0,0.35);
}
.zero-risk-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(146,221,170,0.10), transparent 70%);
  pointer-events: none;
}
.zero-risk-card > * { position: relative; z-index: 1; }
.zero-risk-header {
  max-width: 980px; margin: 0 auto var(--block-y);
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(22px, 2.6vw, 36px);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  display: flex; align-items: center; gap: 20px;
}
.zero-risk-header::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, var(--accent) 0%, var(--line) 60%, transparent 100%);
  opacity: 0.5;
}
.zero-risk-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(96px, 14vw, 180px);
  line-height: 0.9; letter-spacing: -0.05em;
  color: var(--ink); margin-bottom: 12px;
}
.zero-risk-num em {
  background: none; padding: 0; color: var(--accent);
}
.zero-risk-h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1; letter-spacing: -0.025em;
  color: var(--ink); max-width: 760px;
  margin-bottom: 40px;
}
.zero-risk-divider {
  height: 1px;
  background: linear-gradient(to right, var(--line) 0%, var(--line-2) 50%, transparent 100%);
  margin-bottom: 28px;
}
.zero-risk-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px 36px;
}
.zero-risk-list li {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 400;
  font-size: 16px; color: var(--ink-2);
  letter-spacing: -0.005em;
  position: relative;
}
.zero-risk-list li::before {
  content: ""; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  flex-shrink: 0;
}
.zero-risk-list li::after {
  content: "";
  position: absolute; left: 6px; top: 50%;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
}

/* === STEPS === */
.steps { padding: 32px 0 56px; position: relative; }
.steps .section-title-big { margin-bottom: 28px; padding-bottom: 20px; }
.steps .steps-cta { margin-top: 28px; }
/* H2 reduced ~20% from original clamp(56,8vw,112) */
.section-title-big {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.95; letter-spacing: -0.04em;
  margin: 0 0 var(--block-y);
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps-grid::before {
  content: ""; position: absolute;
  top: 62px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(to right, var(--line-2) 0, var(--line-2) 4px, transparent 4px, transparent 10px);
  z-index: 0;
}
.step-card {
  position: relative; z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 26px;
  display: flex; flex-direction: column; min-height: 400px;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.step-card:hover .step-num { color: var(--accent); }
.step-num {
  font-family: var(--display); font-weight: 300;
  font-size: 76px; line-height: 0.85; letter-spacing: -0.05em;
  color: var(--ink-3); margin-bottom: 4px;
  transition: color 0.3s;
  display: flex; align-items: baseline; gap: 6px;
}
.step-num .total { font-family: var(--mono); font-size: 13px; color: var(--ink-3); letter-spacing: 0; }
.step-tag {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
}
.step-tag::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.step-card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.step-visual {
  margin-top: auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 18px; height: 112px;
  position: relative; overflow: hidden;
}
.step-footer {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
}
.step-footer .duration { color: var(--ink); }

/* Step visuals */
.viz-phone {
  width: 60px; height: 100px;
  border: 1.5px solid var(--ink-2); border-radius: 8px;
  margin: 8px auto 0; position: relative;
  background: var(--bg-3);
}
.viz-phone::before {
  content: ""; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--line-2); border-radius: 2px;
}
.viz-phone::after {
  content: "REC"; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 9px; color: var(--accent);
}
.viz-rays {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(146,221,170,0.15) 0%, transparent 40%),
    repeating-conic-gradient(from 0deg at 50% 60%, transparent 0deg, transparent 28deg, rgba(146,221,170,0.08) 28deg, rgba(146,221,170,0.08) 30deg);
}
.viz-cube { position: relative; width: 90px; height: 90px; margin: 8px auto 0; perspective: 400px; }
.viz-cube-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(35deg);
  animation: cube-spin 12s linear infinite;
}
.viz-cube-inner div {
  position: absolute; width: 90px; height: 90px;
  border: 1.5px solid var(--accent);
  background: rgba(146,221,170,0.04);
}
.viz-cube-inner div:nth-child(1) { transform: translateZ(45px); }
.viz-cube-inner div:nth-child(2) { transform: translateZ(-45px); }
.viz-cube-inner div:nth-child(3) { transform: rotateY(90deg) translateZ(45px); }
.viz-cube-inner div:nth-child(4) { transform: rotateY(-90deg) translateZ(45px); }
.viz-cube-inner div:nth-child(5) { transform: rotateX(90deg) translateZ(45px); }
.viz-cube-inner div:nth-child(6) { transform: rotateX(-90deg) translateZ(45px); }
@keyframes cube-spin { from { transform: rotateX(-20deg) rotateY(35deg); } to { transform: rotateX(-20deg) rotateY(395deg); } }
.viz-floor {
  position: relative; width: 100%; height: 100%;
  background-image:
    linear-gradient(to right, var(--line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-2) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex; align-items: center; justify-content: center;
}
.viz-robot {
  width: 36px; height: 50px;
  background: var(--accent);
  border-radius: 4px 4px 2px 2px;
  position: relative;
}
.viz-robot::before {
  content: ""; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 6px; background: var(--bg); border-radius: 2px;
}
.viz-robot::after {
  content: ""; position: absolute;
  bottom: -16px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 8px;
  background: rgba(146,221,170,0.2);
  border-radius: 50%; filter: blur(3px);
}
.viz-status {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--mono); font-size: 9px; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}
.viz-status::before {
  content: ""; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(146,221,170,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(146,221,170,0.05); }
}

/* Step 1 — phone over depth mesh */
.viz-mesh {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.viz-mesh-grid {
  position: absolute; inset: 12px;
  background-image:
    linear-gradient(to right,  rgba(146,221,170,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(146,221,170,0.18) 1px, transparent 1px);
  background-size: 14px 14px;
  transform: perspective(220px) rotateX(58deg) scale(1.2);
  transform-origin: 50% 60%;
  -webkit-mask-image: radial-gradient(ellipse at 50% 60%, #000 40%, transparent 75%);
          mask-image: radial-gradient(ellipse at 50% 60%, #000 40%, transparent 75%);
}
.viz-mesh-phone {
  position: relative; z-index: 1;
  width: 44px; height: 76px;
  border: 1.5px solid var(--ink); border-radius: 6px;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
}
.viz-mesh-phone::after {
  content: "SCAN";
  font-family: var(--mono); font-size: 8px;
  color: var(--accent); letter-spacing: 0.1em;
}

/* Step 2 — variations grid */
.viz-variations {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}
.viz-variations .vg-tile {
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--bg-3);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.viz-variations .vg-tile span {
  width: 60%; height: 60%;
  border: 1px solid var(--accent);
  background: rgba(146, 221, 170, 0.06);
}
.viz-variations .vg-tile:nth-child(2) span { transform: rotate(15deg); }
.viz-variations .vg-tile:nth-child(3) span { transform: rotate(-20deg) scale(0.85); }
.viz-variations .vg-tile:nth-child(4) span { transform: rotate(8deg) scale(1.1); border-radius: 50%; }
.viz-variations .vg-tile:nth-child(5) span { transform: rotate(-10deg); }
.viz-variations .vg-tile:nth-child(6) span { transform: rotate(25deg) scale(0.9); border-radius: 50%; }
.viz-variations .vg-tile:nth-child(7) span { transform: rotate(-5deg) scale(1.05); }
.viz-variations .vg-tile:nth-child(8) span { transform: rotate(40deg) scale(0.8); }
.viz-variations .vg-tile.live { border-color: var(--accent); }
.viz-variations .vg-tile.live::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Step 3 — KPI dashboard */
.viz-kpis {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}
.viz-kpis .kpi {
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 6px 8px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-3);
}
.viz-kpis .kpi-l {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  color: var(--ink-3); text-transform: uppercase;
}
.viz-kpis .kpi-v {
  font-family: var(--display); font-size: 20px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
}
.viz-kpis .kpi-v small {
  font-size: 11px; color: var(--ink-3);
  font-weight: 400; margin-left: 1px;
}
.viz-kpis .kpi.ok .kpi-v { color: var(--accent); }
.viz-kpis .kpi-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  margin-right: 5px; vertical-align: middle;
  animation: pulse 1.5s ease-in-out infinite;
}

/* CTA below steps — compact, accent call-out */
.steps-cta {
  display: flex; justify-content: center; margin-top: var(--block-y);
}
.cta-banner {
  display: inline-flex; align-items: center; gap: 28px;
  padding: 18px 22px 18px 28px;
  background: linear-gradient(135deg, rgba(146,221,170,0.16), rgba(146,221,170,0.04));
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none; color: var(--ink);
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(146,221,170,0.18); }
.cta-banner-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.015em; line-height: 1;
  position: relative; z-index: 1;
}
.cta-banner .btn { position: relative; z-index: 1; font-size: 13px; padding: 10px 14px 10px 18px; }

/* === TRUST — diagonal split: AI software (sage) × shipped hardware (camel) === */
.trust {
  --trust-soft: #92DDAA;
  --trust-warm: #E5B584;
  --trust-soft-tint: rgba(146, 221, 170, 0.22);
  --trust-warm-tint: rgba(229, 181, 132, 0.22);
  padding: var(--section-y) 0;
}
.trust-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  background-image:
    radial-gradient(ellipse 90% 80% at -5% -10%, var(--trust-soft-tint), transparent 58%),
    radial-gradient(ellipse 90% 80% at 105% 110%, var(--trust-warm-tint), transparent 58%);
  padding: 44px 48px;
  overflow: hidden;
  isolation: isolate;
}
/* Diagonal: thin band, fades green→camel along its length (mask defines
   band position; 45° gradient colors it). */
.trust-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(45deg, var(--trust-soft) 0%, var(--trust-warm) 100%);
  -webkit-mask-image: linear-gradient(135deg,
    transparent 49.65%, #000 49.85%, #000 50.15%, transparent 50.35%);
          mask-image: linear-gradient(135deg,
    transparent 49.65%, #000 49.85%, #000 50.15%, transparent 50.35%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.trust-side {
  position: relative; z-index: 1;
  max-width: 54%;
}
.trust-side.is-hardware {
  margin-left: auto; text-align: right;
  margin-top: 36px;
}
.trust-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.trust-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.trust-side.is-software .trust-tag {
  color: var(--trust-soft);
  background: rgba(146, 221, 170, 0.14);
  border: 1px solid rgba(146, 221, 170, 0.4);
}
.trust-side.is-hardware .trust-tag {
  color: var(--trust-warm);
  background: rgba(229, 181, 132, 0.14);
  border: 1px solid rgba(229, 181, 132, 0.42);
}
.trust-line {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05; letter-spacing: -0.03em;
  color: var(--ink);
}
.trust-line em { background: none; padding: 0; }
.trust-side.is-software .trust-line em { color: var(--trust-soft); }
.trust-side.is-hardware .trust-line em { color: var(--trust-warm); }
.trust-rail {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 22px;
}
.trust-side.is-hardware .trust-rail { justify-content: flex-end; }
.trust-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 0 22px; min-width: 112px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  transition: transform 0.2s ease, background 0.2s, border-color 0.2s;
}
.trust-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.trust-chip img {
  max-height: 36px; max-width: 120px; object-fit: contain;
}
.trust-stats {
  display: flex; gap: 32px; margin-top: 24px;
}
.trust-side.is-hardware .trust-stats { justify-content: flex-end; }
/* Hide stat slots whose number wasn't filled in copy/home.js */
.trust-stat:has(.trust-stat-n:empty) { display: none; }
.trust-stat-n {
  font-family: var(--display); font-weight: 500;
  font-size: 26px; line-height: 1; letter-spacing: -0.025em;
}
.trust-side.is-software .trust-stat-n { color: var(--trust-soft); }
.trust-side.is-hardware .trust-stat-n { color: var(--trust-warm); }
.trust-stat-l {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-2);
}

/* === FINAL CTA === */
.final-cta { padding: var(--section-y) 0; text-align: center; position: relative; }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(146,221,170,0.05), transparent 60%);
  pointer-events: none;
}
.final-cta h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1; letter-spacing: -0.035em;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.final-cta p { font-size: 18px; color: var(--ink-2); margin-bottom: 40px; position: relative; z-index: 1; }
.final-cta .btn { position: relative; z-index: 1; font-size: 16px; padding: 16px 22px 16px 28px; }

/* === FOOTER === */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 80px; margin-bottom: 60px; }
.footer-cols { display: grid; grid-template-columns: auto auto; gap: 80px; }
.footer-brand {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); max-width: 320px;
}
.footer-brand-dim { color: var(--ink-2); }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3); margin-bottom: 16px; font-weight: 400;
}
.footer-col a {
  display: block; color: var(--ink-2); text-decoration: none;
  font-size: 14px; padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
}

/* === SUB-PAGE LAYOUT (news / demos) === */
.page-hero { padding: var(--section-y) 0 var(--block-y); text-align: center; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.0; letter-spacing: -0.035em;
}
.page-hero p { color: var(--ink-2); font-size: 18px; max-width: 640px; margin: 24px auto 0; }

.section { padding: 0 0 var(--section-y); }
.section-eyebrow {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 16px;
}
.section h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 40px;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
/* Logo-only thumbnail variant — when no editorial hero image is available,
   show the publication's logo centered on a tinted brand background. */
.card-thumb-logo {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(146,221,170,0.08), transparent 70%),
    var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.card-thumb-logo img {
  width: auto; height: auto;
  max-width: 60%; max-height: 60%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.card:hover .card-thumb-logo img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card .mono-label { display: block; margin-bottom: 14px; color: var(--accent); }
.card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; line-height: 1.25; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.card-body p {
  color: var(--ink-3); font-size: 13px;
  font-family: var(--mono); letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-cta {
  display: inline-flex; gap: 8px; margin-top: auto; padding-top: 18px;
  color: var(--accent); text-decoration: none;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* Demo video grid */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.video-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.video-frame {
  aspect-ratio: 16 / 9; position: relative;
  background: var(--bg-3) center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
  display: block;
}
.video-meta { padding: 18px 20px; }
.video-meta h3 { font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.video-meta p { color: var(--ink-2); font-size: 13px; margin-top: 4px; }

/* === LEGAL PAGES (terms / privacy) === */
.legal { padding: var(--section-y) 0; }
.legal .container { max-width: 820px; }
.legal-header {
  padding-bottom: 36px; margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.legal-eyebrow {
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 20px;
}
.legal-header h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 24px;
}
.legal-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink-2); letter-spacing: 0.02em;
}
.legal-meta strong { color: var(--ink); font-weight: 500; }

.legal-body { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-body h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; letter-spacing: -0.01em; line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 16px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 18px; }
.legal-body ul {
  margin: 0 0 22px 0; padding-left: 22px;
}
.legal-body li { margin-bottom: 10px; }
.legal-body strong { color: var(--ink); font-weight: 500; }
.legal-body a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(146,221,170,0.3);
  transition: border-color 0.2s;
}
.legal-body a:hover { border-bottom-color: var(--accent); }
/* Reset the brand green-chip <em> styling inside legal text — italics here are
   editorial emphasis, not the marketing accent. We use <i> tags for true italic
   in the page, but also neutralize any stray <em> to be safe. */
.legal-body em, .legal-body i {
  background: none; padding: 0; border-radius: 0;
  color: inherit; font-style: italic;
}
.legal-contact {
  padding: 20px 24px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px; line-height: 1.7;
}
.legal-rule {
  border: 0; height: 1px; background: var(--line);
  margin: 48px 0 24px;
}
.legal-foot { color: var(--ink-3); font-size: 13px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps-grid::before { display: none; }
  .step-card { min-height: auto; }
  .highlight-grid { grid-template-columns: 1fr; }
  .trust-card { padding: 32px; }
  .trust-card::before { display: none; }
  .trust-side, .trust-side.is-hardware { max-width: 100%; }
  .trust-side.is-hardware {
    margin-top: 32px; padding-top: 32px;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .trust-side.is-hardware .trust-rail,
  .trust-side.is-hardware .trust-stats { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: auto auto; gap: 60px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-inner { padding: 14px 16px; gap: 12px; }
  .nav-inner > .nav-links,
  .nav-inner > .btn { display: none; }
  .nav-toggle { display: inline-flex; flex-shrink: 0; width: 36px; height: 36px; }
  /* Logo wordmark is ~19:1 — at desktop's 22px height it's ~430px wide and
     overflows narrow phones. Let the SVG scale fluidly with the container. */
  .logo { min-width: 0; flex: 1 1 auto; max-width: 280px; }
  .logo svg { display: block; width: 100%; height: auto; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  :root { --section-y: 64px; --block-y: 36px; }
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 var(--section-y); }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-members-row { gap: 22px; flex-wrap: wrap; }
  .hero-members-row .member-logo img { height: 30px; }
  .hero-members-row .member-logo-arm img { height: 26px; }
  .hero-members-row .member-logo .name { font-size: 16px; }
  .trust-card { padding: 24px; border-radius: 18px; }
  .trust-stat-n { font-size: 22px; }
}

/* === Scroll reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero stagger */
.hero h1.reveal       { transition-delay: 0ms; }
.hero-members.reveal  { transition-delay: 120ms; }
.hero-ctas.reveal     { transition-delay: 240ms; }
.hero-visual.reveal   { transition-delay: 100ms; }

/* Step cards stagger inside .steps-grid */
.steps-grid > .step-card.reveal:nth-child(1) { transition-delay: 60ms; }
.steps-grid > .step-card.reveal:nth-child(2) { transition-delay: 160ms; }
.steps-grid > .step-card.reveal:nth-child(3) { transition-delay: 260ms; }

/* Trust card: software side leads, hardware side follows */
.trust-side.is-software .trust-tag.reveal  { transition-delay: 60ms; }
.trust-side.is-software .trust-line.reveal { transition-delay: 140ms; }
.trust-side.is-hardware .trust-tag.reveal  { transition-delay: 180ms; }
.trust-side.is-hardware .trust-line.reveal { transition-delay: 260ms; }

/* Chip stagger inside each .trust-rail */
.trust-rail > .trust-chip.reveal:nth-child(1) { transition-delay: 80ms; }
.trust-rail > .trust-chip.reveal:nth-child(2) { transition-delay: 140ms; }
.trust-rail > .trust-chip.reveal:nth-child(3) { transition-delay: 200ms; }
.trust-rail > .trust-chip.reveal:nth-child(4) { transition-delay: 260ms; }
.trust-rail > .trust-chip.reveal:nth-child(5) { transition-delay: 320ms; }

/* Stat stagger inside each .trust-stats */
.trust-stats > .trust-stat.reveal:nth-child(1) { transition-delay: 120ms; }
.trust-stats > .trust-stat.reveal:nth-child(2) { transition-delay: 200ms; }

/* Final CTA stagger */
.final-cta h2.reveal  { transition-delay: 0ms; }
.final-cta p.reveal   { transition-delay: 100ms; }
.final-cta .btn.reveal { transition-delay: 200ms; }
