/* UltraGX landing. Dark blueprint: petrol ground, amber accent used once per section, mono for data. */
:root {
  --ground: #0e1f2b;
  --ground-2: #0a1822;
  --panel: #14293a;
  --panel-2: #1a3244;
  --line: #24404f;
  --ink: #e8eef2;
  --ink-2: #b9c7d1;
  --muted: #8fa3b1;
  --accent: #f2a93b;
  --accent-ink: #1a1408;
  --ok: #57c7a3;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --max: 1200px;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
section { padding: 88px 0; border-top: 1px solid var(--line); }
section .lead { color: var(--ink-2); max-width: 62ch; margin-top: 16px; font-size: 17px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 31, 43, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; font-size: 18px; }
.brand img { width: 26px; height: 26px; }
.beta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 2px 6px; margin-left: 4px; }
.beta-note { margin-top: 18px; font-size: 14px; color: var(--accent); border-left: 2px solid var(--accent); padding-left: 12px; max-width: 60ch; }
.top nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.grow { flex: 1; }
.langs { display: flex; gap: 2px; font-family: var(--mono); font-size: 12px; }
.langs button { background: none; border: 1px solid transparent; color: var(--muted); padding: 5px 8px; border-radius: 4px; cursor: pointer; font: inherit; letter-spacing: 0.08em; }
.langs button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); background: var(--panel); }
.langs button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--panel); font-size: 15px; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 7px 12px; font-size: 13px; }

/* hero */
.hero { padding: 72px 0 56px; border-top: 0; background: radial-gradient(1200px 500px at 20% 0%, #163247 0%, var(--ground) 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.015em; }
.hero .lead { margin-top: 22px; font-size: 18px; color: var(--ink-2); max-width: 56ch; }
.hero .ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.graph { position: relative; aspect-ratio: 5 / 4; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #10242f, #0b1a24); overflow: hidden; }
.graph canvas { width: 100%; height: 100%; display: block; }
.graph .legend { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); display: flex; gap: 14px; }
.graph .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ground-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact b { display: block; font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* columns and cards */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.col h3 { margin-bottom: 10px; }
.col p { color: var(--ink-2); font-size: 15px; }
.col .n { font-family: var(--mono); color: var(--accent); font-size: 12px; margin-bottom: 12px; letter-spacing: 0.1em; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shot.wide { grid-column: 1 / -1; }
.shot figure { margin: 0; }
.shot img { width: 100%; aspect-ratio: 16 / 7.6; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); background: #fff; }
.shot figcaption { padding: 18px 20px 20px; }
.shot figcaption p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.step { padding: 22px; border-right: 1px solid var(--line); background: var(--panel); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 8px; }
.step p { font-size: 14px; color: var(--ink-2); }

/* editions */
.editions { margin-top: 44px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; }
.editions table { width: 100%; border-collapse: collapse; min-width: 640px; }
.editions th, .editions td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.editions th { background: var(--panel); font-weight: 600; }
.editions th .price { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.editions td.v { font-family: var(--mono); font-size: 13px; }
.editions td.v.ok { color: var(--ok); }
.editions td.v.lim { color: var(--accent); }
.editions tr:last-child td { border-bottom: 0; }
.ed-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.ed-notes p { font-size: 14px; color: var(--ink-2); }
.ed-notes .btn { margin-top: 12px; }

/* downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dl h3 { display: flex; align-items: center; gap: 10px; }
.dl h3 svg { width: 20px; height: 20px; fill: var(--ink-2); }
.dl .files { display: flex; flex-direction: column; gap: 8px; }
.dl .file { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font-size: 14px; }
.dl .file:hover { border-color: var(--accent); }
.dl .file .name { font-weight: 600; }
.dl .file .size { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dl .soon { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 9px 12px; }
.dl .sha { font-family: var(--mono); font-size: 11px; color: var(--muted); word-break: break-all; }
.dl .req { font-size: 13px; color: var(--ink-2); margin-top: auto; }
.activate { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.activate ol { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); }
.activate li { margin-bottom: 8px; }
.activate .code { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* faq */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; padding-right: 0; }
  .cols, .dl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .shots { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .activate, .ed-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 60px 0; }
  .facts .wrap, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
}
