/* ============================================================
   DeepSeek Motion — standalone landing
   ============================================================ */

:root {
  --bg: #05060b;
  --bg-2: #080a14;
  --ink: #f2f5ff;
  --muted: #8d95ae;
  --muted-2: #616a84;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #4d6bff;
  --blue-2: #2b3bff;
  --cyan: #7df4ff;
  --violet: #a074ff;
  --green: #7dffc0;
  --red: #ff7a7a;
  --peak: #ffb86b;
  --radius: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "SF Pro Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }

::selection {
  background: rgba(77, 107, 255, 0.45);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- global FX ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}

@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(2%, -1%, 0); }
  50% { transform: translate3d(-1%, 2%, 0); }
  75% { transform: translate3d(1%, 1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(77, 107, 255, 0.12), transparent 70%),
    var(--bg);
}

.site-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

.site-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}
.site-bg__glow--1 {
  width: 46vw; height: 46vw;
  top: 30%; left: -18%;
  background: #2337d8;
}
.site-bg__glow--2 {
  width: 38vw; height: 38vw;
  top: 115%; right: -14%;
  background: #5d2bd8;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 130;
  background: rgba(255, 255, 255, 0.06);
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(125, 244, 255, 0.6);
}

/* ---------- cursor ---------- */

.cursor {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
body.cursor-ready .cursor { opacity: 1; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot {
  width: 5px; height: 5px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
    background-color 0.3s, border-color 0.3s;
}
body.cursor-hover .cursor__ring {
  width: 58px; height: 58px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}

@media (pointer: coarse), (hover: none) {
  .cursor { display: none; }
}

@media (pointer: fine) {
  body.cursor-ready,
  body.cursor-ready * { cursor: none !important; }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: #05060b;
  transition: transform 1s var(--ease) 0.1s, opacity 0.4s ease 0.8s;
}
.preloader__inner {
  width: min(320px, 72vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
body.loaded .preloader {
  transform: translateY(-101%);
  opacity: 0.6;
  pointer-events: none;
}
body.loaded .preloader__inner { opacity: 0; transform: translateY(-16px); }

.preloader__mark { width: 64px; height: 64px; }
.preloader__mark svg { width: 100%; height: 100%; }
.pl-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawPath 1.4s var(--ease) forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

.preloader__count {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.preloader__count small { font-size: 13px; color: var(--muted); font-weight: 400; }

.preloader__bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px var(--cyan);
}
.preloader__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  opacity: 0;
  transform: translateY(-12px);
}
body.loaded .nav {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease) 0.7s, transform 0.8s var(--ease) 0.7s,
    background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(77, 107, 255, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.brand:hover .brand__mark {
  transform: rotate(-7deg) scale(1.06);
  box-shadow: 0 6px 28px rgba(77, 107, 255, 0.6);
}
.brand__mark svg { width: 100%; height: 100%; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  margin-left: auto;
  margin-right: clamp(12px, 3vw, 40px);
}
.nav__links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.burger span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.burger span:first-child { transform: translate(-50%, calc(-50% - 4px)); }
.burger span:last-child { transform: translate(-50%, calc(-50% + 4px)); }
body.menu-open .burger span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.35s, background-color 0.35s, color 0.35s,
    transform 0.35s var(--ease), box-shadow 0.4s;
  will-change: transform;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn--small { height: 40px; padding: 0 18px; font-size: 12.5px; }
.btn--big { height: 62px; padding: 0 34px; font-size: 15px; }

.btn--primary {
  background: linear-gradient(120deg, #5a74ff, #3a4bff 55%, #6a3dff);
  background-size: 180% 100%;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 40px -10px rgba(77, 107, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 50px -8px rgba(77, 107, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn--primary:hover::after { left: 130%; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 24px 40px;
}
.menu__bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 11, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
body.menu-open .menu { visibility: visible; opacity: 1; }
body.menu-open .menu__bg { clip-path: inset(0 0 0 0); }

.menu__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(520px, 100%);
  margin-inline: auto;
}
.menu__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu__nav a small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.1em;
}
body.menu-open .menu__nav a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.15s + var(--i) * 0.06s);
}
.menu__foot {
  position: relative;
  width: min(520px, 100%);
  margin: 34px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: 152px 0 86px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease 0.4s;
}
body.loaded .hero__canvas { opacity: 1; }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 11, 0.72) 0%, rgba(5, 6, 11, 0.18) 38%, rgba(5, 6, 11, 0.35) 72%, var(--bg) 100%),
    radial-gradient(ellipse 48% 60% at 22% 48%, rgba(5, 6, 11, 0.72), transparent 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
}

.hero__copy { max-width: 760px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 13, 28, 0.55);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #cfd6f2;
  white-space: nowrap;
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(125, 255, 192, 0.5);
  animation: badgePulse 2.4s infinite;
}
@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 192, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(125, 255, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 255, 192, 0); }
}
.badge__sep {
  width: 1px; height: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.hero__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 6.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__title .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.15s var(--ease);
  transition-delay: calc(0.75s + var(--i) * 0.09s);
}
body.loaded .hero__title .line > span { transform: translateY(0); }

.grad {
  background: linear-gradient(100deg, #9aa8ff 0%, #7df4ff 38%, #9d7bff 78%, #7c8cff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__lead {
  max-width: 570px;
  margin-top: 28px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.62;
  color: #b6bdd4;
}
.hero__lead strong { color: #fff; font-weight: 700; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  max-width: 620px;
}
.hstat {
  padding-right: clamp(18px, 2.4vw, 34px);
  margin-right: clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hstat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hstat__val {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hstat__key {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

/* hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  perspective: 1200px;
}
.visual-parallax {
  position: relative;
  width: min(100%, 420px);
  transform-style: preserve-3d;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 164, 255, 0.14);
  pointer-events: none;
}
.orbit--1 {
  width: 560px; height: 560px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  animation: orbitSpin 26s linear infinite;
  border-style: dashed;
}
.orbit--2 {
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(20deg);
  border-color: rgba(160, 116, 255, 0.1);
  animation: orbitSpin2 40s linear infinite;
}
@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}
@keyframes orbitSpin2 {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(20deg); }
  to { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(380deg); }
}

.api-card {
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(22, 28, 56, 0.78), rgba(9, 11, 23, 0.88));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(77, 107, 255, 0.08) inset,
    0 0 80px -20px rgba(77, 107, 255, 0.35);
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.api-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 164, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.api-card:hover::before { opacity: 1; }

.api-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.api-card__ver { color: var(--muted-2); }

.api-card__model {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.api-card__logo {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #6f86ff, #3346ff);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 8px 26px -6px rgba(77, 107, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.api-card__model strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.api-card__model small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  margin: 20px 0 6px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wave i {
  flex: 1;
  height: 40%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  opacity: 0.8;
  transform-origin: center;
  animation: waveBar 1.5s ease-in-out infinite alternate;
}
.wave i:nth-child(1) { animation-delay: -0.10s; height: 24%; }
.wave i:nth-child(2) { animation-delay: -0.30s; height: 46%; }
.wave i:nth-child(3) { animation-delay: -0.55s; height: 70%; }
.wave i:nth-child(4) { animation-delay: -0.20s; height: 38%; }
.wave i:nth-child(5) { animation-delay: -0.75s; height: 92%; }
.wave i:nth-child(6) { animation-delay: -0.42s; height: 58%; }
.wave i:nth-child(7) { animation-delay: -0.05s; height: 30%; }
.wave i:nth-child(8) { animation-delay: -0.62s; height: 80%; }
.wave i:nth-child(9) { animation-delay: -0.35s; height: 52%; }
.wave i:nth-child(10) { animation-delay: -0.88s; height: 100%; }
.wave i:nth-child(11) { animation-delay: -0.15s; height: 44%; }
.wave i:nth-child(12) { animation-delay: -0.50s; height: 66%; }
.wave i:nth-child(13) { animation-delay: -0.27s; height: 36%; }
.wave i:nth-child(14) { animation-delay: -0.70s; height: 88%; }
.wave i:nth-child(15) { animation-delay: -0.12s; height: 26%; }
.wave i:nth-child(16) { animation-delay: -0.58s; height: 74%; }
.wave i:nth-child(17) { animation-delay: -0.40s; height: 48%; }
.wave i:nth-child(18) { animation-delay: -0.82s; height: 96%; }
.wave i:nth-child(19) { animation-delay: -0.22s; height: 40%; }
.wave i:nth-child(20) { animation-delay: -0.65s; height: 62%; }
.wave i:nth-child(21) { animation-delay: -0.08s; height: 32%; }
.wave i:nth-child(22) { animation-delay: -0.48s; height: 56%; }
@keyframes waveBar {
  from { transform: scaleY(0.55); opacity: 0.45; }
  to { transform: scaleY(1.1); opacity: 1; }
}

.api-card__rows {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.api-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.api-row span { flex: 1; }
.api-row b {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.03em;
}
.api-row em { font-style: normal; font-size: 9px; color: var(--muted-2); }
.api-row--accent b { color: var(--cyan); }

.api-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}
.api-card__foot span { display: inline-flex; align-items: center; gap: 6px; }
.pulse-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.api-card__foot code { font-size: 8.5px; opacity: 0.7; }

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 13, 28, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.8);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip--a {
  top: -18px; right: -12px;
}
.float-chip--b {
  bottom: -58px; left: -18px;
  animation-delay: -3.4s;
}
.float-chip__k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.float-chip__v {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: opacity 0.45s var(--ease);
}
.scroll-cue.is-hidden { opacity: 0 !important; }
.scroll-cue i {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--muted-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--cyan);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* hero entrance */
[data-hero] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--hd, 0s) + 0.55s);
}
body.loaded [data-hero] { opacity: 1; transform: none; }

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  width: 100%;
  transform: rotate(-1.1deg);
  background: rgba(8, 10, 20, 0.55);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeMove 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}
.marquee__group span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.marquee__group span.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}
.marquee__group b {
  font-size: 15px;
  color: var(--blue);
  font-weight: 400;
}
@keyframes marqueeMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- common section ---------- */

.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  scroll-margin-top: 90px;
}
.section__head { margin-bottom: clamp(38px, 5vw, 64px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid rgba(125, 164, 255, 0.4);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0;
}
.kicker--center { justify-content: center; }

.section__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  margin-top: 20px;
}
.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.7vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #8b9aff, #7df4ff 50%, #a37dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section__aside {
  flex-shrink: 0;
  width: min(390px, 100%);
}
.section__aside p,
.section__aside--text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: #b4bbd2;
}

.footnote {
  margin-top: 28px;
  max-width: 900px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted-2);
}
.footnote span { display: block; }

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* tags */
.tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag--blue {
  border-color: rgba(77, 107, 255, 0.5);
  background: rgba(77, 107, 255, 0.12);
  color: #b9c4ff;
}
.tag--violet {
  border-color: rgba(160, 116, 255, 0.5);
  background: rgba(160, 116, 255, 0.12);
  color: #d4c3ff;
}

/* peak toggle */
.peak-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 4px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  width: fit-content;
  min-width: 230px;
}
.peak-toggle__pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(77, 107, 255, 0.9), rgba(58, 75, 255, 0.9));
  box-shadow: 0 4px 18px -4px rgba(77, 107, 255, 0.8);
  transition: transform 0.45s var(--ease);
}
.peak-toggle[data-active="on"] .peak-toggle__pill { transform: translateX(100%); }
.peak-toggle button {
  position: relative;
  z-index: 1;
  height: 34px;
  padding: 0 18px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
}
.peak-toggle button.is-active { color: #fff; }
.peak-toggle button small {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.7;
  margin-left: 4px;
}
.peak-toggle--calc { margin-top: 0; min-width: 210px; }
.peak-toggle--calc button { height: 32px; }

/* ---------- models ---------- */

.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
}
.model-card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(18, 23, 48, 0.62), rgba(8, 10, 20, 0.9) 55%);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.4s, box-shadow 0.5s;
}
.model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 164, 255, 0.14), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.model-card:hover::before { opacity: 1; }
.model-card--flash:hover {
  border-color: rgba(77, 107, 255, 0.5);
  box-shadow: 0 30px 80px -30px rgba(77, 107, 255, 0.5);
}
.model-card--pro:hover {
  border-color: rgba(160, 116, 255, 0.5);
  box-shadow: 0 30px 80px -30px rgba(160, 116, 255, 0.45);
}
.model-card__glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
  top: -160px; right: -120px;
  transition: opacity 0.5s;
}
.model-card--flash .model-card__glow { background: #2b3bff; }
.model-card--pro .model-card__glow { background: #7b3dff; }
.model-card:hover .model-card__glow { opacity: 0.4; }

.model-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.model-card__index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.model-card__name {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 45px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.model-card__sub {
  margin-top: 16px;
  max-width: 380px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.model-card__version {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.price-block {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.price-block__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.price-block__k {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-block__v {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-block__row--accent .price-block__v { color: var(--cyan); }
.model-card--pro .price-block__row--accent .price-block__v { color: #cbb6ff; }
.price-block__u {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  width: 38px;
}
.price-block__v.tick { animation: priceTick 0.5s var(--ease); }
@keyframes priceTick {
  0% { opacity: 0.2; transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}

.model-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.model-card__chips span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #aab2ca;
}

/* ---------- compare chart ---------- */

.chart-panel {
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(165deg, rgba(17, 21, 44, 0.64), rgba(7, 9, 18, 0.9));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9);
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.metric-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}
.metric-tabs button {
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s;
  white-space: nowrap;
}
.metric-tabs button:hover { color: #fff; }
.metric-tabs button.is-active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chart-legend i {
  width: 18px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.chart-legend span { opacity: 0.5; }

.chart { display: flex; flex-direction: column; }
.chart__row {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 124px;
  align-items: center;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s;
}
.chart__row:last-child { border-bottom: 0; }
.chart__row:hover { background: rgba(255, 255, 255, 0.018); }

.chart__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.chart__name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart__prov {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.chart__row--ds .chart__name { color: #fff; }
.chart__row--ds .chart__prov { color: #8fa0ff; }
.chart__row:not(.chart__row--ds) .chart__name { color: #b9c0d4; font-weight: 600; }
.chart__row--ds {
  background: linear-gradient(90deg, rgba(77, 107, 255, 0.07), transparent 70%);
}

.chart__track {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
}
.chart__track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.055);
}
.chart__bar {
  position: relative;
  height: 12px;
  width: 0%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(125, 136, 190, 0.55), rgba(125, 136, 190, 0.25));
  transition: width 1.3s var(--ease);
  transition-delay: var(--bar-delay, 0s);
  will-change: width;
}
.chart__row--ds .chart__bar {
  height: 16px;
  background: linear-gradient(90deg, #3a4dff, #4d6bff 45%, #7df4ff);
  box-shadow: 0 0 22px rgba(77, 107, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.chart__row--pro .chart__bar {
  background: linear-gradient(90deg, #6a3dff, #a074ff 60%, #d1baff);
  box-shadow: 0 0 22px rgba(160, 116, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.chart__bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35));
  opacity: 0.6;
}
.chart__row--ds .chart__bar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75));
  opacity: 0.8;
}

.chart__val {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #ccd2e6;
  font-variant-numeric: tabular-nums;
}
.chart__row--ds .chart__val { color: #fff; }
.chart__mult {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(125, 255, 192, 0.12);
  border: 1px solid rgba(125, 255, 192, 0.25);
  color: var(--green);
  font-size: 9px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.5s 0.9s, transform 0.5s 0.9s;
}
.chart-panel.in-view .chart__mult { opacity: 1; transform: none; }
.chart__mult:empty { display: none; }

.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- thinking ---------- */

.thinking {
  overflow: hidden;
}
.thinking__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}
.thinking__copy .h2 { margin-top: 20px; }
.thinking__copy .lead { margin-top: 24px; max-width: 520px; }

.thinking__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  max-width: 540px;
}
.thinking__list li {
  display: flex;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: #b1b8ce;
}
.thinking__list li span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--cyan);
  padding-top: 3px;
}
.thinking__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.thinking__visual { position: relative; }
.reason-panel {
  position: relative;
  height: clamp(460px, 46vw, 580px);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(43, 59, 255, 0.18), transparent 70%),
    linear-gradient(170deg, rgba(14, 18, 38, 0.9), rgba(6, 8, 16, 0.96));
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9);
}
.reason-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 164, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 164, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000, transparent 80%);
  pointer-events: none;
}
#reasonCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reason-panel__head,
.reason-panel__foot {
  position: absolute;
  left: 22px; right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.reason-panel__head { top: 20px; }
.reason-panel__foot { bottom: 20px; }
.reason-panel__foot b { color: #c8d0e8; font-weight: 500; }
.reason-panel__foot b.ok,
.reason-panel__head .live { color: var(--green); }

.terminal {
  position: absolute;
  z-index: 2;
  left: 22px; right: 22px; bottom: 58px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(125, 164, 255, 0.18);
  border-radius: 16px;
  background: rgba(6, 8, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.75;
  color: #9fb0d8;
}
.terminal__line {
  display: flex;
  gap: 10px;
  min-height: 18px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.terminal__line.on { opacity: 1; transform: none; }
.terminal__line b { color: var(--blue); font-weight: 500; flex-shrink: 0; }
.terminal__line--ok b { color: var(--green); }
.terminal__line--ok span { color: var(--green); }
.terminal__cursor {
  display: inline-block;
  width: 6px; height: 11px;
  margin-left: 20px;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
  vertical-align: -1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- timeline ---------- */

.timeline__rail { position: relative; padding-top: 30px; }
.timeline__line {
  position: absolute;
  top: 35px; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
.timeline__line i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(125, 244, 255, 0.5);
  transition: width 1.8s var(--ease) 0.2s;
}
.timeline__items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
}
.tl-item {
  position: relative;
  padding-top: 34px;
}
.tl-item__dot {
  position: absolute;
  top: 0; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(125, 244, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(5, 6, 11, 0.9);
  transition: background-color 0.5s, box-shadow 0.5s;
  transition-delay: 0.6s;
}
.timeline__rail.in-view .tl-item__dot {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(125, 244, 255, 0.7), 0 0 0 4px rgba(5, 6, 11, 0.9);
}
.tl-item time {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}
.tl-item h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tl-item p {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.tl-item--hot h3 { color: var(--cyan); }
.tl-item--hot .tl-item__dot { border-color: var(--cyan); }

/* ---------- calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(17, 21, 44, 0.62), rgba(7, 9, 18, 0.9));
  box-shadow: 0 50px 120px -60px rgba(0, 0, 0, 1);
}
.calc__controls {
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.calc__control { display: flex; flex-direction: column; gap: 12px; }
.calc__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #c2c9dd;
}
.calc__label b {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  white-space: nowrap;
}
.calc__range {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: var(--range-bg, rgba(255, 255, 255, 0.12));
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: var(--range-bg, rgba(255, 255, 255, 0.12));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(77, 107, 255, 0.18), 0 0 22px rgba(77, 107, 255, 0.8);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue);
  box-shadow: 0 0 0 5px rgba(77, 107, 255, 0.18), 0 0 22px rgba(77, 107, 255, 0.8);
}
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(77, 107, 255, 0.22), 0 0 30px rgba(77, 107, 255, 1);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(125, 244, 255, 0.3), 0 0 30px rgba(77, 107, 255, 1);
}

.calc__control--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.calc__mini-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.calc__formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.calc__formula code { font-size: 10.5px; color: #aab7dd; }
.calc__formula b { color: var(--cyan); font-weight: 500; }

.calc__result {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(77, 107, 255, 0.16), transparent 65%),
    rgba(5, 7, 15, 0.55);
  display: flex;
  flex-direction: column;
}
.calc__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calc__result-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.calc__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.calc__currency {
  font-size: 0.42em;
  margin-top: 0.16em;
  color: var(--muted);
  font-weight: 500;
}
.calc__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}

.calc__compare {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.comp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}
.comp-pills button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.comp-pills button:hover { color: #fff; border-color: var(--line-strong); }
.comp-pills button.is-active {
  background: rgba(77, 107, 255, 0.14);
  border-color: rgba(77, 107, 255, 0.5);
  color: #cdd5ff;
}

.save__bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.save__bar > div {
  height: 24px;
  min-width: 6%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  transition: width 0.8s var(--ease);
}
.save__bar-ds {
  background: linear-gradient(90deg, #3a4dff, #5f7bff);
  box-shadow: 0 0 20px -4px rgba(77, 107, 255, 0.9);
  color: #fff;
}
.save__bar-comp {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c2c9dd;
}
.save__bar > div { padding: 0; }

.calc__tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: auto;
  padding: 15px 16px;
  border: 1px solid rgba(125, 244, 255, 0.14);
  border-radius: 12px;
  background: rgba(77, 107, 255, 0.06);
}
.calc__tip-icon {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 7px;
  background: rgba(125, 244, 255, 0.12);
  color: var(--cyan);
  font-size: 12px;
}
.calc__tip p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
.calc__tip b { color: #d8e1ff; font-weight: 600; }
.save__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.save__numbers > div { display: flex; flex-direction: column; gap: 3px; }
.save__k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.save__k b { color: #b9c2dc; font-weight: 500; }
.save__v {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.save__v--green { color: var(--green); }

.calc__pro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 11.5px;
  color: var(--muted);
}
.calc__pro b { color: #cbb6ff; font-weight: 600; }
.calc__pro strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: #dcd4ff;
  letter-spacing: -0.03em;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(110px, 15vw, 190px) 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#ctaCanvas { width: 100%; height: 100%; opacity: 0.8; }
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(43, 59, 255, 0.14), transparent 70%);
}
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7.4vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}
.cta__title em {
  font-style: normal;
  background: linear-gradient(100deg, #8b9aff, #7df4ff 45%, #c3a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta__lead {
  max-width: 540px;
  margin: 26px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}
.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cta__note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cta__note b {
  color: var(--cyan);
  font-weight: 500;
}
.cta__meta span { display: inline-flex; align-items: center; gap: 7px; }
.cta__meta i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero__stats { grid-template-columns: repeat(2, auto); row-gap: 18px; max-width: 420px; }
  .hstat:nth-child(2) { border-right: 0; }
  .chart__row { grid-template-columns: 200px minmax(0, 1fr) 110px; }
  .timeline__items { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .timeline__line { display: none; }
  .tl-item__dot { top: 0; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav { height: 70px; }
  .hero {
    padding-top: 120px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { justify-content: center; margin-top: 10px; }
  .visual-parallax { width: min(100%, 380px); }
  .hero__stats { margin-top: 42px; }
  .hero__title { font-size: clamp(2.5rem, 9.2vw, 4.4rem); }
  .section__head-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section__aside { width: 100%; }
  .model-grid { grid-template-columns: 1fr; }
  .thinking__grid { grid-template-columns: 1fr; gap: 42px; }
  .thinking__visual { order: 2; }
  .reason-panel { height: 520px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { border-left: 0; border-top: 1px solid var(--line); }
  .chart-top { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .nav { padding: 0 18px; }
  .hero { padding-top: 108px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(2.2rem, 10.4vw, 3.2rem); letter-spacing: -0.04em; }
  .badge {
    font-size: 8.5px;
    gap: 7px;
    height: 30px;
    padding: 0 10px;
    max-width: 100%;
  }
  .hero__stats { grid-template-columns: repeat(2, 1fr); width: 100%; max-width: none; }
  .hstat { border-right: 0; margin-right: 0; padding-right: 0; }
  .hstat:nth-child(odd) { border-right: 1px solid var(--line); }
  .hstat__key { font-size: 8.5px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .float-chip--a { top: -14px; right: -6px; }
  .float-chip--b { bottom: -46px; left: 0; }
  .float-chip__v { font-size: 11px; }
  .scroll-cue { display: none; }
  .marquee { padding: 12px 0; }
  .marquee__group { gap: 20px; padding-right: 20px; }
  .section { padding: 72px 0; }
  .h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .peak-toggle { width: 100%; min-width: 0; }
  .chart-panel { padding: 16px; border-radius: 22px; }
  .chart__row {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px 0;
  }
  .chart__meta { flex-direction: row; align-items: baseline; gap: 8px; }
  .chart__track { grid-column: 1 / -1; grid-row: 2; height: 22px; }
  .chart__val { grid-row: 1; grid-column: 2; }
  .chart__mult { font-size: 8px; height: 18px; }
  .chart-foot { flex-direction: column; gap: 6px; }
  .metric-tabs { width: 100%; }
  .metric-tabs button { flex: 1; padding: 0 8px; }
  .chart-legend { display: none; }
  .model-card { border-radius: 24px; }
  .reason-panel { height: 500px; }
  .terminal { font-size: 9.5px; left: 14px; right: 14px; padding: 14px; }
  .reason-panel__head, .reason-panel__foot { left: 16px; right: 16px; }
  .timeline__items { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .tl-item h3 { font-size: 13px; }
  .tl-item p { font-size: 11px; }
  .calc { border-radius: 24px; }
  .calc__controls, .calc__result { padding: 24px 20px; }
  .calc__price { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .calc__control--inline { flex-direction: column; align-items: flex-start; }
  .save__numbers { grid-template-columns: 1fr; gap: 12px; }
  .cta { padding-bottom: max(96px, env(safe-area-inset-bottom)); }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .menu__foot { flex-direction: column; gap: 6px; }
}

@media (max-width: 520px) {
  .timeline__rail { padding-top: 4px; }
  .timeline__rail::before {
    content: "";
    position: absolute;
    top: 8px; bottom: 18px; left: 5px;
    width: 1px;
    background: linear-gradient(180deg, var(--blue), rgba(125, 244, 255, 0.4), transparent);
  }
  .timeline__items { grid-template-columns: 1fr; row-gap: 0; }
  .tl-item {
    padding: 18px 0 18px 28px;
    border-top: 1px solid var(--line);
  }
  .tl-item:first-child { border-top: 0; }
  .tl-item__dot { top: 25px; left: 0; }
  .tl-item h3 { font-size: 15px; }
  .tl-item p { font-size: 12px; }
}

@media (max-width: 380px) {
  .badge__thinking,
  .badge__sep--2 { display: none; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hstat__val { font-size: 15px; }
  .metric-tabs button { font-size: 10.5px; padding: 0 4px; }
  .comp-pills button { font-size: 10px; padding: 0 9px; }
  .save__v { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero__title .line > span { transform: none !important; }
  .chart__bar { transition: none !important; }
}
