:root {
  color-scheme: dark;
  --bg: #090a0f;
  --card: #12151f;
  --card-strong: #151925;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.15);
  --text: #f4f7fb;
  --muted: #98a2b3;
  --quiet: #667085;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --green: #10b981;
  --amber: #f59e0b;
  --violet: #8b5cf6;
  --mono: "Geist Mono", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Geist Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code, pre { font-family: var(--mono); }
.no-js .copy-button, .no-js .tabs { display: none; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-150%); padding: 9px 14px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(59, 130, 246, .9); outline-offset: 3px; }

.ambient { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(110px); opacity: .13; pointer-events: none; }
.ambient-one { top: -240px; left: 46%; background: var(--blue); }
.ambient-two { top: 42%; right: -320px; background: #4338ca; opacity: .09; }

.site-header { width: min(1180px, calc(100% - 32px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .84rem; font-weight: 700; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(59,130,246,.35); border-radius: 8px; background: rgba(37,99,235,.12); color: #8bb8ff; }
.brand-muted { color: var(--quiet); font-weight: 500; }
.header-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.header-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }

.hero { padding: 88px 0 72px; }
.eyebrow, .kicker { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .11em; color: #91b8ff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.eyebrow span { width: 20px; height: 1px; background: var(--blue-bright); box-shadow: 0 0 12px rgba(59,130,246,.8); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 980px; margin-bottom: 24px; font-size: clamp(2.48rem, 7.8vw, 5.45rem); line-height: .98; letter-spacing: -.061em; font-weight: 720; }
h1 em { color: #8dbaff; font-style: normal; font-weight: inherit; }
.hero-copy { max-width: 710px; margin-bottom: 26px; color: #a8b1c1; font-size: clamp(1rem, 2vw, 1.16rem); line-height: 1.7; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #b4bdcb; font-family: var(--mono); font-size: .68rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 35px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 10px; padding: 0 18px; font-size: .87rem; font-weight: 700; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); box-shadow: 0 10px 35px rgba(37,99,235,.25), inset 0 1px rgba(255,255,255,.2); }
.button-primary:hover { background: var(--blue-bright); }
.text-link { color: #aeb7c6; font-size: .86rem; text-decoration: none; }
.text-link:hover { color: var(--text); }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; gap: 16px; margin-bottom: 30px; }
.section-heading h2, .cta-section h2 { margin: 7px 0 0; font-size: clamp(1.65rem, 4.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.042em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); font-size: .91rem; }
.compact-heading { margin-bottom: 26px; }

.flow-card, .code-card, .install-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,21,31,.82); box-shadow: 0 24px 80px rgba(0,0,0,.24); overflow: hidden; backdrop-filter: blur(12px); }
.flow-terminal { display: flex; align-items: center; min-height: 47px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.terminal-dot { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.dot-red { background: #ef4444; } .dot-amber { background: var(--amber); } .dot-green { background: var(--green); }
.terminal-path { overflow: hidden; margin-left: 7px; color: var(--quiet); font-family: var(--mono); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.live-pill { margin-left: auto; color: var(--green); font-family: var(--mono); font-size: .57rem; letter-spacing: .1em; }
.flow-grid { display: grid; }
.flow-step { position: relative; padding: 24px 20px; }
.flow-step + .flow-step { border-top: 1px solid var(--line); }
.step-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.step-index { color: var(--quiet); font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; }
.token-pill, .match-pill, .on-demand-pill { padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: .54rem; }
.token-pill { color: #8bb8ff; background: rgba(59,130,246,.1); }
.match-pill { color: var(--green); background: rgba(16,185,129,.1); }
.on-demand-pill { color: #b19aff; background: rgba(139,92,246,.1); }
.flow-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 19px; border: 1px solid rgba(59,130,246,.2); border-radius: 12px; background: rgba(37,99,235,.08); color: #8bb8ff; font-family: var(--mono); }
.discovery-icon { grid-template-columns: repeat(3, 4px); gap: 4px; }
.discovery-icon span { width: 4px; height: 18px; border-radius: 2px; background: #70a7ff; }
.discovery-icon span:nth-child(2) { height: 28px; }
.activation-icon { border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.08); color: var(--green); font-size: 1.8rem; }
.execution-icon { border-color: rgba(139,92,246,.25); background: rgba(139,92,246,.08); color: #ad91ff; }
.flow-step h3 { margin-bottom: 8px; font-size: 1rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .81rem; }
.flow-step code { color: #cbd5e1; font-size: .76rem; }
.flow-arrow { display: none; }
.context-rail { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(0,0,0,.13); font-family: var(--mono); font-size: .57rem; color: var(--quiet); }
.context-rail > div { display: flex; flex: 1; height: 4px; gap: 3px; }
.context-rail i { flex: 1; border-radius: 4px; background: linear-gradient(90deg, var(--blue-bright) var(--load), rgba(255,255,255,.06) var(--load)); }
.context-rail strong { color: var(--green); font-weight: 500; }

.featured-code { border-color: rgba(59,130,246,.22); }
.code-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.file-name { min-width: 0; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; }
.file-name strong { font-weight: 600; }
.file-name > span:last-child { display: none; color: var(--quiet); }
.file-icon { color: #83adff; }
.copy-button { cursor: pointer; border: 1px solid var(--line-bright); color: #d6deea; background: rgba(255,255,255,.04); transition: background .18s ease, border-color .18s ease, color .18s ease; }
.copy-button:hover { border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.1); }
.copy-primary { min-height: 37px; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 11px; border-color: rgba(59,130,246,.32); border-radius: 8px; background: rgba(37,99,235,.13); font-size: .7rem; font-weight: 700; }
.copy-button.is-copied { border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.12); color: #74efc4; }
.copy-button.is-error { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.12); color: #f8c76d; }
pre { max-height: 540px; margin: 0; overflow: auto; padding: 22px 18px; background: #0d1018; font-size: clamp(.72rem, 2.5vw, .84rem); line-height: 1.74; scrollbar-width: thin; scrollbar-color: #303747 transparent; }
pre code { white-space: pre; }
.syn-punct { color: #596579; } .syn-key { color: #80aaff; } .syn-value { color: #a7d8c5; } .syn-heading { color: #d3baff; font-weight: 700; }
.code-footer { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--quiet); font-family: var(--mono); font-size: .57rem; }
.code-footer span:first-child { color: #6eddb5; }
.code-footer i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }

.install-card { padding: 5px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.tab { min-width: 0; min-height: 42px; cursor: pointer; border: 0; border-radius: 9px; color: var(--quiet); background: transparent; font-family: var(--mono); font-size: .65rem; }
.tab span { color: #8bb8ff; }
.tab.is-active { color: #dbe4f1; background: rgba(255,255,255,.055); box-shadow: inset 0 0 0 1px var(--line); }
.command-line { position: relative; display: flex; align-items: flex-start; min-height: 122px; margin: 0 4px; border: 1px solid var(--line); border-radius: 11px; background: #0b0e15; overflow: hidden; }
.command-line .prompt { flex: 0 0 auto; padding: 18px 0 18px 14px; color: var(--green); font-family: var(--mono); font-weight: 700; }
.command-line .ps-prompt { color: #8bb8ff; font-size: .62rem; }
.command-line code { display: block; min-width: 0; max-height: 190px; overflow-x: auto; padding: 17px 64px 17px 10px; color: #c8d0dd; font-size: .69rem; line-height: 1.7; white-space: nowrap; scrollbar-width: thin; }
.icon-copy { position: absolute; top: 10px; right: 10px; min-width: 39px; min-height: 34px; padding: 0 8px; border-radius: 7px; font-family: var(--mono); font-size: .58rem; }
.icon-copy .button-label { display: none; }
.install-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 12px 9px; color: var(--quiet); font-size: .63rem; }
.install-result code { color: #aab4c4; font-size: .61rem; }
.ready-badge { margin-left: auto; color: #73ddba; font-family: var(--mono); font-size: .56rem; }

.practice-grid { display: grid; gap: 10px; }
.practice-card { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(18,21,31,.68); }
.practice-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-family: var(--mono); font-size: .7rem; font-weight: 800; }
.amber-card .practice-icon { color: var(--amber); background: rgba(245,158,11,.1); }
.blue-card .practice-icon { color: #75a9ff; background: rgba(37,99,235,.1); }
.violet-card .practice-icon { color: #b6a0ff; background: rgba(139,92,246,.1); }
.practice-card h3 { margin-bottom: 6px; font-size: .9rem; }
.practice-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.practice-card code { color: #bdc9da; font-size: .73rem; }

.cta-section { position: relative; display: grid; gap: 23px; margin-top: 42px; margin-bottom: 70px; padding: 28px; overflow: hidden; border: 1px solid rgba(59,130,246,.19); border-radius: var(--radius); background: linear-gradient(120deg, rgba(37,99,235,.12), rgba(18,21,31,.88) 48%, rgba(139,92,246,.08)); }
.cta-section h2 { margin-bottom: 8px; }
.cta-section p { max-width: 580px; margin: 0; color: var(--muted); font-size: .86rem; }
.button-secondary { align-self: center; justify-self: start; border-color: var(--line-bright); background: rgba(255,255,255,.055); }
.button-secondary:hover { border-color: rgba(59,130,246,.5); background: rgba(37,99,235,.12); }
.cta-orbit { position: absolute; right: -36px; bottom: -67px; display: grid; place-items: center; width: 170px; height: 170px; border: 1px solid rgba(59,130,246,.12); border-radius: 50%; color: rgba(139,184,255,.08); font: 800 3rem var(--mono); }
.cta-orbit::after { content: ""; position: absolute; inset: 24px; border: 1px dashed rgba(139,92,246,.14); border-radius: 50%; }
.site-footer { display: flex; flex-direction: column; gap: 8px; padding: 24px 0 34px; border-top: 1px solid var(--line); color: var(--quiet); font-size: .68rem; }
.site-footer a { color: #aab4c4; text-decoration: none; }
.toast { position: fixed; z-index: 50; right: 16px; bottom: 16px; max-width: calc(100% - 32px); transform: translateY(18px); opacity: 0; pointer-events: none; padding: 11px 14px; border: 1px solid rgba(16,185,129,.28); border-radius: 10px; background: #10251f; color: #8ae8c8; box-shadow: 0 15px 45px rgba(0,0,0,.4); font-size: .75rem; transition: opacity .18s ease, transform .18s ease; }
.toast.is-visible { transform: none; opacity: 1; }
.toast.is-error { border-color: rgba(245,158,11,.3); background: #2b2111; color: #f7ca7d; }

@media (min-width: 48rem) {
  .shell { width: min(1120px, calc(100% - 64px)); }
  .site-header { width: min(1180px, calc(100% - 64px)); }
  .hero { padding: 126px 0 104px; }
  .section { padding: 96px 0; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: end; }
  .compact-heading:has(> div:only-child), .compact-heading:not(:has(> p)) { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 54px 1fr 54px 1fr; align-items: stretch; }
  .flow-step { min-width: 0; padding: 28px 24px 32px; }
  .flow-step + .flow-step { border-top: 0; }
  .flow-arrow { display: grid; place-items: center; }
  .flow-arrow span { position: relative; width: 27px; height: 1px; background: rgba(255,255,255,.13); }
  .flow-arrow span::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid #697487; border-right: 1px solid #697487; transform: rotate(45deg); }
  .active-step::before { content: ""; position: absolute; inset: 12px 3px; z-index: -1; border-radius: 14px; background: radial-gradient(circle at 50% 40%, rgba(16,185,129,.08), transparent 68%); }
  .file-name > span:last-child { display: inline; }
  .copy-primary { min-height: 40px; padding: 0 15px; font-size: .72rem; }
  pre { padding: 28px 30px; }
  .install-card { padding: 7px; }
  .tabs { display: flex; }
  .tab { min-width: 180px; }
  .command-line { min-height: 112px; }
  .icon-copy .button-label { display: inline; }
  .practice-grid { grid-template-columns: repeat(3, 1fr); }
  .practice-card { grid-template-columns: 1fr; padding: 23px; }
  .cta-section { grid-template-columns: 1fr auto; align-items: center; padding: 40px; }
  .cta-orbit { right: 170px; }
  .site-footer { flex-direction: row; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
