/*
 * Glossferry design system, fifth iteration: flat dark developer-platform style.
 * Structure follows what works on crowdin.com: neutral near-black page, no glows or decorative gradients,
 * light 8px buttons, big plain headlines with a grey second half, "without / with" comparison cards,
 * arrow lists with title and description, numbered step cards, framed product UI.
 * Own palette (ferry orange as the only accent), own copy, own components, own product mock-up.
 */
@font-face { font-family: "Manrope Variable"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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: "Manrope Variable"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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 Variable"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #181818;
  --bg-deep: #121212;
  --surface: #1f1f1f;
  --surface-2: #262626;
  --surface-3: #2f2f2f;
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.20);
  --text: #fafafa;
  --body: #d4d4d4;
  --muted: #a3a3a3;
  --dim: #737373;
  --accent: #ff7a2e;
  --accent-ink: #1a0d05;
  --accent-soft: rgba(255,122,46,.14);
  --btn: #f4f4f4;
  --btn-ink: #262626;
  --ok: #4ade80; --ok-soft: rgba(74,222,128,.12);
  --error: #ff6b6b; --error-soft: rgba(255,107,107,.12);
  --warn: #fbbf24; --warn-soft: rgba(251,191,36,.12);
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 24px;
  --display: "Manrope Variable", "Inter Variable", system-ui, sans-serif;
  --sans: "Inter Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img, svg { max-width: 100%; }
::selection { background: rgba(255,122,46,.35); }
code, pre, .mono { font-family: var(--mono); }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--display); font-weight: 700; color: var(--text); line-height: 1.1; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5.6vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
h4 { font-size: 18px; font-weight: 700; }
.dim { color: #8a8a8a; }
.lead { font-size: 18px; line-height: 1.55; color: var(--body); max-width: 38em; margin: 0; }
.lead strong { color: var(--text); font-weight: 600; }
.sub { font-size: 18px; color: var(--muted); margin: 0; }
.eyebrow { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-left { display: flex; align-items: center; gap: 36px; }
.brand img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; }
.nav-links a:hover, .nav-links a.on { opacity: 1; text-decoration: none; color: #fff; }
.nav-cta { display: flex; gap: 22px; align-items: center; }
.nav-cta > a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }

/* Buttons: light, 8px radius */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: var(--r-sm); border: 1px solid transparent; font: 500 16px/1 var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid rgba(255,122,46,.55); outline-offset: 2px; }
.btn-primary, .btn-light { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover, .btn-light:hover { background: #fff; }
.btn-secondary, .btn-ghost { background: transparent; color: var(--text); border-color: rgba(244,244,244,.25); }
.btn-secondary:hover, .btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(244,244,244,.45); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ff9150; }
.btn-lg { height: 48px; padding: 0 28px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--error); border-color: rgba(255,107,107,.4); }
.btn-danger:hover { background: var(--error-soft); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; }
.text-link::after { content: "↗"; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--error); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Sections: plain, generous spacing */
.hero { padding: 56px 0 24px; }
.hero h1 { margin-bottom: 24px; max-width: 14em; }
.hero .lead { margin-bottom: 32px; }
.hero-note { margin-top: 24px; color: var(--muted); font-size: 15px; }
.hero-note a { font-weight: 600; color: var(--text); }
.facts { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 56px; }
.facts div b { display: block; font: 800 36px/1 var(--display); letter-spacing: 0; }
.facts div span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 860px; margin-bottom: 48px; }
.section-head .sub { margin-top: 16px; }

/* Product frame: flat, rounded, no glow */
.frame { border-radius: var(--r-lg); padding: 12px; background: linear-gradient(180deg, #2c2c2c 0%, #1f1f1f 100%); border: 1px solid var(--line); }
.frame-inner { border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--dim); }
.window-bar .dots { display: inline-flex; gap: 6px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.window-bar .grow { flex: 1; text-align: center; }

/* Playground */
.pg-wrap { margin-top: 56px; }
.pg { display: grid; grid-template-columns: 1fr 1fr; }
.pg-pane { padding: 24px; min-height: 270px; display: flex; flex-direction: column; }
.pg-pane + .pg-pane { border-left: 1px solid var(--line); }
.pg-label { font: 600 12px var(--sans); color: var(--dim); margin-bottom: 12px; display: flex; justify-content: space-between; }
.pg textarea { flex: 1; width: 100%; min-height: 140px; resize: none; background: transparent; border: 0; outline: none; color: var(--text); font: 500 20px/1.45 var(--display); }
.pg textarea::placeholder { color: var(--dim); }
.pg-out { flex: 1; font: 500 20px/1.45 var(--display); color: var(--text); min-height: 140px; }
.pg-out.empty { color: var(--dim); font-weight: 400; }
.pg-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pg-note { margin-top: 16px; font-size: 14px; color: var(--dim); }
.pg select.input { width: auto; height: 38px; font-size: 14px; }

/* Language strip (like a logo strip, plain grey) */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 80s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.lang-item { font: 700 22px var(--display); color: #5c5c5c; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Tabs (icon + label, like content-type tabs) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tabs button { display: inline-flex; align-items: center; gap: 10px; font: 500 15px var(--sans); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); padding: 11px 18px; cursor: pointer; transition: all .15s; }
.tabs button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }
.tab-panel { display: none; } .tab-panel.on { display: block; }
.tab-lead { font-size: 18px; color: var(--body); margin: 0 0 24px; }

/* Segmented tabs for code */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { font: 500 14px var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 8px 16px; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); }
.code-tabs { margin: 0 0 14px; }
.code-pane { display: none; } .code-pane.on { display: block; }

/* Lists: arrow + title + description */
.arrow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.arrow-list li { position: relative; padding-left: 40px; }
.arrow-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 14px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none' stroke='%23ff7a2e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 7h19M14 1l6 6-6 6'/%3E%3C/svg%3E"); }
.arrow-list b { display: block; font: 600 17px var(--sans); color: var(--text); }
.arrow-list span { color: var(--muted); font-size: 16px; }
.dot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.dot-list li { position: relative; padding-left: 28px; color: var(--body); }
.dot-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; color: var(--body); font-size: 15px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ff7a2e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6.6'/%3E%3Cpath d='M5.2 8.2l2 2 3.6-4'/%3E%3C/svg%3E"); }

/* Cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card-big { padding: 40px; }
.card-num { font: 800 48px/1 var(--display); margin-bottom: 16px; color: var(--text); }
.pill { display: inline-block; padding: 7px 16px; border-radius: var(--r-sm); background: #333; color: #d4d4d4; font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.pill-accent { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-off { background: var(--error-soft); color: var(--error); }

/* Numbered step cards */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; min-height: 360px; padding: 28px 24px 72px; border-radius: var(--r-lg); background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); }
.step h3 { font-size: 24px; margin-bottom: 14px; }
.step > p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.step .n { position: absolute; right: 22px; bottom: 16px; font: 500 36px var(--display); color: #d4d4d4; }

/* Product mock-up (dashboard preview) */
.mock { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; text-align: left; font-size: 13px; }
.mock-side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; gap: 4px; align-content: start; }
.mock-side .logo-mini { padding: 4px 10px 16px; }
.mock-side .logo-mini img { height: 18px; width: auto; display: block; }
.footer .footer-logo { height: 30px; width: auto; display: block; }
.mock-side a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; pointer-events: none; text-decoration: none; }
.mock-side a.on { background: var(--surface-3); color: var(--text); }
.mock-side span { display: block; }
.mock-main { padding: 22px 26px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-top b { font: 700 18px var(--display); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.mock-stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.mock-stat b { display: block; font: 800 24px var(--display); }
.mock-stat span { color: var(--muted); }
.mock-chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); margin-bottom: 14px; }
.mock-chart .bars { height: 110px; }
.mock-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.mock-table div { display: grid; grid-template-columns: 1.4fr 1fr .6fr .6fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mock-table div:last-child { border-bottom: 0; }
.mock-table div:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.mock-table code { color: #ffb184; }

/* Code */
.code { background: #0e0e0e; color: #e5e5e5; border-radius: var(--r-md); padding: 22px 24px; font: 400 13.5px/1.75 var(--mono); overflow-x: auto; margin: 0; white-space: pre; text-align: left; border: 1px solid var(--line); }
.code .k { color: #ffb184; } .code .s { color: #7ee2a8; } .code .c { color: #737373; } .code .p { color: #8fb8ff; }
:not(pre) > code { font-size: .86em; background: rgba(255,255,255,.08); border-radius: 6px; padding: 2px 7px; color: #ffd0b3; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input, select.input, textarea.input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg-deep); font: 400 15px var(--sans); color: var(--text); transition: border-color .15s, box-shadow .15s; }
select.input { color-scheme: dark; }
textarea.input { height: auto; padding: 12px 14px; }
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,122,46,.2); }
.input.invalid { border-color: var(--error); }
.field-error { margin-top: 6px; font-size: 14px; color: var(--error); }
.help { margin-top: 6px; font-size: 14px; color: var(--dim); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 15px; margin-bottom: 20px; text-align: left; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(74,222,128,.25); }
.alert-error { background: var(--error-soft); color: var(--error); border-color: rgba(255,107,107,.3); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(251,191,36,.3); }
.key-reveal { background: var(--surface-2); border: 1px solid rgba(255,122,46,.5); border-radius: var(--r-lg); padding: 24px 26px; margin-bottom: 24px; }
.key-reveal strong { font: 700 18px var(--display); }
.key-reveal code { display: block; background: #0e0e0e; color: #ffb184; padding: 14px 16px; border-radius: var(--r-sm); margin-top: 14px; font-size: 14px; word-break: break-all; user-select: all; border: 1px solid var(--line); }
.key-reveal p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Auth */
.auth { min-height: calc(100vh - 72px - 340px); display: grid; place-items: center; padding: 72px 0; }
.auth-card { width: min(440px, 100% - 32px); border-radius: var(--r-xl); padding: 40px; background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); }
.auth-card h1 { font-size: 32px; margin-bottom: 8px; }
.auth-card a { color: var(--text); }

/* Pricing */
.price-big { font: 800 clamp(48px, 5.6vw, 64px)/1 var(--display); }
.price-card { border-radius: var(--r-lg); padding: 40px; text-align: left; background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); }
.price-card.featured { border-color: rgba(255,122,46,.55); }
.price-card p { color: var(--muted); margin: 8px 0 0; }
.price-card .check-list { margin: 28px 0; }
.estimate { background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; margin-top: 20px; text-align: left; }

/* Docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding: 64px 0 112px; align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--muted); padding: 7px 14px; border-radius: 6px; font-weight: 500; text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(255,255,255,.05); border-left-color: var(--accent); }
.doc { text-align: left; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); }
.doc h2 { font-size: 30px; margin-top: 64px; padding-top: 8px; }
.doc p, .doc li { color: var(--body); }
.doc .code { margin: 16px 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); background: rgba(255,255,255,.03); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }

/* Dashboard */
.dash-wrap { min-height: calc(100vh - 72px - 300px); }
.dash { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 40px 0 112px; align-items: start; }
.side { position: sticky; top: 96px; display: grid; gap: 2px; }
.side a, .side button { display: flex; align-items: center; text-align: left; color: var(--muted); font: 500 15px var(--sans); padding: 10px 14px; border-radius: var(--r-sm); border: 0; background: none; cursor: pointer; width: 100%; text-decoration: none; border-left: 2px solid transparent; }
.side a:hover, .side button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.side a.on { background: var(--surface-2); color: var(--text); border-left-color: var(--accent); }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 36px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.stat .v { font: 800 30px/1.1 var(--display); }
.stat .l { font-size: 14px; color: var(--muted); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 168px; padding: 8px 4px 0; }
.bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .92; }
.bars i:hover { opacity: 1; }
.bars i.zero { background: #333; opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font: 400 11px var(--mono); color: var(--dim); padding: 8px 4px 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amount { display: block; text-align: center; background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 12px; color: var(--text); text-decoration: none; transition: border-color .15s; }
.amount:hover { border-color: var(--accent); }
.amount b { display: block; font: 800 28px var(--display); }
.amount span { font-size: 13px; color: var(--muted); }
.cardbox { border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; background: var(--bg-deep); }
.cardbox .input { border: 0; border-radius: 0; height: 50px; background: transparent; }
.cardbox .input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.cardbox .row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cardbox .row .input:first-child { border-right: 1px solid var(--line); }
.test-banner { background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(251,191,36,.3); border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }

/* Closing band, footer */
.cta-band { border-radius: var(--r-lg); padding: 64px 56px; background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line); }
.cta-band h2 { max-width: 16em; }
.cta-band .sub { margin: 16px 0 32px; }
.footer { padding: 72px 0 32px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 28px; margin-bottom: 40px; }
.footer h4 { font: 600 14px var(--sans); color: var(--text); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); padding: 4px 0; text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--dim); }
.prose { max-width: 68ch; text-align: left; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: var(--body); }
.legal { padding: 72px 0 96px; }

/* Hero: proof badges and app-window frame */
.hero { padding: 40px 0 8px; }
.hero-note a { text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 4.6vw, 54px); }
.hero-art { position: relative; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #292929 0%, #1c1c1c 100%); }
.art-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #151515; }
.art-card p { margin: 0; font: 600 15px/1.35 var(--display); color: var(--text); }
.art-src { padding: 18px 18px; }
.art-src p { font-size: 18px; }
.art-tag { flex: none; min-width: 34px; text-align: center; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 700 12px var(--mono); letter-spacing: .04em; }
.art-link { position: relative; display: flex; flex-direction: column; align-items: center; margin: 4px 0; }
.art-line { width: 0; height: 30px; border-left: 2px dashed var(--line-strong); }
.art-boat { display: block; margin: 4px 0; }
.art-boat svg { width: 36px; height: 24px; fill: var(--accent); display: block; }
.art-chip { margin: 2px 0 6px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 12px var(--mono); color: var(--muted); background: #151515; }
.art-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.art-out .art-card { align-items: flex-start; }
.art-caption { margin: 14px 0 0; text-align: right; font-size: 12px; color: var(--dim); }
@media (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 520px; }
}
@media (max-width: 480px) { .art-out { grid-template-columns: 1fr; } }
.frame-hero { background: radial-gradient(700px 240px at 50% 0, rgba(255,122,46,.07), transparent 70%), linear-gradient(180deg, #2c2a29 0%, #1f1f1f 100%); }
.frame-label { margin: 2px 8px 10px; text-align: right; font-size: 13px; color: var(--muted); }
.mock-link { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; cursor: default; }
.mock-link.on { background: var(--surface-3); color: var(--text); }
.mock-main .pg { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.mock-main .pg-pane { min-height: 280px; }
.mock-main .pg textarea, .mock-main .pg-out { font-size: 19px; }
.frame-hero .mock { min-height: 0; font-size: 13px; }

/* Content pages (pillar, use cases, guides, reference) */
.article { padding: 32px 0 96px; }
.crumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 28px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }
.article-head { max-width: 860px; margin-bottom: 40px; }
.article-head h1 { margin-bottom: 20px; font-size: clamp(34px, 4.8vw, 52px); }
.article-meta { margin: 16px 0 0; font-size: 14px; color: var(--dim); }
.article-body { max-width: 760px; }
.article-body h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 56px 0 16px; scroll-margin-top: 90px; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: var(--body); font-size: 17px; line-height: 1.7; }
.article-body ul, .article-body ol { padding-left: 22px; display: grid; gap: 10px; margin: 16px 0; }
.article-body a { color: var(--text); }
.article-body .table-card { margin: 20px 0; }
.article-body .table td, .article-body .table th { font-size: 15px; }
.code-block { position: relative; margin: 20px 0; }
.code-lang { position: absolute; top: 10px; right: 14px; font: 600 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.code-block .code { padding-top: 32px; }
.faq h3 { font-size: 19px; margin: 28px 0 8px; }
.related { margin-top: 72px; }
.related h2 { font-size: 28px; margin-bottom: 24px; }
.related-card { display: block; text-decoration: none; color: var(--text); transition: border-color .15s; }
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card h3 { font-size: 20px; }
.related-card .text-link { margin-top: 16px; }
.hub-grid { margin-top: 8px; }
.article-cta { margin-top: 80px; }

/* Page header illustrations (built from HTML, decorative) */
.article-head.has-art { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; max-width: none; }
.article-head.has-art .lead { max-width: 34em; }
.art-stack { display: flex; flex-direction: column; }
.art-code { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #101010; font: 400 13px/1.7 var(--mono); color: #e5e5e5; }
.art-code .c { display: block; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.art-ok { border-color: rgba(74,222,128,.4) !important; }
.art-down { display: flex; justify-content: center; padding: 12px 0; }
.art-boat svg { width: 34px; height: 23px; fill: var(--accent); display: block; }
.art-file { border-radius: 12px; border: 1px solid var(--line); background: #101010; overflow: hidden; }
.art-file-head { padding: 8px 14px; font: 600 12px var(--mono); color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.art-line-code { padding: 7px 14px; font: 400 13px var(--mono); color: #d4d4d4; }
.art-line-code i { font-style: normal; color: #8fb8ff; }
.art-line-code b { color: var(--accent); font-weight: 600; }
.art-line-code b.h { color: #fff; }
.art-keep { background: rgba(255,255,255,.04); color: #a3a3a3; border-top: 1px dashed var(--line-strong); }
.art-keep small { float: right; color: var(--dim); }
.art-browser { border-radius: 12px; border: 1px solid var(--line); background: #101010; overflow: hidden; }
.art-browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.art-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.art-browser-bar em { margin-left: 10px; flex: 1; padding: 3px 10px; border-radius: 6px; background: #1c1c1c; font: normal 400 11px var(--mono); color: var(--dim); }
.art-browser-body { padding: 18px; }
.art-switch { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 14px; }
.art-switch b { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); font: 600 11px var(--mono); color: var(--muted); }
.art-switch b.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(255,122,46,.4); }
.art-h { margin: 0 0 12px; font: 700 18px var(--display); }
.art-skel i { display: block; height: 9px; border-radius: 5px; background: #262626; margin-bottom: 8px; }
.art-skel i.short { width: 55%; }
.art-note { margin: 12px 0 0; font-size: 12px; color: var(--dim); }
.art-bubble { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #151515; margin-top: 8px; max-width: 94%; }
.art-bubble p { margin: 0; font: 600 14px/1.35 var(--display); }
.art-bubble small { flex-basis: 100%; font-size: 11px; color: var(--dim); }
.art-agent { margin-left: auto; background: #1b1b1b; }
.art-pass { border-color: rgba(74,222,128,.4); } .art-pass small { color: var(--ok); }
.art-fail { border-color: rgba(255,107,107,.45); } .art-fail small { color: var(--error); }
.tok { color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; font: 600 13px var(--mono); }
.art-term { border-radius: 12px; border: 1px solid var(--line); background: #0e0e0e; padding: 0 0 12px; font: 400 13px/1.8 var(--mono); color: #e5e5e5; }
.art-term > div { padding: 0 16px; }
.art-term-bar { display: flex; gap: 6px; padding: 10px 14px !important; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.art-term-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.art-term .prompt { color: var(--accent); } .art-term .dim { color: #8a8a8a; } .art-term .gap { height: 8px; }
.art-tree { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line); background: #101010; padding: 12px 16px; font: 400 13px/1.8 var(--mono); color: #cfcfcf; }
.art-tree .in { padding-left: 16px; } .art-tree .in2 { padding-left: 32px; color: #8a8a8a; } .art-tree .ok { color: var(--ok); }
.art-bars { display: grid; gap: 14px; padding: 6px 2px; }
.art-bar-row { display: grid; grid-template-columns: 112px 1fr 76px; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.art-bar { height: 10px; border-radius: 6px; background: #262626; overflow: hidden; }
.art-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.art-bar-row b { text-align: right; color: var(--text); font-size: 13px; }
.art-meter { padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: #151515; }
.art-label { display: block; font: 600 12px var(--sans); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.art-meter b { display: block; font: 800 40px/1.1 var(--display); margin: 6px 0 2px; }
.art-sub { font-size: 13px; color: var(--muted); }
.art-meter-bar { height: 8px; border-radius: 5px; background: #262626; margin-top: 16px; overflow: hidden; }
.art-meter-bar i { display: block; height: 100%; width: 100%; background: var(--accent); }
.art-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.art-rows div { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #151515; }
.art-rows b { display: block; font: 800 22px var(--display); } .art-rows span { font-size: 12px; color: var(--muted); }
.art-spark { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 16px; }
.art-spark i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; }
.art-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.art-chips span { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: #151515; font: 600 12px var(--mono); color: var(--body); }
.art-key { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #101010; }
.art-key code { display: block; margin-top: 8px; font-size: 14px; background: transparent; color: #ffb184; padding: 0; }
.art-checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.art-checks li { padding-left: 22px; position: relative; }
.art-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ok); }
.art-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.art-tiles div { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: #151515; font: 600 14px var(--display); }
.art-tiles svg { width: 26px; height: 26px; color: var(--accent); }
.card-icon, .mega-ico { flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card-icon { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px; }
.card-icon svg { width: 22px; height: 22px; }

/* Mega menu: full-width panels under the header (section label, cards or titles with descriptions, side column), and the mobile menu */
.nav-links { gap: 2px; }
.nav-item { display: flex; align-items: center; height: 72px; }
.nav-top { color: var(--text); opacity: .85; font-size: 15px; font-weight: 500; padding: 8px 2px 8px 12px; text-decoration: none; }
.nav-top:hover, .nav-top.on { opacity: 1; text-decoration: none; color: #fff; }
.nav-caret { background: none; border: 0; color: var(--muted); padding: 8px 8px 8px 4px; cursor: pointer; display: flex; border-radius: 6px; }
.nav-caret svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-item:hover .nav-caret svg, .nav-item.open .nav-caret svg { transform: rotate(180deg); }
.nav-links > a { display: flex; align-items: center; height: 72px; padding: 0 12px; }
.nav-links > a:hover, .nav-links > a.on { background: none; text-decoration: none; }
.mega-wrap { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -30px rgba(0,0,0,.85); z-index: 60; }
.nav-item:hover .mega-wrap, .nav-item:focus-within .mega-wrap, .nav-item.open .mega-wrap { display: block; }
.mega { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; padding: 28px 0 38px; }
.mega-label { display: block; margin: 0 0 14px; font: 500 13px var(--sans); color: var(--dim); }
.mega-label a { color: var(--muted); text-decoration: none; }
.mega-label a:hover { color: var(--text); }
.mega-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mega-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #2b2b2b 0%, #1f1f1f 100%); }
.mc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mc-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mc-ico svg { width: 19px; height: 19px; }
.mega-card b { font: 700 16px var(--display); }
.mega-card p { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.mc-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mc-actions .btn { height: 32px; padding: 0 14px; font-size: 13px; }
.mc-actions a.btn-light, .mc-actions a.btn-light:hover { color: var(--btn-ink); }
.mc-actions a:not(.btn) { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.mc-actions a:not(.btn):hover { color: var(--accent); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.mega-grid a { text-decoration: none; color: var(--text); }
.mega-grid b { display: block; font: 700 16px var(--display); margin-bottom: 3px; }
.mega-grid span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.mega-grid a:hover b { color: var(--accent); }
.mega-side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 22px; }
.mega-side-list a { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.mega-side-list a:hover { color: var(--accent); }
.mega-side-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.mega-pill-link { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.mega-pill-link:hover { background: rgba(255,255,255,.06); }
.mega-feats { display: grid; gap: 12px; }
.mega-feat { display: flex; gap: 14px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, #282828 0%, #1c1c1c 100%); text-decoration: none; color: var(--text); }
.mega-feat:hover { border-color: var(--line-strong); }
.mega-thumb { flex: none; width: 116px; height: 74px; border-radius: 10px; border: 1px solid var(--line); background: #101010; padding: 8px 10px; font: 400 9.5px/1.6 var(--mono); color: #cfcfcf; overflow: hidden; }
.mega-thumb .p { color: var(--accent); } .mega-thumb .d { color: #8a8a8a; } .mega-thumb .g { color: var(--ok); }
.mega-feat b { display: block; font: 700 14px var(--display); margin-bottom: 2px; }
.mega-feat span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: calc(100vh - 64px); overflow-y: auto; padding: 8px 20px 24px; z-index: 60; }
.menu-open .mobile-menu { display: block; }
.mobile-menu h4 { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 18px 0 6px; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--text); text-decoration: none; font-size: 16px; }
.mobile-menu a svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
@media (max-width: 899px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .article-head.has-art { grid-template-columns: 1fr; gap: 32px; }
  .article-head.has-art .hero-art { max-width: 560px; }
}
@media (max-width: 640px) { .nav-cta > a:not(.btn) { display: none; } .nav-cta { gap: 10px; } }
@media (max-width: 480px) { .art-bar-row { grid-template-columns: 90px 1fr 70px; } .art-rows { grid-template-columns: 1fr; } }
/* Scroll reveal (only when JS runs), subtle */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .docs, .dash { grid-template-columns: 1fr; gap: 32px; }
  .toc, .side { position: static; display: flex; flex-wrap: wrap; }
  .g3, .g4, .stats { grid-template-columns: repeat(2, 1fr); }
  .pg { grid-template-columns: 1fr; }
  .pg-pane + .pg-pane { border-left: 0; border-top: 1px solid var(--line); }
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .stats, .amounts, .mock-stats, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .nav-cta { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .card-big, .price-card { padding: 28px; }
  .mock-table div { grid-template-columns: 1fr 1fr; }
  .facts { gap: 28px; }
}

/* Auth split layout */
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 72px); }
.auth-main { display: grid; place-items: center; padding: 64px 24px; }
.auth-main .auth-card { width: min(440px, 100%); }
.auth-aside { padding: 72px clamp(32px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; gap: 22px; background: radial-gradient(120% 80% at 100% 0%, rgba(255,122,46,.14), transparent 60%), #161616; border-left: 1px solid var(--line); }
.auth-aside h2 { font-size: clamp(28px, 3vw, 40px); max-width: 16ch; }
.auth-aside .pill { align-self: flex-start; }
.auth-code { border: 1px solid var(--line); border-radius: 14px; background: #0e0e0e; overflow: hidden; max-width: 520px; }
.auth-code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.auth-code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.auth-code-bar span { margin-left: 8px; }
.auth-code pre { margin: 0; padding: 18px; font: 13px/1.7 ui-monospace, Consolas, monospace; color: #cfcfcf; overflow-x: auto; }
.auth-code .k { color: #ff9d66; } .auth-code .s { color: #9fd3a8; } .auth-code .o { color: #8ab4ff; }
.auth-note { margin: 0; font-size: 12px; color: var(--dim); }
.pw { position: relative; }
.pw .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: rgba(255,255,255,.06); }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }
/* Cookie consent */
.cc { position: fixed; left: 20px; bottom: 20px; z-index: 100; width: min(460px, calc(100% - 40px)); padding: 24px; border-radius: var(--r-xl); background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.cc[hidden], .cc [hidden] { display: none; }
.cc h2 { font: 700 18px var(--display); margin: 0 0 8px; }
.cc p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cc a { color: var(--text); }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; flex: 1 1 auto; }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cc-row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.cc-row b { display: block; font-size: 15px; }
.cc-row small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cc-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.footer a.link-btn, .footer button.link-btn { display: block; padding: 4px 0; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.footer button.link-btn:hover { color: var(--text); }
mark.todo { background: rgba(255,122,46,.2); color: #ffb184; padding: 0 4px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .cc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; } .prose table { display: block; overflow-x: auto; } }
/* Landing sections */
.art-stage { position: relative; }

.art-stage > .hero-art { position: relative; z-index: 1; }
.stage-chip { position: absolute; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #151515; border: 1px solid var(--line-strong); font: 700 12px var(--mono); color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.stage-chip.c1 { top: -14px; right: 28px; } .stage-chip.c2 { bottom: 54px; left: -16px; } .stage-chip.c3 { bottom: -12px; right: 60px; }
.landing { margin: 8px 0 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, #262626 0%, #1b1b1b 100%); overflow: hidden; margin-bottom: 28px; }
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.feat-grid { margin-bottom: 24px; }
.feat { transition: border-color .15s, transform .15s; }
.feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat h3 { margin: 14px 0 8px; }
.feat p { margin: 0; color: var(--muted); }
.feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feat-row.rev .feat-copy { order: 2; }
.feat-copy h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 16px 0 14px; }
.feat-copy > p { color: var(--muted); font-size: 17px; max-width: 34em; }
.feat-copy .pill { display: inline-block; }
.feat-points { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 16px; }
.feat-points li { display: flex; gap: 14px; align-items: flex-start; }
.fp-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.fp-ico svg { width: 18px; height: 18px; }
.feat-points b { display: block; font-size: 15px; }
.feat-points small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.feat-art { position: relative; }

.feat-art .hero-art { position: relative; z-index: 1; }
.faq-acc { display: grid; gap: 12px; margin: 20px 0 8px; }
.faq-acc details { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #262626 0%, #1b1b1b 100%); padding: 0 22px; }
.faq-acc details[open] { border-color: var(--line-strong); }
.faq-acc summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font: 600 17px var(--display); position: relative; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.faq-acc details[open] summary::after { content: "\2212"; }
.faq-acc p { margin: 0 0 20px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .feat-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; } .feat-row.rev .feat-copy { order: 0; } .stage-chip { display: none; } }
/* Vector scenes */
.art-stage > .scene { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.feat-art .scene { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }

/* Use-case tabs with app window (own design) */
.use-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.use-copy .tab-lead { font-size: 19px; color: var(--body); margin: 0 0 22px; max-width: 26em; }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dot-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #3a3a3a; }
.dot-list li::after { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.use-frame { padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(145deg, #2a2420 0%, #1c1c1c 55%); }
.use-win { border-radius: 12px; border: 1px solid var(--line-strong); background: #1b1b1b; overflow: hidden; }
.use-search { display: flex; align-items: center; gap: 10px; margin: 16px 16px 12px; height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #161616; color: var(--dim); font-size: 14px; }
.use-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.use-filter { padding: 0 16px 14px; font-size: 13px; color: var(--muted); }
.use-filter b { display: inline-block; margin-left: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(255,122,46,.14); border: 1px solid rgba(255,122,46,.4); color: #ffb184; font-weight: 600; }
.use-filter i { font-style: normal; margin-left: 6px; opacity: .7; }
.use-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px; background: #222; border-top: 1px solid var(--line); }
.use-card { display: block; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: #262626; text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.use-card:hover { border-color: var(--accent); background: #2b2b2b; }
.use-card-head { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); }
.use-ico { width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); }
.use-ico svg { width: 22px; height: 22px; }
.use-card-text { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.use-foot { display: block; text-align: center; padding: 16px; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.use-foot:hover { color: var(--accent); }
@media (max-width: 900px) { .use-grid { grid-template-columns: 1fr; gap: 32px; } .use-cards { grid-template-columns: 1fr; } }