﻿/* QuizFlavour Landing Page — Master Template
   Replace #E53935 and #C2302D when generating flavor copies */

:root {
  --primary: #E53935;
  --primary-dark: #C2302D;
  --bg: #0d0d1a;
  --bg-card: #161628;
  --text: #ffffff;
  --text-muted: #9999bb;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --section-padding: 48px 20px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Navigation ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.nav-download:hover {
  background: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ── Hero ── */

.hero {
  padding: 56px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 61, 232, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.15;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 520px;
}

.play-badge-link {
  display: inline-block;
  transition: transform 0.2s;
  min-height: 44px;
}

.play-badge-link:hover {
  transform: scale(1.03);
}

.play-badge-link img {
  height: 60px;
  width: auto;
  margin: 0 auto;
}

.hero-illustration {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.phone-preview {
  width: min(220px, 55vw);
  aspect-ratio: 9 / 19.5;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.phone-preview::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.phone-preview-inner {
  position: absolute;
  inset: 24px 12px 12px;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  opacity: 0.35;
}

/* ── Sections ── */

section {
  padding: var(--section-padding);
}

.section-heading {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 40px;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Screenshots ── */

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.phone-mockup {
  flex: 0 0 auto;
  width: min(200px, 50vw);
  scroll-snap-align: center;
}

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #1a1a2e;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 12px 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.phone-notch {
  width: 50px;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  margin: 0 auto 8px;
}

.phone-screen {
  width: 100%;
  height: calc(100% - 20px);
  border-radius: 16px;
  overflow: hidden;
  object-fit: cover;
}

/* ── How It Works ── */

.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(108, 61, 232, 0.4);
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 280px;
}

/* ── Privacy Policy ── */

#privacy-policy {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
}

.disclaimer-content p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
}

.privacy-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.privacy-updated {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 32px;
  font-size: 0.9rem;
}

.privacy-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.privacy-content p,
.privacy-content li {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.privacy-content ul {
  padding-left: 24px;
  margin: 0 0 16px;
}

.privacy-content a {
  color: var(--primary);
}

/* ── Footer ── */

.site-footer {
  padding: 48px 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand span {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 16px;
}

.footer-contact {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.footer-powered {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.footer-powered a {
  color: var(--primary);
}

/* ── Tablet ── */

@media (min-width: 768px) {
  :root {
    --section-padding: 64px 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 15%;
    right: 15%;
    height: 2px;
    border-top: 2px dashed var(--border);
    z-index: 0;
  }

  .step {
    position: relative;
    z-index: 1;
  }
}

/* ── Desktop ── */

@media (min-width: 1024px) {
  :root {
    --section-padding: 80px 24px;
  }

  .hero {
    padding: 80px 24px 96px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshots-scroll {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: nowrap;
  }

  .phone-mockup {
    width: 220px;
  }
}
