html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  background: #000;
}

.font-display {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
}

/* ── Ambient aura ── */
.site-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 12% 0%, rgba(232, 197, 71, 0.07) 0%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 88% 100%, rgba(232, 197, 71, 0.04) 0%, transparent 100%);
}

/* ── Navigation ── */
.nav-shell {
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.nav-shell.scrolled {
  background: rgba(0, 0, 0, 0.94);
  border-color: rgba(232, 197, 71, 0.16);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(232, 197, 71, 0.05);
}

.nav-link {
  position: relative;
  transition: color 200ms ease;
}

.nav-link:hover {
  color: #e8c547;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, #e8c547, transparent);
  transition: transform 200ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.mobile-nav-link {
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.mobile-nav-link:hover {
  background: rgba(232, 197, 71, 0.07);
  color: #e8c547;
  transform: translateX(4px);
}

/* ── Section kicker label ── */
.section-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #e8c547;
}

/* ── Hero ── */
.hero-bg-text {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(7rem, 18vw, 20rem);
  color: rgba(255, 255, 255, 0.018);
  letter-spacing: 0.06em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 197, 71, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 197, 71, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 50%, black 10%, transparent 70%);
}

.hero-rings {
  position: absolute;
  inset: -1rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(232, 197, 71, 0.16), transparent 36%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 62%);
  filter: blur(14px);
}

/* ── Phone stack (hero) ── */
.phone-stack {
  position: relative;
}

.phone-stack-left {
  margin-right: -3.2rem;
  transform: translateY(3rem);
}

.phone-stack-right {
  margin-left: -3.2rem;
  transform: translateY(4.2rem);
}

/* Raw screenshot — no extra frame, the image already has the device bezel */
.hero-screenshot {
  display: block;
  width: min(100%, 18rem);
  border-radius: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(232, 197, 71, 0.07),
    0 40px 90px rgba(0, 0, 0, 0.85),
    0 0 48px rgba(232, 197, 71, 0.07);
}

/* ── Primary CTA button ── */
.btn-cta {
  background-color: #e8c547;
  color: #000;
  font-weight: 700;
  transition:
    background-color 250ms ease,
    transform 250ms ease;
}

.btn-cta:hover {
  background-color: #f0d060;
  transform: translateY(-2px);
}

/* Safety: ensure bg-yellow utility always resolves to brand yellow */
.bg-yellow {
  background-color: #e8c547 !important;
}

/* ── Shared card base ── */
.feature-card,
.offline-card,
.cta-panel,
.legal-card,
.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #080808;
}

.feature-card::before,
.offline-card::before,
.cta-panel::before,
.legal-card::before,
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(232, 197, 71, 0.22) 50%, transparent 90%);
  pointer-events: none;
}

/* ── Feature cards ── */
.feature-card {
  border-radius: 1.5rem;
  padding: 1.6rem;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 197, 71, 0.18);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(232, 197, 71, 0.05);
}

.feature-card h3 {
  margin-top: 1.15rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.feature-card p {
  margin-top: 0.65rem;
  color: #606060;
  line-height: 1.75;
  font-size: 0.875rem;
}

/* ── Feature icon ── */
.feature-icon {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  border: 1px solid rgba(232, 197, 71, 0.18);
  background: rgba(232, 197, 71, 0.07);
  color: #e8c547;
}

.feature-icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

/* ── Bento grid (replaces screenshots section) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.bento-card {
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition:
    border-color 260ms ease,
    transform 260ms ease;
}

.bento-card:hover {
  border-color: rgba(232, 197, 71, 0.16);
  transform: translateY(-3px);
}

.bento-card-wide {
  grid-column: span 2;
}

.bento-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin-top: 0.85rem;
}

.bento-card > p {
  margin-top: 0.5rem;
  color: #525252;
  line-height: 1.7;
  font-size: 0.855rem;
}

/* ── Quiz mock visual ── */
.quiz-mock {
  margin-top: 1.4rem;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.9rem;
  padding: 1.1rem;
}

.quiz-mock-question {
  font-size: 0.775rem;
  font-weight: 600;
  color: #d4d4d4;
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #4a4a4a;
  font-size: 0.775rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.quiz-opt:last-child {
  margin-bottom: 0;
}

.quiz-opt-correct {
  border-color: rgba(232, 197, 71, 0.3);
  background: rgba(232, 197, 71, 0.06);
  color: #e8c547;
}

.quiz-opt-dot {
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.quiz-opt-correct .quiz-opt-dot {
  background: #e8c547;
  border-color: #e8c547;
}

/* ── Progress / History mock visual ── */
.progress-mock {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0c0c0c;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.history-row:last-child {
  border-bottom: none;
}

.history-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.history-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d4d4d4;
}

.history-date {
  font-size: 0.58rem;
  color: #404040;
  letter-spacing: 0.04em;
}

.history-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.history-badge-pass {
  background: rgba(232, 197, 71, 0.1);
  color: #e8c547;
  border: 1px solid rgba(232, 197, 71, 0.22);
}

.history-badge-review {
  background: rgba(255, 255, 255, 0.03);
  color: #505050;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Flash card mock visual ── */
.flash-mock {
  margin-top: 1.4rem;
  background: #0c0c0c;
  border: 1px solid rgba(232, 197, 71, 0.12);
  border-radius: 0.85rem;
  padding: 1.1rem 1.2rem;
}

.flash-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8c547;
  margin-bottom: 0.45rem;
}

.flash-mock p {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.55;
  margin: 0;
}

/* ── Category pills ── */
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.category-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: #555;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 200ms ease;
}

.category-pill:hover {
  border-color: rgba(232, 197, 71, 0.3);
  background: rgba(232, 197, 71, 0.07);
  color: #e8c547;
}

.category-pill-active {
  border-color: rgba(232, 197, 71, 0.35);
  background: rgba(232, 197, 71, 0.08);
  color: #e8c547;
}

/* ── Review stat visual ── */
.review-stat {
  margin-top: 1.5rem;
  text-align: center;
  padding: 1.25rem;
  background: rgba(232, 197, 71, 0.05);
  border: 1px solid rgba(232, 197, 71, 0.14);
  border-radius: 0.75rem;
}

.review-stat-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.25rem;
  line-height: 1;
  color: #e8c547;
  margin: 0;
}

.review-stat-label {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5a5a;
  margin-bottom: 0;
}

/* ── Offline card ── */
.offline-card {
  display: grid;
  gap: 2rem;
  border-radius: 2rem;
  padding: 2.25rem;
}

.offline-icon {
  display: inline-flex;
  height: 3.75rem;
  width: 3.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.15rem;
  border: 1px solid rgba(232, 197, 71, 0.18);
  background: rgba(232, 197, 71, 0.06);
  color: #e8c547;
}

.offline-icon svg {
  height: 1.75rem;
  width: 1.75rem;
}

.offline-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 1.1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #d4d4d4;
}

/* ── CTA panel ── */
.cta-panel {
  border-radius: 2rem;
  padding: 2.5rem;
}

/* ── Legal pages ── */
.legal-shell {
  display: grid;
  gap: 0.875rem;
}

.legal-card {
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.legal-card h2 {
  margin-bottom: 0.8rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #e8c547;
}

.legal-card p,
.legal-card li {
  color: #5c5c5c;
  line-height: 1.9;
  font-size: 0.9rem;
}

.legal-card a {
  color: #e8c547;
  transition: color 200ms ease;
}

.legal-card a:hover {
  color: #f0d060;
}

.legal-card ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

/* ── Mobile menu ── */
.mobile-menu {
  transform-origin: top;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (min-width: 900px) {
  .offline-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .offline-card > .grid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1023px) {
  .phone-stack-left,
  .phone-stack-right {
    margin: 0;
    transform: none;
  }

  .phone-stack-left {
    display: none;
  }

  .phone-stack-right {
    position: absolute;
    right: -0.6rem;
    bottom: -1.5rem;
    transform: scale(0.82);
    opacity: 0.9;
  }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 639px) {
  .hero-screenshot {
    width: min(100%, 16rem);
    border-radius: 2rem;
  }

  .feature-card,
  .offline-card,
  .cta-panel,
  .legal-card,
  .bento-card {
    border-radius: 1.15rem;
  }

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

  .bento-card-wide {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
