@font-face { font-family: "Inter Tight"; src: url(assets/fonts/inter-tight-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #EBF1F0;
  --paper-2: #DEE7E5;
  --ink: #0A1211;
  --ink-2: #4A5756;
  --dark: #0D1413;
  --dark-2: #172120;
  --line: #C6D3D0;
  --or: #4DFFF3;
  --or-2: #4DFFF3;
  --or-ink: #006B65; /* #4DFFF3 darkened for text on the light background (5:1) */
  --radius: 22px;
  --pad: clamp(16px, 2.2vw, 32px);
  --display: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }
.mono { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.prose, .mono.prose { text-transform: none; letter-spacing: .01em; font-size: 13px; line-height: 1.6; }
.wrap { padding: 0 var(--pad); }
section { scroll-margin-top: 90px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; margin: var(--pad) var(--pad) 0; border-radius: var(--radius); overflow: hidden;
  height: min(88vh, 820px); min-height: 560px; color: #EEF6F5;
  background: radial-gradient(120% 95% at 72% 115%, #C9FFFB 0%, #4DFFF3 30%, #0E9C93 58%, #06302D 84%, #040B0B 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.hero-title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-38%); z-index: 1;
  text-align: center; font-weight: 600; letter-spacing: -0.055em; line-height: .86;
  font-size: clamp(64px, 11.6vw, 190px); white-space: nowrap; pointer-events: none;
}
.hero-foot { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 3; gap: 24px; }
.hero-foot p { max-width: 360px; color: #021412; }
/* light glass chips: the hero gradient runs from near-black to bright cyan, so text never sits on it directly */
.hero-foot > * { background: rgba(235, 241, 240, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 8px 12px; border-radius: 10px; color: #021412; }

nav.top {
  position: absolute; z-index: 5; top: 14px; left: 14px; right: 14px; height: 58px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 18px;
  background: rgba(10, 18, 17, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 18px; }
.brand svg { width: 22px; height: 22px; }
nav.top ul { list-style: none; display: flex; gap: 30px; }
nav.top ul a { text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
nav.top ul a:hover { opacity: 1; color: var(--or-2); }
.nav-r { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 0;
  background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, transform .2s;
}
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.1); color: #EEF6F5; }
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #24302E; }

/* ---------- STATEMENT ---------- */
.statement { padding: clamp(90px, 12vw, 170px) var(--pad) clamp(70px, 9vw, 120px); display: grid; place-items: center; }
.st-grid { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: clamp(14px, 2vw, 28px); row-gap: 6px; }
.st-word { font-weight: 600; letter-spacing: -0.05em; line-height: .9; font-size: clamp(46px, 9vw, 132px); text-transform: uppercase; }
.st-chip { display: block; flex: none; width: clamp(52px, 8vw, 118px); aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #06302D; }
.st-row { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.st-chip video { width: 100%; height: 100%; object-fit: cover; }
.st-copy { grid-column: 1; justify-self: end; max-width: 260px; font: 500 13px/1.6 var(--mono); letter-spacing: .01em; }
.st-grid sup { font-size: .32em; vertical-align: top; position: relative; top: .25em; margin-left: .05em; }

/* ---------- TOOLSET ---------- */
.tools { padding: 0 var(--pad) clamp(70px, 9vw, 120px); }
.tools .mono { color: var(--ink-2); margin-bottom: 28px; }
/* automatic horizontal slider: two identical lists side by side, each slides one full width and starts over,
   so the loop has no seam; hover pauses it; reduced motion gets the static wrapping list */
.marquee { --gap: clamp(18px, 2.4vw, 34px); display: flex; overflow: hidden; margin: 0 calc(var(--pad) * -1); padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.toolset { list-style: none; display: flex; flex: none; align-items: baseline; gap: var(--gap); padding-right: var(--gap); animation: tools 42s linear infinite; }
.marquee:hover .toolset { animation-play-state: paused; }
@keyframes tools { to { transform: translateX(-100%); } }
.toolset li { font-weight: 700; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.03em; white-space: nowrap; color: #34403E; }
.toolset li:nth-child(3n+1) { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.toolset li:nth-child(4n+2) { font-style: italic; font-weight: 800; }
.toolset li::after { content: "/"; margin-left: var(--gap); color: var(--or-ink); font-family: var(--mono); font-style: normal; font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
  .marquee { margin: 0; -webkit-mask-image: none; mask-image: none; }
  .toolset { animation: none; flex: 1; flex-wrap: wrap; row-gap: 10px; }
  .toolset[aria-hidden] { display: none; }
  .toolset li:last-child::after { content: none; }
}

/* ---------- SECTION HEAD ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 0 var(--pad); margin-bottom: 22px; }
.head h2 { font-weight: 500; letter-spacing: -0.045em; font-size: clamp(34px, 4.6vw, 64px); line-height: 1; }
.head h2 .arr { display: inline-block; width: .55em; vertical-align: -.02em; }
.head .mono a { text-decoration: none; }
.head .mono a:hover { color: var(--or-ink); }

/* ---------- DEMO ---------- */
.demo { padding-bottom: clamp(80px, 10vw, 140px); }
.demo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; padding: 0 var(--pad); }
.card { position: relative; border-radius: 16px; overflow: hidden; background: var(--dark); color: #EEF6F5; }
.card.video video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; background: #000; }
.card .cap { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none; }
.tag { display: inline-block; padding: 5px 9px; border-radius: 6px; background: rgba(255,255,255,.14); font: 500 11px/1 var(--mono); letter-spacing: .06em; }
.card.light .tag, .tag.l { background: var(--paper-2); color: var(--ink); }
.chapters { padding: 26px 26px 22px; display: flex; flex-direction: column; background: var(--dark-2); }
.chapters h3 { font-weight: 500; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.chapters ol { list-style: none; display: flex; flex-direction: column; flex: 1; }
.chapters li { border-top: 1px solid #283533; }
.chapters button {
  width: 100%; text-align: left; background: none; border: 0; color: #CAD5D3; cursor: pointer; padding: 11px 0;
  display: flex; justify-content: space-between; gap: 10px; font: 400 14px/1.3 var(--display);
}
.chapters button span:last-child { font: 400 12px var(--mono); color: #7E8B89; }
.chapters button:hover, .chapters button.on { color: var(--or-2); }
.chapters .note { margin-top: 14px; color: #7E8B89; font-size: 12px; }
.result { padding: clamp(40px, 5vw, 64px) var(--pad) 0; }
.result > .mono { color: var(--ink-2); margin-bottom: 16px; }
/* the 9:16 column is 81/256 of the 16:9 one, so both players come out the same height */
.result-grid { display: grid; grid-template-columns: minmax(0, 2.56fr) minmax(0, .81fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.result-grid .card.video video { aspect-ratio: 16 / 9; height: auto; }
.result-grid .card.vert video { aspect-ratio: 9 / 16; }
.result-meta { padding: 24px; background: var(--dark-2); display: flex; flex-direction: column; gap: 12px; }
.result-meta h3 { font-weight: 500; font-size: 24px; letter-spacing: -.03em; line-height: 1.1; }
.result-meta p { color: #CAD5D3; font-size: 14px; }
.result-meta ul { list-style: none; display: grid; gap: 0; }
.result-meta li { border-top: 1px solid #283533; padding: 6px 0; font-size: 13px; color: #CAD5D3; display: flex; flex-direction: column; }
.result-meta li b { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--or-2); }

/* ---------- FEATURES ---------- */
.features { padding-bottom: clamp(80px, 10vw, 140px); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0 var(--pad); }
.feat { background: #F7FBFA; border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 28px; min-height: 260px; display: flex; flex-direction: column; transition: transform .3s, background .3s, color .3s; }
.feat:hover { transform: translateY(-4px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feat:hover .n { color: var(--or); }
.feat .n { font: 500 12px var(--mono); color: var(--or-ink); letter-spacing: .1em; }
.feat h3 { margin: auto 0 10px; padding-top: 40px; font-size: 27px; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.feat p { font-size: 15px; opacity: .78; }

/* ---------- MODES ---------- */
.modes { padding-bottom: clamp(80px, 10vw, 140px); }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 var(--pad); }
.mode { background: var(--dark); color: #EEF6F5; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.mode:first-child { background: radial-gradient(130% 120% at 100% 120%, #4DFFF3 0%, #0E9C93 40%, #031614 85%); }
.mode .top { display: flex; justify-content: space-between; align-items: baseline; }
.mode h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.mode p { color: #C9D4D2; font-size: 15px; max-width: 520px; }
.prompt { font: 400 14px/1.55 var(--mono); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; color: #fff; }
.prompt::before { content: "> "; color: var(--or-2); }
pre.cmd { font: 400 13px/1.65 var(--mono); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; overflow-x: auto; color: #E2EAE8; }
pre.cmd .c { color: #7E8B89; }
.asks { padding: 40px var(--pad) 0; }
.asks .mono { color: var(--ink-2); margin-bottom: 16px; }
.ask-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-list span { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 15px; transition: background .2s, color .2s; }
.ask-list span:hover { background: var(--or); border-color: var(--or); color: #021412; }

/* ---------- COMPONENTS ---------- */
.components { padding-bottom: clamp(80px, 10vw, 140px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad); margin-bottom: 18px; }
.filters button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 14px; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rows { padding: 0 var(--pad); }
.row { display: grid; grid-template-columns: 220px 1fr 140px 110px; gap: 20px; align-items: baseline; padding: 20px 4px; border-top: 1px solid var(--line); transition: opacity .25s, background .2s; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { background: #F7FBFA; }
.row.dim { opacity: .22; }
.row h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--or-ink); }
.row p { font-size: 15px; color: #34403E; }
.row .g, .row .s { font: 500 12px var(--mono); color: var(--ink-2); }
.row .s { text-align: right; color: var(--or-ink); }
.pipeline { margin: 18px var(--pad) 0; font-size: 15px; color: var(--ink-2); }

/* ---------- INSTALL ---------- */
.install { padding: 0 var(--pad) clamp(80px, 10vw, 140px); }
.install-card { background: var(--dark); color: #EEF6F5; border-radius: var(--radius); padding: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(26px, 4vw, 60px); }
.install-card h2 { font-weight: 500; letter-spacing: -.045em; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; margin-bottom: 18px; }
.install-card p { color: #BCC8C6; font-size: 15px; }
.req { margin-top: 26px; list-style: none; display: grid; gap: 10px; }
.req li { display: grid; grid-template-columns: 22px 1fr; font-size: 14px; color: #C9D4D2; }
.req li::before { content: "↳"; color: var(--or-2); font-family: var(--mono); }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { background: transparent; border: 1px solid #33403E; color: #BCC8C6; border-radius: 8px; padding: 8px 12px; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.tabs button.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.code { position: relative; }
.code pre { font: 400 13.5px/1.7 var(--mono); background: #070D0C; border: 1px solid #24302E; border-radius: 12px; padding: 18px 18px; overflow-x: auto; white-space: pre; }
.code pre[hidden] { display: none; }
.copy { position: absolute; top: 10px; right: 10px; }
.copy.btn { height: 30px; padding: 0 10px; font-size: 10px; }
.steps { margin-top: 22px; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; font-size: 15px; color: #C9D4D2; }
.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 3px; font: 500 12px var(--mono); color: var(--or-2); }
.steps code { background: #1F2A29; padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- FOOTER ---------- */
footer { padding: 0 var(--pad) var(--pad); }
.foot-card { border-top: 1px solid var(--ink); padding-top: 26px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-top ul { list-style: none; display: grid; gap: 6px; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { color: var(--or-ink); }
.foot-big { font-weight: 600; letter-spacing: -.06em; line-height: .82; font-size: clamp(56px, 12.6vw, 220px); margin: clamp(40px, 6vw, 80px) 0 18px; white-space: nowrap; overflow: hidden; }
.foot-big span { color: var(--or); -webkit-text-stroke: 2px var(--or-ink); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--ink-2); }

/* reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  nav.top ul { display: none; }
  .demo-grid, .install-card, .mode-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: minmax(0, 2.56fr) minmax(0, .81fr); }
  .result-meta { grid-column: 1 / -1; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row p { grid-column: 1 / -1; }
  .row .g { grid-column: 1; }
}
@media (max-width: 640px) {
  .hero { height: 78vh; min-height: 520px; }
  /* stacked on phones: title in the dark upper band, 3D mark in its own area below it, never on top of the words */
  .hero-title { font-size: 15vw; white-space: normal; line-height: .9; top: 96px; transform: none; }
  .hero canvas { top: calc(96px + 30vw); height: calc(100% - 96px - 30vw - 136px); }
  .foot-big { white-space: normal; font-size: 19vw; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .nav-r .btn.ghost { padding: 0 10px; }
  .gh-label { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; }
  .st-grid { grid-template-columns: 1fr; }
  .st-copy { justify-self: start; order: 9; margin-top: 18px; }
  .head { flex-direction: column; align-items: flex-start; }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid .card.vert { width: min(100%, 300px); justify-self: center; }
}

/* grid children may hold long code lines: let them shrink */
.demo-grid > *, .mode-grid > *, .install-card > *, .feat-grid > * { min-width: 0; }
.steps code { white-space: normal; word-break: break-word; }
html, body { overflow-x: clip; }
