:root {
  color-scheme: dark;
  --bg: #090e1a;
  --surface: #101827;
  --surface-2: #151f31;
  --line: #263348;
  --text: #e8edf5;
  --muted: #9ba9bc;
  --accent: #31d0aa;
  --accent-2: #5da9ff;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 10px 14px; background: var(--accent); color: #06251f; border-radius: 6px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; border-radius: 3px; }

.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(18px); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { font-weight: 800; letter-spacing: -.03em; font-size: 1.15rem; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .86rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-github { border: 1px solid var(--line); padding: 7px 12px; border-radius: 7px; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 100px); align-items: center; padding-block: 100px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3.1rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.065em; }
h1 span { color: var(--accent-2); }
.hero-lead { max-width: 620px; margin: 30px 0; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 7px; font-weight: 750; font-size: .9rem; }
.button.primary { background: var(--accent); color: #06251f; }
.button.primary:hover { background: #54dfbd; }
.button.secondary { border: 1px solid var(--line); background: var(--surface); }
.button.secondary:hover { border-color: #53647d; }
.compatibility { margin-top: 24px; color: #748399; font-size: .78rem; }

.terminal { overflow: hidden; border: 1px solid #324058; border-radius: 12px; background: #070b12; box-shadow: 0 26px 80px #0008; transform: rotate(1deg); }
.terminal-bar { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; background: #131b29; color: #718096; font-size: .7rem; }
.terminal-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4b5669; }
.terminal-bar span { margin-left: auto; }
.terminal pre { margin: 0; padding: 28px; color: #b8c5d8; font-size: clamp(.73rem, 1.3vw, .88rem); line-height: 1.85; overflow-x: auto; }
.terminal b { color: var(--accent); }.terminal strong { color: #72dfa2; }.terminal em { color: var(--accent-2); font-style: normal; }

.audience { border-block: 1px solid var(--line); background: linear-gradient(110deg, #111a2b, #0c1522); }
.audience-inner { padding-block: 70px; max-width: 840px; text-align: center; }
.audience h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; }
.audience p:last-child { color: var(--muted); }
.section { padding-block: 110px; }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.section-heading h2, .split-section h2 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child, .split-section > div > p { color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.card-icon { color: var(--accent); font-family: monospace; font-size: .75rem; }
.card h3 { margin: 34px 0 10px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .9rem; }

.quick-start { background: #0d1421; border-block: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(50px, 10vw, 120px); }
.text-link { color: var(--accent); font-weight: 700; }
.code-panel { border: 1px solid var(--line); border-radius: 10px; background: #070b12; }
.code-panel pre { margin: 0; padding: 28px; overflow-x: auto; font-size: .85rem; line-height: 1.85; }
.code-panel span { color: #6f819a; }

.command-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.command-grid > div { padding: 26px; border-right: 1px solid var(--line); background: var(--surface); }
.command-grid > div:last-child { border: 0; }
.command-grid h3 { margin-top: 0; color: var(--accent-2); }
.command-grid code { display: block; margin: 10px 0; color: #c3cede; font-size: .82rem; }
.center { margin-top: 32px; text-align: center; }

.deploy-section { border-block: 1px solid var(--line); background: radial-gradient(circle at 80% 10%, #123047 0, #0d1624 38%, #0a101b 75%); }
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.deploy-grid article { min-width: 0; padding: 28px; border: 1px solid #34445c; border-radius: 10px; background: #0b111dcc; }
.deploy-grid h3 { margin-top: 0; }
.deploy-grid pre { padding: 18px; border-radius: 7px; background: #05080e; overflow-x: auto; color: #a9e8d7; font-size: .78rem; }
.deploy-grid p { color: var(--muted); font-size: .88rem; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
summary { cursor: pointer; font-weight: 750; }
details p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.footer { border-top: 1px solid var(--line); background: #070b12; }
.footer-inner { min-height: 150px; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: var(--muted); font-size: .85rem; }
.footer strong { color: var(--text); }.footer span { font-size: .78rem; }.footer a { margin-left: 22px; color: #bdc9da; }.footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav-links a:not(.nav-github) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 80px; }
  .terminal { max-width: 650px; transform: none; }
  .feature-grid, .command-grid { grid-template-columns: 1fr 1fr; }
  .command-grid > div:nth-child(2) { border-right: 0; }
  .command-grid > div { border-bottom: 1px solid var(--line); }
  .command-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding-block: 76px; }
  .hero { padding-block: 65px; gap: 55px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .terminal pre, .code-panel pre { padding: 20px; font-size: .7rem; }
  .feature-grid, .split-section, .command-grid, .deploy-grid, .faq-grid { grid-template-columns: 1fr; }
  .command-grid > div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .command-grid > div:last-child { border-bottom: 0 !important; }
  .footer-inner { padding-block: 38px; flex-direction: column; align-items: flex-start; }
  .footer a { margin: 0 18px 0 0; display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
