/* link2ai landing — white ground, cobalt and gold accents. */

/* ---------- Fonts (self-hosted, Latin only; CJK falls through to system fonts) ---------- */
@font-face {
  font-family: "Geist";
  src: url("/landing/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* ASCII + Latin-1 only, so CJK punctuation keeps its full-width forms. */
  unicode-range: U+0020-007E, U+00A0-00FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/landing/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2022, U+2026;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/landing/fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/landing/fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --white: #ffffff;
  --paper: #f6f8fc;
  --ink: #0a1733;
  --ink-2: #3a4763;
  --ink-3: #68748f;
  --line: #e4e9f2;
  --line-strong: #cfd7e6;
  --navy: #081229;

  --blue: #1740e0;
  --blue-600: #1233b8;
  --blue-100: #dce6ff;
  --blue-50: #eef3ff;

  --gold: #b5862a;
  --gold-ink: #8a6212;
  --gold-bright: #d8a848;
  --gold-50: #fbf5e6;

  --font-sans: "Geist", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2));
  --header-h: 72px;
  --section: clamp(88px, 11vw, 168px);

  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --enter-base: .1s;
}
html.has-intro { --enter-base: 1.5s; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.16; letter-spacing: -.012em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.1vw + .7rem, 3.375rem); }
h3 { font-size: 1.375rem; line-height: 1.3; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
code { font-family: var(--font-mono); font-size: .92em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
/* Pinned sections already clear the header themselves. */
.hscroll.is-pinned, .start.is-pinned { scroll-margin-top: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Shared pieces ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--ink-2);
  margin-bottom: 22px;
}
.label b {
  font: italic 400 22px/1 var(--font-serif); letter-spacing: 0; color: var(--gold-ink);
  display: inline-flex; align-items: center; gap: 14px;
}
.label b::after { content: ""; width: 36px; height: 1px; background: var(--gold-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px -14px rgba(23, 64, 224, .7); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(23, 64, 224, .75); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 14.5px; box-shadow: none; }


.caret {
  display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -.16em;
  background: var(--gold-bright); animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.play {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 18px rgba(8, 18, 41, .3);
}
.play::after {
  content: ""; position: absolute; left: 15px; top: 12px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--blue);
}
.play--lg { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.play--lg::after { left: 21px; top: 17px; border-width: 9px 0 9px 14px; }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Parallax (offsets are written by app.js as custom properties) ---------- */
[data-parallax] {
  transform: translate3d(var(--mx, 0px), calc(var(--py, 0px) + var(--my, 0px)), 0);
  will-change: transform;
}

/* ---------- Intro ---------- */
.intro, .intro-veil { display: none; }
html.has-intro .intro, html.has-intro .intro-veil {
  display: grid; position: fixed; inset: 0;
  animation: intro-lift .8s cubic-bezier(.76, 0, .24, 1) forwards;
}
html.has-intro .intro { z-index: 101; background: #fff; place-items: center; animation-delay: 1.15s; }
html.has-intro .intro-veil { z-index: 100; background: var(--blue); animation-delay: 1.27s; }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }

.intro__center { display: grid; justify-items: center; gap: 18px; }
.intro__mark { width: 68px; height: 68px; overflow: visible; }
.intro__mark rect { stroke-width: 2.6; stroke-dasharray: 48; stroke-dashoffset: 48; stroke-linecap: round; }
.intro__l1 { stroke: var(--blue); animation: draw .7s .05s var(--ease) forwards; }
.intro__l2 { stroke: var(--ink); animation: draw .7s .2s var(--ease) forwards; }
.intro__dot {
  fill: var(--gold-bright); transform-box: fill-box; transform-origin: center; transform: scale(0);
  animation: pop .45s .65s var(--ease-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
.intro__word {
  display: flex; overflow: hidden; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3;
}
.intro__word span { transform: translateY(110%); animation: rise .6s var(--ease-out) forwards; }
.intro__word span:nth-child(1) { animation-delay: .30s; }
.intro__word span:nth-child(2) { animation-delay: .34s; }
.intro__word span:nth-child(3) { animation-delay: .38s; }
.intro__word span:nth-child(4) { animation-delay: .42s; }
.intro__word span:nth-child(5) { animation-delay: .46s; }
.intro__word span:nth-child(6) { animation-delay: .50s; }
.intro__word span:nth-child(7) { animation-delay: .54s; }
.intro__word .two, .brand__word i {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--gold);
  font-size: 1.22em; line-height: 1; padding: 0 .04em 0 .02em;
}
@keyframes rise { to { transform: none; } }
.intro__bar { width: 132px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.intro__bar span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold-bright));
  transform: scaleX(0); transform-origin: left; animation: fill 1s .12s var(--ease) forwards;
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); }
.site-header::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: opacity .35s;
}
.site-header.is-stuck::before, .site-header.is-menu-open::before { opacity: 1; }
.site-header.is-menu-open::before { background: #fff; }
.site-header__inner {
  position: relative; height: 100%;
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1; display: inline-flex; align-items: baseline; }

.nav { height: 100%; margin-right: auto; }
.nav__list { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 10px; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: var(--gold-bright); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link:hover, .has-menu.is-open > .nav__link { color: var(--ink); }
.nav__link:hover::after, .has-menu.is-open > .nav__link::after { transform: scaleX(1); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.has-menu.is-open .chev { transform: rotate(180deg); }

/* Hover menus */
.menu {
  position: absolute; top: calc(100% - 10px); left: -18px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none;
  transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s linear .22s;
}
.has-menu.is-open > .menu,
html:not(.js) .has-menu:hover > .menu,
html:not(.js) .has-menu:focus-within > .menu {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s;
}
.menu__panel {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 32px 64px -28px rgba(10, 23, 51, .32), 0 2px 6px rgba(10, 23, 51, .04);
  padding: 16px;
}
.menu__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--blue) 0 55%, var(--gold-bright) 55% 100%);
}
.menu--mega .menu__panel { display: grid; grid-template-columns: 1fr 1fr 208px; gap: 8px; width: 760px; }
.menu__label { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--ink-3); padding: 10px 12px 6px; }
.menu__item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 14px;
  transition: background-color .2s; opacity: 0; transform: translateY(8px);
}
.has-menu.is-open .menu__item, html:not(.js) .menu__item {
  opacity: 1; transform: none;
  transition: background-color .2s, opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.has-menu.is-open .menu__item:nth-of-type(2) { transition-delay: 0s, .05s, .05s; }
.has-menu.is-open .menu__item:nth-of-type(3) { transition-delay: 0s, .1s, .1s; }
.has-menu.is-open .menu__item:nth-of-type(4) { transition-delay: 0s, .15s, .15s; }
.has-menu.is-open .menu__group:nth-child(2) .menu__item:nth-of-type(1) { transition-delay: 0s, .08s, .08s; }
.has-menu.is-open .menu__group:nth-child(2) .menu__item:nth-of-type(2) { transition-delay: 0s, .13s, .13s; }
.menu__item:hover, .menu__item:focus-visible { background: var(--paper); }
.menu__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); transition: background-color .25s, color .25s;
}
.menu__icon--gold { background: var(--gold-50); color: var(--gold-ink); }
.menu__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu__item:hover .menu__icon { background: var(--blue); color: #fff; }
.menu__item:hover .menu__icon--gold { background: var(--gold-bright); color: var(--navy); }
.menu__text { display: grid; gap: 2px; }
.menu__text b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.menu__text small { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.menu__aside {
  background: var(--blue); color: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column;
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .2), transparent 60%);
}
.menu__aside-num { font: 400 64px/.9 var(--font-serif); color: var(--gold-bright); display: flex; align-items: baseline; gap: 8px; }
.menu__aside-num span { font: 500 13px/1 var(--font-sans); color: rgba(255, 255, 255, .8); letter-spacing: .08em; }
.menu__aside-copy { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .86); margin: 12px 0 18px; }
.menu__aside-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.menu__aside-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }
.menu__aside-link:hover svg { transform: translateX(4px); }

.site-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.link-quiet { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.link-quiet:hover { color: var(--blue); }

.burger { display: none; width: 40px; height: 40px; position: relative; border-radius: 10px; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.scroll-progress { position: absolute; inset: auto 0 0 0; height: 2px; overflow: hidden; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--blue), var(--gold-bright));
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff;
  padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font-size: 19px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__label { font-size: 12px; letter-spacing: .18em; color: var(--gold-ink); margin: 18px 0 4px; }
.mobile-menu__actions { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: var(--header-h);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero__grid {
  position: absolute; inset: -30% 0 -10% 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 64, 224, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 64, 224, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 72% 52%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 56% at 72% 52%, #000 0%, transparent 78%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(36px, 6vh, 88px);
}
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .16em; color: var(--ink-2); }
.eyebrow__rule { width: 36px; height: 1px; background: var(--gold-bright); }
.hero__title {
  font-size: clamp(2.5rem, 5.1vw + .35rem, 5.125rem); line-height: 1.14; letter-spacing: -.02em;
  margin: 26px 0 28px; text-wrap: nowrap;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title em { font-style: normal; color: var(--blue); }
.hero__title em.gold { color: var(--gold); }
.hero__lead { font-size: clamp(1.03rem, .5vw + .9rem, 1.19rem); line-height: 1.85; color: var(--ink-2); max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__facts { display: flex; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vh, 64px); padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__facts dt { font-size: 12.5px; letter-spacing: .12em; color: var(--ink-3); }
.hero__facts dd { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
.hero__facts b { font: 400 46px/1.1 var(--font-serif); color: var(--ink); }
.hero__facts span { font-size: 14px; color: var(--gold-ink); font-weight: 500; }

[data-enter] {
  opacity: 0; animation: enter 1s var(--ease-out) forwards;
  animation-delay: calc(var(--enter-base) + var(--i, 0) * 90ms);
}
[data-enter-line] {
  display: inline-block; transform: translateY(112%); animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: calc(var(--enter-base) + var(--i, 0) * 90ms);
}
@keyframes enter { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; margin-left: auto; }
.hv-orbit { position: absolute; inset: -9%; width: 118%; max-width: none; animation: spin 140s linear infinite; }
.hv-orbit .o1 { stroke: rgba(181, 134, 42, .55); stroke-width: 1; stroke-dasharray: 2 9; }
.hv-orbit .o2 { stroke: rgba(23, 64, 224, .16); stroke-width: 1; }
.hv-orbit .o3 { stroke: rgba(181, 134, 42, .4); stroke-width: 1; }
.hv-orbit .od { fill: var(--gold-bright); }
.hv-orbit .od--blue { fill: var(--blue); }
@keyframes spin { to { rotate: 360deg; } }

.hv-item { position: absolute; animation: bob 9s ease-in-out infinite; }
.hv-item--image { left: 17%; top: 11%; width: 62%; z-index: 1; }
.hv-item--video { right: 0; top: 1%; width: 40%; z-index: 2; animation-duration: 7.5s; animation-delay: -2s; }
.hv-item--term { left: 0; bottom: 5%; width: 60%; z-index: 3; animation-duration: 8.5s; animation-delay: -4s; }
.hv-item--key { right: 2%; bottom: 15%; z-index: 4; animation-duration: 6.5s; animation-delay: -1s; }
@keyframes bob { 50% { translate: 0 -9px; } }

.hv-card { box-shadow: 0 34px 60px -34px rgba(10, 23, 51, .45), 0 2px 8px rgba(10, 23, 51, .05); }
.hv-image { border-radius: 26px; overflow: hidden; background: var(--blue); position: relative; }
.hv-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.hv-image figcaption, .art__chip {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 6px 12px 6px 10px;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.hv-image figcaption i, .art__chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); }

.hv-term { background: var(--navy); border-radius: 18px; color: #c9d4ee; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75; overflow: hidden; }
.hv-term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .09); white-space: nowrap; }
.hv-term__method { color: var(--gold-bright); font-weight: 600; }
.hv-term__path { color: #fff; overflow: hidden; text-overflow: ellipsis; }
.hv-term__bar b { margin-left: auto; font-weight: 600; color: #a9bfff; background: rgba(157, 183, 255, .14); border-radius: 6px; padding: 0 7px; }
.hv-term__body { padding: 12px 14px 16px; }
.hv-term__body .k { display: inline-block; width: 4.6em; color: #7f8db0; }
.hv-term__out { margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .12); color: #fff; font-family: var(--font-sans); font-size: 13.5px; min-height: 3.3em; }

.hv-video { background: #fff; border-radius: 20px; padding: 10px 10px 14px; border: 1px solid var(--line); }
.hv-video__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 13px; overflow: hidden;
  background:
    radial-gradient(circle at 72% 30%, rgba(240, 206, 133, .95) 0 9%, rgba(216, 168, 72, .35) 10% 22%, transparent 36%),
    linear-gradient(160deg, #2a56ff 0%, #1740e0 42%, #0a1f8a 100%);
  background-size: 140% 140%, 100% 100%;
  animation: drift 10s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 60%, 0 0; } }
.hv-video__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 4px 8px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.hv-video__meta b { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.hv-video__timeline, .scrub { height: 3px; margin: 0 4px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hv-video__timeline i, .scrub i { display: block; height: 100%; background: var(--gold-bright); transform-origin: left; animation: scrub 7s linear infinite; }
@keyframes scrub { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hv-key { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 12px; font-size: 12.5px; white-space: nowrap; }
.hv-key svg { width: 20px; height: 20px; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; }
.hv-key code { font-size: 12.5px; color: var(--ink); }
.hv-key span { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 500; }
.hv-key span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

.hero__scroll {
  position: absolute; right: var(--edge); bottom: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .18em; color: var(--ink-3);
}
.hero__scroll span { width: 1px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drop 2.2s var(--ease) infinite; }
@keyframes drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Models: horizontal scroll ---------- */
.hscroll { position: relative; background: var(--paper); }
.hscroll__sticky { padding-block: clamp(72px, 10vw, 112px) 40px; }
.hscroll__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.hscroll__viewport::-webkit-scrollbar { display: none; }
.hscroll__track { position: relative; flex: none; display: flex; align-items: stretch; gap: clamp(16px, 2vw, 28px); width: max-content; padding-inline: var(--edge); }
.hscroll__track > * { scroll-snap-align: center; flex: none; }

.hscroll.is-pinned .hscroll__sticky { position: sticky; top: 0; height: 100vh; padding: var(--header-h) 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hscroll.is-pinned .hscroll__viewport { flex: 1; min-height: 0; display: flex; align-items: center; overflow: visible; }
.hscroll.is-pinned .hscroll__track { will-change: transform; }
.hscroll.is-pinned .pcard, .hscroll.is-pinned .hscroll__lead {
  height: min(550px, calc(100vh - var(--header-h) - 128px));
}

.hscroll__lead { width: clamp(300px, 31vw, 440px); display: flex; flex-direction: column; justify-content: center; padding-right: clamp(8px, 2vw, 40px); }
.hscroll__lead-copy { font-size: 1.0625rem; color: var(--ink-2); margin-top: 22px; max-width: 22em; text-wrap: balance; }
.hscroll__hint { display: flex; align-items: center; gap: 14px; margin-top: 40px; font-size: 13px; letter-spacing: .14em; color: var(--ink-3); }
.hscroll__hint svg { width: 40px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.hint--pin { display: none; }
.hscroll.is-pinned .hint--pin { display: inline; }
.hscroll.is-pinned .hint--swipe { display: none; }

.pcard {
  position: relative; width: clamp(296px, 29vw, 408px); min-height: 500px;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.hscroll.is-pinned .pcard { min-height: 0; }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -44px rgba(10, 23, 51, .45); border-color: var(--line-strong); }
.pcard::after {
  content: ""; position: absolute; right: 18px; top: 18px; width: 18px; height: 18px;
  border-top: 1.5px solid var(--blue); border-right: 1.5px solid var(--blue); border-radius: 0 8px 0 0;
  opacity: 0; transform: translate(-6px, 6px); transition: opacity .35s, transform .45s var(--ease-out);
}
.pcard--gold::after { border-color: var(--gold-bright); }
.pcard:hover::after { opacity: 1; transform: none; }
.pcard__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pcard__idx { font: 400 30px/1 var(--font-serif); color: var(--gold-ink); }
.pcard__tag { font-size: 12.5px; font-weight: 500; color: var(--blue); background: var(--blue-50); border-radius: 999px; padding: 4px 12px; line-height: 1.5; }
.pcard--gold .pcard__tag { color: var(--gold-ink); background: var(--gold-50); }
.pcard__art { position: relative; flex: 1 1 0; min-height: 120px; border-radius: 16px; overflow: hidden; margin-bottom: 20px; }
.pcard__title { font-size: 1.5rem; }
.pcard__desc { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); margin-top: 8px; }
.pcard__meta { margin-top: 16px; border-top: 1px solid var(--line); }
.pcard__meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pcard__meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.pcard__meta dt { color: var(--ink-3); flex: none; }
.pcard__meta dd { text-align: right; font-weight: 500; }
.pcard__meta code { font-size: 12.5px; color: var(--blue); }

.art--text { background: var(--blue-50); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.art__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.art__head code { font-size: 12px; color: var(--blue); background: #fff; border-radius: 999px; padding: 3px 10px; }
.art__head span { display: inline-flex; align-items: center; gap: 6px; }
.art__head i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); animation: dot 1.2s ease-in-out infinite; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.bubble { font-size: 13px; line-height: 1.5; max-width: 86%; }
.bubble--user { align-self: flex-end; background: var(--blue); color: #fff; padding: 8px 13px; border-radius: 14px 14px 4px 14px; }
.bubble--ai { align-self: flex-start; width: 86%; background: #fff; padding: 14px; border-radius: 14px 14px 14px 4px; display: grid; gap: 9px; box-shadow: 0 8px 20px -14px rgba(23, 64, 224, .5); }
.bar { height: 8px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #b9c9ff, #dfe7ff); transform-origin: left; animation: bar 4.2s var(--ease) infinite; animation-delay: var(--d); }
.bar:last-child { background: linear-gradient(90deg, #e9cf92, #f6e9c6); }
@keyframes bar { 0% { transform: scaleX(0); opacity: 1; } 35%, 82% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.art--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard:hover .art--photo img { transform: scale(1.05); }
.art__chip { left: 12px; top: auto; bottom: 12px; }

.art--mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.tile { border-radius: 12px; position: relative; overflow: hidden; transition: transform .6s var(--ease-out); }
.tile--a { grid-row: 1 / 3; background: radial-gradient(circle at 34% 30%, #7d9bff 0%, #1740e0 46%, #0a1f8a 100%); }
.tile--a::after { content: ""; position: absolute; left: 50%; top: 56%; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #f8e3ae, #d8a848 62%, #a87919); box-shadow: 0 18px 30px -10px rgba(4, 12, 48, .6); }
.tile--b { background: linear-gradient(140deg, #fbf1d8, #ebca7c); }
.tile--b::after { content: ""; position: absolute; inset: 22% 22% -30% 22%; border-radius: 999px 999px 0 0; background: var(--blue); }
.tile--c { background: var(--navy); }
.tile--c::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 1.5px solid var(--gold-bright); box-shadow: 0 0 0 9px rgba(216, 168, 72, .16); }
.pcard:hover .tile--b { transform: translate(3px, -3px); }
.pcard:hover .tile--c { transform: translate(3px, 3px); }
.pcard:hover .tile--a { transform: translate(-3px, 0); }

.art--video { background: var(--navy); }
.reel { position: absolute; inset: 0 0 18px 0; display: flex; gap: 6px; padding: 14px; width: 170%; animation: reel 16s linear infinite alternate; }
.reel span { flex: 1; border-radius: 9px; background: linear-gradient(170deg, #2a56ff, #0a1f8a); position: relative; overflow: hidden; }
.reel span::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(240, 206, 133, .95), rgba(216, 168, 72, 0) 68%); }
.reel span:nth-child(1)::after { left: -20%; top: 55%; }
.reel span:nth-child(2)::after { left: 5%; top: 40%; }
.reel span:nth-child(3)::after { left: 22%; top: 26%; }
.reel span:nth-child(4)::after { left: 40%; top: 15%; }
.reel span:nth-child(5)::after { left: 62%; top: 8%; }
@keyframes reel { to { transform: translateX(-38%); } }
.art--video .scrub { position: absolute; left: 14px; right: 14px; bottom: 12px; margin: 0; background: rgba(255, 255, 255, .18); }

html.js .hscroll:not(.is-in) .pcard, html.js .hscroll:not(.is-in) .hscroll__lead { opacity: 0; }
.hscroll.is-in .hscroll__lead { animation: enter .9s var(--ease-out) backwards; }
.hscroll.is-in .pcard { animation: enter .9s var(--ease-out) backwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }

.hscroll__status { display: none; }
.hscroll.is-pinned .hscroll__status, .hscroll.is-native .hscroll__status { display: flex; align-items: center; gap: 24px; height: 64px; flex: none; }
.hscroll.is-native .hscroll__status { margin-top: 20px; }
.hscroll__count { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-3); min-width: 76px; }
.hscroll__count b { font: 400 28px/1 var(--font-serif); color: var(--ink); min-width: 1.2em; }
.hscroll__bar { flex: 1; height: 1px; background: var(--line-strong); position: relative; }
.hscroll__bar span { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--gold-bright)); transform: scaleX(0); transform-origin: left; }

/* ---------- Start: three steps, pinned while they play ---------- */
.start { position: relative; }
.start__sticky { padding-block: var(--section); }
.start.is-pinned .start__sticky { position: sticky; top: 0; height: 100vh; padding: var(--header-h) 0 0; display: flex; align-items: center; }
.start__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.start__copy .label { margin-bottom: 18px; }
.start__steps { list-style: none; margin: clamp(22px, 4vh, 40px) 0 0; padding: 0; position: relative; }
.start__steps::before, .start__steps::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.start__steps::after { width: 2px; left: -.5px; background: linear-gradient(var(--blue), var(--gold-bright)); transform: scaleY(var(--rail, 0)); transform-origin: top; transition: transform .6s var(--ease-out); }
.start:not(.is-pinned) .start__steps::after { display: none; }
.sstep { display: flex; gap: 18px; padding: clamp(11px, 2vh, 20px) 0 clamp(11px, 2vh, 20px) 28px; transition: opacity .45s; }
.start.is-pinned .sstep { opacity: .32; }
.start.is-pinned .sstep.is-active { opacity: 1; }
.sstep__num { font: italic 400 40px/1 var(--font-serif); color: var(--gold-bright); width: 26px; flex: none; }
.sstep h3 { font-size: 1.25rem; }
.sstep p { font-size: 15.5px; color: var(--ink-2); margin-top: 4px; }
.sstep a { color: var(--blue); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.start__cta { margin-top: clamp(22px, 4vh, 40px); }

.code { background: var(--navy); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(10, 23, 51, .65); color: #d7dff5; }
.code__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 12px; padding: 6px 14px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.code__tabs { display: flex; gap: 2px; }
.code__tabs button { position: relative; padding: 16px 14px; font-size: 14px; font-weight: 500; color: #8e9bbb; white-space: nowrap; transition: color .2s; }
.code__tabs button:hover { color: #d7dff5; }
.code__tabs button[aria-selected="true"] { color: #fff; }
.code__tabs button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--gold-bright); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.code__tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.code__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; padding-block: 8px; }
.code__langs { display: flex; gap: 4px; }
.code__langs button { font-family: var(--font-mono); font-size: 12.5px; color: #8e9bbb; padding: 5px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.code__langs button[aria-selected="true"] { background: rgba(255, 255, 255, .1); color: #fff; }
.code__copy { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #b9c6e8; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); transition: border-color .2s, color .2s; }
.code__copy:hover { border-color: var(--gold-bright); color: #fff; }
.code__copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.code__copy.is-done { color: var(--gold-bright); border-color: var(--gold-bright); }
.code__body { margin: 0; padding: 20px 0 26px; overflow: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; min-height: 300px; tab-size: 2; }
.start.is-pinned .code__body { height: min(480px, calc(100vh - var(--header-h) - 170px)); min-height: 0; }
.code__body code { font-size: inherit; display: block; width: max-content; min-width: 100%; padding-inline: 24px; transition: opacity .2s; }
.code__body.is-swapping code { opacity: 0; }
/* One span per line, so a step can light up the line it is about. */
.ln { display: block; min-height: 1.8em; margin-inline: -24px; padding-inline: 22px 24px; border-left: 2px solid transparent; transition: opacity .4s, background-color .4s, border-color .4s; }
.code__body.has-focus .ln { opacity: .46; }
.code__body.has-focus .ln.is-hot { opacity: 1; background: rgba(216, 168, 72, .14); border-left-color: var(--gold-bright); }
.tok-s { color: #f0ce85; }
.tok-c { color: #7180a6; }
.tok-k { color: #a9bfff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.site-footer__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 40px; }
.site-footer .brand__mark { width: 28px; height: 28px; }
.site-footer .brand__word { font-size: 18px; }
.site-footer nav { display: flex; gap: 28px; margin-left: auto; }
.site-footer nav a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.site-footer nav a:hover { color: var(--blue); }
.site-footer p { font-size: 13px; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-height: 760px) { .hero__scroll { display: none; } }

@media (max-width: 1199px) { .hv-image .wide { display: none; } }

@media (max-width: 1080px) {
  .menu--mega .menu__panel { width: 660px; grid-template-columns: 1fr 1fr 180px; }
}

@media (max-width: 959px) {
  .nav, .site-header__actions .link-quiet { display: none; }
  .site-header__actions { margin-left: auto; gap: 10px; }
  .burger { display: block; }

  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 40px 72px; }
  .hero__title { text-wrap: wrap; }
  .hero__visual { margin: 24px auto 0; max-width: 480px; }
  .hero__scroll { display: none; }

  .start__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header__actions .btn { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__facts { gap: 20px; justify-content: space-between; }
  .hero__facts b { font-size: 38px; }
  .hv-term { font-size: 11px; }
  .hv-term__out { font-size: 12px; }
  .hv-key { font-size: 11px; padding: 7px 12px 7px 10px; }
  .hv-key span, .hv-image .wide, .hv-video__meta span { display: none; }
  .pcard, .hscroll__lead { width: min(82vw, 340px); }
  .start__cta .btn { width: 100%; }
  .code { border-radius: 20px; }
  .code__body { font-size: 12.5px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; gap: 20px; flex-wrap: wrap; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  [data-parallax] { transform: none; }
  .bar { animation: none; }
}
