/* Oriel website. Paper and celadon; light falling through an arched window. */
:root {
  --bg: #F5F3EC; --bg-2: #EDEAE0; --raise: #FFFEFA; --raise-2: #FBF9F3;
  --line: #E1DDD1; --line-2: #CDC8BA;
  --ink: #131B18; --ink-2: #46504B; --ink-3: #848A84;
  --accent: #2B8573; --accent-ink: #1E6A5A; --accent-soft: #D6EAE2; --accent-wash: rgba(43, 133, 115, .08);
  --sun: #C9852B; --sun-soft: #F5E4C8; --bad: #BF4436; --bad-soft: #F7DFDA;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(40, 36, 20, .05), 0 10px 30px -14px rgba(40, 36, 20, .2);
  --shadow-lg: 0 50px 100px -40px rgba(32, 44, 36, .45), 0 18px 40px -24px rgba(32, 44, 36, .25), 0 0 0 1px rgba(32, 44, 36, .06);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1311; --bg-2: #111916; --raise: #161F1C; --raise-2: #131B18;
    --line: #222C28; --line-2: #34413C;
    --ink: #E9EFEB; --ink-2: #AEB9B3; --ink-3: #75827C;
    --accent: #5CC6AD; --accent-ink: #88D9C5; --accent-soft: #15342D; --accent-wash: rgba(92, 198, 173, .08);
    --sun: #E9AE5C; --sun-soft: #3A2C17; --bad: #F07468; --bad-soft: #3B1E1A;
    --on-accent: #062520;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 18px 40px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::after { mix-blend-mode: screen; opacity: .25; } }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
kbd { font: 600 .76em var(--mono); padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--raise); color: var(--ink-2); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }
html[data-lang="en"] [data-lang-only="zh"], html[data-lang="zh"] [data-lang-only="en"] { display: none !important; }

.announce { position: relative; z-index: 21; text-align: center; font-size: 14px; padding: 9px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.announce.warn { background: var(--sun); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 14px max(24px, calc((100vw - var(--wrap)) / 2)); transition: background .35s, box-shadow .35s, padding .35s; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 21px var(--display); letter-spacing: -.02em; }
.logo svg { transition: transform .6s var(--spring); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.logo-bg { fill: var(--accent); }
.logo-arch { fill: none; stroke: var(--on-accent); stroke-width: 2.6; stroke-linecap: round; }
.logo-arch.inner { opacity: .55; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { position: relative; padding: 6px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550; transition: color .2s, background .2s; }
.top-nav a:hover { color: var(--ink); background: var(--accent-wash); }
.top-nav a.on { color: var(--accent-ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 34px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--raise); cursor: pointer; font: 650 12.5px var(--font); }
.lang span { position: relative; z-index: 1; min-width: 32px; text-align: center; color: var(--ink-3); transition: color .3s; }
.lang i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--spring); }
html[data-lang="zh"] .lang [data-lang-zh], html[data-lang="en"] .lang [data-lang-en] { color: var(--bg); }
html[data-lang="en"] .lang i { transform: translateX(100%); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border: 0; border-radius: 999px; overflow: hidden; background: var(--ink); color: var(--bg); font: 650 15.5px var(--font); text-decoration: none; cursor: pointer; transition: transform .35s var(--spring), box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ink) 60%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateY(2px); }
.btn-glow { background: var(--accent); color: var(--on-accent); }
.btn-glow:hover { box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); }
.btn-glow:hover::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--raise); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: 56px; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 56px 24px 72px; min-height: min(760px, calc(100svh - 70px)); }
.hero-light { position: absolute; inset: -80px 0 0 0; pointer-events: none; z-index: -1; overflow: hidden; }
.arch-big { position: absolute; right: 2%; top: 10px; height: 118%; width: auto; fill: none; stroke: var(--line-2); stroke-width: 1; opacity: .9; }
.arch-big path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s .2s var(--ease) forwards; }
.arch-big path:nth-child(2) { animation-delay: .5s; opacity: .7; }
.arch-big path:nth-child(3) { animation-delay: .8s; opacity: .5; }
.beam { position: absolute; right: 6%; top: -10%; width: 62%; height: 130%; background: linear-gradient(200deg, color-mix(in srgb, var(--sun) 22%, transparent), transparent 62%); clip-path: polygon(48% 0, 82% 0, 64% 100%, 0% 100%); filter: blur(28px); opacity: .7; transform-origin: 70% 0; animation: sway 14s ease-in-out infinite alternate; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.g1 { width: 420px; height: 420px; right: 18%; top: 22%; background: color-mix(in srgb, var(--accent) 30%, transparent); animation: drift 18s ease-in-out infinite alternate; }
.g2 { width: 300px; height: 300px; right: -4%; top: 60%; background: color-mix(in srgb, var(--sun) 26%, transparent); animation: drift 22s ease-in-out infinite alternate-reverse; }
@media (prefers-color-scheme: dark) { .glow { opacity: .3; } .beam { opacity: .45; } }

.eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.pill { padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.ver { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.headline { font: 750 clamp(34px, 4.4vw, 56px)/1.2 var(--display); letter-spacing: -.035em; }
.headline .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.headline .line > span { display: inline-block; }
html.js .headline .line > span { transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
html.js .headline .line:nth-child(2) > span { animation-delay: .14s; }
.headline em { position: relative; font-style: normal; color: var(--accent-ink); white-space: nowrap; }
.headline em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; z-index: -1; border-radius: 4px; background: color-mix(in srgb, var(--sun) 38%, transparent); transform-origin: left; transform: scaleX(0); animation: mark .9s 1.1s var(--ease) forwards; }
html[data-lang="en"] .headline { letter-spacing: -.03em; line-height: 1.08; }
html[data-lang="en"] .headline em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.lead { margin-top: 26px; max-width: 32em; color: var(--ink-2); font-size: 17.5px; line-height: 1.85; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* demo window */
.demo { position: relative; margin: 0; perspective: 1400px; }
.demo-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); transition: transform .8s var(--ease); }
.demo-win { border-radius: 16px; background: var(--raise); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--raise-2); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.demo-bar span { margin-left: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.demo-body { display: grid; grid-template-columns: 37% 63%; min-height: 300px; }
.demo-chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; border-right: 1px solid var(--line); background: var(--raise-2); font-size: 12.5px; }
.demo-chat > * { opacity: 0; transform: translateY(8px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.demo-chat > .show { opacity: 1; transform: none; }
.chip-file { display: flex; align-items: center; gap: 7px; align-self: flex-end; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raise); font-weight: 600; color: var(--ink-2); }
.chip-file svg { width: 16px; height: 16px; fill: none; stroke: #2F6FC4; stroke-width: 1.6; stroke-linejoin: round; }
.bubble.me { align-self: flex-end; max-width: 92%; padding: 8px 12px; border-radius: 13px 13px 4px 13px; background: var(--accent); color: var(--on-accent); font-weight: 550; line-height: 1.5; }
.typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
.typed.done::after { display: none; }
.steps { list-style: none; margin: 4px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); display: flex; flex-direction: column; gap: 7px; color: var(--ink-3); }
.steps li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.steps li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all .35s var(--spring); }
.steps li.run { color: var(--ink); }
.steps li.run::before { border-color: var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2 6 9.6l4.5-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.demo-stage { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 20px; background: linear-gradient(160deg, var(--bg-2), var(--bg)); }
.deck { position: relative; aspect-ratio: 16 / 9; }
.deck::before { content: ""; position: absolute; inset: 0; border-radius: 7px; border: 1.5px dashed var(--line-2); transition: opacity .5s; }
.demo.p4 .deck::before { opacity: 0; }
.deck img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; box-shadow: 0 16px 30px -16px rgba(20, 30, 25, .5), 0 0 0 1px rgba(0, 0, 0, .06); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.demo.p4 .deck img.on { opacity: 1; transform: none; }
.deck img.out { opacity: 0; transform: translateY(-10px) scale(1.02); }
.demo-thumbs { display: flex; gap: 6px; justify-content: center; }
.demo-thumbs i { width: 18px; height: 4px; border-radius: 4px; background: var(--line-2); transition: all .4s var(--ease); }
.demo.p4 .demo-thumbs i.on { width: 30px; background: var(--accent); }
.float-card { position: absolute; display: flex; gap: 4px; padding: 11px 14px; border-radius: 13px; background: var(--raise); box-shadow: var(--shadow-lg); font-size: 12.5px; transform: translateZ(60px); animation: bob 6s ease-in-out infinite; }
.fc-src { right: -26px; bottom: -30px; flex-direction: column; max-width: 230px; opacity: 0; transition: opacity .6s var(--ease); }
.demo.p4 .fc-src { opacity: 1; }
.fc-src b { font-size: 11.5px; color: var(--sun); letter-spacing: .04em; }
.fc-src span { color: var(--ink-2); line-height: 1.5; }
.fc-key { left: -22px; top: -20px; animation-delay: -3s; }
.fc-key kbd { font-size: 12px; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: flex; align-items: center; gap: 40px; padding-right: 40px; color: var(--ink-3); font: 500 15px var(--mono); white-space: nowrap; }
.marquee span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

/* ---------- sections ---------- */
.band { position: relative; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 120px 24px; }
.band.tint { max-width: none; background: var(--bg-2); }
.band.tint > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.band.tint > .section-head:not(.center) { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.band.tint::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; color: var(--accent-ink); }
.kicker b { font: 500 13px var(--mono); color: var(--ink-3); }
.kicker b::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--line-2); }
.section-head h2 { font: 720 clamp(28px, 3.5vw, 44px)/1.25 var(--display); letter-spacing: -.03em; }
html[data-lang="en"] .section-head h2 { line-height: 1.12; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 16.5px; }
.note { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* slide viewer */
.viewer { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: center; }
.viewer-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.viewer-tabs button { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; color: var(--ink-3); font-size: 15px; font-weight: 600; overflow: hidden; transition: background .3s, color .3s; }
.viewer-tabs button b { font: 500 12px var(--mono); }
.viewer-tabs button:hover { color: var(--ink); }
.viewer-tabs button[aria-selected="true"] { background: var(--raise); color: var(--ink); box-shadow: var(--shadow); }
.viewer-tabs button[aria-selected="true"] b { color: var(--accent); }
.viewer-tabs button i { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.viewer-tabs button[aria-selected="true"] i { opacity: .8; }
.viewer.playing .viewer-tabs button[aria-selected="true"] i { animation: fill var(--dwell, 4.5s) linear forwards; }
.viewer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--raise); box-shadow: var(--shadow-lg); overflow: hidden; }
.viewer-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.viewer-frame img.on { opacity: 1; transform: none; }

/* cards */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 80px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); overflow: hidden; transition: transform .5s var(--spring), box-shadow .4s, border-color .4s; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--accent-wash), transparent 70%); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; font: 700 18px/1.4 var(--display); margin-bottom: 8px; letter-spacing: -.01em; }
.card p { position: relative; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.card .num { display: block; margin-bottom: 18px; font: italic 500 22px/1 var(--serif); color: var(--accent); }
.card .num::before { content: "("; } .card .num::after { content: ")"; }

/* study */
.study { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.study .section-head { margin-bottom: 0; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.ticks li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 15px; }
.ticks li b { color: var(--ink); font-size: 15.5px; }
.study-play { position: relative; display: flex; flex-direction: column; gap: 22px; }
.flash { display: block; width: 100%; aspect-ratio: 16 / 9.5; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; transform: rotate(-1.5deg); transition: transform .5s var(--spring); }
.flash:hover { transform: rotate(0) translateY(-3px); }
.flash-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--spring); }
.flash[aria-pressed="true"] .flash-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 30px 34px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: left; box-shadow: var(--shadow-lg); }
.face.front { background: var(--raise) repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); background-position: 0 14px; }
.face.back { transform: rotateY(180deg); background: var(--accent); color: var(--on-accent); }
.face small { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; opacity: .65; }
.face strong { font: 700 clamp(20px, 2.2vw, 26px)/1.45 var(--display); letter-spacing: -.01em; }
.face em { font-style: normal; font-size: 13.5px; opacity: .75; }
.front em::before { content: "↻ "; }
.quiz { margin-left: 34px; padding: 22px 24px; border-radius: 18px; background: var(--raise); box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.quiz-q { display: flex; flex-direction: column; gap: 4px; font-weight: 650; font-size: 15.5px; line-height: 1.55; }
.quiz-q small { color: var(--sun); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.quiz-opts button { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--raise-2); cursor: pointer; font-size: 14.5px; transition: all .3s var(--ease); }
.quiz-opts button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); font: 600 12px var(--mono); color: var(--ink-3); transition: all .3s; }
.quiz-opts button:hover { border-color: var(--accent); }
.quiz-opts button.right { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.quiz-opts button.right b { background: var(--accent); color: var(--on-accent); }
.quiz-opts button.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); animation: shake .45s; }
.quiz-why { margin-top: 12px; font-size: 14px; color: var(--ink-2); animation: rise .5s var(--ease); }
.quiz-why::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* models */
.orbit { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.orbit span { padding: 14px 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--raise); font: 650 17px var(--display); color: var(--ink-2); box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; transition: color .3s, border-color .3s; }
.orbit span:nth-child(2) { animation-delay: -1.4s; } .orbit span:nth-child(3) { animation-delay: -2.8s; } .orbit span:nth-child(4) { animation-delay: -4.2s; } .orbit span:nth-child(5) { animation-delay: -5.6s; }
.orbit span:hover { color: var(--accent-ink); border-color: var(--accent); }

/* privacy flow */
.flow { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.2fr 1fr; align-items: center; max-width: 900px; margin: 0 auto 56px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.node svg { width: 58px; height: 58px; padding: 15px; border-radius: 18px; background: var(--raise); box-shadow: var(--shadow); fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.node.mid svg { background: var(--accent); stroke: var(--on-accent); animation: pulse 3.2s ease-in-out infinite; }
.node b { font-size: 15px; }
.node small { font-size: 13px; color: var(--ink-3); }
.wire { position: relative; height: 2px; margin-bottom: 52px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; animation: travel 3s linear infinite; }
.wire i:nth-child(2) { animation-delay: 1s; } .wire i:nth-child(3) { animation-delay: 2s; }
.wire:nth-of-type(4) i { background: var(--sun); }

/* download */
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: start; }
.download .section-head { margin-bottom: 0; }
.specs { display: grid; margin: 8px 0 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: 24px; background: var(--raise); box-shadow: var(--shadow-lg); overflow: hidden; }
.download { position: relative; }
.download > :not(.dl-arch) { position: relative; z-index: 1; }
.dl-arch { position: absolute; right: -30px; top: -90px; width: 500px; max-width: 70%; fill: none; stroke: var(--line-2); stroke-width: 1; pointer-events: none; }
.dl-arch path:first-child { stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: var(--bg-2); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--raise); box-shadow: var(--shadow); transition: transform .45s var(--spring); }
.seg[data-mode="account"] .seg-pill { transform: translateX(100%); }
.seg button { position: relative; height: 38px; border: 0; background: none; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--ink-3); cursor: pointer; transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); animation: rise .4s var(--ease); }
.field input { height: 48px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise-2); font: 500 15px var(--font); color: var(--ink); transition: border-color .25s, box-shadow .25s, background .25s; }
.field input[name="invite"] { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.field input:focus { outline: none; border-color: var(--accent); background: var(--raise); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.form-msg { padding: 10px 13px; border-radius: 11px; background: var(--bad-soft); color: var(--bad); font-size: 14px; font-weight: 600; animation: shake .45s; }
.dl-ready { display: flex; flex-direction: column; gap: 10px; animation: rise .5s var(--ease); }
.dl-ready p { font-size: 13px; color: var(--ink-3); }
.smartscreen { font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }
.smartscreen summary { cursor: pointer; font-weight: 600; color: var(--ink-3); list-style: none; }
.smartscreen summary::-webkit-details-marker { display: none; }
.smartscreen summary::before { content: "+"; display: inline-block; width: 16px; font-family: var(--mono); transition: transform .3s; }
.smartscreen[open] summary::before { transform: rotate(45deg); }
.smartscreen p { margin-top: 8px; line-height: 1.7; }

/* changelog */
.changelog { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 30px; max-width: 760px; }
.band.tint > .changelog { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.changelog::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.changelog > li { position: relative; }
.changelog > li:not(.muted)::before { content: ""; position: absolute; left: -28px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--accent); }
.changelog > li:first-child:not(.muted)::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.cl-head { display: flex; align-items: baseline; gap: 12px; }
.cl-head b { font: 700 17px var(--mono); }
.cl-head time { font-size: 13.5px; color: var(--ink-3); }
.changelog ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }

/* footer */
.foot { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 48px 24px 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px; color: var(--ink-3); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand b { color: var(--ink); font: 700 17px var(--display); }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot small { flex-basis: 100%; }

/* document pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font: 750 clamp(30px, 4vw, 40px)/1.25 var(--display); letter-spacing: -.025em; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin: 12px 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc h2 { display: flex; align-items: center; gap: 12px; font: 700 20px var(--display); margin: 44px 0 14px; }
.doc h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.doc p, .doc li { color: var(--ink-2); font-size: 15.5px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc li::marker { color: var(--accent); }
.doc .table { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--ink-3); font-weight: 600; font-size: 13px; background: var(--raise-2); }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
html.js .reveal.in { opacity: 1; transform: none; filter: none; }
html.js .card.reveal.in { transition: opacity .9s var(--ease) var(--d, 0s), transform .5s var(--spring), filter .9s var(--ease) var(--d, 0s), box-shadow .4s, border-color .4s; }
html.js .quiz.reveal.in { transform: rotate(1deg); }
.lang-swap main, .lang-swap .top-nav { animation: langFade .5s var(--ease); }

@keyframes lineUp { to { transform: none; } }
@keyframes mark { to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sway { from { transform: rotate(-3deg) translateX(-2%); } to { transform: rotate(4deg) translateX(3%); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes travelY { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 8px var(--accent-wash), 0 0 0 16px color-mix(in srgb, var(--accent) 5%, transparent); } 50% { box-shadow: 0 0 0 12px var(--accent-wash), 0 0 0 24px color-mix(in srgb, var(--accent) 3%, transparent); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@keyframes langFade { from { opacity: .35; filter: blur(3px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 64px; padding-top: 40px; min-height: 0; }
  .demo { max-width: 640px; margin: 0 auto; width: 100%; }
  .arch-big { right: -20%; opacity: .5; }
  .study, .download { grid-template-columns: 1fr; gap: 48px; }
  .viewer { grid-template-columns: 1fr; gap: 18px; }
  .viewer-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; }
  .viewer-tabs button { white-space: nowrap; padding: 10px 14px; }
}
@media (max-width: 760px) {
  .top { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .top-nav { display: none; }
  .hero { padding: 28px 16px 64px; gap: 56px; }
  .headline { font-size: clamp(30px, 8.6vw, 40px); }
  .lead { font-size: 16px; }
  .demo-tilt { transform: none !important; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .fc-src { right: 8px; bottom: -40px; }
  .fc-key { left: 8px; }
  .band { padding: 84px 16px; }
  .grid6, .grid3 { grid-template-columns: 1fr; }
  .grid6 { margin-top: 56px; }
  .quiz { margin-left: 0; }
  .quiz-opts { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .wire { width: 2px; height: 44px; margin: 6px auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .wire i { left: -3px; animation-name: travelY; }
  .dl-card { padding: 22px; }
  .foot { padding: 40px 16px 52px; }
  .foot nav { margin-left: 0; }
  .doc { padding: 44px 16px 72px; }
}

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