/* ═══════════════════════════════════════════════════════════
   MedalMaker — Marketing Landing Page Styles
   Dark glassmorphism theme matching the app design system
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg-darker: #0d0e12;
  --bg-dark: #12131a;
  --bg-card: #1c1d26;
  --border-premium: #2d2e3d;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --brand-primary: #8b5cf6;
  --brand-secondary: #d946ef;
  --brand-amber: #f59e0b;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --container: 1200px;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Container ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all 0.25s ease; border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}
.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-premium);
}
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ─── Gradient Text ─── */
.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-amber));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Section Base ─── */
.section { padding: 6rem 0; position: relative; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--brand-primary); margin-bottom: 0.75rem;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; }

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 14, 18, 0.7); backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border-premium); background: rgba(13, 14, 18, 0.92); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 0.5rem 1.25rem; border-radius: var(--radius-lg);
  background: var(--brand-primary); color: #fff !important; font-weight: 600;
}
.nav-cta:hover { background: #7c3aed; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-primary);
  margin: 5px 0; border-radius: 2px; transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.25; pointer-events: none;
}
.hero-glow--1 { width: 600px; height: 600px; background: var(--brand-primary); top: -200px; left: -100px; }
.hero-glow--2 { width: 500px; height: 500px; background: var(--brand-secondary); bottom: -150px; right: -100px; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; max-width: var(--container); width: 100%;
}
.hero-badge {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--brand-primary); margin-bottom: 1.5rem;
}
.hero-text h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: 0.8rem; color: var(--text-muted); }

.hero-image-frame {
  border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--border-premium);
  box-shadow: 0 24px 80px rgba(139, 92, 246, 0.15), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Stats Bar */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; max-width: 700px; width: 100%; margin-top: 4rem;
  padding: 2rem; border-radius: var(--radius-xl);
  background: rgba(28, 29, 38, 0.6); backdrop-filter: blur(12px);
  border: 1px solid var(--border-premium);
}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 1.75rem; font-weight: 800; color: var(--brand-primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ═══════════════════════════════════════
   PROBLEMS
   ═══════════════════════════════════════ */
.problems { background: var(--bg-dark); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.problem-card {
  padding: 2rem; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-premium);
  transition: transform 0.3s, box-shadow 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.problem-icon { font-size: 2rem; margin-bottom: 1rem; }
.problem-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.problem-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card {
  padding: 1.75rem; border-radius: var(--radius-xl);
  background: rgba(28, 29, 38, 0.5); border: 1px solid var(--border-premium);
  backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.08);
}
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(217, 70, 239, 0.1));
  color: var(--brand-primary);
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */
.pricing { background: var(--bg-dark); }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; align-items: start;
}
.pricing-card {
  padding: 2.5rem 2rem; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-premium);
  position: relative; transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.pricing-card--featured {
  border-color: var(--brand-primary);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.12);
  transform: scale(1.04);
}
.pricing-card--featured:hover { transform: scale(1.04) translateY(-4px); }
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff; padding: 0.35rem 1.25rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-header { margin-bottom: 1.5rem; }
.pricing-header h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.price-amount { font-size: 2.5rem; font-weight: 900; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }
.pricing-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }
.pricing-features { margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid rgba(45, 46, 61, 0.5);
  padding-left: 1.5rem; position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--brand-primary); font-weight: 700;
}

/* ═══════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
  padding: 2rem; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-premium);
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card p {
  font-size: 0.95rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-card footer { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.testimonial-card footer strong { display: block; font-size: 0.9rem; }
.testimonial-card footer span { font-size: 0.78rem; color: var(--text-muted); }

/* ═══════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════ */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.08));
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.cta-banner h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 2rem; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--bg-dark); border-top: 1px solid var(--border-premium);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 280px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; color: var(--text-secondary); }
.footer-links a { display: block; font-size: 0.88rem; color: var(--text-muted); padding: 0.3rem 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-primary); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); margin-top: 1.5rem; }

/* ═══════════════════════════════════════
   REVEAL ANIMATION (IntersectionObserver)
   ═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: 0.2s; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(13, 14, 18, 0.97); backdrop-filter: blur(16px);
    flex-direction: column; padding: 2rem; gap: 1.25rem;
    border-bottom: 1px solid var(--border-premium);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .problem-grid, .pricing-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-card--featured { transform: none; }
  .pricing-card--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.75rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Premium scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--border-premium); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }
