/* ==========================================================================
   NirmaanOS landing — MOBILE FIRST.
   Base rules target a ~360–430px phone. Larger screens are layered on with
   min-width queries only:  600px (large phone / small tablet),
   960px (tablet landscape / desktop), 1200px (wide desktop).

   Brand tokens derived from the app's design spec (deep teal #14504B, warm
   neutrals, amber #B8722E), pushed darker and more luminous for marketing.
   ========================================================================== */
:root {
  --bg: #061412;
  --bg-2: #0a1d1a;
  --bg-3: #0e2623;
  --line: rgba(205, 232, 226, 0.09);
  --line-2: rgba(205, 232, 226, 0.16);
  --text: #eaf2f0;
  --muted: #95aaa5;
  --dim: #6c837e;

  --teal: #14504b;
  --teal-2: #1d6b64;
  --mint: #5fe0c8;
  --mint-soft: rgba(95, 224, 200, 0.14);
  --amber: #d4893a;
  --amber-2: #b8722e;
  --danger: #ef6b5f;

  --paper: #f7f5f2;
  --paper-ink: #1f2124;
  --paper-muted: #6e6a63;
  --paper-line: #e8e4de;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 6px;
  --r: 12px;
  --r-lg: 18px;
  --wrap: 1200px;
  --gutter: 16px;
  --nav-h: 60px;
  --mbar-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--mint); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mint); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* Horizontal swipe rows (flow tabs, roles, AI suggestions on phones) */
.swipe {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
}
.swipe::-webkit-scrollbar { display: none; }
/* Grid items default to min-width:auto, so a nowrap swipe row inside a
   1-column grid would stretch the whole page. Pin every layout grid. */
.problem, .roles, .ai, .contact__inner, .bento, .guarantees, .trust, .flow__panel { grid-template-columns: minmax(0, 1fr); }
.problem > *, .roles > *, .ai > *, .contact__inner > *, .roles__copy, .ai__copy { min-width: 0; }
.swipe > * { scroll-snap-align: start; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  border-radius: 12px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap; position: relative;
}
.btn:active { transform: scale(0.98); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 14px 24px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(180deg, #6ce9d2, #3fc4ad);
  color: #04201c;
  box-shadow: 0 0 0 1px rgba(95, 224, 200, 0.4), 0 8px 30px -8px rgba(95, 224, 200, 0.55);
}
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open { background: rgba(6, 20, 18, 0.94); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 10px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; margin-right: auto; }
.brand img { border-radius: 8px; width: 30px; height: 30px; }
.nav__cta-arrow { display: none; }
.nav__toggle { background: none; border: 0; width: 44px; height: 44px; position: relative; margin-right: -8px; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease), top 0.3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__links {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  display: flex; flex-direction: column;
  padding: 4px var(--gutter) 20px;
  background: rgba(6, 20, 18, 0.98); border-bottom: 1px solid var(--line);
  transform: translateY(-110%); visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}
.nav__links.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.nav__links a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.nav__links a:last-child { border-bottom: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow, .kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h2 { font-size: clamp(28px, 7.4vw, 50px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.h2--xl { font-size: clamp(32px, 8.4vw, 60px); }
.lede { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--paper-muted); max-width: 58ch; margin: 0 0 24px; }
.lede--dark { color: var(--muted); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 224, 200, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(95, 224, 200, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 224, 200, 0); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 36px) 0 24px; overflow: hidden; isolation: isolate; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 50% at 50% 25%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 25%, #000 30%, transparent 75%);
}
.hero__grid--soft { opacity: 0.6; }
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero__glow--a { width: 380px; height: 380px; background: rgba(29, 107, 100, 0.6); top: -120px; left: 50%; transform: translateX(-50%); }
.hero__glow--b { width: 260px; height: 260px; background: rgba(212, 137, 58, 0.16); top: 520px; right: -120px; }

.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { color: var(--muted); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.02); font-size: 10px; letter-spacing: 0.08em; text-align: left; line-height: 1.4; }
.hero__title {
  font-size: clamp(34px, 9.6vw, 72px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 800;
  margin: 4px 0 18px; max-width: 20ch; text-wrap: balance;
}
.rotator { display: block; padding-bottom: 0.06em; }
.rotator__word {
  display: inline-block;
  background: linear-gradient(100deg, var(--mint) 10%, #b8f3e6 50%, var(--amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), filter 0.35s;
}
.rotator__word.is-out { opacity: 0; transform: translateY(-0.25em); filter: blur(6px); }
.rotator__word.is-in { opacity: 0; transform: translateY(0.25em); filter: blur(6px); }
.hero__sub { font-family: var(--serif); font-size: 17px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.hero__chips { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.02em; text-align: left; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 5px; height: 5px; background: var(--amber); transform: rotate(45deg); flex: none; }

/* Hero stage: on phones the mock is a flat card and the floating events
   become one cycling "live notification" pinned above it. */
.hero__stage { position: relative; margin-top: 44px; padding-top: 52px; }
.mock {
  position: relative; margin: 0 auto; max-width: 1040px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #0f2724, #0b1e1b);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(95, 224, 200, 0.25);
}
.mock::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock__url { display: none; }
.mock__lang { display: flex; margin-left: auto; font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mock__lang b, .mock__lang i { padding: 3px 7px; font-style: normal; color: var(--dim); }
.mock__lang b { background: var(--teal); color: var(--text); }
.mock__body { display: block; }
.mock__side { display: none; }
.mock__main { padding: 16px; text-align: left; }
.mock__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mock__hello { font-weight: 800; font-size: 16px; margin: 0; letter-spacing: -0.02em; }
.mock__muted { margin: 2px 0 0; color: var(--dim); font-size: 12px; }
.mock__btn { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 6px; background: var(--teal); border: 1px solid var(--teal-2); white-space: nowrap; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: rgba(255,255,255,0.02); min-width: 0; }
.kpi p { margin: 0 0 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.kpi b { font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.mock__section { font-weight: 700; font-size: 13px; margin: 16px 0 8px; }
.alerts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.alerts li { display: grid; grid-template-columns: 72px 1fr; gap: 2px 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.alerts li:first-child { border-top: 0; }
.alerts em { grid-column: 2; font-style: normal; color: var(--dim); font-size: 12px; }
.alerts__blur { filter: blur(3px); opacity: 0.6; }
.tag { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; grid-row: span 2; align-self: start; padding-top: 3px; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--crit { color: var(--danger); }
.tag--warn { color: var(--amber); }
.tag--watch { color: #d9b44a; }
.mock__scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(95, 224, 200, 0.07), transparent); animation: scan 6s var(--ease) infinite; pointer-events: none; }
@keyframes scan { 0% { top: -120px; } 60%, 100% { top: 110%; } }

.float {
  position: absolute; top: 0; left: 50%; width: min(300px, 88%);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(14, 38, 35, 0.95);
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8);
  font-size: 13px; line-height: 1.3; text-align: left;
  opacity: 0; transform: translate(-50%, 10px);
  animation: toast 9s var(--ease) infinite;
  z-index: 2;
}
.float--2 { animation-delay: 3s; }
.float--3 { animation-delay: 6s; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.97); }
  4%, 30% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  34%, 100% { opacity: 0; transform: translate(-50%, -8px) scale(0.97); }
}
.float b { display: block; font-weight: 700; }
.float small { color: var(--muted); font-size: 11.5px; }
.float__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.float__ic--ok { background: rgba(95, 224, 200, 0.16); color: var(--mint); }
.float__ic--pay { background: rgba(212, 137, 58, 0.18); color: var(--amber); }
.float__ic--warn { background: rgba(239, 107, 95, 0.16); color: var(--danger); }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; background: var(--bg-2); }
.ticker__track { display: flex; gap: 32px; width: max-content; animation: marquee 40s linear infinite; }
.ticker__track span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: inline-flex; align-items: center; gap: 32px; }
.ticker__track span::after { content: "◆"; color: var(--teal-2); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section--tight { padding: 8px 0 72px; }
.section--deep { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section--light { background: var(--paper); color: var(--paper-ink); }
.section--light .kicker { color: var(--amber-2); }
.section__head { margin-bottom: 32px; }

/* ---------- Problem ---------- */
.problem { display: grid; gap: 40px; }
.questions { list-style: none; padding: 0; margin: 0; }
.questions li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--paper-line); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.4; }
.questions li:last-child { border-bottom: 1px solid var(--paper-line); }
.questions span { font-family: var(--mono); font-size: 11px; color: var(--amber-2); font-weight: 500; flex: none; }

.converge { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.converge__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.converge__lines line { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.25; transition: opacity 0.8s; }
.converge__lines .ring { fill: none; stroke: var(--paper-line); stroke-dasharray: 2 6; animation: spin 60s linear infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }
.converge.is-linked line { stroke-dasharray: 160; stroke-dashoffset: 160; opacity: 1; animation: draw 1.2s var(--ease) forwards; }
.converge.is-linked line:nth-child(2) { animation-delay: 0.1s; }
.converge.is-linked line:nth-child(3) { animation-delay: 0.2s; }
.converge.is-linked line:nth-child(4) { animation-delay: 0.3s; }
.converge.is-linked line:nth-child(5) { animation-delay: 0.4s; }
.converge.is-linked line:nth-child(6) { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: #fff; border: 1px solid var(--paper-line); border-radius: 9px; padding: 6px 9px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(31,33,36,0.2);
  transition: transform 0.9s var(--ease), border-color 0.6s, color 0.6s;
  color: var(--paper-muted);
}
.node:nth-of-type(odd) { --r: -4deg; }
.node:nth-of-type(even) { --r: 3deg; }
.converge.is-linked .node { --r: 0deg; border-color: rgba(20, 80, 75, 0.35); color: var(--paper-ink); }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.85);
  width: 40%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1d6b64, #0d3a36);
  color: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 8px rgba(20, 80, 75, 0.08), 0 0 0 18px rgba(20, 80, 75, 0.05), 0 20px 50px -10px rgba(20, 80, 75, 0.6);
  transition: transform 1s var(--ease) 0.5s;
  gap: 1px;
}
.core img { margin-bottom: 4px; border-radius: 9px; width: 32px; height: 32px; }
.core b { font-size: 13px; letter-spacing: -0.01em; }
.core small { font-size: 10px; opacity: 0.75; }
.converge.is-linked .core { transform: translate(-50%, -50%) scale(1); }

/* ---------- Flow (lifecycle tabs) ---------- */
.flow { margin-bottom: 16px; padding-bottom: 2px; }
.flow__rail { display: none; }
.flow__step {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.flow__step i { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--dim); }
.flow__step.is-active { color: var(--text); background: var(--mint-soft); border-color: var(--mint); }
.flow__step.is-active i { color: var(--amber); }

.flow__panel {
  display: grid; gap: 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
  background: radial-gradient(ellipse at 100% 0%, rgba(29,107,100,0.25), transparent 60%), var(--bg-2);
}
.flow__text > * { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.flow__panel.is-swapping .flow__text > *, .flow__panel.is-swapping .flow__visual { opacity: 0; transform: translateY(8px); }
.flow__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mint); margin: 0 0 10px; }
.flow__text h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 10px; text-wrap: balance; }
.flow__text p { color: var(--muted); font-family: var(--serif); font-size: 16px; margin: 0 0 18px; }
.flow__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow__points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.flow__points li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe0c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; margin-top: 1px; }
.flow__visual { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); min-width: 0; }

/* Flow visuals (generated by JS) */
.fv { border: 1px solid var(--line-2); border-radius: 14px; background: rgba(6, 20, 18, 0.6); padding: 14px; font-size: 13px; position: relative; overflow: hidden; }
.fv__title { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; }
.fv__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; background: rgba(255,255,255,0.015); animation: rowIn 0.5s var(--ease) both; }
.fv__row > div { min-width: 0; }
.fv__row:nth-child(3) { animation-delay: 0.08s; } .fv__row:nth-child(4) { animation-delay: 0.16s; } .fv__row:nth-child(5) { animation-delay: 0.24s; } .fv__row:nth-child(6) { animation-delay: 0.32s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(12px); } }
.fv__row b { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv__row small { color: var(--dim); display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-family: var(--mono); font-size: 10px; padding: 3px 7px; border-radius: 6px; letter-spacing: 0.02em; white-space: nowrap; flex: none; }
.pill--ok { background: rgba(95, 224, 200, 0.12); color: var(--mint); }
.pill--warn { background: rgba(212, 137, 58, 0.15); color: var(--amber); }
.pill--bad { background: rgba(239, 107, 95, 0.14); color: var(--danger); }
.pill--mute { background: rgba(255,255,255,0.05); color: var(--muted); }
.fv__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fv__units span { aspect-ratio: 1.6; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--dim); animation: rowIn 0.4s var(--ease) both; }
.fv__units span:nth-child(n+17) { display: none; }
.fv__units .is-sold { background: rgba(212, 137, 58, 0.14); color: var(--amber); border-color: rgba(212,137,58,0.3); }
.fv__units .is-hold { background: rgba(95, 224, 200, 0.1); color: var(--mint); border-color: rgba(95,224,200,0.3); }
.fv__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--dim); }
.fv__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.fv__bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.fv__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal-2), var(--mint)); animation: grow 1s var(--ease) both; }
@keyframes grow { from { width: 0; } }
.fv__big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 2px 0 2px; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 12px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  background: var(--bg-2); overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(95, 224, 200, 0.1), transparent 45%);
}
.card__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.card h3 { font-size: 20px; letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; max-width: 52ch; }

.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 22px; }
.pipeline div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pipeline span { font-family: var(--mono); font-size: 8.5px; color: var(--dim); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline i { height: 44px; border-radius: 9px; border: 1px dashed var(--line-2); position: relative; overflow: hidden; }
.pipeline i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 26px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line-2); animation: hop 5s var(--ease) infinite; opacity: 0; }
.pipeline div:nth-child(1) i::after { animation-delay: 0s; }
.pipeline div:nth-child(2) i::after { animation-delay: 1s; }
.pipeline div:nth-child(3) i::after { animation-delay: 2s; }
.pipeline div:nth-child(4) i::after { animation-delay: 3s; }
.pipeline div:nth-child(5) i::after { animation-delay: 4s; background: rgba(95,224,200,0.15); border-color: rgba(95,224,200,0.4); }
@keyframes hop { 0% { opacity: 0; transform: translateX(-20px); } 6%, 20% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateX(20px); } }

.meter { display: flex; justify-content: center; margin-top: 20px; }
.meter__ring {
  --p: 66; width: 128px; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--line) 0);
  display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
}
.meter__ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg-2); }
.meter__ring > * { position: relative; }
.meter__ring b { font-size: 26px; letter-spacing: -0.03em; }
.meter__ring small { color: var(--dim); font-size: 10px; text-align: center; line-height: 1.3; }

.bars { display: grid; gap: 8px; margin-top: 20px; }
.bars div { position: relative; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.03); overflow: hidden; }
.bars div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-right: 2px solid var(--mint); transition: width 1.4s var(--ease); }
.card.is-visible .bars div::before { width: var(--w); }
.bars span { position: relative; font-size: 12px; font-weight: 600; padding-left: 10px; line-height: 26px; }

.chain { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.chain span { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chain i { flex: 1; min-width: 8px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.chain .is-done { border-color: rgba(95,224,200,0.4); color: var(--mint); background: var(--mint-soft); }
.chain .is-live { border-color: rgba(212,137,58,0.5); color: var(--amber); animation: glowAmber 2s ease-in-out infinite; }
@keyframes glowAmber { 50% { box-shadow: 0 0 0 4px rgba(212,137,58,0.12); } }
.chain--mono span { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 7px 8px; }

.docs { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.docs span { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); font-size: 13px; }
.docs em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--mint); background: var(--mint-soft); padding: 2px 7px; border-radius: 5px; }

/* ---------- Guarantees ---------- */
.guarantees { display: grid; gap: 12px; }
.guard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 22px; background: rgba(255,255,255,0.015); }
.guard h3 { font-size: 19px; letter-spacing: -0.025em; margin: 18px 0 8px; line-height: 1.25; }
.guard p { color: var(--muted); font-size: 15px; margin: 0; }
.guard__viz { height: 150px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, rgba(29,107,100,0.25), transparent 70%), var(--bg); position: relative; overflow: hidden; }

.guard__viz--unit .unit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 16px; border-radius: 10px; font-family: var(--mono); font-weight: 500; border: 1px solid rgba(95,224,200,0.45); background: rgba(95,224,200,0.08); color: var(--mint); z-index: 2; }
.buyer { position: absolute; top: 50%; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); background: var(--bg-3); }
.buyer--a { left: 6%; animation: buyerA 4s var(--ease) infinite; }
.buyer--b { right: 6%; animation: buyerB 4s var(--ease) infinite; }
@keyframes buyerA { 0%, 10% { transform: translate(0, -50%); } 35%, 100% { transform: translate(30%, -50%); border-color: rgba(95,224,200,0.5); color: var(--mint); } }
@keyframes buyerB { 0%, 30% { transform: translate(0, -50%); } 45% { transform: translate(-30%, -50%); } 55% { transform: translate(-20%, -50%); border-color: rgba(239,107,95,0.6); color: var(--danger); } 100% { transform: translate(0, -50%); } }
.lock { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); width: 24px; height: 24px; color: var(--mint); animation: lockPop 4s var(--ease) infinite; }
.lock svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes lockPop { 0%, 30% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); } 40%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; } }

.guard__viz--sod { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 16px; }
.sod__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; animation: rowIn 0.6s var(--ease) both; }
.sod__who { width: 78px; color: var(--dim); font-family: var(--mono); font-size: 10.5px; flex: none; }
.sod__pill { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); font-weight: 700; }
.sod__pill--x { text-decoration: line-through; color: var(--danger); border-color: rgba(239,107,95,0.45); animation: shake 3s ease-in-out infinite; }
.sod__pill--ok { color: var(--mint); border-color: rgba(95,224,200,0.45); background: var(--mint-soft); }
.sod__no { font-family: var(--mono); font-size: 10px; color: var(--danger); white-space: nowrap; }
@keyframes shake { 0%, 80%, 100% { transform: none; } 84% { transform: translateX(-3px); } 88% { transform: translateX(3px); } 92% { transform: translateX(-2px); } }

.guard__viz--cal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, 16px); gap: 5px; }
.cal span { aspect-ratio: 1; border-radius: 4px; background: rgba(255,255,255,0.05); }
.cal .is-due { background: var(--danger); animation: pulseRed 2s infinite; }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(239,107,95,0.6); } 70% { box-shadow: 0 0 0 10px rgba(239,107,95,0); } }
.cal__flag { font-family: var(--mono); font-size: 11px; color: var(--danger); border: 1px solid rgba(239,107,95,0.4); background: rgba(239,107,95,0.08); padding: 5px 10px; border-radius: 6px; }

/* ---------- Roles ---------- */
.roles { display: grid; gap: 24px; }
.roles__list { padding-bottom: 2px; }
.role-btn { min-height: 44px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.02); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.2s; white-space: nowrap; }
.role-btn.is-active { background: var(--mint-soft); border-color: var(--mint); color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ticks li b { color: var(--text); font-weight: 700; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--mint); background: radial-gradient(circle, var(--mint) 30%, transparent 34%); }
.roles__screen {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px;
  background: radial-gradient(ellipse at 0% 0%, rgba(29,107,100,0.3), transparent 60%), var(--bg-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
  display: flex; flex-direction: column; min-height: 330px;
}
.rs__head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rs__head b { display: block; font-size: 17px; letter-spacing: -0.02em; }
.rs__head small { color: var(--muted); font-size: 13.5px; }
.rs__avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--teal); border: 1px solid var(--teal-2); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.rs__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 4px 0 8px; }
.rs__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rs__chips span { padding: 6px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid rgba(95,224,200,0.3); background: rgba(95,224,200,0.07); color: var(--text); animation: chipIn 0.4s var(--ease) both; }
.rs__chips--off span { border-color: var(--line); background: transparent; color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(239,107,95,0.6); }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px) scale(0.96); } }
.rs__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- AI ---------- */
.ai { display: grid; gap: 32px; }
.ai__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ai__facts li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; }
.ai__facts b { color: var(--mint); font-weight: 700; }
.ai__facts span { color: var(--muted); }
.ai__console {
  border-radius: var(--r-lg); padding: 16px; position: relative;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(135deg, rgba(95,224,200,0.6), rgba(212,137,58,0.4) 50%, rgba(95,224,200,0.1)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 90px -30px rgba(95,224,200,0.25);
}
.ai__top { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai__spark { color: var(--amber); }
.ai__input { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-size: 15px; font-weight: 600; line-height: 1.35; }
.caret { width: 2px; height: 20px; background: var(--mint); margin-left: 2px; animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.ai__answer { min-height: 214px; margin-top: 12px; }
.ai__thinking { display: flex; gap: 6px; padding: 18px 4px; }
.ai__thinking i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: think 1.2s infinite ease-in-out; }
.ai__thinking i:nth-child(2) { animation-delay: 0.15s; } .ai__thinking i:nth-child(3) { animation-delay: 0.3s; }
@keyframes think { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: none; } }
.ai__lead { font-size: 15px; margin: 4px 0 6px; }
.ai__lead b { color: var(--mint); }
.ai__suggest { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai__suggest button { min-height: 40px; border: 1px solid var(--line); background: transparent; padding: 8px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); transition: all 0.2s; white-space: nowrap; }
.ai__suggest button.is-active { border-color: rgba(95,224,200,0.45); color: var(--text); background: var(--mint-soft); }
.ai__note { margin: 12px 0 0; font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 0.04em; }

/* ---------- Trust + stats ---------- */
.trust { display: grid; gap: 12px; }
.trust__item { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
.trust__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint); grid-row: span 2; }
.trust__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust__item h3 { font-size: 16px; margin: 0 0 4px; letter-spacing: -0.015em; align-self: center; }
.trust__item p { margin: 0; color: var(--muted); font-size: 14px; }
.stats { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, rgba(29,107,100,0.18), rgba(212,137,58,0.06)); }
.stats div { padding: 20px 16px; }
.stats div:nth-child(even) { border-left: 1px solid var(--line); }
.stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; background: linear-gradient(180deg, var(--text), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- The mark (icon story) ---------- */
.mark__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.mark .lede { margin-bottom: 0; }
/* Phones: the crane sticks under the nav while the parts list scrolls past,
   so a tapped part is always visible lighting up. */
.mark__stage {
  position: sticky; top: var(--nav-h); z-index: 2;
  display: grid; justify-items: center;
  margin-inline: calc(var(--gutter) * -1); padding: 14px var(--gutter) 18px;
  background: linear-gradient(var(--paper) 82%, rgba(247, 245, 242, 0));
}
.mark__tile {
  width: 132px; aspect-ratio: 1; border-radius: 22%;
  box-shadow: 0 0 0 8px rgba(20, 80, 75, 0.06), 0 20px 40px -16px rgba(20, 80, 75, 0.55);
}
.crane { width: 100%; height: 100%; overflow: visible; }
.crane__grid path { stroke: rgba(247, 245, 242, 0.06); stroke-width: 0.4; fill: none; }
.part { transform-box: fill-box; transition: opacity 0.35s var(--ease), filter 0.35s; }
.crane.has-focus .part { opacity: 0.22; }
.crane.has-focus .part.is-focus { opacity: 1; filter: drop-shadow(0 0 2.5px rgba(247, 245, 242, 0.8)); }
.crane.has-focus .part--hook.is-focus { filter: drop-shadow(0 0 3px rgba(212, 137, 58, 0.9)); }

/* assembly: ground → mast → jib → counterweight → hook drops in */
.part--ground { transform-origin: 50% 50%; transform: scaleX(0); }
.part--mast { transform-origin: 50% 100%; transform: scaleY(0); }
.part--jib { transform-origin: 41% 50%; transform: scaleX(0); }
.part--counter { opacity: 0; transform: translateY(-6px); }
.part--hook { transform-box: view-box; transform-origin: 70px 26px; opacity: 0; }
.hook__line { stroke-dasharray: 30; stroke-dashoffset: 30; }
.is-visible .part--ground { transform: none; transition: transform 0.6s var(--ease), opacity 0.35s; }
.is-visible .part--mast { transform: none; transition: transform 0.7s var(--ease) 0.35s, opacity 0.35s; }
.is-visible .part--jib { transform: none; transition: transform 0.7s var(--ease) 0.9s, opacity 0.35s; }
.is-visible .part--counter { opacity: 1; transform: none; transition: opacity 0.4s 1.4s, transform 0.5s var(--ease) 1.4s; }
.is-visible .part--hook { opacity: 1; transition: opacity 0.2s 1.7s; animation: sway 4.5s ease-in-out 2.6s infinite; }
.is-visible .hook__line { stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s var(--ease) 1.7s; }
.crane.has-focus .part { transition-delay: 0s; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(3.5deg); } 70% { transform: rotate(-3deg); } }


.parts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: none; }
.parts li { border-top: 1px solid var(--paper-line); }
.parts li:last-child { border-bottom: 1px solid var(--paper-line); }
.parts button {
  width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  background: none; border: 0; padding: 11px 4px 11px 0; color: var(--paper-muted);
  font-size: 14px; line-height: 1.45; transition: color 0.25s;
  position: relative;
}
.parts button::before { content: ""; position: absolute; left: -12px; top: 11px; bottom: 11px; width: 2px; background: var(--amber-2); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.parts i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--amber-2); padding-top: 3px; flex: none; }
.parts b { display: block; color: var(--paper-ink); font-size: 15px; letter-spacing: -0.01em; margin-bottom: 2px; }
.parts button.is-active { color: var(--paper-ink); }
.parts button.is-active::before { transform: scaleY(1); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: radial-gradient(ellipse 90% 40% at 70% 60%, rgba(29,107,100,0.3), transparent 70%), var(--bg); }
.contact__inner { display: grid; gap: 36px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-weight: 600; font-size: 15px; line-height: 1.45; }
.checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--mint); flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe0c8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12l3 3 7-7'/%3E%3C/svg%3E") center/13px no-repeat; }
/* Phones: heading → form → reassurance, so the form is one scroll away from
   "Book a demo". Desktop restores copy-left / form-right. */
.contact__copy { display: contents; }
.contact__copy > * { order: 1; }
.contact__copy > .checks, .contact__copy > .direct { order: 3; }
.form { order: 2; }
.contact__inner { gap: 0; }
.contact__inner > .form { margin: 8px 0 36px; }
.direct { display: flex; flex-direction: column; gap: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.direct .kicker { margin-bottom: 6px; }
.direct__link {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px;
  min-height: 64px; padding: 10px 14px 10px 10px; margin-top: 8px;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.direct__link:active { transform: scale(0.98); background: var(--mint-soft); }
.direct__ic { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(212, 137, 58, 0.14); color: var(--amber); }
.direct__ic--wa { background: rgba(37, 211, 102, 0.14); color: #4ade80; }
.direct__ic svg, .direct__go { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.direct__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.direct__txt b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.direct__txt small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.direct__go { color: var(--dim); flex: none; transition: transform 0.2s var(--ease), color 0.2s; }

.form {
  position: relative; border-radius: var(--r-lg); padding: 20px;
  background: rgba(14, 38, 35, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
}
.form__head h3 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.02em; }
.form__head p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.form__grid { display: grid; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.form__grid .field { margin: 0; }
.field em { color: var(--amber); font-style: normal; }
/* 16px minimum so iOS Safari doesn't zoom the page on focus */
.field input, .field select, .field textarea, .field__phone {
  width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--text);
  background: rgba(6, 20, 18, 0.7); border: 1px solid var(--line-2); border-radius: 10px;
  min-height: 50px; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395aaa5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus, .field__phone:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(95,224,200,0.15); }
.field__phone { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; }
.field__phone span { color: var(--muted); font-size: 16px; padding-right: 10px; border-right: 1px solid var(--line-2); }
.field__phone input { border: 0; background: transparent; padding-left: 0; box-shadow: none !important; min-height: 48px; }
.field__err { display: none; color: var(--danger); font-size: 12.5px; font-weight: 500; }
.field.is-invalid input, .field.is-invalid .field__phone { border-color: var(--danger); }
.field.is-invalid .field__err { display: block; }
.field--chips legend { margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.chips input:checked + span { border-color: var(--mint); background: var(--mint-soft); color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 6px; cursor: pointer; line-height: 1.45; }
.consent input { accent-color: var(--mint); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.field__err--consent { margin-bottom: 8px; }
.form.consent-invalid .field__err--consent { display: block; }
.form .btn--block { margin-top: 16px; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(4,32,28,0.3); border-top-color: #04201c; animation: spinBtn 0.7s linear infinite; }
@keyframes spinBtn { to { transform: rotate(360deg); } }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.ts { margin: 10px 0 6px; min-height: 65px; border-radius: 10px; }
.ts[hidden] { display: none; }
.ts.is-invalid { box-shadow: 0 0 0 1.5px var(--danger); }
.form__status { margin: 12px 0 0; font-size: 13px; color: var(--danger); min-height: 1em; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; animation: chipIn 0.5s var(--ease); }
.form__done[hidden] { display: none; }
.done__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--bg); background: var(--mint); box-shadow: 0 0 0 10px var(--mint-soft), 0 0 50px rgba(95,224,200,0.5); margin-bottom: 22px; }
.form__done h3 { font-size: 22px; margin: 0 0 8px; }
.form__done p { color: var(--muted); max-width: 34ch; margin: 0; }

/* ---------- Mobile action bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; align-items: center;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(6, 20, 18, 0.96); border-top: 1px solid var(--line-2);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.mbar.is-visible { transform: none; }
.mbar__icon { width: 50px; height: 50px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--mint); }
.mbar__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mbar__cta { flex: 1; min-height: 50px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + var(--mbar-h) + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__tag { margin: 0; color: var(--muted); font-size: 14px; }
.footer__copy { margin: 0; color: var(--dim); font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   ≥ 600px — large phones in landscape, small tablets
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .hero__ctas { flex-direction: row; justify-content: center; width: auto; }
  .hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .alerts li { grid-template-columns: 84px 150px 1fr; }
  .alerts em { grid-column: auto; }
  .tag { grid-row: auto; align-self: center; padding-top: 0; }
  .node { font-size: 13px; padding: 8px 12px; }
  .core img { width: 44px; height: 44px; }
  .core b { font-size: 15px; }
  .core small { font-size: 11px; }
  .fv__units { grid-template-columns: repeat(6, 1fr); }
  .fv__units span:nth-child(n+17) { display: grid; }
  .bento, .guarantees, .trust { grid-template-columns: 1fr 1fr; }
  .card--wide, .card--full { grid-column: 1 / -1; }
  .guarantees .guard:last-child { grid-column: 1 / -1; }
  .docs { flex-direction: row; flex-wrap: wrap; }
  .trust__item { display: block; padding: 24px; }
  .trust__ic { margin-bottom: 16px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats div { padding: 28px 22px; border-top: 0 !important; border-left: 1px solid var(--line); }
  .stats div:first-child { border-left: 0; }
  .stats b { font-size: clamp(40px, 5vw, 60px); }
  .form { padding: 28px; }
  .form__grid { grid-template-columns: 1fr 1fr; }
  .pipeline { gap: 8px; }
  .pipeline span { font-size: 10px; letter-spacing: 0.06em; }
  .pipeline i { height: 56px; }
  .pipeline i::after { left: 8px; right: 8px; top: 10px; height: 34px; }
  .chain { gap: 8px; }
  .chain span { padding: 8px 12px; font-size: 13px; }
  .footer__inner { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
  .footer__copy { margin-left: auto; }
}

/* ==========================================================================
   ≥ 960px — desktop: full nav, two-column sections, 3D hero, floating cards
   ========================================================================== */
@media (min-width: 960px) {
  :root { --nav-h: 68px; }

  /* nav */
  .nav.is-scrolled { background: rgba(6, 20, 18, 0.9); backdrop-filter: blur(14px) saturate(140%); }
  .nav__inner { gap: 32px; }
  .brand { font-size: 18px; margin-right: 0; }
  .brand img { width: 32px; height: 32px; }
  .nav__toggle { display: none; }
  .nav__links {
    position: static; flex-direction: row; gap: 28px; margin-left: auto; padding: 0;
    background: none; border: 0; transform: none; visibility: visible; transition: none;
  }
  .nav__links a { min-height: 0; border: 0; white-space: nowrap; font-size: 14px; color: var(--muted); transition: color 0.2s; }
  .nav__links a:hover { color: var(--text); }
  .nav__cta-arrow { display: inline; }
  .mbar { display: none; }
  .footer { padding-bottom: 32px; }

  /* type */
  .kicker { font-size: 12px; letter-spacing: 0.14em; margin-bottom: 18px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 18px; }
  .h2 { margin-bottom: 20px; max-width: 18ch; }
  .h2--xl { max-width: 16ch; }
  .lede { font-size: clamp(17px, 1.5vw, 20px); margin-bottom: 28px; }

  /* sections */
  .section { padding: 120px 0; }
  .section--tight { padding: 40px 0 120px; }
  .section__head { margin-bottom: 56px; }

  /* hero */
  .hero { padding: calc(var(--nav-h) + 64px) 0 40px; }
  .hero__grid { background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); animation: gridDrift 30s linear infinite; }
  .hero__glow { filter: blur(90px); }
  .hero__glow--a { width: 620px; height: 620px; top: -180px; transform: translateX(-60%); }
  .hero__glow--b { width: 420px; height: 420px; top: 340px; }
  .hero__sub { font-size: clamp(17px, 1.6vw, 21px); margin-bottom: 36px; }
  .hero__chips { margin-top: 34px; font-size: 12px; }
  .hero__stage { margin-top: 56px; padding-top: 0; perspective: 1800px; }
  .mock { transform: rotateX(var(--tilt, 18deg)) scale(var(--scale, 0.94)); transform-origin: 50% 0; transition: transform 0.15s linear; will-change: transform; }
  .mock::after { height: 40%; }
  .mock__bar { padding: 12px 16px; gap: 14px; }
  .mock__url { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); background: rgba(255,255,255,0.03); border: 1px solid var(--line); padding: 4px 12px; border-radius: 6px; margin: 0 auto; }
  .mock__lang { margin-left: 0; }
  .mock__body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
  .mock__side { display: flex; border-right: 1px solid var(--line); padding: 16px 12px; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
  .side__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); margin-bottom: 12px; font-size: 13px; }
  .side__brand img { border-radius: 4px; }
  .side__label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin: 12px 0 4px 8px; }
  .side__item { padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent; }
  .side__item.is-active { color: var(--text); background: var(--mint-soft); border-left-color: var(--mint); }
  .mock__main { padding: 22px 24px; }
  .mock__hello { font-size: 18px; }
  .mock__btn { font-size: 12px; padding: 7px 12px; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi p { font-size: 9.5px; letter-spacing: 0.12em; }
  .kpi b { font-size: 22px; }
  .mock__section { margin: 20px 0 10px; }
  .alerts li { padding: 11px 14px; gap: 12px; }

  /* floating cards: scattered around the mock instead of a cycling toast */
  .float {
    width: auto; opacity: 1; transform: none;
    background: rgba(14, 38, 35, 0.72); backdrop-filter: blur(12px);
    padding: 12px 16px 12px 12px; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7);
    animation: bob 6s ease-in-out infinite;
  }
  .float--1 { top: 18%; left: -8px; animation-delay: 0s; }
  .float--2 { top: 46%; left: auto; right: -8px; animation-delay: -2s; }
  .float--3 { top: 74%; left: 3%; animation-delay: -4s; }

  .ticker { padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .ticker__track { gap: 48px; }
  .ticker__track span { font-size: 13px; gap: 48px; }

  /* problem */
  .problem { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
  .questions li { font-size: 18px; padding: 16px 0; gap: 18px; }

  /* swipe rows become normal wrapping rows */
  .swipe { margin-inline: 0; padding-inline: 0; mask-image: none; -webkit-mask-image: none; overflow: visible; }

  /* flow: underlined tab rail instead of pills */
  .flow { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 28px; padding-bottom: 0; }
  .flow__rail { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .flow__progress { height: 100%; width: calc(100% / 7); background: linear-gradient(90deg, var(--mint), var(--amber)); transition: width 0.6s var(--ease); box-shadow: 0 0 12px var(--mint); }
  .flow__step { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; padding: 14px 4px 18px; border: 0; border-radius: 0; background: none; font-size: 15px; color: var(--dim); }
  .flow__step i { font-size: 11px; letter-spacing: 0.1em; }
  .flow__step.is-active { background: none; }
  .flow__step:hover { color: var(--muted); }
  .flow__panel { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 44px; min-height: 380px; }
  .flow__text h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
  .flow__text p { font-size: 17px; margin-bottom: 22px; }
  .flow__points li { font-size: 15px; }
  .fv { padding: 18px; }
  .fv__big { font-size: 34px; }
  .pill { font-size: 10.5px; padding: 3px 8px; }

  /* bento */
  .bento, .guarantees { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card { padding: 28px; }
  .card h3 { font-size: 22px; margin-bottom: 10px; }
  .card--wide { grid-column: span 2; }
  .card--full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 0 40px; align-items: end; }
  .card--full .docs { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; flex-wrap: nowrap; }
  .meter__ring { width: 140px; }
  .guarantees .guard:last-child { grid-column: auto; }
  .guard { padding: 28px; }
  .guard__viz { height: 170px; }
  .guard h3 { font-size: 21px; margin-top: 24px; }

  /* roles */
  .roles { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .roles__list { flex-wrap: wrap; }
  .role-btn { min-height: 38px; border-radius: 9px; font-size: 13.5px; }
  .roles__screen { padding: 28px; min-height: 380px; }

  /* ai */
  .ai { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .ai__console { padding: 24px; }
  .ai__suggest { flex-wrap: wrap; gap: 6px; }
  .ai__suggest button { min-height: 0; padding: 6px 10px; border-radius: 7px; font-size: 12px; }
  .ai__answer { min-height: 190px; }

  /* trust */
  .trust { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stats { margin-top: 16px; }
  .stats div { padding: 32px 28px; }
  .stats span { font-size: 14px; }

  /* mark: crane left, story right */
  .mark { padding: 96px 0; }
  .mark__inner { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "stage head" "stage parts"; gap: 28px 72px; align-items: center; }
  .mark__head { grid-area: head; }
  .mark__head .h2 { font-size: clamp(30px, 3.2vw, 42px); max-width: 20ch; }
  .mark__head .lede { font-size: 17px; }
  .mark__stage { grid-area: stage; position: static; margin: 0; padding: 0; background: none; }
  .mark__tile { width: 260px; box-shadow: 0 0 0 10px rgba(20, 80, 75, 0.06), 0 0 0 22px rgba(20, 80, 75, 0.035), 0 30px 60px -20px rgba(20, 80, 75, 0.55); }
  .parts { grid-area: parts; align-self: start; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .parts li:nth-last-child(2) { border-bottom: 1px solid var(--paper-line); }
  .parts li:last-child { grid-column: 1 / -1; }

  /* contact: copy left, form right */
  .contact__copy { display: block; }
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .contact__inner > .form { margin: 0; }
  .form { padding: 32px; background: rgba(14, 38, 35, 0.6); backdrop-filter: blur(16px); }
  .checks li { font-size: 15.5px; }
  .field input, .field select, .field textarea, .field__phone { min-height: 46px; padding: 10px 13px; font-size: 15px; }
  .field__phone { padding: 0 0 0 13px; }
  .field__phone input { min-height: 44px; }
  .chips span { min-height: 36px; padding: 6px 13px; border-radius: 8px; font-size: 13px; }
  .consent { font-size: 13px; }
  .consent input { width: 16px; height: 16px; }
}
@keyframes gridDrift { to { background-position: 64px 64px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Six nav items: tighten them on small desktops so the demo button still fits */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav__inner { gap: 20px; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 13px; }
  .nav__cta-arrow { display: none; }
}
@media (min-width: 960px) and (max-width: 1059px) {
  .nav__inner { gap: 16px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 12.5px; }
}

@media (min-width: 1200px) {
  .float--1 { left: 0; }
  .float--2 { right: 0; }
}

/* Hover effects only where a real pointer exists — no sticky hover on touch */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(95, 224, 200, 0.6), 0 14px 40px -10px rgba(95, 224, 200, 0.75); }
  .btn--ghost:hover { border-color: rgba(95, 224, 200, 0.5); background: var(--mint-soft); }
  .card:hover { border-color: var(--line-2); transform: translateY(-3px); }
  .glow-card:hover::before { opacity: 1; }
  .role-btn:hover { color: var(--text); border-color: rgba(95,224,200,0.35); }
  .direct__link:hover { border-color: rgba(95, 224, 200, 0.45); background: var(--mint-soft); }
  .direct__link:hover .direct__go { color: var(--mint); transform: translateX(3px); }
  .ai__suggest button:hover { border-color: rgba(95,224,200,0.45); color: var(--text); background: var(--mint-soft); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mock { transform: none !important; }
  .float { display: none; }
}
