:root {
  --bg: #0e0e11;
  --surface: #17171c;
  --surface-2: #1d1d24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ecedf1;
  --muted: #9a9aa7;
  --ember: #ff6b2c;
  --amber: #ffb020;
  --ember-grad: linear-gradient(135deg, #ff6b2c, #ffb020);
  --radius: 14px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 620px;
  margin-left: -450px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 44, 0.18), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

main,
.nav,
footer {
  position: relative;
  z-index: 1;
}

/* ── nav ─────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.wordmark svg {
  color: var(--ember);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 680;
}

h1 em {
  font-style: normal;
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 17.5px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ember-grad);
  color: #1a0d04;
  box-shadow: 0 8px 26px rgba(255, 107, 44, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 34px rgba(255, 107, 44, 0.42);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ── demo window ─────────────────────────────────────────────────────── */

.demo {
  margin: 54px auto 0;
  max-width: 940px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.demo-title {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 320px;
}

.demo-chat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-right: 1px solid var(--line);
}

.msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 92%;
}

.msg-user {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-right-radius: 4px;
}

.msg-ai {
  align-self: flex-start;
  background: rgba(255, 107, 44, 0.07);
  border: 1px solid rgba(255, 107, 44, 0.16);
  border-bottom-left-radius: 4px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.02);
}

.chip code {
  color: #c8c9d2;
  font-size: 11px;
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0.4;
  animation: blink 1.4s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

.demo-preview {
  position: relative;
  padding: 20px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 44, 0.14), transparent 66%), #121216;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.preview-chip {
  align-self: flex-start;
  font-size: 11px;
  color: var(--amber);
  border: 1px solid rgba(255, 176, 32, 0.28);
  background: rgba(255, 176, 32, 0.08);
  border-radius: 999px;
  padding: 3px 10px;
}

.pegs {
  position: relative;
  flex: 1;
  margin: 14px 0;
}

.pegs span {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 9px;
  height: 9px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--ember-grad);
  box-shadow: 0 0 14px rgba(255, 107, 44, 0.8);
  animation: drop 2.8s var(--d) infinite ease-in;
}

@keyframes drop {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(150px) scale(1);
    opacity: 0;
  }
}

.slots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.slots b {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.slots b.hot {
  background: var(--ember-grad);
  color: #1a0d04;
  border-color: transparent;
}

/* ── bands ───────────────────────────────────────────────────────────── */

.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}

.band.alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.014);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band.alt > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 660;
}

.band-lede {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 640px;
  font-size: 16.5px;
}

.band-lede em {
  font-style: normal;
  color: var(--text);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 107, 44, 0.12);
  border: 1px solid rgba(255, 107, 44, 0.3);
  color: var(--ember);
  font-size: 14px;
  font-weight: 640;
  margin-bottom: 14px;
}

.steps h3,
.grid h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.steps p,
.grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.grid article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.grid article:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* ── downloads ───────────────────────────────────────────────────────── */

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.dl:hover {
  border-color: rgba(255, 107, 44, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.dl-os {
  font-size: 17px;
  font-weight: 620;
}

.dl-detail {
  font-size: 13.5px;
  color: var(--muted);
}

.dl-action {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 560;
  color: var(--ember);
}

.dl.pending {
  opacity: 0.62;
}

.dl.pending .dl-action {
  color: var(--muted);
}

.prereq {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.prereq h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 620;
}

.prereq p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.prereq-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.prereq h4 {
  margin: 0 0 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.prereq code {
  display: block;
  padding: 9px 12px;
  margin-bottom: 6px;
  background: #101014;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  color: #d8d9e2;
  overflow-x: auto;
  white-space: nowrap;
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
}

.prereq .fineprint {
  margin: 18px 0 0;
}

footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-chat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .demo-preview {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
