:root {
  --bg: #05070d;
  --bg-2: #0a1020;
  --blue: #0b5cc7;
  --blue-deep: #034d9a;
  --cyan: #3fd0ff;
  --warm: #ff8a3d;
  --text: #e8eef8;
  --muted: #93a2bd;
  --line: rgba(120, 160, 230, 0.16);
  --panel: rgba(8, 13, 26, 0.55);
  --radius: 18px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at 50% 20%, #0b1630 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
img { display: block; max-width: 100%; }

#scene {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; display: block;
  opacity: 0; transition: opacity 1.4s ease;
}
#scene.ready { opacity: 1; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(3, 5, 10, 0.75) 100%);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(5, 7, 13, 0.85), rgba(5, 7, 13, 0));
  backdrop-filter: blur(2px);
}
.nav-logo img { height: 40px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; padding: 3px; gap: 2px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font: 600 12px/1 var(--font-head); letter-spacing: .06em; color: var(--muted); cursor: pointer;
  transition: border-color .2s;
}
.lang:hover { border-color: rgba(63,208,255,.5); }
.lang:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lang span { padding: 6px 9px; border-radius: 999px; transition: background .2s, color .2s; }
.lang[data-active="es"] [data-l="es"], .lang[data-active="en"] [data-l="en"] { background: rgba(63,208,255,.18); color: var(--text); }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #1d8fe8 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px rgba(30, 130, 240, .7);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 16px 40px -12px rgba(63, 208, 255, .8); }
.btn-ghost { background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(63,208,255,.5) inset; }
.btn-small { padding: 10px 18px; font-size: 13px; white-space: nowrap; }

/* ---------- RAIL ---------- */
.rail {
  position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 15; display: flex; flex-direction: column; gap: 14px;
}
.rail a {
  position: relative; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(147, 162, 189, .35); transition: background .3s, transform .3s;
}
.rail a::after {
  content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12px; color: var(--muted); opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.rail a:hover::after, .rail a:focus-visible::after { opacity: 1; }
.rail a.active { background: var(--cyan); transform: scale(1.35); box-shadow: 0 0 12px var(--cyan); }

/* ---------- CHAPTERS ---------- */
main { position: relative; z-index: 5; }
.chapter {
  position: relative; min-height: 160vh;
  display: flex; align-items: center;
  padding: 120px clamp(16px, 6vw, 96px);
}
.chapter[data-side="left"]  { justify-content: flex-start; }
.chapter[data-side="right"] { justify-content: flex-end; }
.chapter[data-side="center"] { justify-content: center; text-align: center; min-height: 100vh; }
.hero { min-height: 115vh !important; }
.hero .panel {
  position: relative; top: 0; width: min(680px, 100%); padding: 0;
  background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.hero .lead { margin-left: 0; }
.hero .actions { justify-content: flex-start; }
.finale { min-height: 100vh !important; flex-direction: column; justify-content: flex-start; padding-top: 47vh; padding-bottom: 32px; }

.panel {
  position: sticky; top: 14vh;
  width: min(560px, 100%);
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 20, 40, .72), rgba(6, 10, 20, .5));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chapter[data-side="center"] .panel {
  position: relative; top: 0; width: min(820px, 100%);
  background: none; border: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow.warm { color: var(--warm); }
.eyebrow .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid currentColor; letter-spacing: 0; font-size: 12px;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6.4vw, 80px); font-weight: 800; font-style: italic; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.grad {
  background: linear-gradient(90deg, #4aa8ff 0%, var(--cyan) 60%, #b7f0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel > p { color: #c4cfe2; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4cfe2; max-width: 640px; margin: 0 auto 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chips li {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: rgba(11, 92, 199, .18); border: 1px solid rgba(63, 208, 255, .25);
}
.stat { display: flex; align-items: center; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.stat strong { font-family: var(--font-head); font-size: 46px; font-weight: 800; font-style: italic; color: var(--cyan); line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }

.pains { list-style: none; display: grid; gap: 10px; margin: 6px 0 22px; }
.pains li {
  padding: 12px 16px; border-radius: 12px; font-size: 15px; color: #d6deeb;
  background: rgba(255, 138, 61, .07); border-left: 3px solid var(--warm);
}
.pains b { color: #ffc49b; font-weight: 600; }
.turn { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text) !important; margin: 0 !important; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.card {
  padding: 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: transform .25s ease, border-color .25s, background .25s;
  will-change: transform;
}
.card:hover { border-color: rgba(63, 208, 255, .45); background: rgba(63, 208, 255, .05); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin-top: 22px; }
.features li { display: flex; flex-direction: column; gap: 3px; padding-left: 14px; border-left: 2px solid rgba(63, 208, 255, .45); }
.features b { font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.features span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.sectors .ico { display: block; font-size: 22px; color: var(--cyan); margin-bottom: 8px; }

.steps { list-style: none; display: grid; gap: 4px; margin-top: 18px; position: relative; }
.steps li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; }
.steps li > span {
  flex: none; font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 28px;
  color: transparent; -webkit-text-stroke: 1px var(--cyan); line-height: 1; padding-top: 2px; width: 46px;
}
.steps p { font-size: 15px; color: var(--muted); }

/* terminal */
.terminal { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(2, 5, 12, .8); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3550; }
.term-bar span { margin-left: 8px; font-size: 11px; color: var(--muted); letter-spacing: .05em; }
.term-body {
  padding: 14px 16px; min-height: 92px; font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap; color: #cfe6ff;
}
.term-line, .term-out { display: block; }
.term-out { color: #6ff0b5; margin-top: 6px; }
.term-body .caret { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

address { font-style: normal; margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.9; }
address a { color: var(--cyan); text-decoration: none; }
.footer {
  width: 100%; margin-top: auto; padding-top: 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: #5f6d88;
}

.scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.scroll-hint span { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid var(--muted); position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 2px; background: var(--cyan); animation: wheel 1.8s ease-in-out infinite;
}
.scroll-hint b { font-weight: inherit; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span::after { animation: none; }
}

/* WebGL fallback */
.no-webgl body, body.no-webgl {
  background: radial-gradient(ellipse at 70% 30%, #0e2a5c 0%, var(--bg) 60%) fixed;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .rail { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding: 12px 16px; }
  .nav-logo img { height: 32px; }
  .nav-right { gap: 8px; }
  .nav .btn-small { padding: 9px 13px; font-size: 12px; }
  .chapter { min-height: 150vh; padding: 96px 16px 64px; align-items: flex-end; }
  .chapter[data-side="left"], .chapter[data-side="right"] { justify-content: center; }
  .chapter:not(.hero):not(.finale) { padding-top: 78vh; }
  .hero { align-items: flex-end; padding-bottom: 130px; }
  .finale { padding-top: 32vh; }
  .panel { padding: 24px 20px; position: relative; top: 0; background: linear-gradient(160deg, rgba(10, 16, 32, .86), rgba(6, 10, 20, .78)); }
  .grid2, .features, .sectors { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .footer { flex-direction: column; text-align: center; align-items: center; }
  .finale { min-height: 100vh !important; }
  .stat strong { font-size: 38px; }
}

/* ================================================================== */
/* HOME → SOLUTIONS links                                              */
/* ================================================================== */
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--cyan);
  text-decoration: none; border-bottom: 1px solid rgba(63,208,255,.35); padding-bottom: 2px;
  transition: gap .2s, border-color .2s;
}
.more:hover { gap: 12px; border-color: var(--cyan); }
.more-row { display: flex; flex-wrap: wrap; gap: 0 22px; }
/* Use-case briefs: a story that fades out mid-sentence and invites the click */
@property --reveal { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.panel-wide { width: min(600px, 100%); position: relative; top: 0; }
.uc-list { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.js .uc-list li { opacity: 0; }
.panel.in .uc-list li { animation: uc-in .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.2s + var(--i, 0) * .14s); }
@keyframes uc-in { from { opacity: 0; transform: translateY(16px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.uc {
  position: relative; display: block; padding: 16px 18px 14px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); text-decoration: none;
  transition: border-color .45s, background .45s, transform .45s cubic-bezier(.2,.7,.2,1);
}
.uc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 35%, rgba(63,208,255,.16) 50%, transparent 65%);
}
.uc-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 11px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.uc-tag i { font-style: normal; opacity: .55; }
.uc-hook { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 17px; line-height: 1.3; }
.uc-brief {
  display: block; height: 4.65em; overflow: hidden; font-size: 14px; line-height: 1.55; color: var(--muted);
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--reveal), transparent calc(var(--reveal) + 62%));
  mask-image: linear-gradient(to bottom, #000 var(--reveal), transparent calc(var(--reveal) + 62%));
  transition: --reveal .8s cubic-bezier(.2,.7,.2,1), color .45s;
}
.uc-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 13px var(--font-head); color: var(--cyan); opacity: .7; transition: opacity .45s, gap .45s; }
.uc-arrow { display: inline-block; animation: uc-nudge 1.8s ease-in-out infinite; }
@keyframes uc-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
@keyframes uc-shine { to { transform: translateX(110%); } }
.uc:hover, .uc:focus-visible, .uc.peek { border-color: rgba(63,208,255,.5); background: rgba(63,208,255,.06); transform: translateX(4px); }
.uc:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.uc:hover .uc-brief, .uc:focus-visible .uc-brief, .uc.peek .uc-brief { --reveal: 55%; color: #c4cfe2; }
.uc:hover::before, .uc:focus-visible::before, .uc.peek::before { animation: uc-shine 1.2s ease; }
.uc:hover .uc-cta, .uc:focus-visible .uc-cta, .uc.peek .uc-cta { opacity: 1; gap: 12px; }
@media (prefers-reduced-motion: reduce) {
  .js .uc-list li, .panel.in .uc-list li { opacity: 1; animation: none; }
  .uc-arrow, .uc::before { animation: none !important; }
}

/* ================================================================== */
/* SOLUTION PAGES                                                      */
/* ================================================================== */
body.dim #scene.ready { opacity: .2; }
.sub .hero { min-height: 100vh !important; }
.sub .hero .panel { width: min(600px, 100%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--muted); list-style: none; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.sub .hero h1 { font-size: clamp(36px, 4.6vw, 60px); }

.section { position: relative; z-index: 5; padding: 96px clamp(16px, 6vw, 96px); }
.wrap { max-width: 1160px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: #c4cfe2; }
.badge {
  display: inline-block; margin-left: 10px; padding: 4px 10px; border-radius: 999px; vertical-align: middle;
  font-size: 10.5px; letter-spacing: .12em; color: var(--warm); border: 1px solid rgba(255,138,61,.4);
}
.surface {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 24px;
  background: linear-gradient(160deg, rgba(12,20,40,.82), rgba(6,10,20,.72));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.note { font-size: 12.5px; color: #6f7d98; margin-top: 14px; line-height: 1.5; }
.replay {
  margin-top: 14px; font: 600 13px var(--font-head); color: var(--cyan); background: none; cursor: pointer;
  border: 1px solid rgba(63,208,255,.35); border-radius: 999px; padding: 8px 16px;
}
.replay:hover { background: rgba(63,208,255,.08); }

/* chat (WhatsApp) */
.phone {
  width: min(360px, 100%); margin: 0 auto; padding: 10px; border-radius: 34px;
  background: #0b0f19; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 80px -30px rgba(30,130,240,.55);
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 24px 24px 0 0; background: #10261f; }
.phone-top .avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: #0b5cc7 url(assets/is-icon-white.png) center / 60% no-repeat; }
.phone-top b { display: block; font-size: 14px; }
.phone-top small { display: block; font-size: 11px; color: #7fd6a8; }
.chat-log {
  height: 430px; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px;
  background: #0a1411; border-radius: 0 0 24px 24px; scrollbar-width: none;
}
.bubble { max-width: 84%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; animation: pop .3s ease both; }
.bubble.user { align-self: flex-end; background: #1d5a43; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: #1b2333; border-bottom-left-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #93a2bd; animation: dot 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.flow { list-style: none; display: grid; }
.flow li { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 55px; bottom: -11px; width: 2px; background: var(--line); transition: background .4s; }
.flow .node-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .4s, background .4s, box-shadow .4s;
}
.flow b { display: block; font-family: var(--font-head); font-size: 15px; }
.flow .d { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.flow li.on .node-ico { border-color: var(--cyan); background: rgba(63,208,255,.14); box-shadow: 0 0 22px rgba(63,208,255,.45); }
.flow li.on:not(:last-child)::after { background: linear-gradient(var(--cyan), var(--line)); }

/* calculators (Revit) */
.tabs { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { font: 600 13px var(--font-head); color: var(--muted); background: none; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: rgba(63,208,255,.18); color: var(--text); }
.tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .03em; }
.field input, .field select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(2,5,12,.75); color: var(--text); font: 15px var(--font-body);
}
.field select { color-scheme: dark; }
.field select option { background: #0a1020; color: var(--text); }
.field input:focus, .field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.result { margin-top: 20px; padding: 18px; border-radius: 14px; background: rgba(2,5,12,.6); border: 1px solid var(--line); }
.result .big { font-family: var(--font-head); font-size: 40px; font-weight: 800; font-style: italic; line-height: 1.05; }
.result .big small { font-size: 16px; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }
.result p { font-size: 14px; color: #c4cfe2; }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 14px 0 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2bd38a, var(--cyan)); transition: width .4s; }
.meter.bad i { background: linear-gradient(90deg, var(--warm), #ff5a3d); }
.verdict { font-weight: 600; }
.verdict.ok { color: #6ff0b5; }
.verdict.bad { color: #ffb38a; }

/* agent board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.col { min-height: 330px; padding: 12px; border-radius: 14px; background: rgba(2,5,12,.5); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.col h4 { display: flex; justify-content: space-between; font: 700 11.5px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.task { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 13px; animation: pop .35s ease both; }
.task b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.task small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
.task.working { border-color: var(--cyan); box-shadow: 0 0 18px rgba(63,208,255,.25); }
.task.done small { color: #6ff0b5; }
.agent-log { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(2,5,12,.7); border: 1px solid var(--line); font: 12.5px/1.6 ui-monospace, Consolas, monospace; color: #9fc3ff; min-height: 46px; }

/* IoT dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px; border-radius: 12px; background: rgba(2,5,12,.55); border: 1px solid var(--line); transition: border-color .3s; }
.kpi small { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { display: block; font: 800 24px var(--font-head); font-variant-numeric: tabular-nums; }
.kpi.alert { border-color: var(--warm); }
.kpi.alert strong { color: var(--warm); }
.chart { display: block; width: 100%; height: 220px; border-radius: 12px; background: rgba(2,5,12,.55); border: 1px solid var(--line); }
.ai-status { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid rgba(111,240,181,.35); background: rgba(111,240,181,.06); transition: border-color .3s, background .3s; }
.ai-status.alert { border-color: rgba(255,138,61,.55); background: rgba(255,138,61,.08); }
.ai-status .dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #6ff0b5; box-shadow: 0 0 10px #6ff0b5; }
.ai-status.alert .dot { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.ai-status p { font-size: 14px; }

/* cloud architecture */
.arch { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.layer > span { font: 700 11px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.box { padding: 9px 12px; border-radius: 10px; font-size: 13px; border: 1px dashed rgba(147,162,189,.25); color: #5f6d88; transition: border-color .35s, color .35s, background .35s, box-shadow .35s; }
.box.on { border-style: solid; border-color: rgba(63,208,255,.5); color: var(--text); background: rgba(63,208,255,.08); box-shadow: 0 0 16px rgba(63,208,255,.18); }
.tier-desc { margin-top: 18px; color: #c4cfe2; font-size: 15px; }

/* shared blocks */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature-grid .card { padding: 22px; background: rgba(8,13,26,.6); }
.feature-grid .card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-grid .ico { display: block; font-size: 20px; color: var(--cyan); margin-bottom: 10px; }
.steps-row { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps-row li { padding: 20px; border-top: 2px solid rgba(63,208,255,.45); border-radius: 0 0 14px 14px; background: linear-gradient(rgba(63,208,255,.07), rgba(8,13,26,.4) 70%); }
.steps-row li > span { display: block; margin-bottom: 10px; font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 26px; color: transparent; -webkit-text-stroke: 1px var(--cyan); }
.steps-row p { font-size: 14px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.uses { list-style: none; display: grid; gap: 12px; }
.uses li { padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8,13,26,.6); }
.uses b { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.uses span { font-size: 14px; color: var(--muted); }
.cta-block { text-align: center; padding-top: 120px; padding-bottom: 32px; }
.cta-block h2 { font-size: clamp(34px, 4.4vw, 56px); }
.cta-block .eyebrow { margin-top: 72px; }
.other { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: left; }
.other .is-current { display: none; }
.other a { display: block; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8,13,26,.6); text-decoration: none; transition: border-color .2s, transform .2s; }
.other a:hover, .other a:focus-visible { border-color: rgba(63,208,255,.5); transform: translateY(-3px); }
.other b { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.other span { font-size: 13px; color: var(--muted); }
.cta-block .footer { margin-top: 64px; }

/* ================================================================== */
/* MOBILE DIVE (html.dive, set by ui.js on phones without reduced motion) */
/* ================================================================== */
.dive .vignette {
  /* Light from the surface fades and vision narrows as you go deeper */
  background:
    linear-gradient(to bottom, rgba(63, 208, 255, calc(0.09 * (1 - var(--depth, 0)))), transparent 35%),
    radial-gradient(ellipse at 50% 35%, transparent calc(48% - var(--depth, 0) * 22%), rgba(1, 3, 8, calc(0.72 + var(--depth, 0) * 0.2)) 100%);
}
.dive .dv, .dive .dv.in {
  opacity: min(var(--in, 0), var(--out, 1));
  transform-origin: 50% 0%;
  transform:
    perspective(800px)
    translate3d(0, calc((1 - var(--in, 0)) * 80px), calc((1 - var(--in, 0)) * -260px))
    rotateX(calc((1 - var(--in, 0)) * 18deg))
    scale(calc(0.92 + var(--out, 1) * 0.08));
  transition: none;
  will-change: transform, opacity;
}
.depth {
  position: fixed; right: 6px; top: 24vh; height: 52vh; width: 2px; z-index: 15; pointer-events: none;
  border-radius: 2px; background: rgba(147, 162, 189, .16);
}
.depth i {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--depth, 0) * 100%);
  border-radius: 2px; background: linear-gradient(rgba(63, 208, 255, .15), var(--cyan));
}
.depth i::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.depth.ping i::after { animation: gauge-ping .9s ease-out; }
@keyframes gauge-ping {
  0% { box-shadow: 0 0 0 0 rgba(63, 208, 255, .9), 0 0 10px var(--cyan); }
  100% { box-shadow: 0 0 0 14px rgba(63, 208, 255, 0), 0 0 10px var(--cyan); }
}

@media (max-width: 960px) {
  .demo, .two-col { grid-template-columns: 1fr; }
  .feature-grid, .other { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 16px; }
  .sub .hero { padding-top: 46vh; padding-bottom: 56px; align-items: flex-start; }
  .feature-grid, .other, .steps-row, .calc, .board { grid-template-columns: 1fr; }
  .col { min-height: 0; }
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .kpi strong { font-size: 19px; }
  .chat-log { height: 380px; }
  .surface { padding: 18px; }
  .cta-block { padding-top: 72px; }
}
