/* Heads or Tails · marketing site
   Void black, struck gold, ice cyan. Cinzel for display, Manrope for reading. */

:root {
  --void-0: #020308;
  --void-1: #060818;
  --void-2: #0c0e20;
  --ink: #f0f0fa;
  --ink-dim: rgba(240, 240, 250, 0.72);
  --ink-faint: rgba(240, 240, 250, 0.5);
  --gold: #fac74a;
  --gold-light: #ffedae;
  --gold-deep: #a36b17;
  --cyan: #3de9ff;
  --ember: #ff6b4a;
  --bad: #ff8a7a;
  --line: rgba(250, 199, 74, 0.2);
  --panel: rgba(12, 14, 32, 0.72);
  --max: 1120px;
  --gutter: 16px;
  --radius: 18px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--void-0);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--void-0); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }

.eyebrow { font: 700 0.78rem/1.2 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.lede { font-size: 1.12rem; color: var(--ink-dim); max-width: 40ch; }
.fine { font-size: 0.86rem; color: var(--ink-faint); }

/* Background */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(61, 233, 255, 0.10), transparent 70%),
    radial-gradient(50% 40% at 10% 30%, rgba(255, 107, 74, 0.08), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(250, 199, 74, 0.08), transparent 70%),
    var(--void-0); }
.sky__mist { position: absolute; inset: -20%; background: radial-gradient(40% 30% at 60% 40%, rgba(61, 233, 255, 0.05), transparent 70%); animation: mist 24s ease-in-out infinite alternate; }
.sky__star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.2; animation: twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite; }
.sky__star--warm { background: var(--gold-light); }
@keyframes mist { to { transform: translate3d(6%, -4%, 0) scale(1.08); } }
@keyframes twinkle { 50% { opacity: 0.85; } }

/* Realms of the gods: four worlds from the app crossfade behind the page, each drifting slowly toward you.
   The first loads with the page; main.js adds .is-loaded once the page is in, and the other three load then. */
.sky__realm {
  position: absolute; inset: -4%; opacity: 0;
  background: center 30% / cover no-repeat;
  animation: realm 48s ease-in-out infinite both;
  will-change: opacity, transform;
}
.sky__realm--god { background-image: url("assets/realms/god.jpg"); animation-delay: -1s; }
.is-loaded .sky__realm--celestial { background-image: url("assets/realms/celestial.jpg"); }
.is-loaded .sky__realm--archangel { background-image: url("assets/realms/archangel.jpg"); }
.is-loaded .sky__realm--universe { background-image: url("assets/realms/universe.jpg"); }
.sky__realm--celestial { animation-delay: 11s; }
.sky__realm--archangel { animation-delay: 23s; }
.sky__realm--universe { animation-delay: 35s; }
@keyframes realm {
  0% { opacity: 0; transform: scale(1.14) translate3d(0, 2%, 0); }
  6% { opacity: 1; }
  25% { opacity: 1; }
  33% { opacity: 0; transform: scale(1.02) translate3d(0, -1.5%, 0); }
  100% { opacity: 0; transform: scale(1.02) translate3d(0, -1.5%, 0); }
}
/* Slow god rays turning above the page. */
.sky__rays {
  position: absolute; left: 50%; top: -60vmax; width: 160vmax; height: 160vmax; margin-left: -80vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 237, 174, 0.10) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 70%);
  mask: radial-gradient(closest-side, #000 15%, transparent 70%);
  mix-blend-mode: screen; opacity: 0.55;
  animation: rays 140s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
/* Darkens the realms so the words on top stay easy to read. */
.sky__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 90% at 50% 10%, transparent 30%, rgba(2, 3, 8, 0.55) 85%),
    linear-gradient(90deg, rgba(2, 3, 8, 0.55), rgba(2, 3, 8, 0.15) 55%, rgba(2, 3, 8, 0.25));
}
@media (prefers-reduced-motion: reduce) {
  .sky__realm--god { opacity: 1; transform: none; }
  .sky__rays { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 0.98rem/1 var(--font-body); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  color: #1a1002; background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 6px 24px rgba(250, 199, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: #1a1002; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(250, 199, 74, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2));
  background: rgba(2, 3, 8, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 700 1.05rem/1 var(--font-display); white-space: nowrap; }
.nav__mark img { border-radius: 8px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-dim); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav__links a:hover { color: var(--gold-light); }
.menu-toggle { display: none; }

@media (max-width: 1020px) {
  .nav { gap: 10px; }
  .nav .btn-small { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s ease, background 0.2s ease; content: "";
  }
  .menu-toggle span::before { position: absolute; top: -6px; }
  .menu-toggle span::after { position: absolute; top: 6px; }
  .nav.open .menu-toggle span { background: transparent; }
  .nav.open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--void-0); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a { min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
}
@media (max-width: 420px) {
  .nav__mark span { display: none; }
}

/* Sections */
main > section { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; }

.hero { display: grid; gap: 24px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.2rem); }
.hero h1 em { display: block; font-style: normal; color: var(--gold); text-shadow: 0 0 40px rgba(250, 199, 74, 0.25); }
.hero__stage { position: relative; display: grid; place-items: center; }
.hero__coin { width: min(78vw, 480px); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); animation: float 7s ease-in-out infinite; }
.hero__plinth { width: 60%; height: 22px; margin-top: -6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(250, 199, 74, 0.35), transparent); filter: blur(4px); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding: 72px 0 96px; min-height: calc(100svh - 66px); }
}

.signup { margin: 26px 0 8px; max-width: 520px; }
.soon { font: 700 1.05rem/1.3 var(--font-display); color: var(--gold-light); margin-bottom: 12px; }
.notify { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type="email"] {
  flex: 1 1 220px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(250, 199, 74, 0.35); background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font: 500 1rem var(--font-body);
}
.notify input[type="email"]::placeholder { color: var(--ink-faint); }
.notify input[type="email"]:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(61, 233, 255, 0.25); }
.notify .btn { flex: 0 0 auto; }
@media (max-width: 420px) { .notify .btn { flex: 1 1 100%; } }
.notify-msg { min-height: 1.5em; margin: 10px 0 2px; font-weight: 700; color: var(--cyan); }
.notify-msg.bad { color: var(--bad); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.facts li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; font-weight: 700; color: var(--ink-dim); }

.feature { display: grid; gap: 28px; align-items: center; padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.feature__text p { color: var(--ink-dim); max-width: 46ch; }
.feature__art { justify-self: center; width: 100%; max-width: 440px; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 0; }
  .feature--flip .feature__text { order: 2; }
}

.phone { margin: 0 auto; max-width: 280px; padding: 10px; border-radius: 42px; background: linear-gradient(160deg, #2a2b38, #0b0c14); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.phone img { border-radius: 32px; }

.vault { padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.vault__head { max-width: 640px; }
.vault__head p:last-child { color: var(--ink-dim); }
.vault__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
@media (min-width: 900px) { .vault__rail { grid-template-columns: repeat(8, 1fr); gap: 18px; } }
.vault__rail figure { margin: 0; text-align: center; }
.vault__rail img { width: 100%; transition: transform 0.3s ease; }
.vault__rail figure:hover img { transform: rotate(-6deg) scale(1.04); }
.vault__rail figcaption { margin-top: 6px; font: 700 clamp(0.66rem, 0.5rem + 0.6vw, 0.82rem)/1.25 var(--font-display); letter-spacing: 0.08em; color: var(--gold-light); }

.modes { padding: 64px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.modes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 28px 0 0; }
.modes__grid li { padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid rgba(255, 255, 255, 0.08); }
.modes__grid h3 { color: var(--gold); margin-bottom: 4px; }
.modes__grid p { margin: 0; color: var(--ink-dim); font-size: 0.96rem; }

.promise { padding: 80px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.promise .lede { margin: 0 auto 32px; }
.promise__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0 auto 20px; max-width: 820px; }
@media (min-width: 760px) { .promise__stats { grid-template-columns: repeat(4, 1fr); } }
.promise__stats li { padding: 22px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.promise__stats strong { display: block; font: 700 clamp(2rem, 1.4rem + 2vw, 2.8rem)/1.1 var(--font-display); color: var(--gold); }
.promise__stats span { color: var(--ink-dim); font-size: 0.92rem; }

.faq { padding: 64px 0; max-width: 780px !important; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.6rem/1 var(--font-body); color: var(--gold); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-dim); padding-bottom: 8px; }

.final { padding: 80px 0 96px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.final > img { margin: 0 auto 20px; border-radius: 28px; box-shadow: 0 20px 50px rgba(250, 199, 74, 0.2); }
.final .signup { margin: 18px auto 0; }

.footer { padding: 36px var(--gutter) 48px; text-align: center; border-top: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-dim); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--gold-light); }

/* Languages (only shown once the site has more than English) */
.lang-pick { position: relative; flex: none; }
.lang-pick summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.85rem; color: var(--ink-dim); }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; padding: 6px; border-radius: 14px; background: var(--void-2); border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.lang-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: rgba(250, 199, 74, 0.12); color: var(--gold-light); }
.menu-langs { display: none; }
@media (max-width: 1020px) {
  .lang-pick { display: none; }
  .menu-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 12px; color: var(--ink-dim); }
  .menu-langs a { border: 0 !important; min-height: 44px; }
}
.lang-switch { color: var(--ink-faint); font-size: 0.9rem; }
.lang-switch a, .menu-langs a { color: var(--ink-dim); }
.lang-switch a[aria-current], .menu-langs a[aria-current] { color: var(--gold-light); font-weight: 700; }
.lang-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding: 8px 48px 8px var(--gutter); position: relative; background: var(--void-2); border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-dim); }
.lang-banner a { font-weight: 700; }
.lang-banner button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--ink-dim); font-size: 1.4rem; cursor: pointer; }

/* Support, privacy and 404 */
.doc { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2em; color: var(--gold-light); }
.doc p, .doc li { color: var(--ink-dim); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 0.4em; }
.doc--center { text-align: center; padding-top: 12vh; }
.doc--center img { margin: 0 auto 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
