:root {
  --crimson: #a5142a;
  --crimson-bright: #c71f35;
  --murex: #7e0e1f;
  --ink: #14100f;
  --gold: #e8c15c;
  --gold-deep: #c9a227;
  --gold-lt: #f4da84;
  --papyrus: #faf3e6;
  --muted: #bcada4;
  --faint: #8b7a70;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(232, 193, 92, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(175deg, #8f1024 0%, var(--murex) 30%, #3b0a12 65%, var(--ink) 100%);
  background-attachment: fixed;
  color: var(--papyrus);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 22px; }

a { color: var(--gold); }

/* ── Nav ── */
nav {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 0;
}
nav img { width: 40px; height: 40px; }
nav .name { font-weight: 800; letter-spacing: 1px; font-size: 17px; }
nav .links { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--gold); }

/* ── Hero ── */
.hero { text-align: center; padding: 52px 0 60px; }

.bird-stage { position: relative; width: 200px; height: 200px; margin: 0 auto 8px; }
.bird-stage .halo {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 193, 92, 0.28), transparent 70%);
  animation: breathe 5.2s ease-in-out infinite;
}
.bird-stage img {
  position: relative; width: 100%; height: 100%;
  animation: floaty 5.2s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.06); } }

.hero h1 { font-size: clamp(38px, 7vw, 58px); letter-spacing: 4px; font-weight: 800; }
.hero .tag { color: var(--gold); letter-spacing: 4px; font-size: 13px; font-weight: 700; margin-top: 8px; }
.hero p.lead { color: var(--muted); max-width: 560px; margin: 22px auto 0; font-size: 17px; }

.stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; min-height: 38px; }
.stat-chip {
  display: flex; gap: 7px; align-items: baseline;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
}
.stat-chip b { color: var(--gold); font-size: 17px; }
.stat-chip span { color: var(--muted); font-size: 13px; }

.badges { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.badge-link { display: inline-flex; transition: transform 0.15s ease, opacity 0.15s ease; }
.badge-link:hover { transform: translateY(-2px); }
/* Official badge artwork. The Play PNG ships with built-in padding, so it is
   rendered taller for the two black boxes to match visually. */
.badge-ios { height: 54px; display: block; }
.badge-android { height: 80px; display: block; margin: -13px; }
.badge-link.pending { opacity: 0.45; filter: saturate(0.6); cursor: default; pointer-events: auto; }
.badges .soon { text-align: center; width: 100%; color: var(--faint); font-size: 12.5px; letter-spacing: 1px; }

/* ── Marquee ── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 12px 0; white-space: nowrap; }
.marquee span {
  display: inline-block; color: var(--muted); font-size: 15px; padding-right: 40px;
  animation: drift 42s linear infinite;
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Features ── */
section { padding: 64px 0 8px; }
section > .wrap > h2 { font-size: 27px; letter-spacing: -0.3px; margin-bottom: 8px; }
section > .wrap > p.sub { color: var(--muted); margin-bottom: 34px; max-width: 620px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; transition: transform 0.15s ease, background 0.15s ease;
}
.card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.06); }
.card .emoji { font-size: 34px; }
.card h3 { margin: 12px 0 6px; font-size: 17.5px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ── Story ── */
.story {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 36px; margin-top: 56px;
}
.story h2 { font-size: 24px; margin-bottom: 12px; }
.story p { color: var(--muted); max-width: 760px; }
.story b { color: var(--gold-lt); }

/* ── Legal pages ── */
.legal { max-width: 720px; margin: 0 auto; padding: 30px 22px 90px; }
.legal h1 { font-size: 34px; margin: 26px 0 4px; }
.legal .meta { color: var(--faint); font-size: 13.5px; margin-bottom: 34px; }
.legal h2 { color: var(--gold); font-size: 19px; margin: 30px 0 8px; }
.legal p { color: var(--muted); white-space: pre-line; }

/* ── Footer ── */
footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 34px 0 46px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .links { display: flex; gap: 20px; font-size: 14px; }
footer .links a { color: var(--muted); text-decoration: none; }
footer .links a:hover { color: var(--gold); }
footer .copy { margin-left: auto; color: var(--faint); font-size: 13px; }

@media (max-width: 640px) {
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer .copy { margin-left: 0; }
}
