/* ===========================
   Outpost Landing Page
   Design: Dark, developer-grade
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --text: #e8e8f0;
  --text-muted: #888899;
  --text-dim: #555566;
  --accent: #6c63ff;
  --accent-light: #8c83ff;
  --accent-glow: rgba(108, 99, 255, 0.3);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   NAVIGATION
   =========================== */

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 20px;
  color: var(--accent);
}

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

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

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

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  border: none;
  white-space: nowrap;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
  margin-top: auto;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(108, 99, 255, 0.08);
}

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

.btn-ghost:hover {
  color: var(--text);
}

/* ===========================
   HERO
   =========================== */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.hero-problem {
  font-size: 15px;
  color: var(--text-dim);
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

/* ===========================
   PLATFORMS
   =========================== */

.platforms {
  padding: 40px 0 60px;
  text-align: center;
}

.platforms-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.platforms-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-pill {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===========================
   FEATURES
   =========================== */

.features {
  padding: 80px 0;
}

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

.features-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .features-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-grid--four {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-card code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===========================
   QUICKSTART / CODE BLOCKS
   =========================== */

.quickstart {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quickstart-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .quickstart-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.quickstart-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.quickstart-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.quickstart-text code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent-light);
  padding: 2px 6px;
  border-radius: 4px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1a24;
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #22c55e; }

.code-file {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}

.code-block {
  background: #0e0e18;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}

.json-key { color: #7dd3fc; }
.json-string { color: #86efac; }
.json-brace { color: #e8e8f0; }
.json-array { color: #e8e8f0; }
.json-punc { color: #888899; }
.json-comment { color: #555566; font-style: italic; }
.json-keyword { color: #c084fc; }

/* ===========================
   REST DEMO
   =========================== */

.rest-demo {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rest-demo .code-header,
.rest-demo .code-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

/* ===========================
   PRICING
   =========================== */

.pricing {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pricing .section-title {
  margin-bottom: 12px;
}

.pricing .section-sub {
  margin-bottom: 52px;
}

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

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08) 0%, var(--bg) 100%);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
}

.price-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-features li::first-letter {
  /* checkmarks handled in HTML */
}

.founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
}

.pricing-card--founding {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, var(--bg) 100%);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.12);
}

.founding-rate-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-regular-price {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -8px;
}

.pricing-regular-price s {
  opacity: 0.6;
}

/* ===========================
   SOCIAL PROOF
   =========================== */

.social-proof {
  padding: 80px 0;
  text-align: center;
}

.testimonial {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 32px;
  font-size: 80px;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial p {
  font-size: 18px;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.6;
}

.testimonial cite {
  font-size: 13px;
  color: var(--text-dim);
  font-style: normal;
}

/* ===========================
   WAITLIST
   =========================== */

.waitlist {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.waitlist::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--text);
}

.waitlist-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-fields {
  display: flex;
  width: 100%;
  gap: 8px;
}

.waitlist-input {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.waitlist-input::placeholder {
  color: var(--text-dim);
}

.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.waitlist-btn {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 10px;
  flex-shrink: 0;
}

.waitlist-note {
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .waitlist-fields {
    flex-direction: column;
  }
  .waitlist-btn {
    width: 100%;
  }
}

/* ===========================
   FOOTER
   =========================== */

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

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

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

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===========================
   WAITLIST SUCCESS STATE
   =========================== */

.waitlist-success {
  text-align: center;
  padding: 16px 0;
}

.waitlist-success-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin-bottom: 8px;
}

.waitlist-success-sub {
  font-size: 14px;
  color: var(--text-dim, rgba(255,255,255,0.6));
}

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 50px; }
  .hero-headline { letter-spacing: -1px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
