:root{
    --bg: #090810;
    --surface: #131219;
    --surface-2: #1A191F;
    --surface-3: #24232B;
    --border: rgba(240, 238, 233, 0.07);
    --border-strong: rgba(240, 238, 233, 0.14);
    --text: #F0EEE9;
    --muted: #7E7E8C;
    --muted-2: #ABABB2;
    --gold: #E8B04B;
    --gold-light: #FAD991;
    --gold-dark: #C58A2C;
    --red: #FF5A6A;
    --green: #3DDC97;
    --font: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-wide: "Unbounded", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --gutter: clamp(16px, 5vw, 56px);
}

*, *::before, *::after{
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, ol, ul{
    margin: 0;
    padding: 0;
}

ol, ul{
    list-style: none;
}

a{
    color: inherit;
}

:focus-visible{
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.wrap{
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Top bar ---------- */

.top{
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(9, 8, 16, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.top .wrap{
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
}

.brand{
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-wide);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.brand svg{
    width: 24px;
    height: 24px;
}

.top nav{
    display: flex;
    gap: 24px;
    margin-left: auto;
}

.top nav a{
    color: var(--muted-2);
    font-size: 15px;
    text-decoration: none;
}

.top nav a:hover{
    color: var(--text);
}

/* ---------- Buttons ---------- */

.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover{
    transform: translateY(-2px);
}

.btn-gold{
    background: var(--gold);
    color: #1B1305;
}

.btn-gold:hover{
    background: var(--gold-light);
}

.btn-line{
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.btn-line:hover{
    border-color: var(--gold);
}

.btn-small{
    min-height: 40px;
    padding: 0 18px;
    font-size: 15px;
}

/* ---------- Hero ---------- */

.hero{
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 74% 50%, rgba(232, 176, 75, 0.14), rgba(232, 176, 75, 0) 42%);
}

.hero .wrap{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: min(760px, calc(100vh - 68px));
    padding-top: 64px;
    padding-bottom: 64px;
}

.eyebrow{
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1{
    margin-top: 18px;
    font-family: var(--font-wide);
    font-size: clamp(36px, 4.3vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h1 em{
    color: var(--gold);
    font-style: normal;
}

.lead{
    max-width: 34em;
    margin-top: 24px;
    color: var(--muted-2);
    font-size: clamp(18px, 2vw, 20px);
}

.actions{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* ---------- Contract address: one tap selects all of it, ready to copy ---------- */

.ca{
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    max-width: 100%;
    margin-top: 22px;
    padding: 8px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--surface);
    font-size: 14px;
}

.ca-label{
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ca code{
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13.5px;
    overflow-wrap: anywhere;
    -webkit-user-select: all;
    user-select: all;
}

.ca a{
    color: var(--gold);
    font-weight: 600;
}

.ca a[hidden]{
    display: none;
}

.ca-top{
    margin: 0 0 0 4px;
    padding: 6px 12px;
    white-space: nowrap;
}

.ca-wide{
    display: flex;
    justify-content: center;
    margin-top: 28px;
    background: var(--surface-2);
}

.ca-center{
    margin-top: 24px;
}

.ca-foot{
    margin: 0 0 18px;
}

/* ---------- The cube: filmed from the game itself ---------- */

.stage{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.stage video, .stage img{
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    aspect-ratio: 1;
    /* The film's background melts into the page */
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent);
    mask-image: radial-gradient(closest-side, #000 86%, transparent);
}

.stage img{
    display: none;
}

/* ---------- Numbers under the hero ---------- */

.numbers{
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.numbers ul{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.numbers li{
    padding: 28px 0 28px 32px;
    border-left: 1px solid var(--border);
}

.numbers li:first-child{
    padding-left: 0;
    border-left: none;
}

.numbers b{
    display: block;
    color: var(--gold);
    font-family: var(--font-wide);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.15;
}

.numbers span{
    display: block;
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 15px;
}

/* ---------- Sections ---------- */

section{
    padding: clamp(64px, 9vw, 112px) 0;
}

.band{
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

h2{
    max-width: 18em;
    font-family: var(--font-wide);
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.intro{
    max-width: 38em;
    margin-top: 16px;
    color: var(--muted-2);
}

/* Steps */

.steps{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.steps li{
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.steps li:hover{
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.steps img, .steps svg{
    display: block;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 6px;
}

h3{
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.steps p, .facts p{
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 16px;
}

/* Rewards flow */

.flow{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 48px;
}

.flow li{
    position: relative;
    padding: 24px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--surface-2);
}

.flow li + li::before{
    content: "";
    position: absolute;
    left: -24px;
    top: 50%;
    width: 13px;
    height: 13px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: translateY(-50%) rotate(45deg);
}

.flow b{
    display: block;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flow p{
    margin-top: 8px;
    color: var(--text);
}

/* Facts */

.facts{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 48px;
    margin-top: 48px;
}

.facts li{
    padding-top: 18px;
    border-top: 2px solid var(--gold);
}

.facts a{
    color: var(--gold);
}

/* Closing call */

.closing{
    text-align: center;
    background: radial-gradient(circle at 50% 110%, rgba(232, 176, 75, 0.2), rgba(232, 176, 75, 0) 58%), var(--surface);
}

.closing h2{
    margin: 0 auto;
}

.closing .actions{
    justify-content: center;
}

/* ---------- Footer ---------- */

footer{
    padding: 32px 0 40px;
    color: var(--muted);
    font-size: 14px;
}

footer p + p{
    margin-top: 8px;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 980px){
    .steps{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .facts{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px){
    .hero .wrap{
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        min-height: 0;
        padding-top: 44px;
        padding-bottom: 36px;
    }
    .stage{
        order: -1;
    }
    .stage video, .stage img{
        max-width: min(420px, 88vw);
    }
    .top nav, .ca-top{
        display: none;
    }
    .top .btn{
        margin-left: auto;
    }
    .flow{
        grid-template-columns: minmax(0, 1fr);
    }
    .flow li + li::before{
        left: 50%;
        top: -24px;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 560px){
    .ca code{
        font-size: 11.5px;
    }
    .numbers ul{
        grid-template-columns: minmax(0, 1fr);
    }
    .numbers li, .numbers li:first-child{
        padding: 18px 0;
        border-left: none;
        border-top: 1px solid var(--border);
    }
    .numbers li:first-child{
        border-top: none;
    }
    .steps, .facts{
        grid-template-columns: minmax(0, 1fr);
    }
    .actions .btn{
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce){
    html{
        scroll-behavior: auto;
    }
    .stage video{
        display: none;
    }
    .stage img{
        display: block;
    }
    .btn, .steps li{
        transition: none;
    }
}
