/* XRPLAYR.com - shared styles (landing + delete-account). */
/* Fonts are self-hosted (SIL OFL - licences beside the files): no third-party
   request on page load, and no visitor IPs sent to a font CDN. */
@font-face { font-family: "Russo One"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/russo-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg: #000000;
  --ink: #ffffff;
  --ink-2: #b9bcc6;
  --ink-3: #8a8e9a;
  --line: #1c2030;
  --panel: #0a0d16;
  --blue-1: #3a74ff;
  --blue-2: #0040f8;
  --blue-3: #0020a8;
  --gold-1: #f5cc55;
  --gold-2: #d8a028;
  --gold-3: #9a6200;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-1); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

/* ── Landing ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
/* the blue glow behind the diamond */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(120vw, 900px);
  aspect-ratio: 1;
  left: 50%;
  top: 6%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(0, 64, 248, .55), rgba(0, 32, 168, .18) 55%, transparent 75%);
  filter: blur(8px);
  opacity: 0;
  animation: glow 1.4s ease-out .2s forwards;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 24px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
}

.logo {
  width: min(78vw, 420px);
  opacity: 0;
  transform: scale(.9);
  animation: logo-in .7s cubic-bezier(.4, 0, .2, 1) forwards;   /* app: LOGO_MS 700, FastOutSlowIn */
  filter: drop-shadow(0 0 28px rgba(0, 64, 248, .45));
}

.lockup { display: grid; gap: 6px; }

.words {
  margin: 0;
  font-family: "Russo One", "Inter", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: .01em;
  font-size: clamp(2.6rem, 13vw, 5.6rem);
  display: grid;
}
.word {
  display: block;
  opacity: 0;
  transform: scale(.6);
  transform-origin: 50% 60%;
  /* app: 0.6 -> 1 on a spring (damping .5) - the overshoot is the pop */
  animation: stomp .62s linear forwards;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* app: logo 700 ms, then a 550 ms gap between words */
.word:nth-child(1) { animation-delay: .70s; background-image: linear-gradient(180deg, var(--blue-1), var(--blue-2) 55%, var(--blue-3)); }
.word:nth-child(2) { animation-delay: 1.25s; background-image: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); }
.word:nth-child(3) { animation-delay: 1.80s; background-image: linear-gradient(180deg, #ffffff, #e6e6e6); }

.tagline {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: clamp(1.05rem, 4.2vw, 1.6rem);
  opacity: 0;
  animation: fade-up .6s ease-out 2.4s forwards;
}

.soon {
  display: grid;
  justify-items: center;
  gap: 14px;
  opacity: 0;
  animation: fade-up .6s ease-out 2.6s forwards;
}
.stores { display: flex; gap: 22px; color: #a7aab3; }
.stores svg { width: 34px; height: 34px; }
.soon p { margin: 0; font-size: 1.05rem; }

.pill {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #111;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(216, 160, 40, .25);
}
.pill:hover { filter: brightness(1.06); }

.site-foot {
  padding: 18px var(--gutter) 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .85rem;
  text-align: center;
}
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 6px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* Desktop: logo left, lock-up right - the wide poster */
@media (min-width: 900px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "logo copy" "soon cta";
    align-items: center;
    justify-items: start;
    text-align: left;
    gap: 36px 56px;
    padding-top: 56px;
  }
  .hero::before { left: 27%; top: 50%; translate: -50% -50%; width: 760px; }
  .logo { grid-area: logo; width: min(100%, 520px); justify-self: center; }
  .lockup { grid-area: copy; }
  .words { font-size: clamp(3.4rem, 6.2vw, 5.8rem); }
  .word { transform-origin: 0 60%; }
  .soon { grid-area: soon; justify-items: start; grid-auto-flow: column; align-items: center; gap: 22px; justify-self: center; }
  .cta { grid-area: cta; justify-self: end; opacity: 0; animation: fade-up .6s ease-out 2.6s forwards; }
}
@media (max-width: 899px) {
  .cta { opacity: 0; animation: fade-up .6s ease-out 2.75s forwards; }
}

@keyframes logo-in { to { opacity: 1; transform: scale(1); } }
@keyframes glow { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* An under-damped spring sampled by hand: 0.6 -> ~1.16 -> ~0.95 -> ~1.02 -> 1 */
@keyframes stomp {
  0%   { opacity: 0; transform: scale(.6); }
  18%  { opacity: 1; }
  34%  { transform: scale(1.16); }
  58%  { transform: scale(.95); }
  80%  { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .logo, .word, .tagline, .soon, .cta { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Document pages (delete-account) ─────────────────────────────────── */
.doc-head {
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
}
.doc-head a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .08em; }
.doc-head img { width: 34px; height: auto; }

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
}
.doc h1 {
  font-family: "Russo One", "Inter", sans-serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); }
.doc .lede { font-size: 1.1rem; color: var(--ink-2); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 6px 0; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 14px 0;
}
.card h2 { margin-top: 0; }
.card.gold { border-color: rgba(216, 160, 40, .45); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #111; background: var(--gold-1); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.cols { display: grid; gap: 14px; }
@media (min-width: 720px) { .cols { grid-template-columns: 1fr 1fr; } }
.cols .card { margin: 0; }
.cols h3 { margin: 0 0 6px; font-size: 1.05rem; }
.muted { color: var(--ink-3); font-size: .9rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: #11152a; padding: 1px 6px; border-radius: 5px; }
