:root {
    --copper: #f7931a;
    --copper-soft: rgba(247, 147, 26, 0.18);
    --copper-glow: rgba(247, 147, 26, 0.28);
    --ink: #f4eee4;
    --muted: rgba(244, 238, 228, 0.68);
    --low: rgba(244, 238, 228, 0.42);
    --panel: rgba(18, 20, 23, 0.78);
    --panel-strong: rgba(24, 27, 31, 0.9);
    --line: rgba(255, 255, 255, 0.08);
    --background: #090b0f;
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(247, 147, 26, 0.18), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(91, 128, 255, 0.14), transparent 24%),
        linear-gradient(180deg, #0b0f15 0%, #090b0f 48%, #07080b 100%);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
}

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 40px 20px 56px;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    opacity: 0.55;
}

.orb-one {
    width: 240px;
    height: 240px;
    background: rgba(247, 147, 26, 0.16);
    top: 10%;
    left: -40px;
    animation: drift 16s ease-in-out infinite;
}

.orb-two {
    width: 320px;
    height: 320px;
    background: rgba(63, 102, 216, 0.12);
    right: -80px;
    bottom: 12%;
    animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.06);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.hero-panel,
.countdown-panel,
.controls-row,
.progress-section,
footer {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    padding: 32px;
}

.eyebrow,
.section-label,
.model-label,
.label {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow,
.section-label,
.model-label {
    color: var(--muted);
    font-size: 0.78rem;
}

.logo {
    margin: 14px 0 18px;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.2), rgba(247, 147, 26, 0.06));
    border: 1px solid rgba(247, 147, 26, 0.34);
    color: var(--copper);
    font-size: 2.6rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 36px rgba(247, 147, 26, 0.12);
}

h1,
h2 {
    font-weight: 700;
    line-height: 0.95;
    text-wrap: balance;
}

h1 {
    max-width: 9ch;
    font-size: clamp(3.1rem, 8vw, 5.8rem);
    letter-spacing: -0.06em;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin-bottom: 10px;
}

.hero-text,
.section-text,
.countdown-note,
.progress-text,
.progress-footnote,
footer,
.stat-label {
    color: var(--muted);
}

.hero-text,
.section-text {
    max-width: 58ch;
    margin-top: 18px;
    font-size: 1.02rem;
    line-height: 1.65;
}

.hero-metrics {
    display: grid;
    gap: 14px;
    align-content: end;
}

.hero-chip,
.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(16, 18, 21, 0.9), rgba(10, 11, 14, 0.88));
}

.hero-chip {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.hero-chip::after,
.stat-card::after {
    content: '';
    position: absolute;
    inset: auto -10% 0 auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.12), transparent 65%);
    pointer-events: none;
}

.hero-chip-label {
    display: block;
    color: var(--low);
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-chip-value,
.stat-value,
.flip-card-inner span,
.progress-header strong {
    font-family: 'IBM Plex Mono', monospace;
}

.hero-chip-value {
    color: var(--ink);
    font-size: clamp(1.15rem, 2.8vw, 1.7rem);
    line-height: 1.2;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-chip-centered .hero-chip-value {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.hero-chip-supply .hero-chip-value {
    white-space: nowrap;
    font-size: clamp(0.88rem, 1.8vw, 1.08rem);
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.countdown-panel {
    padding: 28px 32px 32px;
}

.section-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.flip-card {
    min-height: 154px;
    perspective: 1200px;
}

.flip-card-inner {
    width: 100%;
    height: 100%;
    min-height: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(247, 147, 26, 0.2);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(25, 28, 33, 0.96), rgba(10, 11, 14, 0.95));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.32),
        0 0 40px rgba(247, 147, 26, 0.08);
}

.flip-card-inner::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.flip-card-inner span {
    font-size: clamp(2.3rem, 4vw, 3.3rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    color: #fffaf2;
}

.flip-card-inner.flip {
    animation: flip 0.6s ease-in-out;
}

@keyframes flip {
    0% {
        transform: rotateX(0);
    }
    50% {
        transform: rotateX(-90deg);
    }
    100% {
        transform: rotateX(0);
    }
}

.label {
    color: var(--low);
    font-size: 0.74rem;
}

.countdown-note {
    margin-top: 18px;
    font-size: 0.94rem;
}

.countdown-note span,
.progress-text span,
.progress-footnote span,
footer a,
.stat-card-accent .stat-value {
    color: var(--copper);
}

.controls-row {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.model-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 9, 12, 0.58);
    color: var(--muted);
}

.model-pill strong {
    color: var(--copper);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.92rem;
}

.model-pill span {
    color: var(--low);
    font-size: 0.84rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-accent {
    background:
        linear-gradient(180deg, rgba(247, 147, 26, 0.14), rgba(11, 12, 15, 0.92)),
        linear-gradient(180deg, rgba(16, 18, 21, 0.9), rgba(10, 11, 14, 0.88));
}

.stat-label {
    font-size: 0.86rem;
    line-height: 1.5;
}

.stat-value {
    font-size: clamp(1.18rem, 2.3vw, 1.7rem);
    line-height: 1.3;
    color: var(--ink);
}

.progress-section {
    padding: 24px 28px 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 16px;
}

.progress-header strong {
    font-size: 1.1rem;
    color: var(--copper);
}

.progress-bar {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c7781a 0%, #f7931a 45%, #ffd38a 100%);
    box-shadow: 0 0 30px var(--copper-glow);
    transition: width 1s ease-out;
}

.progress-text,
.progress-footnote,
footer p {
    font-size: 0.92rem;
}

.progress-text {
    margin-top: 14px;
}

.progress-footnote {
    margin-top: 8px;
}

footer {
    padding: 18px 22px;
    font-size: 0.86rem;
}

footer p + p {
    margin-top: 8px;
}

footer a {
    text-decoration: none;
}

.update-info {
    color: var(--low);
}

.error {
    color: #ff7a70;
}

@media (max-width: 980px) {
    .hero-panel {
        grid-template-columns: 1fr;
    }

    .countdown-container,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 18px 14px 36px;
    }

    .hero-panel,
    .countdown-panel,
    .progress-section {
        padding: 22px;
    }

    .controls-row,
    footer {
        padding: 18px;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .hero-chip {
        min-height: 112px;
        padding: 14px 12px;
        border-radius: 18px;
    }

    .hero-chip-label {
        margin-bottom: 6px;
        font-size: 0.66rem;
        line-height: 1.4;
    }

    .hero-chip-value {
        font-size: 0.98rem;
        line-height: 1.3;
    }

    .hero-chip-supply .hero-chip-value {
        font-size: 0.84rem;
    }

    .countdown-container {
        display: flex;
        gap: 8px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 22px;
        background: rgba(10, 11, 14, 0.44);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .countdown-container::-webkit-scrollbar {
        display: none;
    }

    .countdown-item {
        flex: 1 0 60px;
        gap: 6px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .stat-card:last-child {
        grid-column: 1 / -1;
    }

    .flip-card,
    .flip-card-inner {
        min-height: 88px;
        border-radius: 18px;
    }

    .flip-card-inner {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 10px 24px rgba(0, 0, 0, 0.26),
            0 0 26px rgba(247, 147, 26, 0.06);
    }

    .flip-card-inner span {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .label {
        font-size: 0.62rem;
        letter-spacing: 0.14em;
        white-space: nowrap;
        text-align: center;
    }

    .section-copy {
        margin-bottom: 22px;
    }

    .controls-row {
        justify-content: flex-start;
    }

    .model-pill {
        width: 100%;
        justify-content: space-between;
    }

    .stat-card {
        min-height: 118px;
        padding: 18px;
        border-radius: 18px;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    .stat-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 12px 10px 28px;
    }

    .container {
        gap: 14px;
    }

    .hero-panel,
    .countdown-panel,
    .controls-row,
    .progress-section,
    footer {
        border-radius: 22px;
    }

    .hero-panel,
    .countdown-panel,
    .progress-section {
        padding: 18px;
    }

    .controls-row,
    footer {
        padding: 16px 18px;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.34rem;
        max-width: 11ch;
        line-height: 0.98;
    }

    .hero-text,
    .section-text,
    .countdown-note,
    .progress-text,
    .progress-footnote,
    footer p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .hero-metrics {
        gap: 10px;
    }

    .hero-chip {
        min-height: auto;
        padding: 14px 10px;
    }

    .hero-chip-label {
        font-size: 0.56rem;
        letter-spacing: 0.11em;
    }

    .hero-chip-value,
    .stat-value {
        font-size: 0.94rem;
    }

    .hero-chip-supply .hero-chip-value {
        font-size: 0.72rem;
    }

    .hero-chip,
    .stat-card {
        border-radius: 20px;
    }

    .hero-chip {
        padding: 16px;
    }

    .countdown-container {
        gap: 6px;
        padding: 8px;
    }

    .flip-card-inner span {
        font-size: 1.42rem;
    }

    .flip-card,
    .flip-card-inner {
        min-height: 78px;
    }

    .countdown-item {
        flex-basis: 58px;
        gap: 5px;
    }

    .label {
        font-size: 0.52rem;
        letter-spacing: 0.1em;
    }

    .model-pill {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        border-radius: 18px;
        padding: 10px 12px;
    }

    .model-pill strong {
        font-size: 0.76rem;
    }

    .model-pill span {
        font-size: 0.68rem;
    }

    .stat-card {
        min-height: 110px;
        padding: 16px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
