/* ================================================
   Nerd Nudge — Landing Page Styles
   Clean dark/terminal aesthetic for devs & CS students
   ================================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: #111118;
  --border: #1e1e2e;
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #00e5a0;
  --accent-dim: #00b87a;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--muted); }

.nav-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

/* ---- Hero ---- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.25);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 160px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.store-btn:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.1);
}

.store-btn .store-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.store-btn .store-info { text-align: left; }

.store-btn .store-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.store-btn .store-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ---- Divider ---- */
.section-divider {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ---- Stats bar ---- */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 2rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---- Features ---- */
.features {
  padding: 4rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(0, 229, 160, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- How it works ---- */
.how-it-works {
  padding: 4rem 2rem 5rem;
  max-width: 800px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 160, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---- Pricing callout ---- */
.pricing-section {
  padding: 4rem 2rem 5rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-dim));
}

.pricing-card .free-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.3);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
  text-align: left;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pricing-features li .check {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-cta:hover {
  background: #00ffc2;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 229, 160, 0.3);
}

/* ---- Footer ---- */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.cta-banner h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.cta-banner p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .stats { gap: 2rem; }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 240px; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .features, .how-it-works, .pricing-section, .cta-banner { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav { padding: 1rem 1.25rem; }
}