/* Crowns & Thrones — marketing site. Stark luxury: void black, one gold accent,
   tasteful motion (breathing aurora, a floating gold crown, a sheen across the
   wordmark, a glow on H.I.). Self-contained, reduced-motion safe. */
:root {
    --void: #08080a;
    --gold: #d9b45a;
    --gold-hi: #f4d98a;
    --cool: #2f9d8f;
    --ink: #f5f3ee;
    --muted: #9a968e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: radial-gradient(130% 100% at 50% 8%, #12110f 0%, var(--void) 55%, #050506 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center;
    overflow-x: hidden; overflow-y: auto; position: relative;
    padding-block: 2rem;
    -webkit-font-smoothing: antialiased;
}
/* short / landscape screens: tighten the stack so it fits, and always scroll */
@media (max-height: 640px) {
    .logo-container { width: 84px; height: 84px; margin-bottom: 1rem; }
    .hero .mission { margin-bottom: 1.4rem; }
    .description { margin-bottom: 1.6rem; }
    footer { margin-top: 2rem; }
}

/* ── the living background ── */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.glow-gold {
    width: 62vw; height: 62vw; top: -10vw; left: 50%; margin-left: -31vw;
    background: radial-gradient(circle, rgba(217,180,90,0.30) 0%, rgba(217,180,90,0) 68%);
    animation: drift-a 18s ease-in-out infinite;
}
.glow-cool {
    width: 48vw; height: 48vw; bottom: -14vw; left: 22%;
    background: radial-gradient(circle, rgba(47,157,143,0.16) 0%, rgba(47,157,143,0) 70%);
    animation: drift-b 22s ease-in-out infinite;
}
.grain {
    position: absolute; inset: -50%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 0.5px, transparent 0.5px);
    background-size: 4px 4px; opacity: 0.015;
}

.container {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    max-width: 820px; padding: 2rem;
}

/* ── the crown: gold, floating, breathing a glow ── */
.logo-container {
    width: 128px; height: 128px; margin-bottom: 2rem;
    filter: drop-shadow(0 0 18px rgba(217,180,90,0.45));
    animation: rise 1.4s cubic-bezier(0.2,0.8,0.2,1) both, float 6s ease-in-out 1.4s infinite, crown-glow 5s ease-in-out 1.4s infinite;
}
.crown-svg { width: 100%; height: 100%; }

/* ── the wordmark: white with a slow gold sheen sweeping across ── */
.hero .wordmark {
    font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
    font-size: min(6vw, 3.1rem); font-weight: 900; letter-spacing: 0.015em;
    text-transform: uppercase; white-space: nowrap; line-height: 1.1; margin-bottom: 1.2rem;
    background: linear-gradient(100deg, #f2ead6 18%, var(--gold-hi) 40%, #f2ead6 62%);
    background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: rise 1.4s cubic-bezier(0.2,0.8,0.2,1) 0.25s both, sheen 7s ease-in-out 1.6s infinite;
}
.hero .wordmark .amp { color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* ── tagline: H.I. is gold and softly glows ── */
.hero .tagline {
    font-size: clamp(1.3rem, 4vw, 2.2rem); font-weight: 300; letter-spacing: 0.04em;
    color: var(--muted); margin-bottom: 1rem;
    animation: rise 1.4s cubic-bezier(0.2,0.8,0.2,1) 0.5s both;
}
.hero .tagline .hi {
    color: var(--gold-hi); font-weight: 600;
    text-shadow: 0 0 18px rgba(217,180,90,0.5);
    animation: hi-pulse 3.4s ease-in-out 2s infinite;
}
.hero .mission {
    font-size: clamp(0.72rem, 2.4vw, 0.9rem); letter-spacing: 0.28em; text-transform: uppercase;
    color: #6f6b63; margin-bottom: 2.6rem;
    animation: fade 2s ease 0.9s both;
}

.description { margin-bottom: 3rem; animation: fade 2s ease 1.15s both; }
.description p { font-size: clamp(1rem, 3vw, 1.2rem); line-height: 1.6; color: #c9c5bc; }

/* ── store buttons: outlined, dimmed "soon" with a slow shimmer ── */
.download-section {
    display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center;
    animation: rise 1.4s cubic-bezier(0.2,0.8,0.2,1) 1.35s both;
}
.store-button {
    display: inline-flex; align-items: center; gap: 0.6rem;
    color: var(--ink); border: 1px solid rgba(217,180,90,0.35);
    padding: 0.95rem 1.9rem; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em;
    text-transform: uppercase; white-space: nowrap; border-radius: 0;
    position: relative; overflow: hidden;
}
.store-button em {
    font-style: normal; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.15em;
    border: 1px solid rgba(217,180,90,0.4); padding: 2px 7px;
}
.store-button.soon { opacity: 0.72; cursor: default; pointer-events: none; }
/* the shimmer sweep that says "coming" */
.store-button.soon::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(217,180,90,0.16) 50%, transparent 70%);
    transform: translateX(-100%); animation: sweep 4.5s ease-in-out 2.5s infinite;
}

footer {
    margin-top: 4.5rem; font-size: 0.72rem; color: #4a4740; letter-spacing: 0.06em;
    animation: fade 2s ease 1.6s both;
}

/* ── keyframes ── */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes crown-glow {
    0%,100% { filter: drop-shadow(0 0 14px rgba(217,180,90,0.35)); }
    50% { filter: drop-shadow(0 0 26px rgba(217,180,90,0.6)); }
}
@keyframes sheen { 0%,100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
@keyframes hi-pulse { 0%,100% { text-shadow: 0 0 14px rgba(217,180,90,0.4); } 50% { text-shadow: 0 0 26px rgba(217,180,90,0.75); } }
@keyframes drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vw,3vw) scale(1.12); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5vw,-3vw) scale(1.15); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 55%,100% { transform: translateX(100%); } }

/* ── accessibility: no ongoing motion, everything visible ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; }
    .hero .wordmark { color: var(--ink); -webkit-text-fill-color: currentColor; background: none; }
    .hero .wordmark .amp { color: var(--gold); -webkit-text-fill-color: var(--gold); }
}
