/* Maestro's site. One stylesheet, system fonts, nothing loaded from elsewhere.
   Dark is the default because the program is dark; light follows the system
   setting or the switch in the header. */

:root {
  --bg: #080d13;
  --bg-2: #0d141c;
  --panel: #111a24;
  --line: #1f2c3a;
  --text: #e8eef4;
  --muted: #93a3b3;
  --teal: #4fd6b8;
  --teal-ink: #06231d;
  --amber: #f2c462;
  --red: #f0776b;
  --glow: rgba(79, 214, 184, 0.22);
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Ubuntu, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f8f7;
    --bg-2: #edf1ef;
    --panel: #ffffff;
    --line: #d8e0dc;
    --text: #0d1a1f;
    --muted: #51626b;
    --teal: #0b7f6a;
    --teal-ink: #ffffff;
    --amber: #96650a;
    --red: #b3382c;
    --glow: rgba(11, 127, 106, 0.16);
    --shadow: 0 30px 70px -25px rgba(13, 40, 50, 0.35);
  }
}
:root[data-theme="light"] {
  --bg: #f6f8f7;
  --bg-2: #edf1ef;
  --panel: #ffffff;
  --line: #d8e0dc;
  --text: #0d1a1f;
  --muted: #51626b;
  --teal: #0b7f6a;
  --teal-ink: #ffffff;
  --amber: #96650a;
  --red: #b3382c;
  --glow: rgba(11, 127, 106, 0.16);
  --shadow: 0 30px 70px -25px rgba(13, 40, 50, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.035em; line-height: 1.04; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); max-width: 20ch; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--teal); }
.dim { color: var(--muted); }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal); text-decoration: none; font: 600 0.95rem var(--mono); letter-spacing: 0.14em; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.nav nav a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.ghost { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; }
.ghost:hover { border-color: var(--teal); }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 10px;
  background: var(--teal); color: var(--teal-ink); border: 1px solid var(--teal);
  font-weight: 650; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow); }
.btn.outline { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn.outline:hover { border-color: var(--teal); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Sections */
section { padding: clamp(64px, 10vw, 130px) clamp(16px, 5vw, 56px); max-width: 1240px; margin: 0 auto; }
.label { font: 600 0.78rem var(--mono); letter-spacing: 0.2em; color: var(--teal); margin-bottom: 18px; }
.sub { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin-top: 20px; }
.sub.tight { margin-top: 34px; margin-bottom: 14px; font-size: 1rem; }
.fine { color: var(--muted); font-size: 0.93rem; max-width: 80ch; }

/* Hero */
.hero { position: relative; text-align: center; padding-top: clamp(56px, 9vw, 110px); max-width: 1320px; }
.hero > *:not(.constellation) { position: relative; }
.constellation { position: absolute; inset: 0 0 auto 0; width: 100%; height: min(640px, 80%); pointer-events: none; opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 22%, #000 70%); mask-image: radial-gradient(ellipse at center, transparent 22%, #000 70%); }
.constellation .links line { stroke: var(--line); stroke-width: 1.5; }
.constellation .leaves circle { fill: var(--amber); opacity: 0.7; }
.constellation .tools circle { fill: var(--teal); animation: glow 5s ease-in-out infinite; }
.constellation .tools circle:nth-child(2) { animation-delay: -1.2s; }
.constellation .tools circle:nth-child(3) { animation-delay: -2.4s; }
.constellation .tools circle:nth-child(4) { animation-delay: -3.6s; }
.constellation .core { fill: var(--bg-2); stroke: var(--teal); stroke-width: 2; }
.constellation .ring { fill: none; stroke: var(--amber); stroke-width: 2; transform-origin: 940px 420px; animation: ring 2.2s ease-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.82rem var(--mono); letter-spacing: 0.08em; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-2); padding: 7px 14px; border-radius: 999px; margin-bottom: 30px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.lede { font-size: clamp(1.08rem, 2vw, 1.34rem); color: var(--muted); max-width: 58ch; margin: 28px auto 0; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cta.center { margin-top: 48px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font: 0.86rem var(--mono); color: var(--muted); }
.facts li::before { content: "▸ "; color: var(--teal); }

/* Screenshots keep the program's own dark frame in both themes */
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #1f2c3a; background: #080d13; box-shadow: var(--shadow), 0 0 0 1px rgba(79, 214, 184, 0.06), 0 0 120px -30px var(--glow); }
.hero-shot { margin-top: clamp(48px, 7vw, 84px); }
.shot img { width: 100%; }
.shot figcaption { padding: 12px 18px; font-size: 0.88rem; color: #93a3b3; border-top: 1px solid #1f2c3a; text-align: left; }
.chrome { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #0d141c; border-bottom: 1px solid #1f2c3a; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a4a; }
.chrome span { margin-left: 10px; font: 0.76rem var(--mono); color: #6f8192; letter-spacing: 0.06em; }

/* Idea */
.why .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); margin-top: 36px; color: var(--muted); font-size: 1.1rem; }
.why h2 { max-width: 24ch; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); }
.card.wide { grid-column: 1 / -1; }
.card.wide h3 { font-size: 1.6rem; }
.card.wide p:not(.tag):not(.proof) { max-width: 78ch; }
.card p { color: var(--muted); }
.tag { font: 600 0.74rem var(--mono); letter-spacing: 0.2em; color: var(--teal) !important; }
.proof { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.88rem; color: var(--muted); }
.proof b { font: 600 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-right: 8px; }
.proof.center { max-width: 78ch; margin: 44px auto 0; text-align: center; border-top: 0; }
.card.link { text-decoration: none; color: inherit; }
.card.link:hover { transform: translateY(-3px); }
.card.link span { margin-top: auto; font: 0.86rem var(--mono); color: var(--teal); }
.card.link span { overflow-wrap: anywhere; }
.card small { font: 600 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.get .grid { margin-bottom: 22px; }

/* Live */
.live .shot { margin-top: 48px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.steps .n { font: 600 0.8rem var(--mono); color: var(--amber); letter-spacing: 0.12em; }
.steps h3 { margin: 10px 0 10px; }
.steps p { color: var(--muted); font-size: 0.98rem; }
.note { margin-top: 56px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 14px; padding: clamp(22px, 3vw, 34px); }
.note h3 { margin: 0 0 10px; }
.note p { color: var(--muted); max-width: 80ch; }
.note ul { margin: 16px 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); max-width: 80ch; }
.note b { color: var(--text); font-weight: 650; }

/* Trust */
.rules { list-style: none; counter-reset: r; padding: 0; margin: 48px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rules li { counter-increment: r; position: relative; padding: 18px 0 18px 52px; border-top: 1px solid var(--line); color: var(--muted); }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 20px; font: 600 0.85rem var(--mono); color: var(--teal); }
.rules b { color: var(--text); font-weight: 650; }
.chk { display: inline-block; margin-left: 6px; font: 600 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

/* Straight talk */
.honest { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.honest ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; max-width: 80ch; }
.honest li { padding-left: 30px; position: relative; color: var(--muted); }
.honest li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Status */
.table-wrap { overflow-x: auto; margin: 40px 0 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font: 600 0.76rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
td.y { color: var(--teal); font-weight: 600; }
td.n { color: var(--muted); }

/* Get it */
.term { border: 1px solid #1f2c3a; border-radius: 14px; background: #080d13; overflow: hidden; margin-top: 30px; max-width: 860px; box-shadow: var(--shadow); }
.term pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 0.93rem/1.8 var(--mono); color: #e8eef4; }
.term .p { color: #4fd6b8; user-select: none; }
.term .c { color: #6f8192; }
.copy { margin-left: auto; background: none; border: 1px solid #2a3a4a; color: #93a3b3; border-radius: 6px; padding: 3px 10px; font: 0.74rem var(--mono); cursor: pointer; }
.copy:hover { color: #e8eef4; border-color: #4fd6b8; }

.join h2 { max-width: 24ch; }

footer { border-top: 1px solid var(--line); padding: 36px clamp(16px, 5vw, 56px) 48px; text-align: center; color: var(--muted); font-size: 0.93rem; }
footer p + p { margin: 8px auto 0; }
footer b { font-family: var(--mono); letter-spacing: 0.14em; color: var(--teal); }

/* Fade in on scroll. Only applied by the script, and never with reduced motion. */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rise.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav-end { margin-left: auto; }
  .grid, .why .cols, .rules { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .facts { gap: 6px 18px; }
  .honest { border-radius: 0; border-left: 0; border-right: 0; }
  .term pre { font-size: 0.8rem; }
  table { min-width: 540px; font-size: 0.9rem; }
  th, td { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .constellation * { animation: none !important; }
  .btn, .card { transition: none; }
}
