:root {
  --bg: #0a0705;
  --bg-soft: #110d0a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-gold: rgba(232, 184, 74, 0.35);
  --gold: #e8b84a;
  --gold-light: #f5d078;
  --maroon: rgba(139, 41, 20, 0.25);
  --text: #f5efe6;
  --text-muted: rgba(245, 239, 230, 0.62);
  --text-dim: rgba(245, 239, 230, 0.38);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --section-y: 52px;
  --gap: 14px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.22s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 0.9375rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(10, 7, 5, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  padding: 6px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--gold) !important;
  color: #1a0f05 !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: #1a0f05 !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--border);
}

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

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: #1a0f05;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.store-btn:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.9375rem;
  font-weight: 600;
}

.store-btn small {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.store-btn--lg {
  padding: 10px 22px 10px 16px;
}

.store-btn--lg .store-icon { width: 26px; height: 26px; }
.store-btn--lg span { font-size: 1rem; }

/* Hero */
.hero {
  padding: 84px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 80% -10%, var(--maroon), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 184, 74, 0.06), transparent);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(232, 184, 74, 0.1);
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 100px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.highlight { color: var(--gold); }

.hero-desc {
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 440px;
  font-size: 0.9375rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1.2;
}

.stat span {
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 184, 74, 0.2), transparent 70%);
  border-radius: 50%;
  filter: blur(24px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-mockup {
  position: relative;
  width: 230px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

/* Highlights bar */
.highlights {
  padding: 0 0 32px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.highlight-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.highlight-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
}

.highlight-item span {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

/* Sections */
.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* Screenshots */
.screenshots {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.screenshot-frame {
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.screenshot-trigger:hover .screenshot-frame {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.screenshot-card--featured .screenshot-frame {
  border-color: var(--border-gold);
}

.screenshot-card figcaption {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  padding: 14px 14px 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid rgba(232, 184, 74, 0.35);
  transition: border-color var(--transition), background var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--gold);
}

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

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Quizzes */
.quizzes {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.quizzes-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: center;
}

.quizzes-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.quizzes-copy p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.quiz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.quiz-tags li {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(232, 184, 74, 0.1);
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 100px;
}

.quizzes-images {
  position: relative;
  height: 300px;
}

.quiz-img-main,
.quiz-img-sub {
  position: absolute;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.quiz-img-main {
  width: 160px;
  right: 0;
  top: 0;
  z-index: 2;
  border-radius: var(--radius);
}

.quiz-img-sub {
  width: 130px;
  left: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.9;
  transform: rotate(-6deg);
  border-radius: var(--radius);
}

.quiz-img-main,
.quiz-img-sub {
  display: block;
}

/* Why */
.why {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}

.why-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-card), rgba(232, 184, 74, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.why-content h2 em {
  font-style: italic;
  color: var(--gold);
}

.why-content > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 480px;
  margin-bottom: 12px;
}

.why-quote {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}

.why-quote cite {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-family: var(--font-body);
}

.why-logo {
  width: 96px;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Download */
.download {
  padding: var(--section-y) 0 56px;
}

.download-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.08), var(--bg-card));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
}

.download-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.download-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 6px;
}

.download-card > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 18px;
}

.download-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding-bottom: 20px;
}

.footer-brand p {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  margin-bottom: 3px;
}

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

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox-content {
  max-width: 300px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.lightbox-content figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 56px 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg);
    border-top: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 12px 20px; }
  .menu-toggle { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 190px; }

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

  .quizzes-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .quiz-tags { justify-content: center; }

  .quizzes-images {
    height: 260px;
    max-width: 260px;
    margin: 0 auto;
  }

  .why-card {
    flex-direction: column;
    text-align: center;
  }

  .why-quote { text-align: left; }

  .footer-content { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
