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

:root {
  --bg: #0a0e27;
  --bg-2: #131838;
  --surface: #1a2147;
  --surface-2: #232a55;
  --text: #ffffff;
  --muted: #8b91c7;
  --border: #2d3563;
  --primary: #ff2c44;
  --primary-hover: #ff5066;
  --primary-soft: rgba(255, 44, 68, 0.15);
  --accent: #00d4ff;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Animated starfield background */
.stars {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent),
    radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent),
    radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent),
    radial-gradient(1px 1px at 15% 65%, white, transparent),
    radial-gradient(2px 2px at 70% 20%, white, transparent);
  background-size: 200% 200%;
  background-repeat: repeat;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  animation: drift 60s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 200% 200%; }
}

/* Topbar */
.topbar {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.topbar nav { display: flex; gap: 30px; }
.topbar nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.topbar nav a:hover { color: var(--text); }
.cta-top {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: all .15s;
}
.cta-top:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.alert-badge {
  display: inline-block;
  background: var(--primary-soft);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 28px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all .2s;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 44, 68, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-large { padding: 18px 36px; font-size: 16px; }

/* Crewmates row */
.crewmates {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.crewmate {
  width: 64px;
  height: 76px;
  border-radius: 32px 32px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255,255,255,0.85);
  position: relative;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform .2s;
}
.crewmate:hover { transform: translateY(-6px) rotate(-5deg); }
.crewmate::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 28px;
  height: 22px;
  background: rgba(135, 206, 235, 0.7);
  border-radius: 100px;
}
.crewmate span { display: none; }
.crewmate.red { background: #c51111; }
.crewmate.blue { background: #132ed1; }
.crewmate.yellow { background: #f5f557; }
.crewmate.yellow::before { background: rgba(135, 206, 235, 0.5); }
.crewmate.green { background: #117f2d; }
.crewmate.pink { background: #ed54ba; }
.crewmate.cyan { background: #38fedc; }
.crewmate.cyan::before { background: rgba(135, 206, 235, 0.4); }
.crewmate.orange { background: #ef7d0d; }
.crewmate.purple { background: #6b2fbb; }
.crewmate-hint {
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
section { padding: 96px 0; position: relative; }
.tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
h2 {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 48px; max-width: 600px; }

/* How */
.how { background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  padding: 36px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  position: relative;
  transition: all .2s;
}
.step:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: 18px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.feature:hover {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing { background: var(--bg-2); }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.plan {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 44, 68, 0.08) 100%);
  border: 2px solid var(--primary);
  transform: scale(1.03);
}
.featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.plan-price { font-size: 48px; font-weight: 900; margin-bottom: 8px; }
.plan-price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.plan ul { margin-bottom: 28px; flex: 1; }
.plan li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 14px;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

/* Stats */
.stats {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  text-align: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat-card {
  padding: 32px 20px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 44px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 13px; font-weight: 500; }

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, #1a0a25 0%, #2d0f1a 100%);
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-final h2 { font-size: 48px; margin-bottom: 16px; }
.cta-final p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }

/* Footer */
footer { background: var(--bg); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.logo-footer { font-weight: 900; font-size: 18px; color: var(--primary); display: block; margin-bottom: 6px; }
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links span { color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .topbar nav, .cta-top { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 42px; }
  h2 { font-size: 30px; }
  section { padding: 56px 0; }
  .steps, .feature-grid, .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .cta-final h2 { font-size: 32px; }
  .crewmate { width: 48px; height: 58px; }
}
