/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --text-dim: #5a5a72;
  --accent: #f5c542;
  --accent-glow: rgba(245, 197, 66, 0.15);
  --green: #4ade80;
  --yellow: #facc15;
  --red: #f87171;
  --gradient: linear-gradient(135deg, #f5c542, #f59e42, #f5c542);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { opacity: 1; color: var(--text); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); opacity: 1; }
.nav-links .btn { color: var(--bg); }
.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--gradient);
  color: #0a0a0f;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); color: #0a0a0f; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

/* === Hero === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(245, 197, 66, 0.2);
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-proof {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.proof-item { text-align: center; }
.proof-item strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--text); }
.proof-item span { font-size: 0.85rem; color: var(--text-muted); }
.proof-divider { width: 1px; height: 40px; background: var(--border-light); }

/* === Terminal === */
.terminal {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); }
.terminal-body {
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text);
}
.t-green { color: var(--green); }
.t-yellow { color: var(--yellow); }
.t-red { color: var(--red); }
.t-muted { color: var(--text-dim); }

/* === Sections === */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* === Problem Grid === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.problem-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.problem-card:hover { border-color: var(--border-light); }
.problem-icon { font-size: 1.8rem; margin-bottom: 16px; }
.problem-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.problem-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* === Steps === */
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 680px;
}
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(245, 197, 66, 0.3);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}
.step-content h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step-content p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.step-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  overflow-x: auto;
}
.step-code code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  color: var(--green);
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 60px var(--accent-glow);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gradient);
  color: #0a0a0f;
}
.pricing-tier {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  margin-right: 10px;
  color: var(--green);
  font-weight: 600;
}

/* === Signup === */
.signup-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.signup-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.signup-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.signup-perks { list-style: none; }
.signup-perks li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input,
.form-group select {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder { color: var(--text-dim); }
.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}
.form-success { text-align: center; padding: 40px 0; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* === Footer === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero-proof { gap: 20px; }
  .hero-proof .proof-divider { height: 30px; }

  .section { padding: 64px 0; }

  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card-featured { transform: none; }

  .signup-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 24px;
  }

  .step { flex-direction: column; gap: 16px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-proof { flex-direction: column; gap: 16px; }
  .hero-proof .proof-divider { width: 40px; height: 1px; }
  .problem-grid { grid-template-columns: 1fr; }
}
