@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ─── Variables ──────────────────────────────── */

:root {
  --bg: #0A0014;
  --surface: #12001F;
  --surface-2: #1a003a;
  --primary: #FF2D78;
  --secondary: #00F5FF;
  --accent: #BF5FFF;
  --success: #00FF9F;
  --warning: #FFD600;
  --text: #F0F0F0;
  --text-dim: rgba(240, 240, 240, 0.55);
  --border: rgba(255, 45, 120, 0.2);
  --border-hover: rgba(255, 45, 120, 0.5);
  --glow-pink: 0 0 20px rgba(255, 45, 120, 0.4), 0 0 60px rgba(255, 45, 120, 0.15);
  --glow-cyan: 0 0 20px rgba(0, 245, 255, 0.4);
  --glow-accent: 0 0 20px rgba(191, 95, 255, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ─── Reset & Base ───────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle scanline overlay — ties the site to the VHS/Synthwave aesthetic */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 9000;
}

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

a:hover {
  color: var(--primary);
}

/* ─── Navigation ─────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10, 0, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

/* ─── Hero ─────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 7rem;
  position: relative;
  overflow: hidden;
}

/* Radial purple glow behind hero content */
.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(191, 95, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Perspective grid floor */
.hero-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 420px;
  background-image:
    linear-gradient(rgba(255, 45, 120, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 40px, 80px 100%;
  transform: perspective(500px) rotateX(58deg);
  transform-origin: bottom center;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 50%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 50%, black 100%);
}

.app-icon {
  width: 130px;
  height: 130px;
  border-radius: 29px;
  margin-bottom: 2rem;
  box-shadow: var(--glow-pink);
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero h1 .rx {
  color: var(--primary);
  text-shadow: var(--glow-pink);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--glow-pink);
  text-decoration: none;
}

.btn-primary:hover {
  background: #ff4d8f;
  box-shadow: 0 0 40px rgba(255, 45, 120, 0.65);
  color: white;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(240, 240, 240, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(191, 95, 255, 0.1);
  border: 1px solid rgba(191, 95, 255, 0.3);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Section layout ─────────────────────────── */

.section-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-wrap.narrow {
  max-width: 760px;
}

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

.section-header.centered {
  text-align: center;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-dim);
  font-size: 1rem;
}

/* ─── Horizontal divider ─────────────────────── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 2rem;
}

/* ─── Features grid ──────────────────────────── */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Top accent line that appears on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(255, 45, 120, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

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

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ─── Brand statement ────────────────────────── */

.brand-statement {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.brand-statement blockquote {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.brand-statement blockquote .highlight {
  color: var(--accent);
}

.brand-statement .brand-footer {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Themes section ─────────────────────────── */

.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Synthwave theme card */
.theme-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.theme-card.synthwave {
  background: #12001F;
  border-color: rgba(255, 45, 120, 0.35);
}
.theme-card.memphis {
  background: #FAFAFA;
  border-color: rgba(230, 57, 70, 0.4);
}
.theme-card.vhs {
  background: #161616;
  border-color: rgba(0, 255, 65, 0.35);
}

.theme-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.synthwave .theme-badge {
  color: #FF2D78;
  background: rgba(255, 45, 120, 0.1);
}
.memphis .theme-badge {
  color: #E63946;
  background: rgba(230, 57, 70, 0.1);
}
.vhs .theme-badge {
  color: #00FF41;
  background: rgba(0, 255, 65, 0.1);
}

.theme-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.synthwave h3 { color: #F0F0F0; }
.memphis h3 { color: #1A1A1A; }
.vhs h3 { color: #E8E8E8; font-family: 'Courier New', monospace; }

.theme-vibe {
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}
.synthwave .theme-vibe { color: rgba(240,240,240,0.5); }
.memphis .theme-vibe { color: rgba(26,26,26,0.55); }
.vhs .theme-vibe { color: rgba(232,232,232,0.5); font-family: 'Courier New', monospace; }

.theme-swatches {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

/* ─── Footer ──────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.footer-copy {
  color: rgba(240, 240, 240, 0.3);
  font-size: 0.78rem;
}

/* ─── Inner pages (Privacy, Support) ────────── */

.page-hero {
  padding: 9rem 2rem 3rem;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero .section-label {
  display: block;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 480px;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.page-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 0.6rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.page-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 1.5rem 0 0.4rem;
}

.page-content p {
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  line-height: 1.8;
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  color: var(--text-dim);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.85;
  font-size: 0.95rem;
}

.page-content strong {
  color: var(--text);
  font-weight: 600;
}

.page-content .tldr {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}

.page-content .section-divider {
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* ─── FAQ ─────────────────────────────────────── */

.faq-list {
  margin-top: 1rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.faq-a {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-a a {
  color: var(--primary);
}

/* ─── Contact box ─────────────────────────────── */

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
}

.contact-box .section-label {
  margin-bottom: 0.5rem;
}

.contact-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.contact-box p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.contact-email {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}

.contact-email:hover {
  background: var(--primary);
  color: white;
  box-shadow: var(--glow-pink);
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .themes-grid .theme-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

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

  .themes-grid {
    grid-template-columns: 1fr;
  }

  .themes-grid .theme-card:last-child {
    grid-column: auto;
  }

  .footer-links {
    gap: 1.25rem;
  }

  .section-wrap {
    padding: 3.5rem 1.25rem;
  }

  .page-hero {
    padding: 8rem 1.25rem 2rem;
  }

  .page-content {
    padding: 0 1.25rem 5rem;
  }
}
