@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-optical-sizing: auto;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* Layout: one centered 1120px column; the cobalt glow sits only behind the hero, everything below is quiet. Single dark look by choice; the editor mock uses Lucerna Dark. */
:root {
  color-scheme: dark;
  --ground: #080b12;
  --ground-2: #0e131d;
  --line: #1b2232;
  --ink: #e6eaf2;
  --ink-2: #98a2b5;
  --ink-3: #5f6a7e;
  --accent: #4f8cff;
  --accent-dim: rgba(79, 140, 255, .14);
  --glow: 79 140 255;
  --on-accent: #ffffff;
  --added: #7fb37a;
  /* Lucerna Dark editor tokens */
  --ed-bg: #191919; --ed-side: #191919; --ed-bar: #191919; --ed-fg: #d3d7de; --ed-dim: #9c9c9c;
  --kw: #cc7bf4; --fn: #70b8ff; --ty: #f7ab5f; --str: #9be963; --var: #f37c85; --num: #5eeded; --cm: #818898;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body {
  background: var(--ground); color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 650; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--ink-2); }

/* Nav */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ground); }
nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: baseline; gap: 3.5px; font: 650 18px/1 var(--display); text-decoration: none; }
.brand svg { width: 34px; height: 16px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--body); padding: 10px 16px; border-radius: 8px; text-decoration: none; border: 1px solid var(--line); background: var(--ground-2); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.soon { font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--accent-dim); color: var(--accent); }
.btn.primary .soon { background: color-mix(in srgb, var(--on-accent) 14%, transparent); color: var(--on-accent); }

/* Hero */
.hero { position: relative; padding-block: 88px 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(var(--glow) / .22), rgb(var(--glow) / .06) 55%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.04; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--ink-2); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plat-note { font-size: 14px; color: var(--ink-3); margin-left: 4px; }
.actions .btn { padding: 12px 18px; font-size: 15px; }
.cmd { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; font: 14px/1 var(--mono); background: var(--ground-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 16px; }
.cmd code { overflow-x: auto; white-space: nowrap; min-width: 0; }
.cmd .p { color: var(--ink-3); user-select: none; }
.copy { flex: none; font: 500 12px/1 var(--body); color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; }

/* Editor showcase: drawn from the real Lucerna Dark theme (lucerna-theme/assets/lucerna.json) and the app's layout */
.stage { position: relative; margin-top: 64px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.editor {
  --lb-bg: #191919; --lb-raised: #222222; --lb-border: #2e2e2e; --lb-sel: #2a2a2a; --lb-active: #1f1f1f;
  --lb-text: #efefef; --lb-muted: #9c9c9c; --lb-code: #d3d7de;
  --lb-created: #7ee787; --lb-modified: #e1c08d; --vc-added: #37ac42; --vc-modified: #4f8cff;
  border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid #343434; border-bottom: 0;
  background: var(--lb-bg); color: var(--lb-text);
  box-shadow: 0 -24px 90px rgb(var(--glow) / .10), 0 30px 80px rgba(0,0,0,.5);
}
.titlebar { height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--lb-border); font: 13px/1 var(--body); }
.lights { display: flex; gap: 8px; margin-right: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.titlebar b { font-weight: 600; }
.tb-branch { display: inline-flex; align-items: center; gap: 5px; color: var(--lb-muted); }
.tb-branch .ic { width: 13px; height: 13px; }
.ed-body { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: 640px; overflow: hidden; }

.explorer { border-right: 1px solid var(--lb-border); padding: 6px 0; font: 13.5px/26px var(--body); overflow: hidden; }
.row { display: flex; align-items: center; gap: 6px; padding-left: calc(10px + var(--d, 0) * 14px); padding-right: 12px; white-space: nowrap; }
.row.root { font-weight: 500; }
.row .c { width: 12px; height: 12px; color: var(--lb-muted); flex: none; }
.row .ic:not(.c) { color: var(--lb-muted); }
.row.sel { background: var(--lb-sel); }
.row.mod { color: var(--lb-modified); }
.row.new { color: var(--lb-created); }
.row .st { margin-left: auto; font: 11px/1 var(--mono); }

.pane { display: grid; grid-template-rows: 36px 28px minmax(0, 1fr) 176px; min-width: 0; min-height: 0; overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--lb-border); font: 13px/36px var(--body); overflow: hidden; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--lb-muted); border-right: 1px solid var(--lb-border); white-space: nowrap; }
.tab.on { color: var(--lb-text); box-shadow: inset 0 -1px 0 var(--lb-bg); }
.tab .x { width: 12px; height: 12px; color: var(--lb-muted); }
.tab.preview { font-style: italic; }
.pathbar { display: flex; align-items: center; gap: 6px; padding: 0 16px; font: 12.5px/28px var(--body); color: var(--lb-muted); white-space: nowrap; overflow: hidden; }
.pathbar i { font-style: normal; opacity: .7; }
.pathbar b { color: var(--lb-text); font-weight: 500; }

.code { padding: 4px 0; font: 13px/22px var(--mono); color: var(--lb-code); overflow: hidden; }
.ln { display: grid; grid-template-columns: 52px 3px minmax(0, 1fr); white-space: pre; }
.ln .no { text-align: right; padding-right: 13px; color: var(--lb-muted); }
.ln .g { margin-block: 0; }
.ln.add .g { background: var(--vc-added); }
.ln.mod .g { background: var(--vc-modified); }
.ln.cur { background: var(--lb-active); }
.ln.cur .no { color: var(--lb-text); }
.ln .t { padding-left: 16px; overflow: hidden; }
.k { color: #cc7bf4; } .f { color: #70b8ff; } .y { color: #f7ab5f; } .p { color: #f37c85; } .m { color: #818898; } .q { color: #5eeded; } .str { color: #9be963; }

.panel { border-top: 1px solid var(--lb-border); display: grid; grid-template-rows: 32px minmax(0, 1fr); min-height: 0; }
.panel-tabs { display: flex; align-items: center; gap: 2px; padding: 0 8px; font: 12.5px/1 var(--body); color: var(--lb-muted); }
.ptab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; }
.ptab.on { background: var(--lb-raised); color: var(--lb-text); }
.ptab .ic { width: 13px; height: 13px; }
.add-t { margin-left: 6px; width: 13px; height: 13px; }
.term-out { margin: 0; padding: 8px 16px 12px; font: 12.5px/20px var(--mono); color: var(--lb-code); white-space: pre; overflow: hidden; }
.tb { color: #58a6ff; } .tg { color: #3fb950; } .tr { color: #ff7b72; }

.status { display: flex; align-items: center; gap: 16px; height: 28px; padding: 0 12px; border-top: 1px solid var(--lb-border); font: 12px/1 var(--body); color: var(--lb-muted); white-space: nowrap; overflow: hidden; }
.sb-l { display: flex; gap: 12px; }
.sb-l .ic.on { color: var(--lb-text); }
.status .r { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.status .ic { width: 13px; height: 13px; }
.fade { height: 1px; background: var(--line); }

/* Sections */
section { padding-block: 104px; }
.sec-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 680px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.sec-head p { color: var(--ink-2); font-size: 18px; }

/* Four pillars */
.pillars { padding-block: 0; border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { display: grid; gap: 8px; align-content: start; padding: 32px 24px 36px; text-decoration: none; border-left: 1px solid var(--line); }
.pillar:last-child { border-right: 1px solid var(--line); }
.pillar h2 { font-size: 22px; line-height: 1.15; }
.pillar p { color: var(--ink-2); font-size: 15px; }
.pillar:hover h2 { color: var(--accent); }
.pillar code, .sec-head code, .facts code, .faq code { font: 13px var(--mono); color: var(--ink); background: var(--ground-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }

/* Benchmark charts: one chart per metric, linear scale from zero, Lucerna in the accent */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.chart { margin: 0; background: var(--ground); padding: 28px; display: grid; gap: 18px; align-content: start; }
.chart figcaption { font-weight: 500; color: var(--ink); }
.chart .v { font: 650 clamp(40px, 5vw, 56px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: -6px; }
.chart .v small { font: 500 18px/1 var(--mono); color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.bars { display: grid; gap: 4px; }
.brow { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 118px; align-items: center; gap: 12px; padding: 5px 6px; margin-inline: -6px; border-radius: 6px; font-size: 14px; color: var(--ink-2); outline-offset: 0; }
.brow:hover, .brow:focus-visible { background: var(--ground-2); }
.brow .track { height: 12px; }
.brow .track b { display: block; height: 100%; width: max(var(--w), 4px); border-radius: 0 4px 4px 0; background: var(--ink-3); }
.brow.me { color: var(--ink); font-weight: 500; }
.brow.me .track b { background: var(--accent); }
.brow .val { font: 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; text-align: right; }
.brow .val i { font-style: normal; color: var(--ink-3); margin-left: 6px; }
.brow::after { content: attr(data-tip); position: absolute; right: 6px; bottom: calc(100% + 4px); z-index: 2; padding: 6px 9px; border-radius: 6px; background: #1c2230; border: 1px solid #2c3446; color: var(--ink); font: 12px/1 var(--mono); white-space: nowrap; opacity: 0; pointer-events: none; }
.brow:hover::after, .brow:focus-visible::after { opacity: 1; }
.as-table { margin-top: 18px; }
.as-table summary { cursor: pointer; font-size: 14px; color: var(--ink-2); width: fit-content; }
.as-table summary:hover { color: var(--ink); }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.as-table table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.as-table th, .as-table td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.as-table thead th { color: var(--ink-3); font-weight: 500; }
.as-table tbody th { font-weight: 500; }
.as-table td { color: var(--ink-2); font-family: var(--mono); font-size: 13px; }
.foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); max-width: 80ch; }
.foot a { color: var(--ink-2); }

/* Two-column sections */
section.tight { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.split .sec-head { margin-bottom: 32px; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-2); }

.keys { display: grid; gap: 10px; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--ground-2); border: 1px solid var(--line); border-radius: 10px; }
.key span { color: var(--ink-2); font-size: 15px; }
.kbd { display: flex; gap: 4px; flex: none; }
kbd { font: 500 13px/1 var(--mono); min-width: 28px; text-align: center; padding: 7px 8px 6px; border-radius: 6px; background: #1c2027; border: 1px solid #2f343d; border-bottom-width: 2px; color: var(--ink); }

.settings { margin: 0; border: 1px solid #343a45; border-radius: 12px; overflow: hidden; background: var(--ed-bg); color: var(--ed-fg); }
.settings-bar { font: 12px/34px var(--body); color: var(--ed-dim); padding: 0 14px; border-bottom: 1px solid #2e2e2e; }
.settings pre { margin: 0; padding: 16px 18px 20px; font: 13px/22px var(--mono); overflow-x: auto; }
.settings .ke { color: var(--fn); } .settings .st { color: var(--str); } .settings .nu { color: var(--ty); } .settings .pu { color: var(--ed-dim); }

/* No AI */
.flow { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.flow li:nth-child(2) { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-dim), transparent 75%); }
.flow h3 { font: 600 17px/1.3 var(--body); letter-spacing: 0; }
.flow h3::before { content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%; border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--ink-2); vertical-align: 1px; }
.flow p { color: var(--ink-2); font-size: 15px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 920px; }
.compare div { display: grid; gap: 8px; align-content: start; }
.compare h3 { font-size: 20px; }
.compare p { color: var(--ink-2); }

/* Download */
.dl-head { display: grid; gap: 12px; }
.dl { border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; background: radial-gradient(600px 300px at 0% 0%, var(--accent-dim), transparent 70%), var(--ground-2); }
.dl h2 { font-size: clamp(30px, 4vw, 44px); }
.plats { display: flex; flex-wrap: wrap; gap: 10px; }
.plat { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--ground); font-size: 14px; color: var(--ink-2); }
.plat.later { opacity: .55; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 820px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 500 18px/1.4 var(--body); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; color: var(--ink-2); max-width: 65ch; }

footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer .r { margin-left: auto; display: flex; gap: 24px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); }

@media (max-width: 960px) {
  .ed-body { grid-template-columns: 200px minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .pillars .wrap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pillar:nth-child(2) { border-right: 1px solid var(--line); }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .charts { grid-template-columns: minmax(0,1fr); }
  .flow { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  nav .btn { margin-left: auto; }
  .stage { margin-top: 40px; }
  .ed-body { grid-template-columns: minmax(0,1fr); height: 470px; }
  .explorer { display: none; }
  .pane { grid-template-rows: 36px 28px minmax(0, 1fr) 156px; }
  .code { font-size: 11.5px; line-height: 19px; }
  .ln { grid-template-columns: 34px 3px minmax(0, 1fr); }
  .ln .no { padding-right: 8px; }
  .ln .t { padding-left: 10px; }
  .term-out { font-size: 11px; line-height: 18px; padding-inline: 12px; }
  .status .r span:nth-child(n+3) { display: none; }
  .pillars .wrap { grid-template-columns: minmax(0,1fr); padding: 0; }
  .pillar { border-left: 0; border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 24px 20px; }
  .pillar:last-child { border-bottom: 0; }
  .chart { padding: 22px 18px; }
  .brow { grid-template-columns: 58px minmax(0, 1fr) 104px; gap: 8px; font-size: 13px; }
  .brow .val { font-size: 12px; }
  .brow .val i { margin-left: 4px; }
  .facts div { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .compare { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .plat-note { flex-basis: 100%; margin-left: 0; }
  section { padding-block: 72px; }
  .hero { padding-top: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ln.add .g, .ln.mod .g, .row.mod, .row.new { animation: land .9s ease-out .5s both; }
  @keyframes land { from { opacity: 0; } to { opacity: 1; } }
}
