/* ================================================
   IMPERIUM CITY — Comicon Beta Pass Landing
   Mobile-first, cinematic red/noir
   ================================================ */

/* ==================== TOKENS ==================== */
:root {
    --black: #050507;
    --void: #0a0a0f;
    --obsidian: #111118;
    --charcoal: #1a1a22;
    --smoke: #2a2a35;

    --blood: #e11d29;
    --blood-deep: #a50d18;
    --blood-dark: #6b0710;
    --blood-light: #ff3846;
    --crimson: #c4141f;

    --gold: #f5c842;
    --gold-dark: #c49a2e;

    --ivory: #f5f3ef;
    --bone: #d4cfc4;
    --ash: #7c7a74;
    --graphite: #3a3a42;

    --ok: #22c55e;
    --warn: #f59e0b;
    --err: #ef4444;

    --grad-blood: linear-gradient(135deg, #6b0710 0%, #e11d29 50%, #ff3846 100%);
    --grad-blood-flat: linear-gradient(90deg, #a50d18, #e11d29);
    --grad-gold: linear-gradient(135deg, #c49a2e 0%, #f5c842 100%);

    --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.6);
    --shadow-med: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;

    --font-display: 'Teko', 'Impact', sans-serif;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.22, 1.3, 0.36, 1);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--black);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--ivory);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;

    /* Anti-leak: blocca selezione testo (input + .allow-select restano selezionabili) */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, select, [contenteditable="true"], .allow-select, .allow-select * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* Honeypot: campo nascosto agli umani, visibile ai bot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

img { max-width: 100%; display: block; -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.brand-logo, .footer-brand img, .hero-logo { pointer-events: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

::selection { background: var(--blood); color: var(--ivory); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--blood-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood); }

/* ==================== AMBIENT ==================== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(225, 29, 41, 0.16), transparent 60%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(165, 13, 24, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 60%, rgba(225, 29, 41, 0.06), transparent),
        var(--black);
}

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(225, 29, 41, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(225, 29, 41, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
    animation: grid-drift 40s linear infinite;
}

@keyframes grid-drift {
    to { background-position: 60px 60px; }
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.scan-lines {
    position: fixed;
    inset: 0;
    z-index: 101;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.012) 3px,
        transparent 4px
    );
    mix-blend-mode: overlay;
}

/* ==================== ORBS (drifting blobs) ==================== */
.orb {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.55;
    will-change: transform;
}

.orb-1 {
    width: 380px; height: 380px;
    top: -120px; left: -100px;
    background: radial-gradient(circle, rgba(225, 29, 41, 0.55), transparent 70%);
    animation: orb-float-1 22s ease-in-out infinite;
}

.orb-2 {
    width: 320px; height: 320px;
    bottom: -100px; right: -80px;
    background: radial-gradient(circle, rgba(165, 13, 24, 0.5), transparent 70%);
    animation: orb-float-2 28s ease-in-out infinite;
}

.orb-3 {
    width: 260px; height: 260px;
    top: 45%; left: 60%;
    background: radial-gradient(circle, rgba(245, 200, 66, 0.18), transparent 70%);
    animation: orb-float-3 34s ease-in-out infinite;
    opacity: 0.45;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(60px, 80px) scale(1.1); }
    66%      { transform: translate(-40px, 120px) scale(0.95); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-90px, -70px) scale(1.15); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50%      { transform: translate(-120px, 60px) scale(1.2); opacity: 0.55; }
}

/* ==================== EMBERS (floating sparks) ==================== */
.embers {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.embers span {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blood-light);
    box-shadow: 0 0 8px var(--blood), 0 0 16px rgba(225, 29, 41, 0.5);
    opacity: 0;
    animation: ember-rise linear infinite;
}

.embers span:nth-child(1)  { left:  6%; animation-duration: 14s; animation-delay:  0s; }
.embers span:nth-child(2)  { left: 14%; animation-duration: 18s; animation-delay:  3s; width: 3px; height: 3px; }
.embers span:nth-child(3)  { left: 22%; animation-duration: 11s; animation-delay:  6s; }
.embers span:nth-child(4)  { left: 30%; animation-duration: 16s; animation-delay:  1s; width: 5px; height: 5px; }
.embers span:nth-child(5)  { left: 38%; animation-duration: 13s; animation-delay:  8s; }
.embers span:nth-child(6)  { left: 46%; animation-duration: 19s; animation-delay:  4s; width: 3px; height: 3px; }
.embers span:nth-child(7)  { left: 54%; animation-duration: 12s; animation-delay:  2s; }
.embers span:nth-child(8)  { left: 62%; animation-duration: 17s; animation-delay:  7s; width: 4px; height: 4px; }
.embers span:nth-child(9)  { left: 70%; animation-duration: 14s; animation-delay:  5s; }
.embers span:nth-child(10) { left: 78%; animation-duration: 20s; animation-delay: 10s; width: 5px; height: 5px; }
.embers span:nth-child(11) { left: 86%; animation-duration: 15s; animation-delay:  9s; }
.embers span:nth-child(12) { left: 94%; animation-duration: 13s; animation-delay: 11s; }
.embers span:nth-child(13) { left: 18%; animation-duration: 21s; animation-delay: 13s; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.embers span:nth-child(14) { left: 74%; animation-duration: 19s; animation-delay: 15s; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

@keyframes ember-rise {
    0% {
        transform: translateY(0) translateX(0) scale(0.6);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    50% { transform: translateY(-50vh) translateX(20px) scale(1); }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-110vh) translateX(-15px) scale(0.4);
        opacity: 0;
    }
}

/* ==================== TOPBAR ==================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.7rem 0.85rem;
    padding: 0.7rem 1.1rem 0.75rem;
    background: rgba(5, 5, 7, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(225, 29, 41, 0.12);
    text-align: center;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.45s var(--ease-out),
        opacity 0.35s var(--ease-out),
        visibility 0s linear 0.45s;
    will-change: transform, opacity;
}

.topbar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition:
        transform 0.5s var(--ease-snap),
        opacity 0.4s var(--ease-out),
        visibility 0s linear 0s;
}

.topbar.is-visible .brand-logo,
.topbar.is-visible .brand-name,
.topbar.is-visible .topbar-badge {
    animation: topbar-item-in 0.55s var(--ease-out) both;
}

.topbar.is-visible .brand-logo { animation-delay: 0.05s; }
.topbar.is-visible .brand-name { animation-delay: 0.12s; }
.topbar.is-visible .topbar-badge { animation-delay: 0.2s; }

@keyframes topbar-item-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.brand-logo {
    height: 26px;
    filter: drop-shadow(0 0 8px rgba(225, 29, 41, 0.4));
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--ivory);
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    background: rgba(225, 29, 41, 0.12);
    border: 1px solid rgba(225, 29, 41, 0.3);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blood-light);
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--blood);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blood);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* ==================== PAGE ==================== */
.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.1rem;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding: 2rem 0 1rem;
}

.hero-spotlight {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 140%;
    height: 70%;
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at center, rgba(225, 29, 41, 0.22) 0%, transparent 55%);
    pointer-events: none;
    animation: spot 6s ease-in-out infinite;
    z-index: 0;
}

@keyframes spot {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.55; }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: rgba(225, 29, 41, 0.08);
    border: 1px solid rgba(225, 29, 41, 0.25);
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--blood-light);
    margin: 0 auto 1.4rem;
}

.hero-inner > .eyebrow {
    display: inline-flex;
}

.eyebrow-dot {
    width: 6px; height: 6px;
    background: var(--blood);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--blood);
    animation: pulse 1.6s ease-in-out infinite;
}

.eyebrow-gold {
    background: rgba(245, 200, 66, 0.10);
    border-color: rgba(245, 200, 66, 0.35);
    color: var(--gold);
}

.eyebrow-gold .eyebrow-dot {
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.hero-logo-wrap {
    display: block;
    width: fit-content;
    margin: 0 auto 1.2rem;
    animation: enter-logo 1.2s var(--ease-out) both;
}

.hero-logo {
    width: clamp(110px, 30vw, 160px);
    margin: 0 auto;
    filter: drop-shadow(0 0 50px rgba(225, 29, 41, 0.55));
}

@keyframes enter-logo {
    0% { opacity: 0; transform: scale(0.5) rotate(-8deg); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 12vw, 4.2rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line > * {
    display: inline-block;
    animation: rise 0.9s var(--ease-out) both;
}

.hero-title .line:nth-child(1) > * { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) > * { animation-delay: 0.35s; }

@keyframes rise {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-title .accent {
    background: var(--grad-blood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1rem;
    color: var(--bone);
    max-width: 460px;
    margin: 0 auto 1.8rem;
    font-weight: 400;
    line-height: 1.65;
    animation: fade 0.9s var(--ease-out) 0.6s both;
}

.hero-sub strong {
    color: var(--ivory);
    font-weight: 600;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== RELEASE DATE ==================== */
.release-date {
    max-width: 460px;
    margin: 0 auto 1.6rem;
    padding: 1.2rem 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.85), rgba(10, 10, 15, 0.92));
    border: 1px solid rgba(225, 29, 41, 0.22);
    border-radius: 14px;
    box-shadow:
        0 18px 50px -20px rgba(225, 29, 41, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fade 0.9s var(--ease-out) 0.85s both;
}

.release-date::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(225, 29, 41, 0.18), transparent 70%);
    pointer-events: none;
}

.release-date::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(225, 29, 41, 0.5), transparent 30%, transparent 70%, rgba(245, 200, 66, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.release-date > * { position: relative; z-index: 1; }

.release-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--blood-light);
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.release-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.release-cell {
    padding: 0.65rem 0.4rem 0.55rem;
    background: rgba(5, 5, 7, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    transition: border-color 0.3s var(--ease-out);
}

.release-cell-day {
    background: linear-gradient(180deg, rgba(225, 29, 41, 0.18), rgba(107, 7, 16, 0.25));
    border-color: rgba(225, 29, 41, 0.4);
    box-shadow: inset 0 0 30px rgba(225, 29, 41, 0.12);
}

.release-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--ivory);
    background: var(--grad-blood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.release-cell-day .release-num {
    animation: day-flicker 2.4s ease-in-out infinite;
}

@keyframes day-flicker {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(225, 29, 41, 0.5)); }
    45%      { opacity: 0.55; filter: drop-shadow(0 0 12px rgba(225, 29, 41, 0.9)); }
    47%      { opacity: 0.85; }
    50%      { opacity: 0.4; }
    52%      { opacity: 0.95; }
}

.release-num-text {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    text-transform: uppercase;
}

.release-cap {
    font-family: var(--font-ui);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ash);
}

.release-foot {
    margin-top: 0.95rem;
    font-size: 0.78rem;
    color: var(--bone);
    line-height: 1.45;
}

.release-foot strong {
    color: var(--blood-light);
    font-weight: 600;
}

/* ==================== CARD / FORM ==================== */
.card {
    background:
        linear-gradient(180deg, rgba(20, 20, 28, 0.85), rgba(10, 10, 15, 0.92));
    border: 1px solid rgba(225, 29, 41, 0.18);
    border-radius: 14px;
    padding: 1.6rem 1.3rem;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: left;
    position: relative;
    overflow: hidden;
    animation: fade 0.9s var(--ease-out) 0.7s both;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(225, 29, 41, 0.06), transparent 60%);
    pointer-events: none;
}

.form-card > * {
    position: relative;
    z-index: 1;
}

.form-head {
    margin-bottom: 1.3rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-step {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--blood-light);
    margin-bottom: 0.5rem;
}

.form-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.form-lead {
    font-size: 0.92rem;
    color: var(--ash);
    line-height: 1.5;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 0.5rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 7, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.input-wrap:focus-within {
    border-color: rgba(225, 29, 41, 0.6);
    background: rgba(20, 6, 9, 0.7);
    box-shadow: 0 0 0 3px rgba(225, 29, 41, 0.18), 0 8px 24px -10px rgba(225, 29, 41, 0.4);
}

.input-prefix {
    padding-left: 0.95rem;
    color: var(--ash);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
}

.input-icon {
    margin-left: 0.85rem;
    width: 18px;
    height: 18px;
    color: var(--ash);
    flex-shrink: 0;
}

.input-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.95rem 0.95rem 0.95rem 0.55rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ivory);
    min-width: 0;
}

.input-wrap input::placeholder {
    color: var(--graphite);
    font-weight: 400;
}

/* iOS zoom-on-focus prevention: input >= 16px */
@media (max-width: 480px) {
    .input-wrap input { font-size: 16px; }
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--ash);
    margin-top: 0.4rem;
    font-weight: 400;
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--err);
    margin-top: 0.4rem;
    font-weight: 500;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s var(--ease-out);
}

.field.has-error .field-error {
    max-height: 40px;
}

.field.has-error .input-wrap {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: shake 0.4s var(--ease-out);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ==================== CHECKBOX ==================== */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0.4rem 0 1.3rem;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(5, 5, 7, 0.6);
    position: relative;
    transition: all 0.2s var(--ease-out);
    margin-top: 1px;
}

.checkbox input:checked + .checkbox-box {
    background: var(--blood);
    border-color: var(--blood);
}

.checkbox input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox input:focus-visible + .checkbox-box {
    box-shadow: 0 0 0 3px rgba(225, 29, 41, 0.25);
}

.checkbox-text {
    font-size: 0.83rem;
    color: var(--bone);
    line-height: 1.5;
}

.checkbox-text a {
    color: var(--blood-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 1.05rem 1.4rem;
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 10px;
    transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.25s var(--ease-out);
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--grad-blood-flat);
    color: var(--ivory);
    box-shadow:
        0 12px 30px -10px rgba(225, 29, 41, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blood-light), var(--blood));
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    z-index: 0;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 40px -10px rgba(225, 29, 41, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active { transform: translateY(0); }

.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--ivory);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.is-loading .btn-label,
.btn.is-loading .btn-arrow { display: none; }
.btn.is-loading .btn-spinner { display: block; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }

.btn-ghost {
    background: transparent;
    color: var(--ivory);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
    border-color: var(--blood);
    color: var(--blood-light);
    background: rgba(225, 29, 41, 0.05);
}

.btn-discord {
    background: #5865F2;
    color: var(--ivory);
    box-shadow:
        0 12px 30px -10px rgba(88, 101, 242, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.form-foot {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: var(--ash);
    letter-spacing: 0.5px;
}

/* ==================== SOCIAL ROW ==================== */
.social-row {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
    animation: fade 0.9s var(--ease-out) 1s both;
}

.social-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ash);
}

.social-handle {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blood-light);
    letter-spacing: 1px;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(20, 20, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--bone);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background 0.3s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.social-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s var(--ease-out);
}

.social-icon:hover, .social-icon:focus-visible {
    transform: translateY(-3px) scale(1.05);
    color: var(--ivory);
    border-color: currentColor;
}

.social-icon:hover svg { transform: scale(1.1); }

.social-icon:active { transform: translateY(-1px) scale(1.02); }

.social-ig:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(220, 39, 67, 0.7);
}

.social-tt:hover {
    background: #000;
    color: #fff;
    border-color: #25f4ee;
    box-shadow:
        0 0 0 1px #25f4ee inset,
        2px 0 0 #fe2c55 inset,
        0 10px 30px -10px rgba(254, 44, 85, 0.6);
}

.social-tg:hover {
    background: #229ED9;
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(34, 158, 217, 0.7);
}

.social-dc:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(88, 101, 242, 0.7);
}

.social-row-success {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-row-success .social-icon {
    width: 52px;
    height: 52px;
}

.social-row-success .social-icon svg {
    width: 24px;
    height: 24px;
}

/* ==================== SUCCESS ==================== */
.success {
    padding: 2rem 0 1rem;
    text-align: center;
    animation: fade 0.6s var(--ease-out) both;
    position: relative;
}

.success-glow {
    position: absolute;
    top: -50px; left: 50%;
    width: 480px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, rgba(245, 200, 66, 0.08) 30%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: success-glow-pulse 3.5s ease-in-out infinite;
    max-width: 100vw;
}

@keyframes success-glow-pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.success-inner {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.success-mark {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    display: grid;
    place-items: center;
    box-shadow:
        0 0 50px rgba(34, 197, 94, 0.4),
        0 0 100px rgba(34, 197, 94, 0.15);
    animation: pop 0.6s var(--ease-snap) both;
}

.success-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.success-rings span {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 50%;
    opacity: 0;
    animation: ring-out 1.8s var(--ease-out) infinite;
}

.success-rings span:nth-child(2) { animation-delay: 0.6s; }
.success-rings span:nth-child(3) { animation-delay: 1.2s; }

@keyframes ring-out {
    0%   { transform: scale(1); opacity: 0.7; border-width: 2px; }
    100% { transform: scale(2.4); opacity: 0; border-width: 0.5px; }
}

@keyframes pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-mark svg { width: 56px; height: 56px; }

.success-circle {
    stroke: var(--ok);
    stroke-width: 3;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: draw 0.8s var(--ease-out) 0.2s forwards;
}

.success-check {
    stroke: var(--ok);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: draw 0.5s var(--ease-out) 0.7s forwards;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.success-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0.8rem 0;
}

.success-title .accent {
    background: var(--grad-blood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-sub {
    color: var(--bone);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.success-sub strong {
    color: var(--blood-light);
    font-weight: 600;
}

.server-ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(20, 20, 28, 0.8);
    border: 1px solid rgba(225, 29, 41, 0.25);
    border-radius: 10px;
    margin-bottom: 1.4rem;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-align: left;
}

.server-ip:hover {
    border-color: rgba(225, 29, 41, 0.55);
    box-shadow: 0 0 30px rgba(225, 29, 41, 0.2);
}

.server-ip-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--ash);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.server-ip-addr {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--ivory);
}

.server-ip-copy {
    padding: 0.5rem 0.95rem;
    background: var(--blood);
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ivory);
    transition: background 0.2s;
    flex-shrink: 0;
}

.server-ip-copy:hover { background: var(--blood-light); }
.server-ip-copy.copied { background: var(--ok); }

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Release date variant inside success */
.release-date-success {
    margin: 0.4rem auto 1.2rem;
    animation: fade 0.6s var(--ease-out) 0.4s both;
}

/* ==================== CONFETTI ==================== */
.confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.confetti span {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 8px;
    height: 14px;
    border-radius: 2px;
    opacity: 0;
    will-change: transform, opacity;
}

.confetti span.go {
    animation: confetti-fall 1800ms var(--ease-out) forwards;
}

@keyframes confetti-fall {
    0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
    100% { transform: translate(var(--cx, 0), var(--cy, 200px)) rotate(var(--cr, 540deg)); opacity: 0; }
}

/* ==================== PERKS ==================== */
.perks {
    padding: 3rem 0 2rem;
}

.perks-head, .steps-head {
    text-align: center;
    margin-bottom: 1.8rem;
}

.perks-title, .steps-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.6rem;
}

.perks-title .accent, .steps-title .accent {
    background: var(--grad-blood);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.perks-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.perk {
    position: relative;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.7), rgba(10, 10, 15, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    overflow: hidden;
}

.perk::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--grad-blood-flat);
    opacity: 0.7;
}

.perk:hover {
    transform: translateY(-3px);
    border-color: rgba(225, 29, 41, 0.3);
    box-shadow: 0 15px 40px -15px rgba(225, 29, 41, 0.4);
}

.perk-num {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--blood-light);
    margin-bottom: 0.4rem;
}

.perk h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 0.45rem;
    color: var(--ivory);
}

.perk p {
    font-size: 0.9rem;
    color: var(--bone);
    line-height: 1.5;
}

.perk-gold::before { background: var(--grad-gold); }
.perk-gold .perk-num { color: var(--gold); }
.perk-gold:hover {
    border-color: rgba(245, 200, 66, 0.35);
    box-shadow: 0 15px 40px -15px rgba(245, 200, 66, 0.35);
}

/* ==================== STEPS ==================== */
.steps {
    padding: 1rem 0 3rem;
}

.steps-list {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.steps-list::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background: linear-gradient(180deg, var(--blood-dark), transparent);
    opacity: 0.5;
}

.steps-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.step-bullet {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--grad-blood-flat);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ivory);
    box-shadow: 0 0 20px rgba(225, 29, 41, 0.4);
}

.steps-list h4 {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 0.25rem;
    margin-top: 0.4rem;
}

.steps-list p {
    font-size: 0.9rem;
    color: var(--bone);
    line-height: 1.55;
}

.steps-list code {
    background: rgba(225, 29, 41, 0.12);
    color: var(--blood-light);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 2rem 0 calc(2rem + var(--safe-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--ivory);
}

.footer-brand img {
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(225, 29, 41, 0.4));
}

.footer-links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bone);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--blood-light); }

.footer-legal {
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: var(--ash);
    text-align: center;
    line-height: 1.5;
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.4rem + var(--safe-bottom));
    transform: translateX(-50%) translateY(120%);
    z-index: 200;
    padding: 0.85rem 1.2rem;
    background: var(--obsidian);
    border: 1px solid rgba(225, 29, 41, 0.35);
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ivory);
    box-shadow: var(--shadow-deep);
    transition: transform 0.45s var(--ease-snap), opacity 0.3s var(--ease-out);
    opacity: 0;
    pointer-events: none;
    max-width: calc(100vw - 2rem);
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(180deg, var(--obsidian), #2a0a0e);
}

.toast.toast-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(180deg, var(--obsidian), #0a2a14);
}

/* ==================== RESPONSIVE — TABLET / DESKTOP ==================== */
@media (min-width: 640px) {
    .page { max-width: 640px; padding: 0 1.5rem; }
    .topbar { padding: 0.85rem 1.5rem 0.9rem; }
    .brand-logo { height: 30px; }
    .brand-name { font-size: 1.25rem; }
    .hero { padding: 3rem 0 1.5rem; }
    .form-card { padding: 2rem 1.8rem; }
    .form-title { font-size: 2.4rem; }
    .release-date { padding: 1.4rem 1.4rem 1.2rem; }
    .release-grid { gap: 0.7rem; }
    .perks { padding: 4rem 0 3rem; }
    .perks-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .success-actions { flex-direction: row; }
    .success-actions .btn { flex: 1; }
    .social-icons { gap: 0.8rem; }
    .footer-row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 900px) {
    .page { max-width: 920px; }
    .hero { padding: 4rem 0 2rem; }
    .hero-logo { width: 180px; }
    .form-card {
        max-width: 540px;
        margin: 0 auto;
    }
    .perks-grid { grid-template-columns: repeat(4, 1fr); }
    .perk h3 { font-size: 1.4rem; }
    .steps-list {
        flex-direction: row;
        gap: 1.5rem;
    }
    .steps-list::before { display: none; }
    .steps-list li {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 0.7rem;
    }
    .step-bullet { margin: 0 auto; }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--blood-light);
    outline-offset: 3px;
    border-radius: 4px;
}

input:focus-visible {
    outline: none;
}
