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

/* ── Custom Properties ── */
:root {
  --bg-void: #0a0a12;
  --bg-deep: #0d0d1a;
  --bg-card: #12121f;
  --accent-blue: #4a90d9;
  --accent-amber: #d4a853;
  --text-primary: #e8e8f0;
  --text-secondary: #8888a0;
  --text-dim: #555570;
  --font-mono: 'JetBrains Mono', monospace;
  --glow-blue: 0 0 20px rgba(74, 144, 217, 0.3);
  --glow-amber: 0 0 20px rgba(212, 168, 83, 0.3);
}

/* ── Base ── */
html,
body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-mono);
  scroll-behavior: smooth;
  overflow-x: hidden;
  line-height: 1.6;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ── Utilities ── */
.glow-text {
  text-shadow:
    0 0 20px rgba(74, 144, 217, 0.4),
    0 0 40px rgba(74, 144, 217, 0.15);
}

.neon-border {
  box-shadow: var(--glow-blue);
}

/* ── CRT Scanline Overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Hero ── */
.hero-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

#hero-logo {
  width: 320px;
  height: 320px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow:
    0 0 40px rgba(74, 144, 217, 0.4),
    0 0 80px rgba(74, 144, 217, 0.15);
}

.hero-tagline {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 0.5rem;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
  margin-top: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-blue), #3a7bc8);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(74, 144, 217, 0.3);
  margin-top: 2rem;
}

.btn-primary:hover {
  box-shadow: 0 0 50px rgba(74, 144, 217, 0.5);
  transform: translateY(-2px);
}

.hero-platforms {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.hero-platforms a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ── Section Titles ── */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

#how-it-works .section-title,
#faq .section-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── How It Works ── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
  opacity: 0.4;
}

/* ── Features ── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.feature--reverse .feature-visual {
  order: 2;
}

.feature-visual {
  position: relative;
}

.feature-placeholder {
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 217, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.feature-copy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Origin Story ── */
.story-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
}

.story-quote {
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent-amber);
  margin-bottom: 2rem;
  position: relative;
  padding: 0 2rem;
}

.story-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.5rem;
  top: -0.5rem;
  font-size: 4rem;
  color: var(--accent-amber);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

.story-quote::after {
  content: '\201D';
  position: absolute;
  right: -0.5rem;
  bottom: -1.5rem;
  font-size: 4rem;
  color: var(--accent-amber);
  opacity: 0.3;
  font-style: normal;
  line-height: 1;
}

.story-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Pricing ── */
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin: -1.5rem auto 3rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.pricing-card--pro {
  border-color: rgba(74, 144, 217, 0.4);
  box-shadow: 0 0 40px rgba(74, 144, 217, 0.1);
  position: relative;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  margin-top: 1rem;
}

.pricing-tier {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}

.pricing-annual {
  font-size: 0.8rem;
  color: var(--accent-amber);
  margin-top: 0.25rem;
}

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

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--accent-blue);
  margin-right: 0.75rem;
  font-weight: 700;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--accent-blue);
  background: transparent;
  color: var(--accent-blue);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: rgba(74, 144, 217, 0.1);
  box-shadow: 0 0 30px rgba(74, 144, 217, 0.2);
  transform: translateY(-2px);
}

/* ── FAQ ── */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '\203A';
  position: absolute;
  left: 0;
  font-size: 1.3rem;
  color: var(--accent-blue);
  transition: transform 0.3s;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 1.5rem;
}

/* ── Download ── */
#download {
  text-align: center;
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  min-width: 180px;
}

.download-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--glow-blue);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.download-card--active {
  border-color: var(--accent-blue);
  background: rgba(74, 144, 217, 0.08);
}

.download-icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.download-card:hover .download-icon,
.download-card--active .download-icon {
  opacity: 1;
}

.download-platform {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.download-format {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.download-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Footer ── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(74, 144, 217, 0.1);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-name {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-links h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Scroll Fade-In Animations ──
   Only hide elements once JS has loaded (adds .js-ready to html).
   Without JS, everything stays visible. */
.js-ready .feature,
.js-ready .step,
.js-ready .pricing-card,
.js-ready .faq-item,
.js-ready .story-container {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js-ready .visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sticky Nav ── */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 144, 217, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav-visible {
  transform: translateY(0);
}

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

.nav-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--accent-blue) !important;
  font-weight: 600;
}

/* ── Responsive: 1024px ── */
@media (max-width: 1024px) {
  .feature {
    gap: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }
}

/* ── Responsive: 768px ── */
@media (max-width: 768px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature-visual {
    order: 0;
  }

  .steps {
    flex-direction: column;
    gap: 1rem;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  #hero-logo {
    width: 240px;
    height: 240px;
  }

  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }
}

/* ── Responsive: 480px ── */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
  }

  section {
    padding: 3rem 1rem;
  }

  .feature-copy {
    font-size: 0.85rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .story-quote {
    font-size: 1.2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}
