@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap');

:root {
    --ink: #f7f5ef;
    --muted: #abaec1;
    --night: #0b0b13;
    --panel: rgba(23, 23, 35, .76);
    --line: rgba(255, 255, 255, .11);
    --violet: #9d7cff;
    --violet-bright: #bc9dff;
    --peach: #ff9978;
    --mint: #7cf4cf;
    --shadow: 0 32px 90px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% -20%, rgba(119, 77, 202, .18), transparent 42%),
        var(--night);
    font: 500 16px/1.6 'Manrope', sans-serif;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: '';
    opacity: .23;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    pointer-events: none;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .13;
    pointer-events: none;
}

.ambient-one { top: 20%; left: -15rem; background: var(--violet); }
.ambient-two { right: -17rem; bottom: 8%; background: var(--peach); }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--ink);
    font: 700 14px/1 'Unbounded', sans-serif;
    letter-spacing: .08em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(157, 124, 255, .3), rgba(255, 153, 120, .12));
    box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.brand-mark svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.live-pill {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
    font-size: 12px;
}

.live-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 13px var(--mint);
}

main { width: min(1060px, calc(100% - 48px)); margin: 0 auto; }

.hero {
    display: grid;
    justify-items: center;
    padding: 92px 0 130px;
    text-align: center;
}

.eyebrow {
    margin-bottom: 17px;
    color: var(--violet-bright);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
    max-width: 900px;
    margin-bottom: 24px;
    font: 700 clamp(38px, 7vw, 74px)/1.08 'Unbounded', sans-serif;
    letter-spacing: -.055em;
    text-wrap: balance;
    background: linear-gradient(120deg, #fff 20%, #c7b6ff 57%, #ffd0bf 93%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow-wrap: anywhere;
}

.hero-copy {
    max-width: 670px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    text-wrap: balance;
}

.hero-visual {
    width: min(100%, 900px);
    aspect-ratio: 16 / 8;
    margin: -17px 0 32px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .03);
    box-shadow: var(--shadow);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apology-card {
    position: relative;
    width: min(100%, 640px);
    padding: 10px 34px 34px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--panel);
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .08);
    text-align: left;
    backdrop-filter: blur(24px);
}

.apology-card::before {
    position: absolute;
    top: -130px;
    right: -100px;
    width: 280px;
    height: 240px;
    border-radius: 50%;
    background: rgba(157, 124, 255, .17);
    filter: blur(60px);
    content: '';
}

.card-topline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 -34px 29px;
    padding: 16px 34px;
    border-bottom: 1px solid var(--line);
    color: #d7d7e3;
    font-size: 12px;
}

.secure-label { color: #85889a; }

.field { position: relative; display: grid; gap: 9px; margin-bottom: 19px; }
.field > span:first-child { color: #c8c8d4; font-size: 12px; font-weight: 700; }

input, select {
    width: 100%;
    height: 55px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    outline: none;
    color: var(--ink);
    background: rgba(4, 4, 10, .45);
    font: 600 15px 'Manrope', sans-serif;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

input::placeholder { color: #6e7080; }
input:focus, select:focus {
    border-color: rgba(157, 124, 255, .72);
    background: rgba(4, 4, 10, .65);
    box-shadow: 0 0 0 4px rgba(157, 124, 255, .1);
}

.select-wrap { position: relative; }
.select-wrap::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9091a1;
    border-bottom: 2px solid #9091a1;
    content: '';
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

select { appearance: none; cursor: pointer; }
select option { color: #161620; background: #fff; }

.primary-button, .secondary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    font: 800 14px 'Manrope', sans-serif;
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

.primary-button {
    gap: 10px;
    height: 57px;
    margin-top: 26px;
    color: #111018;
    background: linear-gradient(110deg, #bda5ff, #ffae91);
    box-shadow: 0 12px 35px rgba(157, 124, 255, .2);
}

.primary-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(157, 124, 255, .25); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }

.form-error { min-height: 20px; margin: 12px 0 -10px; color: #ff9b9b; font-size: 12px; text-align: center; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.countries { padding: 95px 0 115px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; font: 700 clamp(30px, 4vw, 45px)/1.1 'Unbounded', sans-serif; letter-spacing: -.04em; }
.section-heading p { max-width: 390px; margin-bottom: 4px; color: var(--muted); font-size: 14px; }

.country-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.country-row {
    display: grid;
    grid-template-columns: 34px 42px 1fr auto;
    align-items: center;
    min-height: 70px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .025);
    transition: border-color .2s, background .2s;
}

.country-row:hover { border-color: rgba(157, 124, 255, .25); background: rgba(157, 124, 255, .045); }
.rank { color: #686a78; font-size: 12px; font-weight: 800; }
.flag { font-size: 25px; }
.country-name { color: #dddde5; font-size: 14px; font-weight: 700; }
.country-count { padding: 5px 9px; border-radius: 8px; color: var(--violet-bright); background: rgba(157, 124, 255, .09); font-size: 12px; font-weight: 800; }

.empty-state {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state span { font-size: 38px; filter: grayscale(.25); }
.empty-state p { margin: 0; }

.sponsors { padding: 0 0 115px; }
.sponsors-heading { padding-top: 95px; border-top: 1px solid var(--line); }
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 15px;
}

.sponsor-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.sponsor-card::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px rgba(255, 255, 255, .08);
    content: '';
    pointer-events: none;
}

.sponsor-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.sponsor-card:hover { border-color: rgba(157, 124, 255, .38); box-shadow: 0 20px 55px rgba(0, 0, 0, .3); transform: translateY(-3px); }
.sponsor-card:hover img { transform: scale(1.018); }

footer {
    display: flex;
    justify-content: space-between;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 27px 0 38px;
    border-top: 1px solid var(--line);
    color: #6f7180;
    font-size: 11px;
}

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.is-open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 8, .82); backdrop-filter: blur(12px); animation: fade-in .3s ease both; }
.modal-card {
    position: relative;
    width: min(100%, 540px);
    min-height: 480px;
    padding: 58px 46px 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: #13131e;
    box-shadow: 0 40px 120px #000;
    text-align: center;
    animation: modal-in .4s cubic-bezier(.2, .8, .2, 1) both;
}

.modal-card::after { position: absolute; top: -140px; left: 25%; width: 300px; height: 250px; border-radius: 50%; background: rgba(157, 124, 255, .18); filter: blur(70px); content: ''; pointer-events: none; }
.modal-open { overflow: hidden; }

.orbital { position: relative; width: 145px; height: 145px; margin: 0 auto 31px; }
.orb-core { position: absolute; inset: 39px; z-index: 2; display: grid; place-items: center; border-radius: 50%; color: #17131e; background: linear-gradient(145deg, #cfbdff, #ffbfa9); font: 700 17px 'Unbounded', sans-serif; box-shadow: 0 0 38px rgba(157, 124, 255, .32); }
.orbit { position: absolute; inset: 12px; border: 1px solid rgba(189, 165, 255, .28); border-radius: 50%; animation: spin 3.2s linear infinite; }
.orbit::after { position: absolute; top: 10px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 16px var(--violet); content: ''; }
.orbit-two { inset: 0; border-color: rgba(255, 174, 145, .22); animation-duration: 5s; animation-direction: reverse; }
.orbit-two::after { top: auto; right: 17px; bottom: 12px; left: auto; background: var(--peach); box-shadow: 0 0 16px var(--peach); }

.modal-kicker { margin-bottom: 10px; color: var(--violet-bright); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.modal-card h2 { margin-bottom: 13px; font: 700 25px/1.25 'Unbounded', sans-serif; letter-spacing: -.035em; }
.modal-card p { min-height: 52px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--peach)); transition: width .85s linear; }
.timer { display: flex; justify-content: center; gap: 6px; align-items: baseline; margin-top: 13px; color: #757786; font-size: 11px; }
.timer strong { color: #d9d9e2; font-size: 17px; }

.success-view { padding-top: 42px; }
.success-icon { display: grid; width: 108px; height: 108px; margin: 0 auto 34px; place-items: center; border: 1px solid rgba(124, 244, 207, .25); border-radius: 50%; color: var(--mint); background: rgba(124, 244, 207, .08); font-size: 42px; box-shadow: 0 0 55px rgba(124, 244, 207, .08); }
.secondary-button { height: 51px; color: #16131f; background: #e2d8ff; }
[hidden] { display: none !important; }
.noscript { position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 12px 16px; border-radius: 10px; color: #21151b; background: #ffb3b3; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }

@media (max-width: 720px) {
    .site-header, main, footer { width: min(100% - 30px, 1060px); }
    .site-header { padding-top: 19px; }
    .brand { font-size: 12px; }
    .brand-mark { width: 36px; height: 36px; }
    .live-pill { max-width: 120px; overflow: hidden; white-space: nowrap; }
    .hero { padding: 62px 0 90px; }
    h1 { font-size: clamp(31px, 9.3vw, 45px); }
    .hero-copy { margin-bottom: 35px; }
    .hero-visual { aspect-ratio: 4 / 3; margin: -8px 0 25px; border-radius: 18px; }
    .apology-card { padding: 9px 19px 24px; border-radius: 20px; }
    .card-topline { margin: 0 -19px 23px; padding: 14px 19px; }
    .secure-label { display: none; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 16px; }
    .country-list { grid-template-columns: 1fr; }
    .countries { padding: 72px 0 84px; }
    .sponsors { padding-bottom: 84px; }
    .sponsors-heading { padding-top: 72px; }
    .sponsor-grid { gap: 10px; }
    .sponsor-card { border-radius: 14px; }
    footer { display: grid; gap: 5px; }
    .modal-card { min-height: 445px; padding: 42px 24px 30px; border-radius: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
