/* stratumdb.com: one page, dark product style, the brand's violet and isometric slabs.
   Fonts self-hosted (SIL OFL 1.1: fonts/OFL-*.txt). Motion: assets/main.js (GSAP 3.15, self-hosted in vendor/). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-display-Medium.woff2) format('woff2'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/inter-display-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); }

:root {
  --bg: #07050F;
  --bg-2: #0D0919;
  --panel: #120D22;
  --panel-2: #181130;
  --line: rgba(245, 242, 251, 0.08);
  --line-2: rgba(245, 242, 251, 0.14);
  --ink: #F5F2FB;
  --ink-2: #CBC4DC;
  --ink-3: #8D86A6;
  --dim: #2F2845;
  --violet: #6C00D4;
  --violet-2: #8B2BF0;
  --lilac: #A03CFB;
  --lavender: #C39BFF;
  --amber: #E0A030;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Inter Display', 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 60px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 400 17px/1.6 var(--text); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--lavender); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--lavender); letter-spacing: 0.01em; margin-bottom: 14px; }
.eyebrow--amber { color: var(--amber); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.lead--small { font-size: 19px; }
.note { margin-top: 28px; font-size: 14px; color: var(--ink-3); max-width: 60em; }

/* -- Nav ------------------------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(7, 5, 15, 0.6); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 18px var(--display); }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-3); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav__products { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(245, 242, 251, .04); border: 1px solid var(--line); font-size: 14px; }
.nav__products a { text-decoration: none; color: var(--ink-3); padding: 5px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__products a:hover { color: var(--ink); }
.nav__products a[aria-current] { color: var(--ink); background: linear-gradient(135deg, var(--violet-2), var(--violet)); }
@media (max-width: 1100px) { .nav__links { display: none; } }
@media (max-width: 520px) { .nav__brand span { display: none; } .nav__products a { padding: 5px 9px; } }

/* -- Buttons --------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { border-color: var(--lavender); transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--violet-2), var(--violet)); border-color: transparent; box-shadow: 0 10px 40px -12px rgba(139, 43, 240, .8); }
.btn--primary:hover { border-color: transparent; }

/* -- Hero ------------------------------------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: clip; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 90vw; height: 90vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(108, 0, 212, .38), rgba(108, 0, 212, 0) 70%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; width: 100%; }
.hero__title { font-size: clamp(64px, 10vw, 148px); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: 26px; }
.hero__title .char { display: inline-block; }
.hero__cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero__stack { position: relative; }
.stack { width: min(100%, 520px); margin: 0 auto; overflow: visible; filter: drop-shadow(0 40px 60px rgba(108, 0, 212, .35)); }
.hero__glow { position: absolute; inset: 20% 15%; background: radial-gradient(closest-side, rgba(160, 60, 251, .35), transparent); filter: blur(30px); z-index: -1; }
.hero__hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); letter-spacing: .08em; }
.hero__hint::after { content: ''; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--ink-3), transparent); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: left; }
  .hero__stack { order: -1; max-width: 320px; }
  .hero__hint { display: none; }
}

/* -- Statement ------------------------------------------------------------------------------------- */
.statement { padding: clamp(80px, 14vh, 160px) 0; }
.statement__text { font: 500 clamp(28px, 3.6vw, 52px)/1.22 var(--display); letter-spacing: -0.025em; color: var(--ink); max-width: 22em; }
.statement__text .word { color: var(--dim); }
.reduce .statement__text .word { color: var(--ink); }

/* -- Sections -------------------------------------------------------------------------------------- */
.section { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.section__title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; margin-bottom: clamp(36px, 5vw, 60px); max-width: 16em; }
.cols { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cols--3 { grid-template-columns: 1fr; } }

.feature, .platform {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
}
.feature::before, .platform::before {
  content: ''; position: absolute; top: 0; left: 28px; width: 44px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--lilac), var(--violet));
}
.feature--amber::before { background: var(--amber); }
.feature h3 { font-size: 22px; margin: 8px 0 12px; }
.feature p, .platform p { font-size: 16px; }
.platform p.platform__name { font: 600 30px var(--display); color: var(--ink); letter-spacing: -0.02em; margin-top: 6px; }
.platform p.platform__os { font-size: 14px; color: var(--lavender); margin: 4px 0 16px; }

/* -- Write path ------------------------------------------------------------------------------------ */
.path { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.path__head h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; }
.path__stage { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 44px; }
.path__svg { width: 100%; max-width: 600px; overflow: visible; }
.svg-label { fill: var(--ink-3); font: 600 13px var(--text); }
.svg-name { fill: var(--ink); font: 600 17px var(--display); }
.svg-desc { fill: var(--ink-3); font: 400 13px var(--text); }
.svg-skip { fill: var(--amber); font: 600 12px var(--text); }
.path__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.step { position: relative; padding-left: 56px; }
.step__n {
  position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 600 16px var(--display); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line-2);
}
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { font-size: 16px; }
.path .dot { opacity: 0; }

/* Pinned mode (desktop, tall enough): one step at a time, the layers light up in turn. */
.path.is-pinned { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 40px; }
.path.is-pinned .path__in { width: 100%; }
.path.is-pinned .path__stage { margin-top: 28px; }
.path.is-pinned .path__steps { display: block; position: relative; min-height: 230px; }
.path.is-pinned .step { position: absolute; inset: 0 0 auto 0; }
.path.is-pinned .step h3 { font-size: 34px; }
.path.is-pinned .step p { font-size: 19px; }
.path.is-pinned .step__n { width: 44px; height: 44px; font-size: 18px; }
.path.is-pinned .step { padding-left: 66px; }
.path.is-pinned .path__svg { max-height: calc(100svh - var(--nav-h) - 190px); width: auto; margin: 0 auto; }

/* Flow diagrams (sub pages): nodes and wires lit step by step (main.js flows()). */
.n-box { fill: #151027; stroke: #3A3155; stroke-width: 1.2; }
.n-box--hot { fill: url(#g-top-3); stroke: #B57BFF; }
.n-box--hot + .svg-name, .n-box--hot ~ .svg-desc { fill: #fff; }
.wire { stroke: #8D86A6; stroke-width: 2; fill: none; }
.svg-side { fill: var(--ink-3); font: 400 12px var(--text); }
.path__progress { display: none; }
.path.is-pinned .path__progress { display: flex; gap: 8px; margin-top: 30px; }
.path__progress i { width: 34px; height: 3px; border-radius: 3px; background: var(--dim); }
.path__progress i.on { background: var(--lavender); }
@media (max-width: 900px) { .path__stage { grid-template-columns: 1fr; } .path__svg { max-width: 460px; } }

/* -- Search ---------------------------------------------------------------------------------------- */
.search { display: grid; gap: 28px; }
.code {
  margin: 0; padding: 28px 30px; border-radius: var(--radius); background: #0B0817; border: 1px solid var(--line);
  font: 400 14.5px/1.7 var(--mono); color: #E7E0F7; overflow-x: auto;
}
.code .k { color: #C39BFF; } .code .f { color: #8FD3FF; } .code .s { color: #9BE3A8; }
.code .n { color: #F5C27A; } .code .t { color: #F5F2FB; font-weight: 700; } .code .c { color: #6E6789; }

/* -- Numbers --------------------------------------------------------------------------------------- */
.versus {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
}
.versus__head h3 { font-size: 26px; margin-bottom: 12px; }
.bars__title { font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 18px 0 10px; }
.bars__title:first-child { margin-top: 0; }
.bar { display: grid; grid-template-columns: 110px 1fr 86px; align-items: center; gap: 14px; margin: 8px 0; font-size: 16px; }
.bar__label { color: var(--ink-2); text-align: right; }
.bar__track { height: 14px; border-radius: 7px; background: rgba(245, 242, 251, .04); overflow: hidden; }
.bar__fill { display: block; height: 100%; width: max(var(--w), 6px); border-radius: 7px; background: linear-gradient(90deg, var(--violet-2), var(--lilac)); transform-origin: left; }
.bar__fill--base { background: #4A4362; }
.bar__value { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .versus { grid-template-columns: 1fr; } .bar { grid-template-columns: 92px 1fr 72px; font-size: 14px; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 28px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stats .stat { background: var(--bg-2); padding: 30px 28px; }
.stat__n { font: 600 clamp(40px, 4.6vw, 60px)/1 var(--display); color: var(--lavender); letter-spacing: -0.03em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat p:not(.stat__n) { font-size: 15px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* -- Glossary -------------------------------------------------------------------------------------- */
.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); margin: 0; }
.glossary > div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.glossary dt { color: var(--ink); font: 600 17px var(--display); }
.glossary dd { margin: 0; font-size: 15.5px; }
.glossary--one { grid-template-columns: 1fr; }
.glossary--one > div { grid-template-columns: 110px 1fr; }
.glossary--one > div:first-child { border-top: 0; padding-top: 0; }
.stats--two { grid-template-columns: 1fr 1fr; margin-top: 0; }
@media (max-width: 900px) { .glossary { grid-template-columns: 1fr; } .glossary > div { grid-template-columns: 120px 1fr; } }

/* -- Lists of commands, tools, tables ------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font: 500 13.5px var(--mono); color: var(--ink-2); padding: 6px 11px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); }
.chips-group + .chips-group { margin-top: 26px; }
.chips-group h3 { font-size: 18px; margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-top: 1px solid var(--line); }
.table th { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.table td:last-child, .table th:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cols--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols--4 { grid-template-columns: 1fr; } }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px; }
.products a { display: block; text-decoration: none; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.products a:hover { border-color: var(--lavender); transform: translateY(-2px); }
.products b { display: block; color: var(--ink); font: 600 20px var(--display); margin-bottom: 6px; }
.products span { font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* -- Claude ---------------------------------------------------------------------------------------- */
.claude { background: radial-gradient(60% 80% at 85% 50%, rgba(108, 0, 212, .22), transparent 70%); }
.claude__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.claude__grid .section__title { margin-bottom: 24px; }
.claude__stats { display: grid; gap: 18px; }
.claude__stats .stat { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
@media (max-width: 900px) { .claude__grid { grid-template-columns: 1fr; } }

/* -- Footer ---------------------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 16px var(--display); }
.footer__love { flex-basis: 100%; text-align: center; margin-top: 18px; }
.footer__love a { text-decoration: none; color: var(--ink-3); transition: color .2s; }
.footer__love a:hover { color: var(--ink); }
.footer__love strong { color: var(--ink-2); font-weight: 600; }
.footer__love .heart { color: var(--lilac); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.reduce .footer__love .heart { animation: none; }

/* Elements that GSAP reveals start hidden only when the motion runs (html.motion, set by main.js). */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
