/* ============================================================
   BUDGET QUEST — Landing Page Styles
   Aesthetic: Retro Pixel RPG meets Dark Tech
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0e0c1a;
  --bg-alt:      #13102a;
  --surface:     #1a1630;
  --surface-2:   #221d3d;
  --purple:      #6b4dd6;
  --purple-dark: #3d2a8a;
  --purple-glow: rgba(107, 77, 214, 0.35);
  --cyan:        #4db8d6;
  --gold:        #f5d853;
  --gold-dark:   #c4a930;
  --red:         #e83c3c;
  --green:       #24b94a;
  --text:        #e8e4ff;
  --text-dim:    #8c85b8;
  --border:      #6b4dd6;
  --border-dim:  rgba(107, 77, 214, 0.3);
  --shadow:      rgba(0, 0, 0, 0.8);
  --pixel-font:  'Press Start 2P', 'Courier New', monospace;
  --body-font:   'Rajdhani', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Scanlines ──────────────────────────────────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.04) 2px,
    rgba(0, 0, 0, 0.04) 4px
  );
}

/* ── Utility ────────────────────────────────────────────────── */
.gold-text    { color: var(--gold); }
.purple-glow  { color: var(--purple); text-shadow: 0 0 20px var(--purple), 0 0 40px var(--purple); }
.red-text     { color: var(--red); }
.text-center  { text-align: center; }

/* ── Pixel Border Mixin ─────────────────────────────────────── */
.pixel-border-style {
  border: 2px solid var(--border);
  box-shadow:
    4px 4px 0 var(--purple-dark),
    8px 8px 0 rgba(107,77,214,0.15);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  padding: 1rem 1.6rem;
  background: var(--purple);
  color: #fff;
  border: 3px solid var(--gold);
  box-shadow: 4px 4px 0 var(--gold-dark), 8px 8px 0 rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  position: relative;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold-dark), 10px 10px 0 rgba(0,0,0,0.5);
  background: #7d5de8;
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-hero {
  font-size: 0.75rem;
  padding: 1.2rem 2rem;
  margin-top: 1.5rem;
}

.btn-large {
  font-size: 0.75rem;
  padding: 1.3rem 2.2rem;
}

.btn-icon { font-size: 1rem; }

/* ── NAV ────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(14, 12, 26, 0.92);
  border-bottom: 2px solid var(--border-dim);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--pixel-font);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-pixel {
  color: var(--purple);
  animation: blink 1.2s step-start infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-cta {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 0.5rem 1rem;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-dim) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-images-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-text-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

.hero-img {
  width: 180px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px var(--purple-glow));
  animation: float 3s ease-in-out infinite;
}

.hero-img-left  { animation-delay: 0s; }
.hero-img-right { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.hero-title {
  font-family: var(--pixel-font);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.title-line-1, .title-line-3 {
  font-size: clamp(1rem, 2.8vw, 1.6rem);
  color: var(--text);
  letter-spacing: 0.05em;
}

.title-line-2 {
  font-size: clamp(2rem, 6vw, 4rem);
  text-shadow: 0 0 20px rgba(245,216,83,0.5), 4px 4px 0 var(--gold-dark);
  line-height: 1;
}

.title-line-4 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.hero-subtitle {
  font-family: var(--body-font);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 520px;
}

.hero-note {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.hero-scroll-hint {
  text-align: center;
  font-family: var(--pixel-font);
  font-size: 0.5rem;
  color: var(--purple);
  letter-spacing: 0.3em;
  padding-bottom: 2rem;
  animation: fadeInDown 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes fadeInDown {
  0%, 100% { opacity: 0.3; transform: translateY(-4px); }
  50%       { opacity: 1; transform: translateY(4px); }
}

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 1.2rem 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 2.5rem;
}

.stat-value {
  font-family: var(--pixel-font);
  font-size: 1.2rem;
}

.stat-label {
  font-family: var(--body-font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-sep {
  color: var(--purple);
  font-size: 1rem;
  opacity: 0.5;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}

.alt-bg {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--pixel-font);
  font-size: 0.55rem;
  color: var(--purple);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--purple);
}

.section-title {
  font-family: var(--pixel-font);
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-body {
  font-family: var(--body-font);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* ── PROBLEM CARDS ──────────────────────────────────────────── */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.prob-card {
  background: var(--surface-2);
  border: 2px solid var(--red);
  box-shadow: 4px 4px 0 rgba(232,60,60,0.2);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prob-icon { font-size: 2rem; 
align-self: center;
}

.prob-card p {
  font-family: var(--body-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dim);
  font-style: italic;
}

/* ── FEATURE GRID ───────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border-dim);
  box-shadow: 4px 4px 0 var(--purple-dark);
  padding: 2rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: default;
}

.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--purple-dark);
  border-color: var(--purple);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }

.feature-title {
  font-family: var(--pixel-font);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.feature-desc {
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── SCREENSHOT SECTIONS ────────────────────────────────────── */
.screen-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.screen-section-rev {
  direction: rtl;
}

.screen-section-rev > * {
  direction: ltr;
}

.screen-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.screen-text .btn-primary {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.screen-image {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 280px;
  border: 3px solid var(--purple);
  box-shadow:
    0 0 0 1px var(--purple-dark),
    6px 6px 0 var(--purple-dark),
    0 0 60px var(--purple-glow);
  overflow: hidden;
}

.screenshot-img {
  width: 100%;
  display: block;
}

/* ── DESKTOP SCREENSHOTS ────────────────────────────────────── */
.desktop-screens {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.desktop-img {
  width: 100%;
  border: 2px solid var(--border-dim);
  box-shadow: 6px 6px 0 var(--purple-dark), 0 0 30px var(--purple-glow);
}

/* ── PROOF SECTION ──────────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.proof-card {
  background: var(--surface);
  border: 2px solid var(--border-dim);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.proof-number { font-size: 2rem; }

.proof-card h3 {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  color: var(--gold);
  line-height: 1.7;
}

.proof-card p {
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.section-cta {
  background: var(--bg);
}

.cta-box {
  background: var(--surface);
  border: 3px solid var(--purple);
  box-shadow: 8px 8px 0 var(--purple-dark), 0 0 80px var(--purple-glow);
  padding: 4rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.cta-images {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.cta-img {
  width: 100px;
  filter: drop-shadow(0 0 16px var(--purple-glow));
  animation: float 3s ease-in-out infinite;
}

.cta-img:last-child { animation-delay: 1.5s; }

.cta-title {
  font-family: var(--pixel-font);
  font-size: clamp(0.8rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.cta-body {
  font-family: var(--body-font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 1rem;
  letter-spacing: 0.03em;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border-dim);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--pixel-font);
  font-size: 0.7rem;
  color: var(--gold);
}

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

.footer-links a {
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

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

.footer-copy {
  font-family: var(--body-font);
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.6;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid,
  .problem-cards,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .screen-section,
  .screen-section-rev {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .screen-image { order: -1; }

  .hero-images-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-img {
    width: 140px;
  }

  .stats-bar {
    gap: 1rem;
  }

  .stat-item {
    padding: 0.5rem 1rem;
  }

  .stat-sep { display: none; }
}

.bottompic {
  margin-top: 3rem;
}

@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }

  .feature-grid,
  .problem-cards,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section-title { font-size: 0.8rem; }
  .btn-primary   { font-size: 0.55rem; padding: 0.9rem 1.2rem; }
  .btn-hero      { font-size: 0.6rem; }

  .cta-box { padding: 2.5rem 1.5rem; }
  .cta-images { flex-direction: row; }
  .cta-img { width: 80px; }

  .phone-frame { width: 220px; }

  .nav-inner { padding: 0.75rem 1.25rem; }
  .nav-logo  { font-size: 0.6rem; }

  .hero-content { padding: 2rem 1.25rem 3rem; }
  .title-line-2, .title-line-4 { font-size: clamp(1.6rem, 10vw, 3rem); }
  .title-line-1, .title-line-3 { font-size: 0.7rem; }
}
