/* Uncle Studio — the app's own palette, so the page and the product read as one
   object. Ground #0A0910, panel #15121F, violet #B57BFF, blue #62B6FF.        */

:root {
  --bg:     #0A0910;
  --line:   #292338;
  --ink:    #EFEDF5;
  --body:   #B9B4C9;
  --mute:   #8E88A4;
  --violet: #B57BFF;
  --blue:   #62B6FF;
  --green:  #5AE092;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: #0A0910; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #12091F; padding: 10px 16px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- nav ---------- */
.nav { padding: 22px 0 0; }
.nav-in { display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; color: var(--ink); }
.logo b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--mute); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.navbtn { padding: 8px 15px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink) !important; }
.navbtn:hover { border-color: var(--violet); }

/* ---------- hero ---------- */
.hero {
  padding: 86px 0 40px;
  display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
  gap: 60px; align-items: end;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--violet); margin: 0 0 22px;
}
h1 {
  margin: 0; font-size: clamp(40px, 5.6vw, 68px); font-weight: 800;
  letter-spacing: -.035em; line-height: .98; text-wrap: balance;
}
h1 i { font-style: normal; color: var(--mute); }
.sub { margin: 26px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.62; color: var(--body); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 3px; text-decoration: none;
  background: var(--violet); color: #12091F;
  font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .14s, box-shadow .14s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(181,123,255,.28); }
.btn.big { padding: 16px 28px; font-size: 16px; margin-top: 8px; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.ghost:hover { border-color: #423A58; }
.spec { font-family: var(--mono); font-size: 11.5px; color: #6E6880; margin: 22px 0 0; letter-spacing: .02em; }

.hero-side { padding-bottom: 6px; }
.stat { border-top: 1px solid var(--line); padding: 14px 0; display: flex; align-items: baseline; gap: 14px; }
.stat b {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 21px; font-weight: 500; color: var(--ink); min-width: 74px;
}
.stat span { font-size: 13px; color: var(--mute); line-height: 1.45; }

/* ---------- the timeline panel: the app's chrome at the app's values ---------- */
.deck {
  margin: 44px 0 0;
  border: 1px solid #1C1C1C; border-radius: 4px;
  background: #000; overflow: hidden;
}
.deck.is-match { margin: 40px 0 0; }
.deck-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px;
  padding: 10px 15px; background: #0B0B0B; border-bottom: 1px solid #1C1C1C;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: #7C7C7C; text-transform: uppercase;
}
.deck-head b { color: #C8C8C8; font-weight: 500; letter-spacing: .02em; }
.transport { display: flex; align-items: center; gap: 6px; }
.tbtn {
  width: 21px; height: 17px; border: 1px solid #2E2E2E; border-radius: 2px;
  background: #141414; display: inline-flex; align-items: center; justify-content: center;
}
.tbtn svg { display: block; }
.readout { margin-left: auto; display: flex; gap: 17px; font-variant-numeric: tabular-nums; }
.readout i { font-style: normal; color: #565656; }
.readout b { color: #C8C8C8; font-weight: 500; }
.canvas-holder { position: relative; background: #000; }
.canvas-holder canvas { display: block; width: 100%; height: 334px; }
.deck.is-match .canvas-holder canvas { height: 216px; }
.deck-foot {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  padding: 9px 15px; background: #0B0B0B; border-top: 1px solid #1C1C1C;
  font-family: var(--mono); font-size: 10.5px; color: #6E6E6E; letter-spacing: .06em;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 1px; display: inline-block; }
.foot-note { margin-left: auto; color: #4F4F4F; }

/* ---------- sections ---------- */
.band { padding: 96px 0 0; }
h2 {
  font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em;
  margin: 0 0 8px; max-width: 22ch; text-wrap: balance;
}
.band-sub { margin: 0 0 46px; color: var(--mute); font-size: 15.5px; max-width: 58ch; line-height: 1.6; }
.band-sub.last { margin-bottom: 0; }

.cols {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.col { background: var(--bg); padding: 26px 24px 30px; }
.k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--violet); margin: 0 0 16px;
}
.col h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 700; letter-spacing: -.015em; }
.col p { margin: 0; font-size: 14.2px; line-height: 1.65; color: #A9A3BC; }

.stems {
  padding: 90px 0 0;
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: 56px; align-items: center;
}
.stem-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
}
.stem {
  display: grid; grid-template-columns: 96px 1fr 58px; align-items: center; gap: 16px;
  background: #15121F; padding: 14px 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--mute);
}
.stem-bar { height: 22px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.stem-bar span { flex: 1; border-radius: 1px; }
.stem b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }

.ai { margin: 92px 0 0; border-top: 1px solid var(--line); padding: 56px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.chip {
  padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--mono); font-size: 11.5px; color: #A9A3BC;
}
.chip:nth-child(3n) { border-color: #3A2E52; color: #C7A7F0; }

.download { margin: 96px 0 0; border-top: 1px solid var(--line); padding: 56px 0 0; }
.download .spec { margin-top: 18px; }

/* What the button actually gets you. A six-megabyte installer for a program that
   is not six megabytes needs a sentence, or the number reads as a lie. */
.download-note {
  margin: 22px 0 0; max-width: 62ch;
  font-size: 15px; line-height: 1.6; color: var(--body);
}
.download-note b { color: var(--ink); font-weight: 700; }

/* The hash, in the shape of a spec sheet rather than a paragraph: labels somebody
   scans past, values somebody compares character by character. */
.checksum {
  display: grid; grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 18px; margin: 30px 0 0; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--mono); font-size: 12.5px;
}
.checksum dt {
  color: var(--mute); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px;
  padding-top: 2px;
}
.checksum dd { margin: 0; color: var(--body); }

code {
  font-family: var(--mono); font-size: 12px; color: #C7A7F0;
  /* Sixty-four hex characters have no spaces in them, so the browser will not break
     the line by itself and the page scrolls sideways on a phone instead. */
  overflow-wrap: anywhere; word-break: break-all;
}

@media (max-width: 620px) {
  .checksum { grid-template-columns: minmax(0, 1fr); gap: 3px 0; padding: 16px; }
  .checksum dd { margin-bottom: 10px; }
}

/* ---------- footer ---------- */
.foot { margin: 96px 0 0; border-top: 1px solid var(--line); }
.foot-in {
  padding: 32px 28px 56px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.foot p { margin: 0; font-family: var(--mono); font-size: 11.5px; color: #5F596F; letter-spacing: .04em; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero, .stems { grid-template-columns: minmax(0,1fr); gap: 42px; }
  .cols { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 620px) {
  .nav-in { flex-wrap: wrap; gap: 16px; }
  .nav nav { gap: 18px; flex-wrap: wrap; }
  .hero { padding-top: 56px; }
  .canvas-holder canvas { height: 260px; }
  .deck.is-match .canvas-holder canvas { height: 180px; }
  .foot-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
