/* Sysline landing — the palette is the app icon: the wave runs azure #0A84FF to
   indigo #5E5CE6, and every surface, glow and line here is a step on that ramp.
   Download and upload keep the app's own Theme.down / Theme.up, so a chart here
   reads exactly like a chart in the app. Poppins for everything readable, IBM Plex
   Mono for numbers and commands. */

:root {
  --bg: #080A12;
  --ink: #E8EAF4;
  --mut: #98A0B8;
  --dim: #5C6480;

  --azure: #0A84FF;
  --azure-lo: #0A84FF;
  --azure-hi: #7CB8FF;
  --indigo: #5E5CE6;
  --indigo-hi: #A6A2FF;
  --green: #26A65B;
  --green-hi: #3FC275;
  --rose: #E0559B;

  --line: rgba(150, 160, 220, 0.13);
  --line-soft: rgba(150, 160, 220, 0.07);
  --card: linear-gradient(168deg, rgba(120, 140, 255, 0.055), rgba(120, 140, 255, 0.012));
  --wave: linear-gradient(100deg, var(--azure), var(--indigo));

  --display: "Poppins", system-ui, sans-serif;
  --sans: "Poppins", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: transparent;
  line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--azure-hi); text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.dim { color: var(--dim); }
.sm { font-size: 12px; }

/* Poppins is geometric and runs wide, so headings need tighter tracking and a
   little more leading than a grotesque would. */
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.022em; line-height: 1.14; }
h1 { font-size: clamp(36px, 4.4vw, 54px); }
h2 { font-size: clamp(29px, 3.5vw, 41px); }
.lede { font-size: 17.5px; color: var(--mut); max-width: 34em; margin-top: 18px; }
.body { font-size: 15.5px; color: var(--mut); margin-top: 14px; max-width: 36em; }
.body.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- panel background: the chart-recorder trace ---------- */

.panel-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.rule-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}
#trace { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(70% 45% at 50% -6%, rgba(94, 92, 230, 0.2), transparent 70%),
              radial-gradient(50% 40% at 88% 44%, rgba(10, 132, 255, 0.1), transparent 72%);
}

/* ---------- nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; position: sticky; top: 0; z-index: 50; }
/* The bar is inside .wrap, so its backdrop has to be widened to the viewport. */
.nav::before {
  content: ""; position: absolute; inset: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: rgba(8, 10, 18, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); z-index: -1;
}
/* Anchor jumps land below the bar rather than under it. */
section[id] { scroll-margin-top: 82px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand-tile {
  width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: var(--wave);
  box-shadow: 0 5px 16px rgba(58, 96, 240, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.nav-links { display: flex; align-items: center; gap: 25px; font-size: 14.5px; }
.nav-links > a { color: var(--mut); transition: color 0.15s; }
.nav-links > a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 9px;
  background: rgba(120, 140, 255, 0.09); border: 1px solid var(--line); color: var(--ink) !important;
}
.nav-cta:hover { background: rgba(120, 140, 255, 0.16); }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: center; padding: 54px 40px 84px; }
.hero > *, .sec > *, .quad > * { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--mut);
  padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(120, 140, 255, 0.05);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 9px var(--azure); }
h1 { margin-top: 22px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 21px; border-radius: 11px;
  background: var(--wave); color: #fff !important; font-weight: 600; font-size: 14.5px;
  box-shadow: 0 8px 24px rgba(58, 96, 240, 0.34);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-dl:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(58, 96, 240, 0.45); }
.btn-dl.big { padding: 15px 27px; font-size: 16px; margin-top: 26px; }
.hero-term { margin-top: 26px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.term {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 100%;
  padding: 10px 13px; border-radius: 10px; text-align: left;
  background: rgba(8, 10, 24, 0.75); border: 1px solid var(--line);
  font-size: 12.5px; overflow: hidden;
}
.term:hover { border-color: rgba(150, 160, 220, 0.26); }
.term code { color: var(--mut); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.term code::-webkit-scrollbar { display: none; }
.t-prompt { color: var(--indigo-hi); }
.t-copy { margin-left: auto; color: var(--dim); font-size: 11px; flex-shrink: 0; }
.term.copied .t-copy { color: var(--azure-hi); }
.hero-term .sm { margin-top: 2px; }

/* ---------- hero readout ---------- */

.readout {
  border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); overflow: hidden;
  backdrop-filter: blur(8px);
}
.menubar {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  background: rgba(8, 10, 22, 0.72); border-bottom: 1px solid var(--line);
}
.mb-dots { display: flex; gap: 6px; }
.mb-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(150, 160, 220, 0.22); }
.mb-space { flex: 1; }
.mb-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink);
  padding: 4px 10px; border-radius: 7px; background: rgba(120, 140, 255, 0.12);
}
.mb-chip svg { color: var(--azure-hi); }
.ro-live { position: relative; padding: 16px 8px 0; }
#live { width: 100%; }
.ro-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.ro-stat { padding: 13px 16px; }
.ro-stat + .ro-stat { border-left: 1px solid var(--line); }
.ro-label { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ro-val { font-size: 21px; font-weight: 500; margin-top: 3px; }
.ro-val em { font-style: normal; font-size: 12px; color: var(--dim); }
.ro-val.down { color: var(--azure-hi); }
.ro-val.up { color: var(--green-hi); }
.ro-cap { font-size: 11.5px; color: var(--dim); padding: 0 16px 14px; }

/* ---------- channel cards ---------- */

.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 96px; }
.qcard {
  padding: 20px 18px 21px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink) !important; transition: border-color 0.18s, transform 0.18s;
}
.qcard:hover { border-color: rgba(150, 160, 220, 0.3); transform: translateY(-2px); }
.qcard svg { color: var(--indigo-hi); }
.q-name { font-family: var(--display); font-weight: 600; font-size: 16px; margin-top: 13px; }
.q-line { font-size: 13.5px; color: var(--mut); margin-top: 6px; line-height: 1.5; }

/* ---------- sections ---------- */

.sec { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding-bottom: 108px; }
.sec-flip .sec-copy { order: 2; }
.eyebrow { font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--indigo-hi); margin-bottom: 14px; }
.eyebrow.signal { color: var(--rose); }
.bullets { margin-top: 22px; display: grid; gap: 11px; font-size: 14.5px; color: var(--mut); }
.bullets > div { display: flex; gap: 11px; align-items: baseline; }
.b-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--azure); flex-shrink: 0; transform: translateY(-2px); }
.stage {
  position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
.cap { font-size: 12px; color: var(--dim); margin-top: 14px; font-family: var(--mono); }

/* live / HUD */
.hud-scene { display: grid; place-items: center; padding: 26px 0 8px; }
.hud {
  width: 236px; border-radius: 14px; padding: 13px 15px 11px;
  background: rgba(9, 11, 26, 0.92); border: 1px solid rgba(150, 160, 220, 0.2);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.5s;
}
.hud.pinned { transform: translateY(-8px) scale(1.03); box-shadow: 0 26px 56px rgba(58, 96, 240, 0.3); border-color: rgba(124, 184, 255, 0.45); }
.hud-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); }
.hud-range { color: var(--indigo-hi); }
.hud-rows { display: flex; gap: 18px; margin-top: 9px; }
.hud-row { display: flex; align-items: baseline; gap: 7px; }
.arrow { font-size: 13px; }
.arrow.down { color: var(--azure-hi); }
.arrow.up { color: var(--green-hi); }
.hud-num { font-size: 16px; font-weight: 500; }
.hud-spark { width: 100%; margin-top: 10px; }

/* per-app table */
.tbl { border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.tbl-head, .trow {
  display: grid; grid-template-columns: 1.7fr 0.85fr 0.85fr 0.9fr; gap: 10px;
  padding: 9px 14px; align-items: center;
}
.tbl-head { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); background: rgba(8, 10, 24, 0.6); }
.tbl-head > *:not(:first-child), .trow > *:not(:first-child) { text-align: right; }
.trow { border-top: 1px solid var(--line-soft); font-size: 13px; position: relative; }
.trow.hot { background: rgba(120, 140, 255, 0.07); }
.t-app { display: flex; align-items: center; gap: 9px; min-width: 0; }
.t-tile { width: 19px; height: 19px; border-radius: 5px; flex-shrink: 0; }
.t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-in { color: var(--azure-hi); }
.t-out { color: var(--green-hi); }
.t-total { font-weight: 600; font-family: var(--mono); }
.t-bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--wave); opacity: 0.55; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }

/* history */
.range-row { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.rchip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--mut);
  transition: all 0.16s;
}
.rchip:hover { border-color: rgba(150, 160, 220, 0.3); color: var(--ink); }
.rchip.on { background: rgba(120, 140, 255, 0.14); border-color: rgba(124, 184, 255, 0.42); color: var(--ink); }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
/* Line marks, because the chart draws lines. */
.sw { width: 12px; height: 2.5px; border-radius: 2px; }
.sw.down { background: var(--azure-lo); }
.sw.up { background: var(--green); }
#hist { width: 100%; }

/* ---------- honest band ---------- */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(224, 85, 155, 0.05), transparent 60%); padding: 88px 0; margin-bottom: 104px; }
.band-inner { display: grid; grid-template-columns: 1fr 0.95fr; gap: 56px; align-items: center; }
.ledger { border-radius: 16px; border: 1px solid var(--line); background: var(--card); padding: 24px; }
.led-row { display: grid; grid-template-columns: 1fr; gap: 7px; margin-bottom: 20px; }
.led-label { font-size: 11.5px; color: var(--mut); }
.led-bar { display: block; height: 12px; border-radius: 6px; background: rgba(150, 160, 220, 0.09); overflow: hidden; }
.led-bar i { display: block; height: 100%; border-radius: 6px; transition: width 1.1s cubic-bezier(0.2, 0.7, 0.3, 1); }
.led-bar .bad { background: linear-gradient(90deg, rgba(224, 85, 155, 0.5), var(--rose)); }
.led-bar .good { background: var(--wave); }
.led-num { font-size: 19px; font-weight: 500; }
.led-cap { font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* ---------- speed gauge ---------- */

.stage-gauge { display: grid; place-items: center; padding: 22px 18px 18px; position: relative; }
#gauge { width: 100%; max-width: 360px; height: auto; }
/* The readout is anchored to the dial, not the card, so it stays put no matter
   what is stacked underneath. */
.g-dial { position: relative; display: grid; place-items: center; width: 100%; }
#gauge { max-width: 100%; }
.g-center { position: absolute; top: 77%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.g-val { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.g-unit { font-size: 12px; color: var(--dim); margin-top: -2px; }
.g-stats { display: flex; gap: 26px; font-size: 12px; color: var(--dim); margin-top: 4px; }
.stage-gauge .rates { margin-top: 16px; }
.g-stats b { color: var(--ink); font-weight: 500; font-size: 14px; }

/* rating tiles — the app's SpeedRating, five dots per activity */
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; }
.rate {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(120, 140, 255, 0.04);
  color: var(--dim);
}
.rate.scored { color: var(--azure-hi); }
.r-name { font-size: 12.5px; color: var(--mut); flex: 1; text-align: left; white-space: nowrap; }
.dots { display: flex; gap: 4px; }
.dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(150, 160, 220, 0.22); }
.dots b.on { background: var(--azure); box-shadow: 0 0 7px rgba(10, 132, 255, 0.6); }

@media (max-width: 640px) {
  .rates { grid-template-columns: 1fr; }
}

/* ---------- local ---------- */

.local { padding-bottom: 104px; }
.local-head { max-width: 40em; margin-bottom: 30px; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lcard { padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.l-name { font-family: var(--display); font-weight: 600; font-size: 16.5px; }
.lcard p { font-size: 13.5px; color: var(--mut); margin-top: 8px; line-height: 1.55; }

/* ---------- get ---------- */

.get { padding-bottom: 84px; }
.get-card {
  position: relative; border-radius: 22px; border: 1px solid var(--line); background: var(--card);
  padding: 52px 40px 44px; text-align: center; overflow: hidden;
}
.get-card::before {
  content: ""; position: absolute; top: -160px; left: 50%; width: 620px; height: 340px; margin-left: -310px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(58, 96, 240, 0.28), transparent 70%); pointer-events: none;
}
.get-card > * { position: relative; }
.term-wrap { max-width: 470px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 9px; }
.fineprint { font-size: 11.5px; color: var(--dim); line-height: 1.55; margin-top: 6px; }
.get .dim.sm { margin-top: 22px; }

/* ---------- footer ---------- */

.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.f-left { display: flex; align-items: center; gap: 9px; }
.f-right { display: flex; gap: 20px; }
.f-right a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero, .sec, .band-inner { grid-template-columns: 1fr; gap: 40px; }
  .sec-flip .sec-copy { order: 0; }
  .hero { padding-top: 30px; padding-bottom: 64px; }
  .quad, .local-grid { grid-template-columns: repeat(2, 1fr); }
  .sec, .local { padding-bottom: 76px; }
  .band { padding: 64px 0; margin-bottom: 76px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .quad, .local-grid { grid-template-columns: 1fr; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .ro-stats { grid-template-columns: 1fr 1fr; }
  .ro-stat:nth-child(3) { grid-column: span 2; border-left: 0; border-top: 1px solid var(--line); }
  .get-card { padding: 40px 22px 34px; }
  .term { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}
