/* ============ Tokens ============ */
:root {
  --bg: #030b14;
  --bg-2: #06131f;
  --ink: #eef3ff;
  --ink-2: rgba(238, 243, 255, .74);
  --muted: rgba(238, 243, 255, .52);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --cyan: #2ee59d;
  --violet: #f7c948;
  --mint: #2ee59d;
  --gold: #f7c948;
  --emerald: #0f9b6c;
  --rose: #ff6b8b;
  --grad: linear-gradient(120deg, #2ee59d 0%, #b8f5a0 45%, #f7c948 100%);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --pad: clamp(16px, 4vw, 48px);
  --font: "Vazirmatn", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "ss01";
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(46, 229, 157, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

em { font-style: normal; }
.shine {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s var(--ease) infinite alternate;
}
@keyframes shine { to { background-position: 100% 0; } }

/* ============ Stage / texture ============ */
#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.stage-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 30% 35%, rgba(46, 229, 157, .18), transparent 60%),
    radial-gradient(45vw 45vw at 70% 60%, rgba(247, 201, 72, .2), transparent 60%);
  opacity: 0; transition: opacity 1s var(--ease);
}
.no-webgl .stage-fallback { opacity: 1; }
.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: .05; 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 type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .footer { position: relative; z-index: 2; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: 64px; height: 64px; }
.loader-mark rect { fill: var(--gold); transform-box: fill-box; transform-origin: bottom; animation: grow 1.1s var(--ease) infinite alternate; }
.loader-mark rect:nth-child(2) { animation-delay: .15s; }
.loader-mark rect:nth-child(3) { animation-delay: .3s; }
@keyframes grow { from { transform: scaleY(.25); opacity: .5; } }
.loader-text { font-weight: 800; letter-spacing: .02em; color: var(--ink-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Nav ============ */
.nav-wrap {
  position: fixed; top: 18px; inset-inline: 0; z-index: 30;
  display: flex; justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
  transition: transform .6s var(--ease);
}
.nav-wrap.hide { transform: translateY(-130%); }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 7px;
  padding-inline-start: 18px;
  border-radius: 999px;
  background: rgba(6, 18, 30, .55);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 50px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; }
.brand-mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(247,201,72,.35)); }
.brand-mark rect { fill: var(--gold); }
.brand-mark path { fill: none; stroke: var(--mint); stroke-width: 5; stroke-linecap: round; }
.nav-links { display: flex; list-style: none; margin: 0 14px; padding: 0; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; color: var(--ink-2);
  transition: color .4s var(--ease), background .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: var(--ink); color: var(--bg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nav-cta:hover { box-shadow: 0 0 0 4px rgba(46,229,157,.18), 0 10px 30px -10px rgba(46,229,157,.6); }
.nav-cta:active { transform: scale(.97); }

.burger {
  display: none; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.08);
}
.burger span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .6s var(--ease), top .6s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.menu-open .burger span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 28px 40px;
  background: rgba(3, 11, 20, .82);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; line-height: 1.5;
  transform: translateY(110%); transition: transform .8s var(--ease);
}
.menu a small { font-size: .8rem; color: var(--cyan); font-weight: 400; }
.menu .menu-ig { margin-top: 32px; color: var(--muted); font-family: var(--mono); font-size: .95rem; transform: none; opacity: 0; transition: opacity .8s .4s var(--ease); }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .menu a { transform: none; }
.menu-open .menu .menu-ig { opacity: 1; }
.menu li:nth-child(2) a { transition-delay: .05s; }
.menu li:nth-child(3) a { transition-delay: .1s; }
.menu li:nth-child(4) a { transition-delay: .15s; }
.menu li:nth-child(5) a { transition-delay: .2s; }
.menu-open { overflow: hidden; }

/* ============ Common ============ */
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.container.narrow { width: min(860px, 100%); }
.section { position: relative; padding-block: clamp(96px, 14vw, 180px); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.h2 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5.2vw, 4rem);
  line-height: 1.22; font-weight: 850; letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 0; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600; color: var(--cyan);
  padding: 4px 11px; border-radius: 999px; background: rgba(46, 229, 157, .08); border: 1px solid rgba(46,229,157,.18);
  margin-bottom: 16px;
}
.note { margin: 14px 0 0; font-size: .78rem; color: var(--muted); }

/* Double-bezel */
.bezel {
  position: relative;
  padding: 6px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  border: 1px solid var(--line);
}
.bezel > .core {
  position: relative; height: 100%;
  border-radius: calc(var(--r-xl) - 6px);
  background: linear-gradient(180deg, rgba(9, 24, 36, .92), rgba(4, 14, 24, .94));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08);
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; padding-inline-start: 24px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem;
  transition: transform .5s var(--ease), box-shadow .6s var(--ease), background .5s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97) !important; }
.btn-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .6s var(--ease);
}
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-icon { transform: translate(-3px, -2px) scale(1.06); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 0 18px 40px -18px rgba(46,229,157,.7); }
.btn-primary .btn-icon { background: var(--bg); color: var(--cyan); }
.btn-primary:hover { box-shadow: 0 0 0 5px rgba(46,229,157,.16), 0 24px 50px -16px rgba(46,229,157,.75); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost .btn-icon { background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { font-size: 1.12rem; padding-inline-start: 30px; }
.btn-lg .btn-icon { width: 48px; height: 48px; }
.btn-block { width: 100%; justify-content: space-between; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(48px); filter: blur(8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 120px var(--pad) 120px;
}
.hero-inner { position: relative; z-index: 2; width: min(1240px, 100%); margin-inline: auto; }
.hero-title {
  margin: 0 0 28px;
  font-size: clamp(2.9rem, 8.4vw, 7.4rem);
  line-height: 1.12; font-weight: 900; letter-spacing: -.02em;
  max-width: 11ch;
  text-shadow: 0 4px 40px rgba(3,11,20,.65);
}
.hero-title .line { display: block; overflow: hidden; padding-block: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease-out); }
.is-ready .hero-title .line > span { transform: none; }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-sub { max-width: 520px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); margin: 0 0 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-chips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; padding-inline-start: 8px;
  border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(6, 18, 30, .6); border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 1.2s var(--ease-out);
  will-change: transform;
}
.is-ready .chip { opacity: 1; }
.is-ready .chip-b { transition-delay: .25s; }
.is-ready .chip-c { transition-delay: .5s; }
.chip-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,229,157,.12); color: var(--cyan); }
.chip-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chip-a { left: 9%; top: 24%; }
.chip-b { left: 30%; bottom: 20%; }
.chip-c { left: 4%; bottom: 36%; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; color: var(--muted);
}
.mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2); display: flex; justify-content: center; padding-top: 6px; }
.mouse i { width: 3px; height: 7px; border-radius: 3px; background: var(--cyan); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Ticker ============ */
.ticker {
  position: relative; z-index: 2; overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(3,11,20,.55);
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 38s linear infinite; }
.ticker-track span { font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 800; white-space: nowrap; color: rgba(238,243,255,.85); }
.ticker-track i { font-style: normal; color: var(--cyan); font-size: .9rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%); } }

/* ============ Bento ============ */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(250px, auto);
}
.b-1 { grid-column: span 7; grid-row: span 2; }
.b-2 { grid-column: span 5; }
.b-3 { grid-column: span 5; }
.bento h3 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.4; font-weight: 800; text-wrap: balance; }
.bento p { margin: 0; color: var(--ink-2); }
.hl { color: var(--cyan); }
.counter { display: block; margin-top: 22px; font-size: .8rem; color: var(--muted); }
.b-1 .core { display: flex; flex-direction: column; }

/* tilt */
.tilt { transform-style: preserve-3d; transition: transform .9s var(--ease), opacity 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
.tilt .core::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(46,229,157,.12), transparent 45%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.tilt:hover .core::before { opacity: 1; }
.tilt .core > * { position: relative; z-index: 1; }

/* ============ Timeline ============ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 34px; }
.tl-progress {
  position: absolute; top: 0; bottom: 0; right: 27px; width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.tl-progress span {
  position: absolute; top: 0; inset-inline: 0; height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px var(--cyan);
  transform-origin: top; transform: scaleY(var(--p, 0));
  border-radius: 2px;
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; align-items: start; }
.tl-node {
  position: sticky; top: 45vh;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: .95rem; font-weight: 700; color: var(--muted);
  transition: all .7s var(--ease);
  z-index: 1;
}
.tl-item.lit .tl-node { color: var(--bg); background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(46,229,157,.15), 0 0 30px rgba(46,229,157,.6); }
.tl-item h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 800; }
.tl-item p { margin: 0; color: var(--ink-2); max-width: 640px; }
.tl-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-meta span { font-size: .8rem; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--ink-2); }

/* ============ Lab ============ */
.lab-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.lab-ba { grid-column: span 8; }
.lab-phone { grid-column: span 4; grid-row: span 2; }
.lab-dash { grid-column: span 4; }
.lab-clinic { grid-column: span 4; }
.lab-whale { grid-column: span 12; }
.lab-head h3 { margin: 0 0 6px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; }
.lab-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.lab-head { margin-bottom: 22px; }

/* before / after */
.ba {
  position: relative; border-radius: 1.2rem; overflow: hidden;
  aspect-ratio: 16 / 8.2; background: var(--bg-2);
  user-select: none; touch-action: pan-y;
  border: 1px solid var(--line);
}
.ba-pane { position: absolute; inset: 0; }
.ba-before-pane { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #f4f6f5; overflow: hidden; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: #fff; box-shadow: 0 0 20px rgba(46,229,157,.8);
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(3,11,20,.65); border: 1.5px solid #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ba-handle svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
.ba-label { position: absolute; top: 14px; padding: 4px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; pointer-events: none; }
.l-before { left: 14px; top: auto; bottom: 14px; background: rgba(3,11,20,.8); }
.l-after { right: 14px; background: var(--mint); color: var(--bg); }
.l-before { color: #fff; }

/* phone */
.lab-phone .core { display: flex; flex-direction: column; }
.phone-stage { flex: 1; display: grid; place-items: center; perspective: 1200px; padding: 10px 0 6px; }
.phone {
  position: relative; width: min(250px, 78%); aspect-ratio: 9 / 19;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(145deg, #2a3150, #0b0f1e 50%, #1c2240);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), inset 0 0 0 1.5px rgba(255,255,255,.08), 0 50px 80px -30px rgba(0,0,0,.9), 0 0 70px -10px rgba(46,229,157,.35);
  transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 6deg));
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; border-radius: 20px; background: #000; }
.sound {
  position: absolute; bottom: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff;
}
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* dashboard */
.dash { display: grid; gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi small { color: var(--muted); font-size: .72rem; }
.kpi b { font-size: 1.7rem; font-weight: 900; color: var(--mint); line-height: 1.3; }
.kpi span { color: var(--muted); font-size: .66rem; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr 18px; gap: 10px; align-items: center; font-size: .86rem; }
.bar { height: 12px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #0d8a63, var(--mint)); transform-origin: right; transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.bar i.gold { background: linear-gradient(90deg, #c08b1c, var(--gold)); }
.in .bar i { transform: scaleX(1); }
.bar-row:nth-child(2) i { transition-delay: .15s; }
.bar-row:nth-child(3) i { transition-delay: .3s; }
.bar-row b { font-weight: 800; }
.insight { margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(242,195,91,.08); color: #ffe3a6; font-size: .86rem; }
.insight svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* clinic */
.slots { border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 14px; }
.slots-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots-grid button {
  padding: 10px 0; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: .92rem; font-weight: 600;
  transition: all .5s var(--ease);
}
.slots-grid button:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.slots-grid button.picked { background: var(--cyan); color: var(--bg); border-color: var(--cyan); transform: scale(.96); }
.slots-grid button.taken, .slots-grid button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slots-grid button.vanish { transform: scale(.6); opacity: 0; }
.slots-msg { margin: 12px 0 0; font-size: .84rem; color: var(--ink-2); min-height: 1.6em; }

/* whale */
.whale-core { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px 40px; align-items: center; }
.whale-core .tag, .whale-core h3, .whale-core p { grid-column: 1; }
.whale-core h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 900; color: var(--gold); }
.whale-core p { margin: 0; color: var(--ink-2); }
.sheet { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 8px; direction: ltr; font-family: var(--mono); font-size: .85rem; }
.cell { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(242,195,91,.22); background: rgba(242,195,91,.05); color: #ffe3a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell:nth-child(2) { margin-left: 40px; }
.cell:nth-child(3) { margin-left: 16px; }
.cell.warn { color: var(--rose); border-color: rgba(255,107,139,.4); background: rgba(255,107,139,.07); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 50% { box-shadow: 0 0 24px rgba(255,107,139,.35); } }

/* ============ Method ============ */
.method-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.method-text { position: sticky; top: 120px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.stat { padding: 18px 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .82rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps .core { display: flex; gap: 20px; align-items: flex-start; }
.step-n { font-size: 1rem; font-weight: 800; color: var(--cyan); padding-top: 4px; }
.steps h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-2); }

/* ============ Course / form ============ */
.course-shell { --r-xl: 2.5rem; }
.course-core {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px);
  padding: clamp(26px, 5vw, 64px) !important;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(46,229,157,.12), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(139,123,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(9,24,36,.95), rgba(4,14,24,.96)) !important;
}
.course-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.course-points li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.course-points li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(91,242,181,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235bf2b5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }

.form { position: relative; display: grid; gap: 18px; align-content: start; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  width: 100%; height: 56px; padding: 0 18px;
  border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(3,11,20,.6); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field input::placeholder { color: rgba(238,243,255,.3); }
.field input:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46,229,157,.12); background: rgba(3,11,20,.85); }
.field.bad input, .field.bad select { border-color: var(--rose); }
.select { position: relative; }
.select::after { content: ""; position: absolute; left: 20px; top: 50%; width: 8px; height: 8px; border-left: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(-45deg); pointer-events: none; }
.select select { cursor: pointer; }
.select select option { background: #06131f; }
.err { color: var(--rose); font-size: .8rem; min-height: 0; }
.form-note { margin: 0; font-size: .78rem; color: var(--muted); text-align: center; }
.form-success {
  position: absolute; inset: -6px; border-radius: 24px;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px;
  background: rgba(4,14,24,.96);
  animation: pop .8s var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success h3 { margin: 12px 0 0; font-size: 1.6rem; }
.form-success p { margin: 0; color: var(--ink-2); }
.ok-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(91,242,181,.12); box-shadow: 0 0 0 8px rgba(91,242,181,.06), 0 0 50px rgba(91,242,181,.35); }
.ok-ring svg { width: 34px; height: 34px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 22px; border: 1px solid var(--line); background: rgba(6,18,30,.94); transition: border-color .5s var(--ease), background .5s var(--ease); }
.faq details[open] { border-color: rgba(46,229,157,.3); background: rgba(9,24,36,.9); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; font-size: 1.1rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(255,255,255,.06); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--ink-2); }

/* ============ CTA ============ */
.cta-box { text-align: center; display: grid; justify-items: center; gap: 26px; padding-block: 40px; }
.cta-title { margin: 0; font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 900; line-height: 1.2; text-wrap: balance; }
.cta-box .lead { margin-bottom: 14px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 300px; font-size: .92rem; }
.footer h4 { margin: 4px 0 16px; font-size: .92rem; color: var(--ink-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: .92rem; transition: color .4s var(--ease); }
.footer ul a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 28px; margin-top: 50px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ver { color: var(--mint); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav { gap: 10px; }
  .lab-ba { grid-column: span 12; }
  .lab-phone { grid-column: span 6; grid-row: span 2; }
  .lab-dash, .lab-clinic { grid-column: span 6; }
  .chip-b { display: none; }
}
@media (max-width: 860px) {
  .bento, .lab-grid { grid-template-columns: 1fr; }
  .bento > *, .lab-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .whale-core { grid-template-columns: 1fr; }
  .sheet { grid-column: 1; grid-row: auto; }
  .sheet { margin-top: 14px; }
  .method-split, .course-core { grid-template-columns: 1fr; }
  .method-text { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .phone { --ry: 0deg !important; --rx: 0deg !important; }
  .chip { display: none; }
}
@media (max-width: 560px) {
  .nav { padding-inline-start: 14px; }
  .nav-cta { padding: 9px 14px; font-size: .84rem; }
  .hero { padding-top: 110px; align-items: flex-end; padding-bottom: 110px; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat { padding: 14px 12px; }
  .tl-item { grid-template-columns: 40px 1fr; gap: 14px; }
  .tl-node { width: 40px; height: 40px; font-size: .75rem; }
  .tl-progress { right: 19px; }
  .kpi b { font-size: 1.4rem; }
  .faq summary { padding: 18px 20px; font-size: 1rem; }
  .faq details p { padding: 0 20px 20px; }
  .cell:nth-child(2), .cell:nth-child(3) { margin-left: 0; }
}

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

/* ============ Brand v2: data & dashboards ============ */
.muted { color: var(--muted); font-size: .92rem; }
.scatter { display: inline-block; color: rgba(238,243,255,.5); letter-spacing: .04em; }
.hero-title { max-width: 12ch; }
.hero-tools { display: flex; align-items: center; gap: 18px; margin-top: 44px; color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.tool { display: inline-flex; align-items: center; gap: 8px; direction: ltr; }
.tool b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; }
.tool .x { background: #107c41; color: #fff; }
.tool .pbi { display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 3px; }
.tool .pbi i { width: 4px; background: var(--gold); border-radius: 1px; }
.tool .pbi i:nth-child(1) { height: 7px; } .tool .pbi i:nth-child(2) { height: 11px; } .tool .pbi i:nth-child(3) { height: 15px; }
.tool .gs { background: #0f9d58; }
.tool .gs::after { content: ""; width: 10px; height: 8px; border: 1.5px solid #fff; border-radius: 1px; }
.hero-tools .sep { width: 1px; height: 14px; background: var(--line-2); }
.chip b.up { color: var(--mint); font-size: .7rem; }
.chip-ico.gold { background: rgba(247,201,72,.12); color: var(--gold); }

/* pains */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain-card { display: flex; flex-direction: column; min-height: 360px; }
.pain-card h3 { margin: 18px 0 10px; font-size: 1.35rem; font-weight: 800; }
.pain-card p { margin: 0; color: var(--ink-2); }
.pain-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(46,229,157,.18), rgba(46,229,157,.04)); border: 1px solid rgba(46,229,157,.25); color: var(--mint); }
.pain-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.files { margin-top: auto; padding-top: 24px; display: grid; gap: 6px; }
.files i { font-style: normal; font-size: .75rem; color: var(--muted); padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files i:nth-child(2) { margin-inline-end: 10px; } .files i:nth-child(3) { margin-inline-end: 20px; color: var(--rose); border-color: rgba(255,107,139,.3); }
.week { margin-top: auto; padding-top: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week i { aspect-ratio: 1; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.week i.on { background: rgba(255,107,139,.18); border-color: rgba(255,107,139,.4); animation: blink 2.4s var(--ease) infinite; }
.fog-bars { margin-top: auto; padding-top: 24px; height: 120px; display: flex; align-items: flex-end; gap: 10px; filter: blur(4px); opacity: .55; transition: filter 1s var(--ease), opacity 1s var(--ease); }
.fog-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(247,201,72,.7), rgba(46,229,157,.25)); }
.tilt:hover .fog-bars { filter: none; opacity: 1; }
.pain-turn { margin: clamp(56px, 8vw, 100px) 0 0; text-align: center; font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-weight: 900; }

/* mini dashboard */
.mini-dash { margin-top: 26px; flex: 1; display: grid; grid-template-columns: 1fr 130px; grid-template-rows: auto 1fr; gap: 12px; padding: 16px; border-radius: 1.2rem; background: rgba(3,11,20,.6); border: 1px solid var(--line); min-height: 260px; }
.md-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md-kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); display: grid; }
.md-kpis small { font-size: .7rem; color: var(--muted); }
.md-kpis b { font-size: 1.4rem; font-weight: 900; line-height: 1.4; }
.md-kpis em { font-style: normal; font-size: .7rem; color: var(--mint); }
.md-kpis em.dn { color: var(--rose); }
.md-chart { width: 100%; height: 100%; min-height: 120px; }
.md-chart .ln { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s .3s var(--ease-out); }
.in .md-chart .ln { stroke-dashoffset: 0; }
.md-donut { position: relative; display: grid; place-items: center; }
.md-donut svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.md-donut span { position: absolute; text-align: center; font-weight: 900; font-size: 1.1rem; line-height: 1.2; }
.md-donut small { display: block; font-size: .62rem; color: var(--muted); font-weight: 500; }

/* merge */
.merge { margin-top: 22px; display: grid; grid-template-columns: auto 80px 1fr; align-items: center; gap: 4px; }
.m-src { display: grid; gap: 10px; }
.m-src i { font-style: normal; font-size: .8rem; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); text-align: center; }
.m-lines { width: 80px; height: 90px; transform: scaleX(-1); }
.m-lines path { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-dasharray: 4 5; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.m-out { justify-self: start; padding: 12px 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(46,229,157,.2), rgba(46,229,157,.05)); border: 1px solid rgba(46,229,157,.35); font-weight: 800; font-size: .9rem; line-height: 1.5; text-align: center; }

/* auto */
.auto { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.auto-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(247,201,72,.1); border: 1px solid rgba(247,201,72,.3); color: var(--gold); font-family: var(--mono); font-size: .8rem; }
.auto-pill i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: rot 1.4s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.auto-txt { font-size: .86rem; color: var(--ink-2); }
.auto-txt::before { content: "✓ "; color: var(--mint); }

/* before/after panes */
.ba-after-pane { padding: 52px 18px 18px; display: grid; grid-template-rows: auto 1fr; gap: 12px; background: radial-gradient(500px 300px at 80% 0%, rgba(46,229,157,.12), transparent 60%), #071624; }
.ad-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ad-kpi { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: grid; }
.ad-kpi small { font-size: .72rem; color: var(--muted); }
.ad-kpi b { font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 900; color: var(--mint); line-height: 1.3; }
.ad-kpi.gold b { color: var(--gold); }
.ad-kpi span { font-size: .68rem; color: var(--muted); }
.ad-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
.ad-bars { display: flex; align-items: flex-end; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-height: 0; }
.ad-bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.ad-bars i { width: 100%; height: calc(var(--h) * .8); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--mint), var(--emerald)); }
.ad-bars i.g { background: linear-gradient(180deg, var(--gold), #c08b1c); }
.ad-bars span { font-size: .68rem; color: var(--muted); }
.ad-line { width: 100%; height: 100%; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.sheet-tbl { width: 100%; height: 100%; border-collapse: collapse; font-size: clamp(.58rem, 1.15vw, .8rem); color: #222; direction: ltr; table-layout: fixed; }
.sheet-tbl th { background: #e6e9e8; color: #666; font-weight: 500; border: 1px solid #cfd4d2; }
.sheet-tbl tr:first-child th:first-child { width: 6%; }
.sheet-tbl td { border: 1px solid #d9dedc; padding: 2px 6px; direction: rtl; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; }
.sheet-tbl tr:nth-child(4) td:nth-child(5) { color: #c0392b; background: #fdecea; }
.sheet-tbl tr:nth-child(6) td { background: #fff7d6; }
.sheet-tbl tr:last-child td { font-weight: 700; }

/* segmented radio */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(3,11,20,.6); font-size: .88rem; transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease); }
.seg input:checked + span { background: rgba(46,229,157,.14); border-color: var(--mint); color: #d6ffee; }
.seg input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.field .legend { font-size: .88rem; font-weight: 600; color: var(--ink-2); }

/* DM link */
.dm { margin-top: 34px; display: inline-flex; align-items: center; gap: 12px; padding: 12px; padding-inline-end: 20px; border-radius: 18px; border: 1px solid rgba(247,201,72,.35); background: rgba(247,201,72,.06); font-size: .92rem; transition: background .5s var(--ease), transform .5s var(--ease); }
.dm:hover { background: rgba(247,201,72,.12); transform: translateY(-2px); }
.dm b { color: var(--gold); }
.dm-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--bg); flex: none; }
.dm-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1080px) { .pains { grid-template-columns: 1fr 1fr; } .pains > :last-child { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .pains { grid-template-columns: 1fr; } .pains > :last-child { grid-column: auto; }
  .pain-card { min-height: 0; }
  .hero-tools { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 560px) {
  .mini-dash { grid-template-columns: 1fr; }
  .md-donut { display: none; }
  .ba { aspect-ratio: 4 / 4.4; }
  .ad-body { grid-template-columns: 1fr; }
  .ad-line { display: none; }
  .ad-top { grid-template-columns: 1fr 1fr; }
  .ad-top .gold { display: none; }
  .hero-tools .sep { display: none; }
}

.b-1 .core > .tag { align-self: flex-start; }
.timeline { max-width: 980px; }

/* ============ Case studies ============ */
.cs-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tabs [role="tab"] {
  flex: none; scroll-snap-align: start;
  display: grid; gap: 0; text-align: start;
  padding: 10px 18px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(6,18,30,.75);
  font-size: .92rem; font-weight: 700; color: var(--ink-2);
  transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.cs-tabs [role="tab"] small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.cs-tabs [role="tab"]:hover { color: var(--ink); border-color: rgba(46,229,157,.35); }
.cs-tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: linear-gradient(160deg, rgba(46,229,157,.18), rgba(46,229,157,.05)); border-color: var(--mint); }
.cs-tabs [role="tab"][aria-selected="true"] small { color: var(--mint); }
.cs-tabs [role="tab"]:active { transform: scale(.97); }

.cs-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 18px; }
.cs-stage { perspective: 1600px; padding-block: 10px 0; }
.monitor { transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg)); transform-style: preserve-3d; transition: transform 1s var(--ease); }
.mon-frame {
  border-radius: 22px; padding: 10px;
  background: linear-gradient(150deg, #1d2c3d, #0a131d 45%, #17222f);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.12), 0 60px 90px -40px rgba(0,0,0,.95), 0 0 80px -20px rgba(46,229,157,.28);
}
.mon-chrome { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; font-size: .74rem; color: var(--muted); }
.mon-chrome .dots { display: flex; gap: 5px; direction: ltr; }
.mon-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.mon-chrome .dots i:first-child { background: #ff6b8b; } .mon-chrome .dots i:nth-child(2) { background: #f7c948; } .mon-chrome .dots i:nth-child(3) { background: #2ee59d; }
.cs-file { flex: 1; text-align: center; }
.cs-tool { padding: 2px 10px; border-radius: 999px; background: rgba(247,201,72,.12); color: var(--gold); font-weight: 600; }
.cs-screen {
  position: relative; min-height: 440px; border-radius: 14px; padding: 16px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(46,229,157,.08), transparent 60%), #071624;
  border: 1px solid rgba(255,255,255,.06);
  display: grid; gap: 12px; align-content: start;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.mon-stand { display: grid; justify-items: center; transform: translateZ(-40px); }
.mon-stand i { width: 90px; height: 38px; background: linear-gradient(180deg, #121d29, #0b141d); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.mon-stand b { width: 220px; height: 10px; border-radius: 8px; background: linear-gradient(180deg, #1a2734, #0b141d); box-shadow: 0 20px 30px -10px rgba(0,0,0,.8); }
#cases.swap .cs-screen, #cases.swap .cs-info { opacity: 0; transform: translateY(10px); }
.cs-info { transition: opacity .3s var(--ease), transform .4s var(--ease); }
.cs-info h3 { margin: 0 0 18px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; line-height: 1.4; }
.cs-info dl { margin: 0; display: grid; gap: 4px; }
.cs-info dt { font-size: .78rem; font-weight: 700; color: var(--mint); margin-top: 10px; }
.cs-info dd { margin: 0; color: var(--ink-2); }
.cs-out { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.cs-out li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.cs-out li::before { content: ""; flex: none; margin-top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.cs-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-tags span { font-size: .76rem; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-2); }
.cs-nav { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.cs-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(6,18,30,.8); display: grid; place-items: center; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.cs-nav button:hover { border-color: var(--mint); }
.cs-nav button:active { transform: scale(.94); }
.cs-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cs-count { font-size: .9rem; color: var(--muted); min-width: 48px; text-align: center; }
.cs-note { margin-top: 26px; }

/* screen widgets */
.ck-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ck { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: grid; }
.ck small { font-size: .72rem; color: var(--muted); }
.ck b { font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 900; line-height: 1.5; color: var(--ink); }
.ck span { font-size: .68rem; color: var(--muted); }
.ck.good b { color: #5ff0b6; } .ck.gold b, .ck.warn b { color: #ffd76a; } .ck.bad b { color: #ff8aa3; }
.cs-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-filter button { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: transparent; font-size: .78rem; color: var(--ink-2); transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.cs-filter button:hover { border-color: rgba(46,229,157,.5); }
.cs-filter button.on { background: rgba(46,229,157,.16); border-color: var(--mint); color: var(--ink); }
.cs-grid { display: grid; gap: 10px; }
.g-2-1 { grid-template-columns: 1.7fr 1fr; }
.panel { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.panel h5 { margin: 0 0 10px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.chart { width: 100%; height: auto; display: block; direction: ltr; overflow: visible; }
.chart .ax { font-size: 10px; fill: rgba(238,243,255,.45); font-family: var(--font); }
.chart .dl { font-size: 11px; fill: rgba(238,243,255,.8); font-weight: 600; font-family: var(--font); }
.chart .xh { stroke: rgba(255,255,255,.35); stroke-width: 1; opacity: 0; transition: opacity .2s; }
.chart .hov:hover .xh { opacity: 1; }
.chart .hov:hover rect.grow-y { filter: brightness(1.2); }
.draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; transition: stroke-dashoffset 1.8s var(--ease-out); }
.go .draw { stroke-dashoffset: 0; }
.grow-y { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out); }
.go .grow-y { transform: none; }
.grow-x { transform-origin: right; transform: scaleX(0); transition: transform 1.1s var(--ease-out); }
.go .grow-x { transform: none; }
.go .hb-row:nth-child(2) .grow-x, .go .st-row:nth-child(2) .grow-x { transition-delay: .06s; }
.go .hb-row:nth-child(3) .grow-x, .go .st-row:nth-child(3) .grow-x { transition-delay: .12s; }
.go .hb-row:nth-child(4) .grow-x, .go .st-row:nth-child(4) .grow-x { transition-delay: .18s; }
.go .hb-row:nth-child(5) .grow-x, .go .st-row:nth-child(5) .grow-x { transition-delay: .24s; }
.go .hb-row:nth-child(6) .grow-x, .go .st-row:nth-child(6) .grow-x { transition-delay: .3s; }

.hb { display: grid; gap: 10px; }
.hb-row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 10px; align-items: center; font-size: .8rem; padding: 2px 0; border-radius: 6px; }
.hb-row:hover { background: rgba(255,255,255,.03); }
.hb-l { color: var(--ink-2); white-space: nowrap; }
.hb-track { position: relative; height: 12px; border-radius: 4px; background: rgba(255,255,255,.05); }
.hb-track i { display: block; height: 100%; width: var(--w); border-radius: 4px; }
.hb-target { position: absolute; top: -4px; bottom: -4px; inset-inline-start: var(--t); width: 2px; background: var(--ink); border-radius: 2px; }
.hb-v { font-weight: 700; color: var(--ink); font-size: .8rem; }
.legend-note { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .72rem; color: var(--muted); }
.legend-note .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-target { display: inline-block; width: 2px; height: 12px; background: var(--ink); border-radius: 2px; }

.cols { height: 190px; display: flex; align-items: flex-end; gap: 4px; direction: ltr; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.col i { width: 100%; height: calc(var(--h) * .85); border-radius: 4px 4px 0 0; background: #14a26c; }
.col:hover i { background: #22c784; }
.col span { font-size: .62rem; color: var(--muted); }

.stock { display: grid; gap: 8px; }
.st-row { display: grid; grid-template-columns: 120px 1fr 28px 118px; gap: 10px; align-items: center; font-size: .8rem; padding: 3px 0; border-radius: 6px; }
.st-row:hover { background: rgba(255,255,255,.03); }
.st-n { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-st { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--ink-2); }
.chip-st i { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .66rem; font-weight: 800; color: #071624; }
.chip-st.ok i { background: #2ee59d; } .chip-st.warn i { background: #f7c948; } .chip-st.no i { background: #ff6b8b; }

.hm { display: grid; grid-template-columns: 62px repeat(var(--cols), 1fr); gap: 3px; }
.hm-d { font-size: .72rem; color: var(--ink-2); align-self: center; }
.hm-h { font-size: .62rem; color: var(--muted); text-align: center; }
.hm-c { aspect-ratio: 1.5; border-radius: 4px; transition: transform .25s var(--ease), box-shadow .25s; }
.hm-c:hover { transform: scale(1.15); box-shadow: 0 0 0 2px #071624, 0 0 0 3px var(--ink); position: relative; z-index: 1; }
.hm-legend { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .72rem; color: var(--muted); }
.hm-legend i { width: 120px; height: 8px; border-radius: 4px; transform: scaleX(-1); }

.auto-flow { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.af-node { padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(46,229,157,.35); background: rgba(46,229,157,.08); display: grid; text-align: center; }
.af-node b { font-size: .85rem; }
.af-node span { font-size: .7rem; color: var(--muted); }
.af-node.gold { border-color: rgba(247,201,72,.4); background: rgba(247,201,72,.08); }
.af-node.blue { border-color: rgba(90,135,224,.5); background: rgba(90,135,224,.1); }
.af-arrow { width: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--mint) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: -18px 0; } }
.tg { margin: 6px auto 0; width: min(380px, 100%); border-radius: 16px; overflow: hidden; background: #0e1c2b; border: 1px solid rgba(255,255,255,.07); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #13263a; }
.tg-head b { display: block; font-size: .85rem; }
.tg-head small { font-size: .7rem; color: var(--muted); }
.tg-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #14a26c, #f7c948); font-weight: 900; color: #071624; }
.tg-msg { position: relative; margin: 14px; padding: 12px 14px 22px; border-radius: 14px 14px 4px 14px; background: #182f45; font-size: .82rem; line-height: 1.9; }
.tg-msg p { margin: 0; }
.tg-msg .up { color: #5ff0b6; font-weight: 700; }
.tg-spark { width: 100%; height: 48px; margin: 4px 0; direction: ltr; }
.tg-warn { color: #ffd76a; }
.tg-time { position: absolute; bottom: 6px; left: 12px; font-size: .66rem; color: var(--muted); }

.tip {
  position: fixed; top: 0; left: 0; z-index: 35; pointer-events: none;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px;
  background: rgba(3,11,20,.94); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.8);
  font-size: .78rem; color: var(--ink-2); white-space: nowrap;
  opacity: 0; transition: opacity .15s;
}
.tip.on { opacity: 1; }
.tip b { color: var(--ink); font-size: .8rem; }
.tip span { display: flex; align-items: center; gap: 6px; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

@media (max-width: 1080px) {
  .cs-body { grid-template-columns: 1fr; }
  .monitor { --ry: 0deg !important; --rx: 0deg !important; }
}
@media (max-width: 640px) {
  .cs-screen { padding: 10px; min-height: 0; }
  .g-2-1 { grid-template-columns: 1fr; }
  .ck-row { grid-template-columns: 1fr 1fr; }
  .ck-row .ck:nth-child(3) { display: none; }
  .st-row { grid-template-columns: 1fr 26px 30px; }
  .st-row .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .chip-st { font-size: 0; gap: 0; }
  .hm { grid-template-columns: 46px repeat(var(--cols), 1fr); gap: 2px; }
  .hm-h:nth-child(even) { visibility: hidden; }
  .mon-frame { padding: 6px; border-radius: 16px; }
  .mon-stand { display: none; }
  .mon-chrome .cs-file { font-size: .66rem; }
}
