/* Chords of Awakening — site styles. The game's palette: night violet,
   warm gold, Dissonance purple, meadow green. */
:root {
  --night: #120d1f;
  --night-2: #1a1428;
  --night-3: #241b38;
  --line: #3b2d55;
  --gold: #ffd77a;
  --gold-soft: #ffe6a0;
  --violet: #9b6dff;
  --dissonance: #b04cff;
  --green: #7ed36f;
  --text: #efe8fb;
  --muted: #b3a6cc;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.4em; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.eyebrow {
  font-family: var(--body); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em;
}
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 999px; font-weight: 800; text-decoration: none;
  font-size: 1rem; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #ffe39a, #f2b84a); color: #3a2400; box-shadow: 0 8px 30px rgba(255, 196, 80, 0.35); }
.btn-gold:hover { box-shadow: 0 10px 40px rgba(255, 196, 80, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.apple { width: 1.1em; height: 1.1em; fill: currentColor; }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 14px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}
.nav.solid { background: rgba(18, 13, 31, 0.82); backdrop-filter: blur(12px); padding: 8px 0; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; }
.nav-links a:hover { opacity: 1; color: var(--gold-soft); }
.nav-links .btn { padding: 0.55em 1.1em; font-size: 0.9rem; opacity: 1; white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 0.9rem; } .brand img { width: 28px; height: 28px; } }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 120px 0 80px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(18, 13, 31, 0.15), transparent 55%),
    linear-gradient(90deg, rgba(18, 13, 31, 0.92) 0%, rgba(18, 13, 31, 0.6) 42%, rgba(18, 13, 31, 0.15) 70%),
    linear-gradient(0deg, var(--night) 0%, transparent 28%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.7rem, 6.5vw, 5.2rem); font-weight: 800;
  background: linear-gradient(180deg, #fff6d8 10%, #ffd77a 60%, #e8a33c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
}
.tagline { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; margin-bottom: 0.4em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero p.lead { color: #e2d9f2; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.phone {
  position: relative; border-radius: 34px; padding: 12px; background: linear-gradient(145deg, #2b2340, #0e0a18);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 80px rgba(155, 109, 255, 0.25);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.phone video, .phone img { border-radius: 24px; width: 100%; aspect-ratio: 2340 / 1080; object-fit: cover; background: #000; }
.phone::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 46px; transform: translate(calc(-50% - 49%), -50%); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .hero::after { background: linear-gradient(180deg, rgba(18, 13, 31, 0.55), rgba(18, 13, 31, 0.85) 60%, var(--night)); }
}

/* ── Pillars (how it plays) ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.step {
  background: linear-gradient(180deg, var(--night-3), var(--night-2)); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.step img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.step-body { padding: 22px 24px 26px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); color: #3a2400; font-weight: 800; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ── Feature rows ── */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .feature-media { order: 2; }
.feature-media img, .feature-media video { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature ul { padding: 0; list-style: none; margin: 18px 0 0; }
.feature li { padding-left: 34px; position: relative; margin-bottom: 10px; color: var(--muted); }
.feature li strong { color: var(--text); }
.feature li::before { content: "♪"; position: absolute; left: 6px; top: -1px; color: var(--gold); font-size: 1.1em; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } }

/* ── Journey (regions) ── */
.journey { background: radial-gradient(ellipse at 50% 0%, #241b3c 0%, var(--night) 70%); }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.region {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 250px;
  box-shadow: var(--shadow); border: 1px solid var(--line); isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.region img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.6s ease; }
.region:hover img { transform: scale(1.06); }
.region::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(12, 8, 22, 0.92)); }
.region .act { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.region .act, .region h3, .region p { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8); }
.region::after { background: linear-gradient(180deg, rgba(12, 8, 22, 0.1) 0%, rgba(12, 8, 22, 0.55) 45%, rgba(12, 8, 22, 0.94)); }
.region h3 { margin: 4px 0 4px; }
.region p { margin: 0; color: #d8cdee; font-size: 0.95rem; }
.skill {
  display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  background: rgba(255, 215, 122, 0.16); color: var(--gold-soft); border: 1px solid rgba(255, 215, 122, 0.35); align-self: flex-start;
}
@media (max-width: 900px) { .regions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .regions { grid-template-columns: 1fr; } }

/* ── Spells ── */
.spells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 46px; }
.spell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.spell img { width: 100%; aspect-ratio: 2340 / 1080; object-fit: cover; }
.spell figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 12px;
  background: rgba(14, 10, 24, 0.78); backdrop-filter: blur(6px); font-weight: 800;
}
.spell figcaption span { color: var(--gold); margin-right: 6px; }
.spell .tier { font-weight: 600; color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
@media (max-width: 760px) { .spells { grid-template-columns: 1fr; } }
.sprites-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 40px; }
.sprite { text-align: center; width: 120px; }
.sprite img { height: 92px; width: auto; margin: 0 auto 8px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); animation: bob 3.2s ease-in-out infinite; }
.sprite:nth-child(2n) img { animation-delay: -1.2s; }
.sprite:nth-child(3n) img { animation-delay: -2.1s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.sprite b { display: block; }
.sprite small { color: var(--muted); font-size: 0.8rem; }

/* ── Story ── */
.story { background: radial-gradient(ellipse at 70% 20%, #2a1d44 0%, var(--night) 65%); }
.cast { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 40px); margin: 40px 0 20px; }
.cast figure { margin: 0; text-align: center; }
.cast img { height: clamp(150px, 26vw, 300px); width: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.6)); }
.cast figcaption { font-family: var(--display); font-weight: 800; margin-top: 8px; }
.cast figcaption small { display: block; font-family: var(--body); font-weight: 600; color: var(--muted); font-size: 0.8rem; }
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.scenes img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 760px) { .scenes { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; color: var(--gold); font-size: 1.4rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ── Final CTA ── */
.cta { text-align: center; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(18, 13, 31, 0.55), var(--night) 75%); }
.cta .hero-ctas { justify-content: center; }

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 30px 20px 40px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.site-foot a { color: var(--muted); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .sprite img { animation: none; }
}

/* ── Floating notes (hero sparkle) ── */
.notes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.notes span { position: absolute; bottom: -40px; color: var(--gold-soft); opacity: 0; font-size: 22px; animation: float 11s linear infinite; text-shadow: 0 0 12px rgba(255, 215, 122, 0.8); }
@keyframes float { 10% { opacity: 0.8; } 80% { opacity: 0.6; } to { transform: translateY(-110vh) rotate(25deg); opacity: 0; } }

/* ── Document pages (privacy) ── */
.page-doc { background: var(--night); }
.doc-head { padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-head .brand { width: min(820px, 100% - 40px); margin: 0 auto; }
.doc { width: min(820px, 100% - 40px); margin: 0 auto; padding: 50px 0 70px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold-soft); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; color: var(--gold-soft); }
.doc-meta { color: var(--muted); }
.doc p, .doc li { color: #ddd3ee; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.5em; }

/* Full-page screenshots (?preview): a screen-height hero, nothing hidden. */
.preview .hero { min-height: 900px; height: 900px; }
.preview .reveal { opacity: 1; transform: none; }
