:root {
  --bg: #0f0f10;
  --panel: #1a1a1d;
  --panel-2: #141417;
  --text: #e8e8e8;
  --muted: #a7a7af;
  --accent: #f4b942;
  --accent-soft: rgba(244,185,66,0.12);
  --border: #2a2a2e;
  --shadow: 0 20px 40px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at top center, rgba(244,185,66,.08), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15,15,16,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: transform .22s ease;
}

.site-header.is-hidden {
  transform: translateY(calc(-100% - 2px));
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-mark {
  display: block;
  width: 235px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(244,185,66,.18));
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.menu-toggle:hover {
  background: rgba(255,255,255,.08);
}

.nav-links,
.nav-actions,
.footer-links,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
}

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

section {
  padding: 84px 0;
}

.hero {
  padding: 72px 0 64px;
}

.hero-grid,
.platform-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(244,185,66,.2);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 18px;
}

h1, h2, h3, p {
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

p,
.panel-note,
.platform-card span,
.footer {
  color: var(--muted);
}

.lead {
  max-width: 62ch;
  font-size: 1.08rem;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  box-shadow: 0 10px 25px rgba(244,185,66,.14);
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.hero-panel,
.feature,
.price-card,
.platform-card,
.cta-box,
.demo-shell {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  background-color: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.hero-mark {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(244,185,66,.22));
}

.terminal-card {
  background: #111113;
  border: 1px solid rgba(244,185,66,.14);
  border-radius: 14px;
  overflow: hidden;
}

.terminal-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(244,185,66,.55);
  box-shadow: 0 0 8px rgba(244,185,66,.3);
}

.terminal-copy {
  margin: 0;
  padding: 18px;
  color: #f2d495;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.section-head {
  margin-bottom: 26px;
}

.demo-shell {
  padding: 14px;
}

.demo-stage {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  height: clamp(520px, 78svh, 720px);
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(244,185,66,.12), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    #120d06;
}

.demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
  background: #120d06;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature,
.price-card,
.platform-card {
  padding: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card.featured {
  border-color: rgba(244,185,66,.28);
  box-shadow: 0 0 0 1px rgba(244,185,66,.08), var(--shadow);
}

.price {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
}

.price-sub {
  min-height: 24px;
  color: var(--muted);
}

.platform-card {
  display: grid;
  gap: 14px;
}

.stack-line {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.stack-line:last-child {
  border-bottom: 0;
}

.cta {
  padding-top: 0;
}

.cta-box {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 980px) {
  .hero-grid,
  .platform-grid,
  .features,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    min-height: 60px;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .hero {
    padding-top: 44px;
  }

  section {
    padding: 56px 0;
  }

  .brand-mark {
    width: 190px;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .nav-actions {
    display: flex;
  }

  .nav-links a,
  .nav-actions .button {
    flex: 1 1 auto;
    text-align: center;
  }

  .nav-actions .button,
  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}
