:root {
  --bg: #141519;
  --bg-alt: #1A1C22;
  --surface: #20232B;
  --surface-hover: #262A34;
  --border: #313643;
  --text: #F4F1EA;
  --muted: #A9B0BE;
  --coral: #E06D44;
  --coral-hover: #EB7B53;
  --mint: #3ECF8E;
  --blue: #58A6FF;
  --gold: #F2BA59;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 18% 0%, rgba(224, 109, 68, 0.12), transparent 44%),
    radial-gradient(circle at 85% 15%, rgba(88, 166, 255, 0.09), transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 6px;
  color: #FFE4D4;
}

.container {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(20, 21, 25, 0.86);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--coral), #C5522B);
  color: #FFFDF8;
  font-size: 13px;
  font-weight: 800;
}

.version-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint);
  background: rgba(62, 207, 142, 0.12);
  border: 1px solid rgba(62, 207, 142, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

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

.btn-sm {
  font-size: 13px;
  padding: 7px 14px;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 20px;
}

.btn-full {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
}

.btn-primary {
  background: var(--coral);
  color: #FFFDF9;
  box-shadow: 0 8px 24px rgba(224, 109, 68, 0.28);
}

.btn-primary:hover {
  background: var(--coral-hover);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--coral);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

/* Hero */
.hero {
  padding: 46px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.pledge-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.36);
  color: #D9F7E8;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.pledge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  margin-top: 5px;
  flex-shrink: 0;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--muted);
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.repo-quick-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.repo-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.repo-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.repo-tag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}

.repo-copy-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.repo-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  color: #E7ECF7;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.install-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Demo Frame */
.demo-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: #181A20;
  border-bottom: 1px solid var(--border);
}

.demo-dots {
  display: inline-flex;
  gap: 6px;
}

.demo-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A3F4B;
}

.demo-window-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-mode-switch {
  display: inline-flex;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.demo-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.demo-tab.active {
  background: var(--coral);
  color: #FFFDF9;
}

.demo-body {
  padding: 20px 18px 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #1B1D24;
  background-size: 26px 26px;
}

.viewport-hud-preview {
  background: rgba(24, 21, 19, 0.94);
  border: 1.5px solid rgba(224, 109, 68, 0.82);
  border-top: 4px solid var(--coral);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #F0C48D;
}

.hud-badge {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hud-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFDF8;
}

.hud-line {
  font-size: 12.5px;
  color: #ECE7DE;
}

.lbl-do { color: #F58F66; }
.lbl-where { color: #80CCFA; }
.lbl-live { color: #72E09A; }
.lbl-ai { color: #FBC75C; }

.stuck-preview {
  background: rgba(34, 22, 22, 0.9);
  border: 1.5px solid rgba(235, 95, 80, 0.5);
  border-radius: 10px;
  padding: 18px;
}

.stuck-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #FF9C91;
  background: rgba(235, 95, 80, 0.15);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}

.stuck-preview h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.stuck-preview p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.demo-caption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.demo-meta-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 4px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.demo-meta-row strong {
  color: var(--text);
}

/* Sections & Grids */
.section {
  padding: 58px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 34px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pill-coral {
  background: rgba(224, 109, 68, 0.16);
  color: #FFAD8F;
}

.pill-blue {
  background: rgba(88, 166, 255, 0.15);
  color: #93C5FD;
}

.pill-mint {
  background: rgba(62, 207, 142, 0.15);
  color: #86EFAC;
}

.time-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.card h3 {
  margin: 0;
  font-size: 18px;
}

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

.check-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #D7DCE5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Pricing */
.price-card {
  position: relative;
}

.price-featured {
  border-color: rgba(224, 109, 68, 0.72);
  box-shadow: 0 18px 44px rgba(224, 109, 68, 0.14);
}

.featured-tag {
  position: absolute;
  top: -11px;
  right: 18px;
  background: var(--coral);
  color: #FFFDF8;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.price-tier {
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-val {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
}

.price-val span {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.price-plus {
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  margin-top: -6px;
}

.price-desc {
  min-height: 40px;
}

/* Footer */
.site-footer {
  padding: 26px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

[hidden] {
  display: none !important;
}
