/* ============================================
   Cashed Out — Website Design System
   Matches app theme: dark-only, neon green accent
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

/* --- Tokens --- */
:root {
  --black: #0A0A0A;
  --dark: #161616;
  --accent: #00FF88;
  --accent-dim: rgba(0, 255, 136, 0.15);
  --accent-glow: rgba(0, 255, 136, 0.3);
  --red: #FF3344;
  --amber: #FFB800;
  --text: #E8E8E8;
  --muted: #666666;
  --border: #222222;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1100px;
  --section-pad: 80px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.accent {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 140px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
}

.hero-sub {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================
   Features
   ============================================ */
.features {
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 56px;
}

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

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

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================
   Stats
   ============================================ */
.stats {
  border-top: 1px solid var(--border);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--muted);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-banner-box {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner-box::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  position: relative;
}

.cta-banner-sub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .hero-cta {
  position: relative;
}

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

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================
   Legal Pages (Privacy / Terms)
   ============================================ */
.legal {
  padding-top: 120px;
  padding-bottom: var(--section-pad);
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 8px;
}

.legal .legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal h3 {
  font-size: 22px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.legal ul, .legal ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal li {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

.legal a {
  color: var(--accent);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 56px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-banner-box {
    padding: 48px 24px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 140px;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .hero-wordmark {
    font-size: 56px;
  }

  .hero-cta {
    padding: 14px 28px;
    font-size: 16px;
  }

  .nav-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
}
