/* home.css — Gamifest marketing site (homepage + About).
   Warm cinematic ivory / plum / lavender art direction, per the approved
   2026-09-11 homepage concept. Plain CSS, no build step. */

:root {
  --ivory: #fbf6f0;
  --ivory-2: #f5eee6;
  --lavender: #ece4f8;
  --lavender-2: #e2d6f4;
  --plum: #3a1d5c;
  --plum-2: #55367a;
  --ink: #2a1a3f;
  --muted: #6b5a80;
  --purple: #7a2fd4;
  --purple-dark: #6323b3;
  --accent: #a56bff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(58, 29, 92, 0.14);
  --shadow-soft: 0 10px 30px rgba(58, 29, 92, 0.1);
  --radius: 24px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  overflow-x: clip;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--purple);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--plum);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ── Type ─────────────────────────────────────────── */
h1,
h2,
h3 {
  color: var(--plum);
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .lede {
  margin: 12px auto 0;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #8a3fe6 0%, var(--purple) 55%, var(--purple-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(122, 47, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(122, 47, 212, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--sm {
  padding: 11px 20px;
  font-size: 0.95rem;
}
.cta-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cta-note {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.text-link:hover {
  border-bottom-color: currentColor;
}
.text-link svg {
  width: 18px;
  height: 18px;
}

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 240, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(58, 29, 92, 0.06);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(58, 29, 92, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--plum);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(122, 47, 212, 0.35);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
  list-style: none;
}
.nav-links a {
  color: var(--plum-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--purple);
  border-bottom-color: var(--accent);
}
.nav-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.nav-cta .cta-note {
  font-size: 0.72rem;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(58, 29, 92, 0.12);
  background: var(--white);
  color: var(--plum);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid rgba(58, 29, 92, 0.08);
    box-shadow: 0 24px 40px rgba(58, 29, 92, 0.14);
    padding: 12px var(--gutter) 24px;
  }
  .nav-menu.is-open {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(58, 29, 92, 0.08);
  }
  .nav-cta {
    margin-top: 18px;
    align-items: stretch;
  }
  .nav-cta .btn {
    justify-content: center;
  }
  .nav-cta .cta-note {
    text-align: center;
  }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(255, 214, 190, 0.55), transparent 70%),
    radial-gradient(50% 70% at 85% 90%, rgba(199, 170, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #fdf8f2 0%, #f6ecf3 100%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px);
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-copy .lede {
  margin: 18px 0 32px;
}
.hero-art {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 479 / 450;
  background: var(--lavender);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.script-note {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  color: var(--purple);
  font-size: 1.05rem;
  opacity: 0.85;
  margin-top: 28px;
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy .lede {
    margin-inline: auto;
  }
  .hero-art {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }
}

/* ── Sections ─────────────────────────────────────── */
.section {
  padding-block: clamp(56px, 8vw, 104px);
}
.section--lavender {
  background: linear-gradient(180deg, var(--lavender) 0%, var(--lavender-2) 100%);
}

/* Dream You gallery */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  list-style: none;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card img {
  width: 100%;
  aspect-ratio: 240 / 170;
  object-fit: cover;
}
.card-body {
  padding: 22px 24px 26px;
}
.card-body h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.card-body p {
  color: var(--muted);
}
@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
  padding: 8px 12px;
}
.step-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.step p {
  color: var(--muted);
  max-width: 30ch;
  margin-inline: auto;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 52px;
  right: -8%;
  width: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
  .step:not(:last-child)::after {
    display: none;
  }
}

/* Daily habits + app preview */
.daily .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.daily-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}
.daily-art .scene {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 450 / 335;
}
.daily-art .scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.daily-copy .lede {
  margin: 16px 0 28px;
}
.chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin-bottom: 32px;
}
.chip {
  background: var(--white);
  border-radius: 18px;
  padding: 14px 8px 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--plum);
  font-size: 0.92rem;
}
.chip img {
  width: 56px;
  height: 44px;
  object-fit: contain;
  margin: 0 auto 8px;
  border-radius: 10px;
}
@media (max-width: 860px) {
  .daily .wrap {
    grid-template-columns: 1fr;
  }
  .daily-art {
    order: 2;
    margin-top: 24px;
  }
  .daily-copy {
    text-align: center;
  }
  .daily-copy .lede {
    margin-inline: auto;
  }
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 380px;
    margin-inline: auto;
  }
}

/* Vision */
.vision .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.vision-copy .lede {
  margin: 18px 0 28px;
  max-width: 52ch;
}
.vision-art {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.vision-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 860px) {
  .vision .wrap {
    grid-template-columns: 1fr;
  }
  .vision-copy {
    text-align: center;
  }
  .vision-copy .lede {
    margin-inline: auto;
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--plum);
}
.final-cta .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(58, 29, 92, 0.55) 0%, rgba(58, 29, 92, 0.7) 100%);
}
.final-cta h2 {
  color: var(--white);
  margin-bottom: 28px;
}
.final-cta .cta-note {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid rgba(58, 29, 92, 0.08);
  padding-block: 44px 36px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.footer-brand .brand {
  margin-bottom: 8px;
}
.footer-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum-2);
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--plum-2);
  text-decoration: none;
  font-weight: 600;
}
.footer-grid a:hover {
  color: var(--purple);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(58, 29, 92, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── About page ───────────────────────────────────── */
.page-hero {
  text-align: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 64px);
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(255, 214, 190, 0.5), transparent 70%),
    radial-gradient(50% 70% at 85% 90%, rgba(199, 170, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #fdf8f2 0%, #f6ecf3 100%);
}
.page-hero .lede {
  margin: 18px auto 0;
}
.worlds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  list-style: none;
}
.world {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 490 / 640;
  color: var(--white);
}
.world img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 20px 18px;
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(42, 26, 63, 0.75));
}
@media (max-width: 720px) {
  .worlds {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .world {
    aspect-ratio: 490 / 420;
  }
}
.prose {
  max-width: 68ch;
  margin-inline: auto;
}
.prose h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.prose p + p {
  margin-top: 14px;
}
.prose p {
  color: var(--ink);
  font-size: 1.08rem;
}
.prose + .prose {
  margin-top: clamp(36px, 5vw, 56px);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  list-style: none;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.pillar h3 {
  margin-bottom: 8px;
}
.pillar p {
  color: var(--muted);
}
@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}
.contact-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-soft);
  max-width: 720px;
  margin-inline: auto;
}
.contact-card p {
  color: var(--muted);
  margin: 10px 0 20px;
}
.contact-card a.email {
  font-weight: 800;
  font-size: 1.2rem;
  word-break: break-all;
}
