/* =========================================================
   <?= $source ?> — SaaS UI (dark)
   ========================================================= */
/* Self-hosted fonts (latin subset covers Spanish: á é í ó ú ñ ü ¿ ¡ €) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/geist-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); }
:root {
  --bg: #07080b;
  --bg-1: #0a0c10;
  --surface: #0e1015;
  --surface-2: #13161d;
  --surface-3: #191d26;
  --border: rgba(255, 255, 255, .075);
  --border-2: rgba(255, 255, 255, .13);
  --text: #f4f5f7;
  --text-2: #a3a8b6;
  --muted: #868b9c;
  --sun: #ff6a2e;
  --amber: #ffb547;
  --peach: #ffd29a;
  --green: #3ddc97;
  --red: #ff6b6b;
  --blue: #8c9bff;
  --grad: linear-gradient(95deg, #ff5a2a 0%, #ff8a3a 45%, #ffbf5c 100%);
  --grad-text: linear-gradient(95deg, #ff7a45 0%, #ffb547 50%, #ffe0b0 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --f: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --f-serif: "Instrument Serif", Georgia, serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f); letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
::selection { background: rgba(255, 138, 58, .35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22262f; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e333e; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: #fff; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em, h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
a[href^="tel:"], a[href^="tel:"] b, .tel { white-space: nowrap; }
kbd { white-space: nowrap; font: 500 11px/1 var(--f-mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--text-2); }

/* ---------- Page backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.backdrop::after {
  content: ""; position: absolute; left: 50%; top: -380px; width: 1300px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 110, 50, .20), rgba(255, 150, 60, .06) 55%, transparent 75%);
  filter: blur(10px);
}
.noise { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arr { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sun {
  background: var(--grad); background-origin: border-box; background-clip: border-box;
  color: #1a0d04; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 170, 90, .3), 0 8px 24px -8px rgba(255, 100, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-sun::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-sun:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 190, 110, .5), 0 14px 34px -10px rgba(255, 110, 40, .8), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-sun:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn-lg { --h: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header (floating pill) ---------- */
.top { position: sticky; top: 0; z-index: 60; padding: 14px var(--gutter) 0; transition: padding .35s var(--ease); }
.top-in {
  max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 10px 0 18px; display: flex; align-items: center; gap: 18px;
  border-radius: 18px; border: 1px solid transparent; background: transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.top.is-scrolled .top-in {
  background: rgba(14, 16, 21, .72); border-color: var(--border); height: 56px;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.03em; color: #fff; }
.brand svg { width: 28px; height: 28px; flex: none; transition: transform .6s var(--ease-spring); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 2px; margin: 0 auto; position: relative; }
.nav a { position: relative; z-index: 1; white-space: nowrap; text-decoration: none; font-size: 14px; color: var(--text-2); padding: 7px 12px; border-radius: 9px; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav-pill { position: absolute; z-index: 0; top: 0; height: 100%; border-radius: 9px; background: rgba(255, 255, 255, .07); opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none; }
.top-cta { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .04); cursor: pointer; align-items: center; justify-content: center; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.6px; background: #fff; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -5px; } .burger span::after { top: 5px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-5px) rotate(-45deg); }
.nav .nav-cta { display: none; }

@media (max-width: 1060px) {
  .burger { display: inline-flex; }
  .top-cta { display: none; }
  .nav-pill { display: none; }
  .nav {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 78px; margin: 0; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 18px; border: 1px solid var(--border); background: rgba(14, 16, 21, .96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
    transform: translateY(-8px) scale(.98); transform-origin: top center; opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s;
  }
  .nav a { padding: 12px 14px; font-size: 15.5px; color: var(--text); }
  .nav a:hover { background: rgba(255, 255, 255, .05); }
  .nav .nav-cta { display: flex; margin-top: 8px; color: #1a0d04; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .top-in { background: rgba(14, 16, 21, .92); border-color: var(--border); }
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Common section ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--f-mono); color: var(--text-2); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); letter-spacing: 0; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.head h2 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 18px; }
.head p { font-size: clamp(16.5px, 1.5vw, 18.5px); color: var(--text-2); line-height: 1.55; }
.head.center p { max-width: 600px; margin: 0 auto; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); border: 0; margin: 0; }

/* ---------- Window chrome (app frame) ---------- */
.win {
  position: relative; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 100px -40px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e38; }
.win:hover .dots i:nth-child(1) { background: #ff5f57; } .win:hover .dots i:nth-child(2) { background: #febc2e; } .win:hover .dots i:nth-child(3) { background: #28c840; }
.dots i { transition: background-color .25s; }
.crumb { font: 500 12.5px/1 var(--f-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb b { color: var(--text-2); font-weight: 500; }
.win-bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--f-mono); color: var(--green); padding: 5px 9px; border-radius: 999px; background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .2); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); } 80%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 0; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 450px; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy .stats { max-width: 560px; }
.hero .glow-card { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(255, 110, 40, .35); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); text-decoration: none; font-size: 13.5px; color: var(--text-2); transition: border-color .25s, background-color .25s; }
.pill:hover { border-color: rgba(255, 181, 71, .4); background: rgba(255, 181, 71, .06); color: #fff; }
.pill b { font: 600 11px/1 var(--f-mono); color: #1a0d04; background: var(--grad); padding: 5px 8px; border-radius: 999px; }
.pill svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.pill:hover svg { transform: translateX(3px); }
.hero h1 { font-size: clamp(42px, 5.8vw, 76px); line-height: .98; margin: 24px 0 22px; letter-spacing: -.045em; }
.hero .lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--text-2); max-width: 560px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; list-style: none; padding: 0; font-size: 13.5px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 7px; }
.ticks svg { width: 15px; height: 15px; color: var(--green); }

/* app mockup */
.stage { position: relative; margin-top: clamp(56px, 7vw, 84px); perspective: 1600px; }
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; top: 8%; height: 60%; background: radial-gradient(closest-side, rgba(255, 120, 50, .35), transparent); filter: blur(60px); z-index: -1; }
.app {
  --t: 1;
  text-align: left; transform-origin: 50% 0; transform: rotateX(calc(var(--t) * 14deg)) scale(calc(1 - var(--t) * .04)); will-change: transform;
  border-radius: 20px; padding: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 40%, rgba(255, 255, 255, .02));
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .8);
}
.app-in { border-radius: 19px; overflow: hidden; background: var(--bg-1); }
.app-body { display: grid; grid-template-columns: 210px 1fr; min-height: 520px; }
.app-side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .01); }
.ws { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; font-size: 13.5px; font-weight: 500; }
.ws span.av { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; font: 700 11px/1 var(--f); color: #1a0d04; }
.ws small { margin-left: auto; color: var(--muted); font: 400 11px var(--f-mono); }
.side-search { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.side-search kbd { margin-left: auto; }
.side-search svg { width: 14px; height: 14px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); text-decoration: none; transition: background-color .2s, color .2s; }
.side-item svg { width: 16px; height: 16px; opacity: .8; }
.side-item:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.side-item.on { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.side-item .ct { margin-left: auto; font: 500 11px/1 var(--f-mono); color: var(--muted); }
.side-label { font: 500 11px/1 var(--f-mono); color: var(--muted); padding: 14px 9px 6px; text-transform: uppercase; letter-spacing: .06em; }
.side-foot { margin-top: auto; padding: 12px 9px 4px; border-top: 1px solid var(--border); }
.side-foot small { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.meter { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); margin-top: 8px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 38%; background: var(--grad); border-radius: 5px; }

.app-main { padding: 18px; display: grid; grid-template-columns: 1fr 250px; grid-template-rows: auto 1fr; gap: 14px; min-width: 0; }
.kpi-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kc { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.kc small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.kc b { display: block; font: 500 20px/1.25 var(--f-mono); margin-top: 6px; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.kc em { font: 500 12px var(--f-mono); font-style: normal; }
.up { color: var(--green); } .down { color: var(--red); }
.card { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.card-h b { color: #fff; font-weight: 500; }
.chart-card { display: flex; flex-direction: column; }
.dome-sky { position: relative; flex: 1; min-height: 280px; }
.dome-sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); position: relative; }
.seg-mini button { position: relative; z-index: 1; border: 0; background: transparent; padding: 5px 10px; font-size: 12.5px; color: var(--text-2); border-radius: 7px; cursor: pointer; transition: color .2s; }
.seg-mini button[aria-pressed="true"] { color: #fff; }
.seg-mini .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 7px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .35s var(--ease), width .35s var(--ease); }
.feed { display: flex; flex-direction: column; overflow: hidden; }
.feed-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; flex: 1; max-height: 340px; }
.feed-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px; border-radius: 9px; font-size: 12.5px; color: var(--text-2); animation: feedIn .6s var(--ease); }
.feed-list li:first-child { background: rgba(255, 255, 255, .03); }
.feed-list li i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 11px; }
.feed-list li i.g { background: rgba(61, 220, 151, .12); color: var(--green); }
.feed-list li i.r { background: rgba(255, 107, 107, .12); color: var(--red); }
.feed-list li i.a { background: rgba(255, 181, 71, .12); color: var(--amber); }
.feed-list li b { color: #fff; font-weight: 500; }
.feed-list li small { display: block; font: 400 11px var(--f-mono); color: var(--muted); margin-top: 2px; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
.stage-fade { position: absolute; left: 0; right: 0; bottom: -2px; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee { margin-top: clamp(40px, 6vw, 70px); padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.chip svg { width: 15px; height: 15px; color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Access (form) ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 480px; gap: clamp(40px, 6vw, 88px); align-items: center; }
.access-grid .head { margin-bottom: 32px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px; border-radius: 14px; transition: background-color .25s; }
.benefits li:hover { background: rgba(255, 255, 255, .025); }
.benefits .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-2); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01)); color: var(--amber); }
.benefits .ic svg { width: 18px; height: 18px; }
.benefits b { display: block; font-weight: 500; font-size: 15.5px; color: #fff; }
.benefits span { font-size: 14.5px; color: var(--text-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.stats div { padding: 18px; }
.stats div + div { border-left: 1px solid var(--border); }
.stats b { display: block; font: 500 28px/1.1 var(--f-mono); letter-spacing: -.04em; color: #fff; }
.stats span { font-size: 12.5px; color: var(--muted); }

.glow-card { position: relative; border-radius: 22px; padding: 1px; isolation: isolate; overflow: hidden; }
.glow-card::before {
  content: ""; position: absolute; inset: -60%; z-index: -2;
  background: conic-gradient(from var(--a, 0deg), transparent 0 60%, rgba(255, 106, 46, .9) 72%, rgba(255, 210, 154, 1) 78%, transparent 88%);
  animation: spin 6s linear infinite;
}
.glow-card::after { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: 21px; background: var(--surface); }
@keyframes spin { to { transform: rotate(360deg); } }
.glow-card > .glow-base { position: absolute; inset: 0; z-index: -3; border-radius: 22px; background: var(--border-2); }
.form-in { padding: clamp(22px, 3vw, 32px); position: relative; }
.form-in h2, .form-in h3 { font-size: 24px; letter-spacing: -.03em; }
.form-in .sub { color: var(--text-2); margin: 8px 0 20px; font-size: 14.5px; }
.steps-mini { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 500 12px/1 var(--f-mono); color: var(--muted); }
.steps-mini .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; flex: 1; }
.steps-mini .bars span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.steps-mini .bars span::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.steps-mini .bars span.on::after { transform: scaleX(1); }
.steps-mini b { color: #fff; font-weight: 500; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; margin-bottom: 12px; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 7px; }
.ctl { position: relative; display: flex; align-items: stretch; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border-2); transition: border-color .25s, box-shadow .25s, background-color .25s; }
.ctl:hover { border-color: rgba(255, 255, 255, .2); }
.ctl:focus-within { border-color: rgba(255, 181, 71, .7); box-shadow: 0 0 0 4px rgba(255, 140, 60, .14); background: #0c0e13; }
.ctl input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 40px 0 14px; font-size: 15px; color: #fff; outline: none; }
.ctl input::placeholder { color: #4d5260; }
.ctl .cc { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--border-2); font: 500 14px/1 var(--f-mono); color: #fff; white-space: nowrap; }
.ctl .cc svg { width: 20px; height: 14px; border-radius: 3px; }
.field .tick { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--green); color: #052014; display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease-spring); pointer-events: none; }
.field .tick svg { width: 12px; height: 12px; }
.field.is-ok .tick { transform: scale(1) rotate(0); }
.field.is-ok .ctl { border-color: rgba(61, 220, 151, .45); }
.field.is-bad .ctl { border-color: rgba(255, 107, 107, .7); box-shadow: 0 0 0 4px rgba(255, 107, 107, .12); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: 13px; color: var(--text-2); margin: 8px 0 18px; cursor: pointer; line-height: 1.5; }
.consent input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 6px; border: 1px solid var(--border-2); background: var(--bg-1); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.consent input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #1a0d04; border-bottom: 2px solid #1a0d04; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--ease-spring); }
.consent input:checked { background: var(--amber); border-color: var(--amber); }
.consent input:checked::after { transform: rotate(-45deg) scale(1); }
.consent a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.consent.is-error { color: var(--red); animation: shake .4s; }
.consent.is-error input { border-color: var(--red); }
.form-err { font-size: 13px; color: var(--red); min-height: 0; margin: -6px 0 12px; display: none; align-items: center; gap: 7px; }
.form-err.show { display: flex; animation: feedIn .4s var(--ease); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; list-style: none; padding: 0; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.perks li { display: inline-flex; align-items: center; gap: 5px; }
.perks svg { width: 13px; height: 13px; color: var(--green); }
.form-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-2); font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cell { position: relative; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 26px; overflow: hidden; isolation: isolate; min-height: 260px; display: flex; flex-direction: column; }
.cell.wide { grid-column: span 2; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 70, .10), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 181, 71, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.cell h3 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: 14.5px; max-width: 420px; }
.cell .tag { font: 500 11.5px/1 var(--f-mono); color: var(--amber); margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.cell .vis { margin-top: auto; padding-top: 22px; }
/* bento visuals */
.v-lines path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.is-in .v-lines path { animation: draw 2.2s var(--ease) forwards; }
.is-in .v-lines path:nth-child(2) { animation-delay: .25s; }
.is-in .v-lines path:nth-child(3) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.v-fan { transform-origin: 0 50%; }
.cell:hover .v-fan { animation: fan 2.4s var(--ease) infinite alternate; }
@keyframes fan { to { transform: scaleY(1.18); } }
.v-sentence { font: 500 14px/1.9 var(--f-mono); color: var(--text-2); padding: 14px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--border); }
.v-sentence span { color: var(--amber); background: rgba(255, 181, 71, .08); padding: 2px 6px; border-radius: 5px; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--amber); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.v-hook { display: flex; align-items: center; gap: 10px; }
.v-hook .node { flex: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-1); font: 500 12px/1 var(--f-mono); color: var(--text-2); }
.v-hook .wire { flex: 1; height: 2px; position: relative; background: repeating-linear-gradient(90deg, var(--border-2) 0 6px, transparent 6px 10px); overflow: hidden; border-radius: 2px; min-width: 30px; }
.v-hook .wire::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: beam 2s var(--ease) infinite; }
@keyframes beam { to { left: 110%; } }
.code { font: 400 12.5px/1.75 var(--f-mono); color: #c9ccd6; background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 0; }
.code .k { color: #ff9e6b; } .code .s { color: #ffd29a; } .code .n { color: #8c9bff; } .code .c { color: #5d6270; }
.code-wrap { position: relative; }
.copy { position: absolute; top: 10px; right: 10px; }
.v-keys { display: flex; gap: 8px; align-items: center; }
.v-keys kbd { font-size: 15px; padding: 10px 14px; border-radius: 10px; color: #fff; box-shadow: 0 4px 0 #0a0b0f; transition: transform .15s, box-shadow .15s; }
.cell:hover .v-keys kbd:first-child { animation: press 1.6s var(--ease) infinite; }
.cell:hover .v-keys kbd:last-child { animation: press 1.6s .15s var(--ease) infinite; }
@keyframes press { 0%, 40%, 100% { transform: none; box-shadow: 0 4px 0 #0a0b0f; } 20% { transform: translateY(3px); box-shadow: 0 1px 0 #0a0b0f; } }
.v-shield { width: 74px; height: 74px; border-radius: 22px; display: grid; place-items: center; border: 1px solid var(--border-2); background: radial-gradient(circle at 50% 0%, rgba(255, 181, 71, .18), transparent 70%), var(--bg-1); color: var(--amber); }
.v-shield svg { width: 32px; height: 32px; }
.v-orbit { position: relative; width: 74px; height: 74px; }
.v-orbit::before, .v-orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--border-2); }
.v-orbit::after { inset: 16px; border-style: solid; }
.v-orbit i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); animation: orbit 5s linear infinite; }
@keyframes orbit { from { transform: rotate(0) translateX(37px); } to { transform: rotate(360deg) translateX(37px); } }

/* ---------- Lab ---------- */
.lab-body { display: grid; grid-template-columns: 300px 1fr; }
.lab-side { padding: 20px; border-right: 1px solid var(--border); display: grid; gap: 20px; align-content: start; background: rgba(255, 255, 255, .01); }
.ctrl { display: grid; gap: 9px; min-width: 0; }
.ctrl > label, .ctrl > .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.ctrl output { font: 500 12.5px/1.4 var(--f-mono); color: #fff; }
.opts { display: grid; gap: 6px; }
.opts.c2 { grid-template-columns: 1fr 1fr; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts button { text-align: left; border: 1px solid var(--border); background: var(--surface); padding: 10px 11px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 500; color: #fff; line-height: 1.3; transition: border-color .2s, background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.opts button small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.opts button:hover { border-color: var(--border-2); background: var(--surface-2); }
.opts button:active { transform: scale(.97); }
.opts button[aria-pressed="true"] { border-color: rgba(255, 181, 71, .55); background: linear-gradient(180deg, rgba(255, 181, 71, .1), rgba(255, 106, 46, .04)); box-shadow: 0 0 0 3px rgba(255, 150, 60, .08); }
.opts.c3 button { text-align: center; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--sun), var(--amber) var(--p, 50%), rgba(255, 255, 255, .1) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 150, 60, .25), 0 2px 8px rgba(0, 0, 0, .6); transition: box-shadow .2s, transform .2s var(--ease-spring); }
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(255, 150, 60, .25), 0 2px 8px rgba(0, 0, 0, .6); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(255, 150, 60, .25); }
.lab-main { padding: 20px; display: grid; gap: 16px; min-width: 0; }
.lab-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.lab-head small { display: block; font-size: 12.5px; color: var(--muted); }
.lab-head strong { display: block; font: 500 clamp(30px, 3.6vw, 40px)/1.1 var(--f-mono); letter-spacing: -.045em; margin-top: 6px; color: #fff; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 3px; display: inline-block; }
.chart { position: relative; width: 100%; height: 300px; }
.chart canvas { width: 100%; height: 100%; }
.tip { position: absolute; pointer-events: none; background: rgba(20, 23, 30, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-2); color: #fff; font: 500 12px/1.5 var(--f-mono); padding: 8px 10px; border-radius: 10px; transform: translate(-50%, -115%); white-space: nowrap; opacity: 0; transition: opacity .15s; z-index: 3; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tip.show { opacity: 1; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kpi { padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi b { display: block; font: 500 17px/1.3 var(--f-mono); margin-top: 4px; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi b.up { color: var(--green); } .kpi b.down { color: var(--red); }
.flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { background-color: rgba(255, 181, 71, .14); } 100% { background-color: transparent; } }
.lab-desc { font-size: 13.5px; color: var(--text-2); padding: 11px 14px; border-radius: 10px; background: rgba(255, 181, 71, .05); border: 1px solid rgba(255, 181, 71, .14); display: flex; gap: 10px; }
.lab-desc svg { width: 16px; height: 16px; flex: none; color: var(--amber); margin-top: 2px; }

/* ---------- Risk ---------- */
.risk-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.risk-grid .head { margin-bottom: 30px; }
.risk-ctrls { display: grid; gap: 22px; padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.cone-body { padding: 16px; }
.cone-body .chart { height: 320px; }
.cone-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.cone-prob { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); }
.cone-prob .bar { flex: 1; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cone-prob .bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 9px; transition: width .7s var(--ease); }
.cone-prob b { font: 500 14px/1 var(--f-mono); color: #fff; min-width: 42px; text-align: right; }

/* ---------- Rule builder ---------- */
.rule-top { padding: 22px 22px 4px; }
.sentence { font-size: clamp(19px, 2.3vw, 27px); line-height: 2; letter-spacing: -.025em; color: #fff; font-weight: 500; }
.sentence select {
  -webkit-appearance: none; appearance: none; border: 1px solid rgba(255, 181, 71, .3); background-color: rgba(255, 181, 71, .08); color: var(--amber);
  font: inherit; font-weight: 500; padding: 0 30px 0 11px; margin: 0 2px; border-radius: 10px; cursor: pointer; line-height: 1.45; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23ffb547' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 12px; transition: background-color .2s, border-color .2s;
}
.sentence select:hover { background-color: rgba(255, 181, 71, .14); border-color: rgba(255, 181, 71, .55); }
.sentence select option { background: var(--surface-2); color: #fff; }
.rule-run { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 22px 20px; border-bottom: 1px solid var(--border); }
.rule-run .hint { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.rule-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.rule-body .chart { height: 260px; }
.rule-chart-w { padding: 16px; border-right: 1px solid var(--border); min-width: 0; }
.log { font: 400 12.5px/1.6 var(--f-mono); color: var(--text-2); height: 292px; overflow: auto; padding: 14px 16px; background: rgba(0, 0, 0, .2); }
.log p { padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); animation: feedIn .45s var(--ease); }
.log p:last-child { border-bottom: 0; }
.log .t { color: #555b69; margin-right: 8px; }
.log .b { color: var(--green); } .log .s { color: var(--red); } .log .w { color: var(--amber); }
.rule-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; border-top: 1px solid var(--border); }

/* ---------- Steps with beam ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow-beam { position: absolute; left: 16.6%; right: 16.6%; top: 47px; height: 1px; background: var(--border-2); overflow: hidden; }
.flow-beam::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--amber), var(--sun), transparent); animation: beam 3.2s var(--ease) infinite; }
.fstep { position: relative; text-align: center; padding: 0 16px; }
.fstep .ring { position: relative; width: 94px; height: 94px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border-2); box-shadow: inset 0 0 30px rgba(255, 150, 60, .05); transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-spring); }
.fstep .ring svg { width: 30px; height: 30px; color: var(--text-2); transition: color .4s; }
.fstep .ring span { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-2); font: 500 11.5px/24px var(--f-mono); text-align: center; color: #fff; }
.fstep:hover .ring { border-color: rgba(255, 181, 71, .5); box-shadow: inset 0 0 30px rgba(255, 150, 60, .15), 0 0 40px -10px rgba(255, 120, 50, .5); transform: translateY(-4px); }
.fstep:hover .ring svg { color: var(--amber); }
.fstep h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.025em; }
.fstep p { color: var(--text-2); font-size: 14.5px; max-width: 300px; margin: 0 auto; }

/* ---------- Clarity ---------- */
.clarity { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.clar { border-radius: 20px; border: 1px solid var(--border); padding: clamp(22px, 3vw, 32px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.clar h3 { font-size: 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; letter-spacing: -.025em; }
.clar h3 i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.clar.yes h3 i { background: rgba(61, 220, 151, .12); color: var(--green); }
.clar.no h3 i { background: rgba(255, 107, 107, .12); color: var(--red); }
.clar h3 i svg { width: 15px; height: 15px; }
.clar ul { list-style: none; padding: 0; margin: 0; display: grid; }
.clar li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--text-2); padding: 12px 0; border-top: 1px solid var(--border); }
.clar li svg { width: 16px; height: 16px; margin-top: 3px; }
.clar.yes li svg { color: var(--green); }
.clar.no li svg { color: var(--red); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .head { margin-bottom: 26px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, background-color .3s; overflow: hidden; }
.faq details[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; font-size: 16px; font-weight: 500; color: #fff; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-2); position: relative; transition: transform .4s var(--ease), background-color .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { transform: rotate(180deg); background: rgba(255, 181, 71, .12); border-color: rgba(255, 181, 71, .4); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 20px 20px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cinfo { position: relative; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), border-color .3s; }
a.cinfo:hover { transform: translateY(-3px); border-color: var(--border-2); }
.cinfo .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-2); color: var(--amber); margin-bottom: 14px; background: rgba(255, 255, 255, .02); }
.cinfo .ic svg { width: 17px; height: 17px; }
.cinfo small { font-size: 12.5px; color: var(--muted); }
.cinfo b { font-weight: 500; font-size: 15px; color: #fff; overflow-wrap: anywhere; }

/* ---------- Final CTA ---------- */
.cta { position: relative; border-radius: 28px; border: 1px solid var(--border-2); padding: clamp(44px, 7vw, 88px) clamp(20px, 4vw, 48px); text-align: center; overflow: hidden; isolation: isolate; background: var(--bg-1); }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 110, 45, .45), rgba(255, 170, 70, .1) 55%, transparent 75%); z-index: -1; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent); mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent); }
.cta h2 { font-size: clamp(34px, 5.4vw, 64px); margin: 18px auto 16px; max-width: 760px; }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 30px; font-size: 17px; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(80px, 10vw, 120px); border-top: 1px solid var(--border); padding: 56px 0 30px; font-size: 14px; color: var(--text-2); position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: 40px; padding-bottom: 40px; }
.foot .about { margin-top: 14px; max-width: 360px; color: var(--muted); }
.foot h3, .foot h4 { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 16px; letter-spacing: -.01em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.foot a:hover { color: #fff; }
.foot-risk { padding: 24px 0; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.foot-risk b { color: var(--text-2); font-weight: 500; }
.foot-risk a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--f-mono); color: var(--text-2); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.8s var(--ease) infinite; }
.foot-word { font-weight: 600; letter-spacing: -.06em; font-size: clamp(80px, 19vw, 260px); line-height: .8; text-align: center; margin-top: 40px; margin-bottom: -.12em; background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 440px; margin-left: auto; background: rgba(19, 22, 29, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); display: none; }
.cookie.show { display: block; animation: rise .6s var(--ease); }
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0; filter: blur(6px); } }
.cookie b { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.cookie p { font-size: 13.5px; color: var(--text-2); }
.cookie p a { color: #fff; }
.cookie .row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------- Legal / inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--border); position: relative; }
.crumbs { display: flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--f-mono); color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--text-2); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -.045em; }
.page-hero p { margin-top: 18px; color: var(--text-2); max-width: 660px; font-size: 17.5px; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legal { padding: clamp(48px, 6vw, 80px) 0 0; }
.legal .wrap { display: grid; grid-template-columns: 230px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; }
.toc b { font-size: 12.5px; font-weight: 500; color: #fff; margin-bottom: 10px; }
.toc a { text-decoration: none; font-size: 13.5px; color: var(--muted); padding: 6px 12px; border-left: 1px solid var(--border-2); transition: border-color .2s, color .2s; }
.toc a:hover, .toc a.is-active { border-color: var(--amber); color: #fff; }
.prose { max-width: 740px; min-width: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -.03em; margin: 48px 0 14px; scroll-margin-top: 110px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 span { font: 500 13px var(--f-mono); color: var(--amber); letter-spacing: 0; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 6px; }
.prose li::marker { color: var(--amber); }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 181, 71, .5); }
.prose strong { color: #fff; font-weight: 500; }
.tbl { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font: 500 12px var(--f-mono); color: var(--muted); background: rgba(255, 255, 255, .02); }
.callout { padding: 16px 18px; border-radius: 14px; background: rgba(255, 181, 71, .05); border: 1px solid rgba(255, 181, 71, .2); margin: 20px 0; display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.callout svg { width: 18px; height: 18px; color: var(--amber); margin-top: 3px; }
.callout p { color: var(--text); }

/* ---------- Thanks / 404 ---------- */
.solo { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 60px 0 40px; text-align: center; }
.solo .wrap { max-width: 860px; }
.solo h1 { font-size: clamp(42px, 7vw, 80px); margin: 26px 0 18px; letter-spacing: -.045em; }
.solo p.lead { font-size: 18px; color: var(--text-2); max-width: 560px; margin: 0 auto; }
.seal { position: relative; width: 96px; height: 96px; margin: 0 auto; }
.seal::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 130, 50, .35), transparent); animation: breathe 3s ease-in-out infinite; }
.seal .core { position: absolute; inset: 0; border-radius: 28px; background: var(--grad); background-origin: border-box; display: grid; place-items: center; color: #1a0d04; box-shadow: 0 20px 50px -10px rgba(255, 110, 40, .6), inset 0 1px 0 rgba(255, 255, 255, .5); animation: popIn .8s var(--ease-spring) both; }
.seal .core svg { width: 42px; height: 42px; }
.seal .core path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck .6s .5s var(--ease) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 44px 0 36px; text-align: left; }
.next > div { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.next .n { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; font: 500 12px var(--f-mono); color: var(--amber); background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .25); }
.next h2, .next h3 { font-size: 16.5px; margin: 14px 0 6px; letter-spacing: -.02em; }
.next p { font-size: 13.5px; color: var(--text-2); }
.next > div.done .n { background: rgba(61, 220, 151, .12); color: var(--green); border-color: rgba(61, 220, 151, .3); }
.solo .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.big404 { font: 600 clamp(120px, 26vw, 260px)/.85 var(--f); letter-spacing: -.08em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.big404 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(4deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-main { grid-template-columns: 1fr; }
  .feed { display: none; }
  .lab-body { grid-template-columns: 1fr; }
  .lab-side { border-right: 0; border-bottom: 1px solid var(--border); grid-template-columns: 1fr 1fr; }
  .lab-side .full { grid-column: 1 / -1; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .access-grid { grid-template-columns: 1fr 440px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .glow-card { max-width: 560px; width: 100%; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .access-grid, .risk-grid, .faq-grid { grid-template-columns: 1fr; }
  .access-grid .glow-card { max-width: 560px; width: 100%; margin: 0 auto; }
  .faq-side { position: static; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.wide { grid-column: span 2; }
  .rule-body { grid-template-columns: 1fr; }
  .rule-chart-w { border-right: 0; border-bottom: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .legal .wrap { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .toc b { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top { padding-top: 10px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-actions .btn { width: 100%; }
  .app { --t: 0 !important; transform: none; }
  .app-main { padding: 12px; gap: 10px; }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kc { padding: 11px; }
  .kc b { font-size: 16px; }
  .dome-sky { min-height: 220px; }
  .card-h { flex-wrap: wrap; }
  .win-bar .crumb { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--border); }
  .stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .stats b { font-size: 22px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .bento { grid-template-columns: 1fr; }
  .cell.wide { grid-column: auto; }
  .cell { min-height: 0; padding: 22px; }
  .lab-side { grid-template-columns: 1fr; padding: 16px; }
  .lab-main { padding: 16px; }
  .chart { height: 240px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cone-body { padding: 12px; }
  .cone-body .chart { height: 250px; }
  .cone-out, .rule-sum { grid-template-columns: 1fr; }
  .risk-ctrls { padding: 18px; }
  .rule-top { padding: 18px 16px 4px; }
  .rule-run { padding: 14px 16px 18px; }
  .rule-run .btn { width: 100%; }
  .rule-chart-w { padding: 12px; }
  .rule-body .chart { height: 220px; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-beam { left: 46px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; }
  .flow-beam::after { top: -40%; left: 0; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--amber), var(--sun), transparent); animation-name: beamY; }
  .fstep { display: grid; grid-template-columns: 94px 1fr; gap: 18px; text-align: left; padding: 0; align-items: center; }
  .fstep .ring { margin: 0; }
  .fstep p { margin: 0; }
  .clarity { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .next { grid-template-columns: 1fr; }
  .cookie { left: 10px; right: 10px; bottom: 10px; }
}
@keyframes beamY { to { top: 110%; } }

/* =========================================================
   Interaction layer
   ========================================================= */
/* scroll progress */
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 90; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 12px rgba(255, 140, 60, .7); pointer-events: none; }

/* back to top with progress ring */
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-2); background: rgba(19, 22, 29, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: rgba(255, 181, 71, .5); }
.totop svg.arrow { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.totop:hover svg.arrow { transform: rotate(-90deg) translateX(2px); }
.totop svg.ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke: #ffb547; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(24, 27, 35, .95); border: 1px solid var(--border-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); font-size: 13.5px; color: #fff; animation: toastIn .45s var(--ease-spring); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.toast i { width: 20px; height: 20px; border-radius: 50%; background: rgba(61, 220, 151, .15); color: var(--green); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* command palette */
.k-trigger { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.k-trigger:hover { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.k-trigger svg { width: 14px; height: 14px; }
.cmdk { position: fixed; inset: 0; z-index: 150; display: none; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; background: rgba(4, 5, 8, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cmdk.open { display: flex; animation: fadeIn .2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }
.cmdk-panel { width: 100%; max-width: 580px; border-radius: 18px; border: 1px solid var(--border-2); background: rgba(17, 19, 25, .97); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05); overflow: hidden; animation: popPanel .35s var(--ease-spring); }
@keyframes popPanel { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.cmdk-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.cmdk-in input { flex: 1; height: 56px; border: 0; background: transparent; outline: none; font-size: 16px; color: #fff; min-width: 0; }
.cmdk-in input::placeholder { color: #565b68; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 420px); overflow: auto; }
.cmdk-group { font: 500 11px/1 var(--f-mono); color: var(--muted); padding: 12px 10px 6px; text-transform: uppercase; letter-spacing: .06em; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.cmdk-item .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); flex: none; color: var(--text-2); }
.cmdk-item .ic svg { width: 14px; height: 14px; }
.cmdk-item .go { margin-left: auto; font: 500 11px var(--f-mono); color: var(--muted); opacity: 0; transition: opacity .15s; }
.cmdk-item.on { background: rgba(255, 255, 255, .06); color: #fff; }
.cmdk-item.on .go { opacity: 1; }
.cmdk-item.on .ic { border-color: rgba(255, 181, 71, .4); color: var(--amber); }
.cmdk-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 6px; }
body.locked { overflow: hidden; }

/* hero cursor glow + word reveal */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(520px circle at var(--hx, 50%) var(--hy, 30%), rgba(255, 130, 60, .09), transparent 60%); }
.hero:hover::before { opacity: 1; }
.js .hero h1[data-reveal] { opacity: 1; transform: none; filter: none; }
.js .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em) rotate(2deg); filter: blur(10px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); transition-delay: var(--wd, 0s); }
.js .hero h1.is-in .w { opacity: 1; transform: none; filter: none; }

/* tilt cards */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), border-color .3s, opacity .9s var(--ease), filter .9s var(--ease); }
.tilt.tilting { transition: transform .08s linear, border-color .3s; }

/* magnetic */
.magnetic { transition: transform .35s var(--ease), box-shadow .25s var(--ease); }

/* button loading */
.btn.loading { pointer-events: none; color: transparent !important; }
.btn.loading svg { opacity: 0; }
.btn.loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2px solid rgba(26, 13, 4, .3); border-top-color: #1a0d04; animation: spin .7s linear infinite; z-index: 2; }

/* email suggestion */
.hint { display: none; margin-top: 7px; font-size: 12.5px; color: var(--text-2); }
.hint.show { display: block; animation: feedIn .35s var(--ease); }
.hint button { border: 0; background: none; padding: 0; color: var(--amber); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* hero app extras */
.app-side .side-item[data-go] { cursor: pointer; }
.side-search { cursor: pointer; transition: border-color .2s, color .2s; }
.side-search:hover { border-color: var(--border-2); color: var(--text-2); }
.dome-tip { position: absolute; z-index: 3; pointer-events: none; padding: 6px 9px; border-radius: 8px; background: rgba(20, 23, 30, .92); border: 1px solid var(--border-2); font: 500 11.5px/1.4 var(--f-mono); color: #fff; transform: translate(-50%, -130%); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.dome-tip.show { opacity: 1; }
.dome-sky canvas { cursor: crosshair; }

/* chips */
.chip { transition: border-color .25s, color .25s, background-color .25s; }
.chip:hover { border-color: rgba(255, 181, 71, .35); color: #fff; background: rgba(255, 181, 71, .05); }

/* bento interactive toggles */
.v-toggles { display: grid; gap: 8px; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-1); font: 500 12.5px var(--f-mono); color: var(--text-2); cursor: pointer; user-select: none; transition: border-color .2s, color .2s; text-align: left; }
.tg:hover { border-color: var(--border-2); }
.tg .sw { width: 32px; height: 18px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background-color .3s var(--ease); flex: none; }
.tg .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-spring); box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.tg[aria-checked="true"] { color: #fff; }
.tg[aria-checked="true"] .sw { background: var(--amber); }
.tg[aria-checked="true"] .sw::after { transform: translateX(14px); }

@media (max-width: 1060px) { .k-trigger .lbl { display: none; } }
@media (max-width: 720px) {
  .totop { right: 12px; bottom: 12px; width: 42px; height: 42px; }
  .cmdk { padding-top: 10vh; }
  .cmdk-foot { display: none; }
}
@media (hover: none) { .tilt { transform: none !important; } .magnetic { transform: none !important; } }

/* =========================================================
   Living layer
   ========================================================= */
/* starfield canvas + cursor glow */
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(closest-side, rgba(255, 140, 60, .07), transparent 70%); transform: translate3d(-999px, -999px, 0); transition: opacity .4s; mix-blend-mode: screen; }

/* aurora blobs in hero */
.aurora { position: absolute; inset: -10% 0 auto; height: 900px; z-index: -1; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.aurora i:nth-child(1) { width: 520px; height: 420px; left: 4%; top: 6%; background: rgba(255, 90, 42, .35); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 460px; height: 380px; right: 2%; top: 0; background: rgba(255, 181, 71, .25); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 380px; height: 320px; left: 40%; top: 32%; background: rgba(140, 155, 255, .16); animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-120px, -70px) scale(1.2); } }

/* rotating pill text */
.pill .rot { display: inline-block; min-width: 1ch; white-space: nowrap; }
.pill .rot::after { content: ""; display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--amber); animation: blink 1s steps(1) infinite; }

/* floating event notes around the app mockup */
.float-note { position: absolute; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(20, 23, 30, .86); border: 1px solid var(--border-2); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; color: #fff; pointer-events: none; animation: noteIn .7s var(--ease-spring) both; white-space: nowrap; }
.float-note.out { animation: noteOut .5s var(--ease) forwards; }
.float-note i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 12px; flex: none; }
.float-note i.g { background: rgba(61, 220, 151, .14); color: var(--green); }
.float-note i.r { background: rgba(255, 107, 107, .14); color: var(--red); }
.float-note i.a { background: rgba(255, 181, 71, .14); color: var(--amber); }
.float-note small { display: block; font: 400 11px var(--f-mono); color: var(--muted); }
.float-note.l { left: -28px; } .float-note.r { right: -28px; }
@keyframes noteIn { from { opacity: 0; transform: translateY(16px) scale(.92); filter: blur(6px); } }
@keyframes noteOut { to { opacity: 0; transform: translateY(-12px) scale(.96); filter: blur(4px); } }

/* live synthetic ticker */
.ticker { display: flex; align-items: center; gap: 0; margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .015); overflow: hidden; }
.ticker .lbl { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-right: 1px solid var(--border); font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ticker .lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 1.6s var(--ease) infinite; }
.ticker .items { display: flex; flex: 1; min-width: 0; overflow: hidden; }
.tk { flex: 1; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; font: 500 13px var(--f-mono); white-space: nowrap; border-right: 1px solid var(--border); transition: background-color .6s; }
.tk:last-child { border-right: 0; }
.tk b { color: #fff; font-weight: 500; }
.tk span { color: var(--text-2); }
.tk em { font-style: normal; font-size: 12px; }
.tk.fu { background-color: rgba(61, 220, 151, .07); } .tk.fd { background-color: rgba(255, 107, 107, .07); }

/* lab auto demo */
.demo-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, .3); background: rgba(255, 181, 71, .07); font: 500 11.5px var(--f-mono); color: var(--amber); cursor: pointer; position: relative; overflow: hidden; }
.demo-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: ping 1.6s var(--ease) infinite; box-shadow: 0 0 0 0 rgba(255, 181, 71, .6); }
.demo-pill .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.demo-pill.paused { color: var(--muted); border-color: var(--border-2); background: transparent; }
.demo-pill.paused i { background: var(--muted); animation: none; }
.demo-pill.paused .bar { display: none; }
.opts button.auto { animation: autoPick .6s var(--ease); }
@keyframes autoPick { 0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .5); } 100% { box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } }

/* continuous bento motion */
.is-in .v-lines path { animation: drawLoop 7s var(--ease) infinite; }
.is-in .v-lines path:nth-child(2) { animation-delay: .3s; }
.is-in .v-lines path:nth-child(3) { animation-delay: .6s; }
@keyframes drawLoop { 0% { stroke-dashoffset: 1; opacity: 1; } 40%, 86% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.v-fan { animation: fan 3.2s ease-in-out infinite alternate; }
.badge i { animation: glowDot 2.4s ease-in-out infinite; }
@keyframes glowDot { 50% { box-shadow: 0 0 2px var(--amber); opacity: .55; } }

/* shimmering gradient on emphasised words */
h1 em, h2 em { background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite alternate; }
.js .hero h1 em.w { animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* rotating border on app mockup */
.app { position: relative; }
.app::before { content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; pointer-events: none; z-index: 2; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(255, 181, 71, .7) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: angle 8s linear infinite; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes angle { to { --ang: 360deg; } }

@media (max-width: 960px) {
  .float-note.l { left: 8px; } .float-note.r { right: 8px; }
  .ticker .tk:nth-child(n+3) { display: none; }
}
@media (max-width: 720px) {
  .ticker { flex-direction: column; align-items: stretch; }
  .ticker .lbl { border-right: 0; border-bottom: 1px solid var(--border); }
  .ticker .tk:nth-child(n+2) { display: none; }
  .aurora i { filter: blur(60px); }
  .cursor-glow { display: none; }
  .float-note { display: none; }
}
/* sticky mobile CTA */
.m-cta { display: none; }
@media (max-width: 720px) {
  .m-cta {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 75;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border-radius: 18px; border: 1px solid var(--border-2); background: rgba(17, 19, 25, .9); text-decoration: none; color: #fff;
    backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .95), 0 0 40px -18px rgba(255, 120, 50, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease-spring), opacity .3s;
  }
  .cta-on .m-cta { transform: none; opacity: 1; pointer-events: auto; }
  .cookie-open .m-cta { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .m-txt { min-width: 0; }
  .m-txt b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-txt small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
  .m-txt small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 1.6s var(--ease) infinite; }
  .m-cta .btn { flex: none; --h: 40px; }
  .cta-on .totop { bottom: 86px; }
  .cta-on .toasts { bottom: 90px; }
}

/* hero animated background: sunrise over a wave terrain */
.hero { isolation: isolate; }
.hero-fx {
  position: absolute; left: 0; top: -96px; width: 100%; height: 900px; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 78%, transparent 100%);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.hero-fx.on { opacity: 1; }

/* form highlight after a simulation */
.glow-card.pulse { animation: formPulse 1.6s var(--ease) 2; }
@keyframes formPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 150, 60, .55), 0 40px 100px -30px rgba(0, 0, 0, .95); } 100% { box-shadow: 0 0 0 22px rgba(255, 150, 60, 0), 0 40px 100px -30px rgba(0, 0, 0, .95); } }
.glow-card.pulse::before { animation-duration: 1.6s; }

@media (prefers-reduced-motion: reduce) { .aurora i, .v-fan, h1 em, h2 em, .app::before { animation: none !important; } }
