/* The colours are the app's own (src/Nova.App/Theme.cs). */
:root {
  --bg: #0d0e15;
  --surface: #161824;
  --surface-2: #222536;
  --line: #2a2e40;
  --text: #f3f3f7;
  --muted: #a9abbd;
  --scribe: #35c9d6;
  --nova: #ff6b61;
  --warn: #f2b94b;
  --on-accent: #04282d;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #edeff5;
  --line: #e2e5ed;
  --text: #14151d;
  --muted: #585b6c;
  --scribe: #0a7f8a;
  --nova: #bd453d;
  --warn: #9a6400;
  --on-accent: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--scribe); outline-offset: 3px; }
h3 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }

/* The wide rings behind everything, as in the app. */
.orbits { position: absolute; inset: 0 0 auto; height: 900px; overflow: hidden; z-index: -1; }
.orbits i { position: absolute; left: 50%; top: 340px; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--scribe); opacity: .14; }
.orbits i:nth-child(1) { width: 620px; height: 620px; }
.orbits i:nth-child(2) { width: 920px; height: 920px; opacity: .1; }
.orbits i:nth-child(3) { width: 1260px; height: 1260px; opacity: .06; }

.nav {
  position: sticky; top: 12px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 940px; margin: 12px auto 0; padding: 8px 10px 8px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
}
.nav nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.brand, footer span:first-child { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.logo { width: 22px; height: 22px; color: var(--scribe); flex: none; }

.button {
  display: inline-block; padding: 11px 22px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.button:hover { border-color: var(--scribe); }
.button:disabled { opacity: .45; cursor: default; }
.button.primary { background: var(--scribe); border-color: var(--scribe); color: var(--on-accent); }
.button.small { padding: 6px 15px; font-size: 13px; border-radius: 999px; }
.icon-button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }

kbd {
  display: inline-block; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px;
  padding: 0 9px; font: inherit; font-weight: 600; font-size: .86em; white-space: nowrap;
}

.win-key { width: .82em; height: .82em; vertical-align: -.02em; }

.hero { text-align: center; padding: 54px 20px 36px; }
.tagline { margin: 0; font-size: 18px; line-height: 1.5; }
.tagline span { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 600; color: var(--scribe); }
.tagline span::before, .tagline span::after { content: ""; width: 38px; height: 1px; background: color-mix(in srgb, var(--scribe) 60%, transparent); }

/* The planet from the app's Home page. */
.planet { margin-bottom: 10px; text-align: center; }
.planet svg { display: block; width: 100%; height: 60px; }
.planet .ground { fill: color-mix(in srgb, var(--scribe) 14%, var(--bg)); }
.planet .edge { fill: none; stroke: var(--scribe); stroke-width: 2; vector-effect: non-scaling-stroke; }
.planet ul { list-style: none; margin: 0; padding: 6px 20px 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 64px; background: color-mix(in srgb, var(--scribe) 14%, var(--bg)); color: var(--muted); font-size: 14px; }
.planet b { display: block; font-size: 22px; color: var(--scribe); }

.orbit {
  position: relative; display: grid; place-items: center; width: 240px; height: 240px; margin: 18px auto 0;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--scribe); border-radius: 50%;
}
.orbit svg { width: 116px; height: 116px; transition: scale .15s; }
.orbit:hover svg { scale: 1.08; }
.orbit:active svg { scale: 1.2; }
.ring { position: absolute; border-radius: 50%; border: 1.5px solid currentColor; animation: breathe 5s ease-in-out infinite; }
.ring.outer { inset: 8px; opacity: .2; }
.ring.inner { inset: 34px; opacity: .42; animation-delay: .4s; }
@keyframes breathe { 50% { transform: scale(1.04); } }

.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.15; margin: 20px 0 14px; letter-spacing: -.02em; }
.scribe { color: var(--scribe); }
.novaink { color: var(--nova); }
.lead { color: var(--muted); font-size: 18px; margin: 0 auto 22px; max-width: 620px; }
.how-line { font-size: 18px; margin: 0; }
.fine { color: var(--muted); font-size: 13px; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.section { max-width: 1000px; margin: 0 auto; padding: 54px 20px; text-align: center; }
.section.narrow { max-width: 740px; }
.section h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 26px; }

/* ---------- demo ---------- */
.desktop {
  position: relative; text-align: left; padding: 18px 18px 70px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--scribe) 14%, var(--surface)), var(--surface) 70%);
}
.windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.win { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-height: 250px; min-width: 0; display: flex; flex-direction: column; opacity: .6; transition: opacity .25s, transform .25s, border-color .25s; }
.win.focus { opacity: 1; transform: translateY(-4px); border-color: var(--scribe); }
.win header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.win header i { width: 9px; height: 9px; border-radius: 50%; background: var(--scribe); }
.win header small { color: var(--muted); font-weight: 400; }
.win .body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; font-size: 13px; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px !important; }
.dim { color: var(--muted); }
.msg { background: var(--surface-2); border-radius: 8px; padding: 6px 10px; overflow-wrap: anywhere; }
.field { margin-top: auto; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 36px; white-space: pre-wrap; overflow-wrap: anywhere; }
.focus .field span::after { content: "▏"; color: var(--scribe); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.browser-tabs { display: flex; gap: 4px; font-size: 12px; min-height: 26px; }
.browser-tabs span { padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.browser-tabs span.here { color: var(--text); box-shadow: inset 0 -2px var(--scribe); }
.result { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* The marker is dark in either theme, as on the desktop. */
.pill {
  --ink: #35c9d6;
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 15px;
  background: #1b1b20; color: #f4f4f6; border: 1.5px solid var(--ink); font-size: 13px;
  box-shadow: 0 6px 18px #0006; white-space: nowrap;
}
.pill .mark { width: 18px; height: 18px; color: var(--ink); flex: none; }
.pill .bars { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.pill .bars i { width: 2.5px; height: 6px; border-radius: 2px; background: var(--ink); }
.pill.talking .bars i, .pill.still .bars i { animation: level .7s ease-in-out infinite alternate; }
.pill .bars i:nth-child(2) { animation-delay: -.2s; }
.pill .bars i:nth-child(3) { animation-delay: -.45s; }
.pill .bars i:nth-child(4) { animation-delay: -.1s; }
.pill .bars i:nth-child(5) { animation-delay: -.3s; }
@keyframes level { to { height: 16px; } }
.pill .close { border: 0; border-left: 1px solid #4a4c55; background: none; color: #f4f4f6; font: 16px/1 inherit; padding: 0 0 0 9px; }
button.close { cursor: pointer; }
.pill.nova-pill { --ink: #ff6b61; }
.pill.ask { --ink: #f2b94b; }
.pill.waking { --ink: #7b7d87; border-style: dashed; }
.desktop .pill { position: absolute; left: 50%; bottom: 18px; translate: -50%; max-width: 92%; }
.desktop .pill .text { overflow: hidden; text-overflow: ellipsis; }

.caption { margin: 20px 0 14px; min-height: 66px; font-size: 20px; }
.caption .you { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-right: 10px; }
.mode-tag { display: block; width: max-content; margin: 0 auto 6px; padding: 1px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--scribe); background: color-mix(in srgb, var(--scribe) 15%, transparent); }
.mode-tag.on { color: var(--nova); background: color-mix(in srgb, var(--nova) 15%, transparent); }
.demo-controls { display: flex; gap: 10px; justify-content: center; }

/* ---------- modes ---------- */
.cards { display: grid; gap: 14px; margin: 24px 0; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; text-align: left; min-width: 0; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 8px 0 0; color: var(--muted); }

.scribe-card, .scribe-row { --ink: var(--scribe); }
.nova-card, .nova-row { --ink: var(--nova); }
.warn-row { --ink: var(--warn); }
.card.mode { border-color: color-mix(in srgb, var(--ink) 45%, transparent); background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.mode header { display: flex; align-items: center; gap: 10px; }
.mode h3 { margin: 0; }
.mode b { color: var(--ink); }
.icon { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.say-tag { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.say-tag b, .bubble { display: inline-block; padding: 2px 9px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 15%, transparent); color: var(--ink); font-weight: 600; }

.rows { display: grid; gap: 12px; text-align: left; }
.row {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 14px; padding: 14px 16px;
}
.row > div { border-left: 1px solid var(--line); padding: 2px 12px 2px 16px; min-width: 0; }
.row > .who { display: flex; align-items: center; gap: 12px; border: 0; padding-left: 0; }
.row h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.row p { margin: 6px 0 0; font-size: 14.5px; }
.row .who p { margin: 0; color: var(--muted); font-size: 13.5px; }
.badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); flex: none; }
.badge svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.act { display: block; color: var(--ink); font-weight: 600; min-height: 27px; }
.bubble { font-size: 14px; }

.markers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.markers li { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 180px; padding: 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- screenshots, clean-up, commands ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13.5px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }

.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px #0004; }
.shot .on-light, :root[data-theme="light"] .shot .on-dark { display: none; }
:root[data-theme="light"] .shot .on-light { display: block; }
.shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; }

.cleanup { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.cleanup > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.cleanup .out { border-color: var(--scribe); }
.cleanup p { margin: 8px 0 0; white-space: pre-line; font-size: 17px; overflow-wrap: anywhere; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.commands { width: 100%; border-collapse: collapse; text-align: left; background: var(--surface); border-radius: 14px; overflow: hidden; }
.commands td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.commands td:last-child { color: var(--muted); }
.commands tr:last-child td { border-bottom: 0; }

.mini { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.mini th { text-align: left; font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.mini td { border-top: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
.mini td + td, .mini th + th { white-space: nowrap; text-align: right; padding-right: 0; padding-left: 8px; }
.mini small { display: block; color: var(--muted); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-align: left; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }
pre { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; }
.notice { text-align: left; border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 12px; padding: 14px 18px; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1000px; margin: 0 auto; padding: 28px 20px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav { margin: 12px 12px 0; }
  .windows, .cleanup, .cards.two, .cards.three { grid-template-columns: 1fr; }
  .win { min-height: 190px; }
  .win:not(.focus) { display: none; }
  .windows:not(:has(.focus)) .win:first-child { display: flex; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .row > div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .row > .who { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
