/* Total Draw — site styles. No framework, no web fonts, no build step. */

:root {
  --bg: #17171a;
  --bg-2: #1f1f24;
  --bg-3: #27272e;
  --line: #34343c;
  --text: #ececf0;
  --muted: #a3a3ad;
  --faint: #6c6c78;
  --accent: #f0a223;      /* the brush in the icon */
  --accent-2: #ffc766;
  --blue: #3a78d8;        /* the app's own accent */
  --slate: #38355b;       /* the icon's background */
  --radius: 12px;
  --max: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; height: auto; display: block; }

code, kbd {
  font-family: ui-monospace, Consolas, "Cascadia Mono", Menlo, monospace;
  font-size: 0.9em;
}

kbd {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 23, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 18px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: #1a1206; }

@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--accent);
  color: #1a1206;
  transition: background 120ms, transform 120ms;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.secondary:hover { background: var(--bg-3); }

.btn.big { padding: 15px 26px; font-size: 18px; }

.btn small {
  font-weight: 500;
  font-size: 13px;
  opacity: 0.75;
}

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

.hero {
  padding: 84px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(56, 53, 91, 0.55), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 750;
}

.hero p.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero .cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero .fine {
  color: var(--faint);
  font-size: 14px;
  margin: 0;
}

.status {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(240, 162, 35, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 22px;
}

.shot {
  margin: 48px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: var(--bg-2);
}
.shot img { width: 100%; }

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

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 720;
}

h3 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  font-weight: 680;
}

p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.intro { max-width: 680px; margin: 0 auto 40px; text-align: center; color: var(--muted); font-size: 18px; }

/* three-up cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

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

/* alternating feature blocks */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .media { order: 2; }
.feature p { color: var(--muted); }
.feature ul { color: var(--muted); padding-left: 20px; margin: 0; }
.feature li { margin-bottom: 6px; }
.feature li b { color: var(--text); font-weight: 600; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature.flip .media { order: 0; }
}

/* media slot: shows a labelled placeholder until the file exists */
.media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16 / 10;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media figcaption {
  position: absolute;
  left: 12px; bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(23, 23, 26, 0.8);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}
.media.missing { border-style: dashed; border-color: var(--faint); }
.media.missing img, .media.missing video { display: none; }
.media.missing::before {
  content: "clip to record: " attr(data-file);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-family: ui-monospace, Consolas, Menlo, monospace;
  font-size: 13px;
  padding: 20px;
  text-align: center;
}

/* ---------- download ---------- */

.download {
  background:
    radial-gradient(50% 60% at 50% 100%, rgba(56, 53, 91, 0.5), transparent 70%),
    var(--bg);
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.stage {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage.now { border-color: rgba(240, 162, 35, 0.6); }
.stage .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.stage.now .tag { color: var(--accent); }
.stage h3 { margin: 0; }
.stage p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.stage .btn { align-self: flex-start; margin-top: 10px; }

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

/* ---------- roadmap ---------- */

.path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.path div {
  position: relative;
  padding: 24px 24px 24px 64px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.path div::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px; top: 22px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  background: var(--slate);
  color: var(--text);
}
.path div:first-child::before { background: var(--accent); color: #1a1206; }
.path h3 { font-size: 18px; }
.path p { color: var(--muted); font-size: 15px; margin: 0; }

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

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

footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- alpha page ---------- */

.gate {
  min-height: calc(100vh - 60px);
  display: grid;
  place-items: center;
  padding: 60px 0;
}
.gate .box {
  width: 100%;
  max-width: 520px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
}
.gate h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -0.02em; }
.gate p { color: var(--muted); }
.gate form { display: flex; gap: 10px; margin: 22px 0 8px; }
.gate input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.gate input:focus { border-color: var(--accent); }
.gate .err { color: #ff8a8a; font-size: 14px; min-height: 20px; margin: 0; }

.dl { display: none; }
.dl.open { display: block; }
.dl .file {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}
.dl .file .ic {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--slate);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--accent-2);
}
.dl .file h3 { font-size: 17px; margin: 0 0 4px; }
.dl .file p { font-size: 14.5px; margin: 0 0 10px; }
.dl .file .btn { padding: 9px 16px; font-size: 15px; }
.dl .note { font-size: 14px; color: var(--faint); margin-top: 18px; }

@media (max-width: 480px) {
  .gate .box { padding: 24px; }
  .gate form { flex-direction: column; }
}

/* ---------- blog ---------- */

.blog { padding: 64px 0 80px; }
.blog h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 740;
}

.posts { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.post-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  color: var(--text);
  transition: border-color 120ms, background 120ms;
}
.post-card:hover { text-decoration: none; border-color: rgba(240, 162, 35, 0.6); background: var(--bg-3); }
.post-card h2 { font-size: 24px; margin: 0 0 8px; }
.post-card p { color: var(--muted); margin: 0; }
.post-card .meta { color: var(--faint); font-size: 14px; margin-bottom: 6px; }

/* a post: one readable column, with figures a little wider than the text */
.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}
.post-head { margin-bottom: 36px; }
.post-head .eyebrow a { color: var(--accent); }
.post h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 740;
}
.post .post-lead { font-size: 20px; color: var(--muted); margin-bottom: 14px; }
.post .meta { color: var(--faint); font-size: 14px; margin: 0; }
.post h2 { font-size: 28px; margin: 52px 0 14px; }
.post p, .post li { color: #d4d4db; }
.post ul { padding-left: 22px; margin: 0 0 16px; }
.post li { margin-bottom: 6px; }
.post b { color: var(--text); font-weight: 650; }
.post :not(pre) > code {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.post pre {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
  color: #dcdce4;
}
.post figure { margin: 30px -40px; }
.post figure video, .post figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.post figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; text-align: center; padding: 0 40px; }
.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 15px;
}
.post th, .post td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.post th { color: var(--text); font-weight: 650; }
.post td { color: var(--muted); }
.post td:first-child { color: var(--text); white-space: nowrap; }

@media (max-width: 860px) {
  .post figure { margin: 26px 0; }
  .post figcaption { padding: 0; }
}
@media (max-width: 560px) {
  .post td:first-child { white-space: normal; }
  .post th, .post td { padding: 8px 6px; }
}

/* two images side by side, each labelled, one caption for both */
.post figure.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.post figure.pair div p { color: var(--faint); font-size: 13px; text-align: center; margin: 8px 0 0; }
.post figure.pair figcaption { grid-column: 1 / -1; margin-top: 2px; }
@media (max-width: 560px) {
  .post figure.pair { grid-template-columns: 1fr; }
}
