/* =====================================================================
   CRICKET AUCTION — LANDING
   Dystopian Cyberpunk × Neo-Brutalist Swiss Editorial
   Palette matches the game app (apps/web/src/index.css):
     RED + BLACK + OFF-WHITE ("bone"), cyan/amber only as tiny accents.
   Layout (widths, flex/grid, breakpoints) is unchanged from the
   original — only color, type, borders and decoration are restyled.
   Decorative labels live in CSS pseudo-elements on purpose: they're
   visual only and never pollute the indexed page text (SEO).
   ===================================================================== */

/* ================= RESET ================= */

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

/* ================= VARIABLES ================= */

:root {
    --void: #060607;
    --panel: #0d0d0f;
    --raised: #151518;
    --bone: #efe9dd;
    --line: #232327;
    --line-strong: #3a3a41;
    --red: #ff1f3d;
    --red-deep: #b3001e;
    --red-glow: #ff4d63;
    --cyan: #2ff3e0;
    --amber: #ffb020;

    --font-display: "Anton", Impact, sans-serif;
    --font-body: "Archivo", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --container-width: 1200px;
    --transition: 0.25s ease;

    /* legacy names kept so nothing else breaks */
    --primary-color: var(--red);
    --light-color: var(--bone);
    --text-color: rgba(239, 233, 221, 0.6);
    --border-color: var(--line);
}

/* ================= GLOBAL ================= */

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    color: var(--bone);
    background-color: var(--void);
    position: relative;

    background-image:
        linear-gradient(rgba(239, 233, 221, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 233, 221, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: moveGrid 12s linear infinite;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CRT scanline veil over everything — decorative, never blocks clicks */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.18) 3px
    );
}

::selection {
    background: var(--red);
    color: var(--bone);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* Thin, sharp scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) var(--void);
}
*::-webkit-scrollbar { width: 8px; }
*::-webkit-scrollbar-track { background: var(--void); }
*::-webkit-scrollbar-thumb { background: var(--line-strong); }
*::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Page transition — black curtain with a red scan bar */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--void);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.page-transition::after {
    content: "LOADING";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--red);
}

.page-transition.active {
    opacity: 1;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

@keyframes blink {
    to { visibility: hidden; }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

img {
    width: 100%;
    display: block;
}

/* ================= WRAPPER ================= */

.wrapper {
    min-height: 100vh;
}

/* ================= CONTAINER ================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ================= NAVBAR ================= */

.navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(6, 6, 7, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--bone);
}

/* Thin red hairline under the bone rule */
.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 1px;
    background: var(--red);
    opacity: 0.6;
}

.navbar-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= LOGO ================= */

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--red);
    margin-right: 0.4rem;
    animation: blink 1.2s steps(2, start) infinite;
}

.logo span:first-child {
    color: var(--bone);
}

.logo span:last-child {
    color: var(--red);
}


/* ================= NAV LINKS ================= */

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    counter-reset: nav;
}

.nav-link {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-color);
    transition: var(--transition);
    counter-increment: nav;
}

/* Swiss index numbers: 01 HOME, 02 PLAYER LIST … */
.nav-link::before {
    content: counter(nav, decimal-leading-zero) " ";
    color: var(--red);
    margin-right: 0.3rem;
}

.nav-link:hover {
    color: var(--bone);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 2px;
    background: var(--red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

/* ================= MOBILE MENU ================= */

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--bone);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background var(--transition), border-color var(--transition);
}

.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--bone);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar.open .menu-btn {
    background: var(--red);
    border-color: var(--red);
}

.navbar.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.open .menu-btn span:nth-child(2) { opacity: 0; }
.navbar.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    /* Dropdown panel under the navbar */
    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 2px;
        background: var(--void);
        border-bottom: 2px solid var(--red);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    }

    .navbar.open .nav-links li {
        border-top: 1px solid var(--line);
    }

    .navbar.open .nav-link {
        display: block;
        padding: 1.1rem 1.5rem;
        font-size: 0.85rem;
    }

    .navbar.open .nav-link::after {
        display: none;
    }

    .navbar.open .nav-link:active {
        background: var(--raised);
    }

    /* Keep the logo from crowding the menu button on tiny phones */
    .logo {
        font-size: 1.35rem;
    }
}

.main-layout {
    display: flex;
    flex-direction: column;
}

/* ================= HERO ================= */

.hero {
    height: calc(100vh - 81px);
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

/* ================= LEFT SECTION ================= */

.hero-left {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background:
        radial-gradient(ellipse 90% 60% at 0% 110%, rgba(255, 31, 61, 0.14), transparent 70%);
    position: relative;
}

/* Editorial meta line, top-left of the hero */
.hero-left::before {
    content: "SEASON // 2026 — LIVE MULTIPLAYER AUCTION";
    position: absolute;
    top: 2rem;
    left: 4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(239, 233, 221, 0.45);
}

/* Registration marks, bottom-left */
.hero-left::after {
    content: "N°001 / BIDDING OPEN";
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--red);
}

/* ================= CONTENT ================= */

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

.hero-content {
    width: 100%;
    max-width: 650px;
    animation: heroFade 1s ease;
}

.hero-side-text {
    position: absolute;
    left: 20px;
    top: 36%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
}

#scramble-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 10px;
    color: rgba(255, 31, 61, 0.55);
    text-transform: uppercase;
}

/* ================= SUBTITLE ================= */

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 6px;
    color: rgba(239, 233, 221, 0.5);
    margin-bottom: 2rem;
}

/* ================= TITLE ================= */

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    line-height: 0.86;
    letter-spacing: 0.01em;
    color: var(--bone);
    margin-bottom: 2rem;
}

.hero-title span {
    color: var(--red);
    text-shadow:
        0 0 24px rgba(255, 31, 61, 0.55),
        0 0 2px rgba(255, 31, 61, 0.9);
}

/* ================= DESCRIPTION ================= */

.hero-description {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
    letter-spacing: 0.2em;
    color: rgba(239, 233, 221, 0.65);
    margin-bottom: 3rem;
    padding-left: 1rem;
    border-left: 3px solid var(--red);
}

/* ================= BUTTONS ================= */

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.primary-btn,
.secondary-btn {
    position: relative;
    overflow: hidden;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    z-index: 1;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

/* PRIMARY — red slab with hard bone offset that collapses on press */
.primary-btn {
    background: var(--red);
    color: var(--bone);
    border: 2px solid var(--red);
    box-shadow: 5px 5px 0 0 var(--bone);
}

/* Bone sweep on hover */
.primary-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bone);
    transition: left 0.35s ease;
    z-index: -1;
}

.primary-btn:hover {
    color: var(--void);
}

.primary-btn:hover::before {
    left: 0;
}

.primary-btn:active {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 0 var(--bone);
}

/* SECONDARY — outlined bone, red sweep on hover */
.secondary-btn {
    background: transparent;
    color: var(--bone);
    border: 2px solid var(--bone);
}

.secondary-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--red);
    transition: left 0.35s ease;
    z-index: -1;
}

.secondary-btn:hover {
    color: var(--bone);
    border-color: var(--red);
}

.secondary-btn:hover::before {
    left: 0;
}

/* ================= RED SECTION ================= */

.hero-red {
    width: 40%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-red::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255, 77, 99, 0.6), transparent 55%),
        linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Diagonal hatching + halftone dots over the red slab */
.hero-red::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -20deg,
            rgba(0, 0, 0, 0.22) 0px,
            rgba(0, 0, 0, 0.22) 2px,
            transparent 2px,
            transparent 24px
        ),
        radial-gradient(rgba(0, 0, 0, 0.35) 1px, transparent 1.5px) 0 0 / 7px 7px;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.75;
    z-index: 2;
    pointer-events: none;
}

.hero-player {
    position: relative;
    height: 98%;
    width: auto;
    object-fit: contain;
    transform: translateX(6%);
    z-index: 5;
    pointer-events: none;
    filter:
        grayscale(1)
        contrast(1.15)
        drop-shadow(10px 0 0 rgba(0, 0, 0, 0.55))
        drop-shadow(0 0 25px rgba(0, 0, 0, 0.45));
}

/* ================= RIGHT SECTION ================= */

.hero-right {
    width: 25%;
    background: var(--void);
    border-left: 2px solid var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

/* Vertical mono ticker on the right edge */
.hero-right::after {
    content: "LOT 018 — LIVE BIDDING — LOT 018";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: rgba(239, 233, 221, 0.25);
    pointer-events: none;
}

/* ================= BID CARD ================= */

.bid-card {
    width: 100%;
    padding: 1.25rem;
    position: relative;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: 8px 8px 0 0 var(--red);
}

/* Red corner ticks (matches the game's .panel) */
.bid-card::before,
.bid-card::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.bid-card::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--red);
    border-left: 2px solid var(--red);
}

.bid-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--red);
    border-right: 2px solid var(--red);
}

/* ================= LIVE BADGE ================= */

.live-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--bone);
    margin-bottom: 1.5rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 31, 61, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 31, 61, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 31, 61, 0); }
}

.live-dot {
    width: 9px;
    height: 9px;
    animation: pulse 1.5s infinite;
    background: var(--red);
}

/* ================= DIVIDER ================= */

.card-divider {
    width: 100%;
    height: 1px;
    background: var(--line-strong);
    margin: 1.2rem 0;
}

/* ================= PLAYER NAME ================= */

.player-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--bone);
}

.player-name span {
    color: var(--red);
}

/* ================= PLAYER ROLE ================= */

.player-role {
    margin-top: 1rem;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--red);
    border: 1px solid rgba(255, 31, 61, 0.5);
    padding: 0.25rem 0.5rem;
}

/* ================= PLAYER STATS ================= */

.player-stats {
    display: grid;
    gap: 0.55rem;
}

.stat-row {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.stat-row dt {
    color: rgba(239, 233, 221, 0.5);
}

.stat-row dd {
    display: grid;
    grid-template-columns: 1fr 1.8rem;
    align-items: center;
    gap: 0.6rem;
    text-align: right;
    color: rgba(239, 233, 221, 0.8);
}

/* Track + fill in one element: the fill is a red gradient stop at --v */
.stat-bar {
    height: 4px;
    background: linear-gradient(var(--red), var(--red)) no-repeat left / var(--v) 100%,
        rgba(239, 233, 221, 0.1);
    animation: stat-fill 0.9s ease-out both;
}

@keyframes stat-fill {
    from {
        background-size: 0 100%, auto;
    }
}

/* ================= BID ================= */

.bid-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: rgba(239, 233, 221, 0.5);
    margin-bottom: 0.6rem;
}

.bid-price {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: 0.02em;
    color: var(--bone);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .hero-left,
    .hero-red,
    .hero-right {
        width: 100%;
    }

    .hero-left {
        padding: 5rem 1.5rem 4rem;
    }

    .hero-left::before,
    .hero-left::after {
        left: 1.5rem;
    }

    .hero-red {
        height: 250px;
    }

    /* Side ticker would overlap stacked content — hide */
    .hero-right::after,
    .hero-side-text {
        display: none;
    }

    .hero-right {
        padding: 4rem 2rem;
        border-left: none;
        border-top: 2px solid var(--bone);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }
}

/* ================= STATS SECTION ================= */

.stats-section {
    background: var(--red);
    border-top: 2px solid var(--bone);
    border-bottom: 2px solid var(--bone);
    padding: 2rem 4rem;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 2rem;
    border-right: 1px solid rgba(6, 6, 7, 0.35);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 2rem;
}

/* Icons carry inline red filters in the HTML — on the red band we
   override them to solid black silhouettes. */
.stat-icon img {
    filter: brightness(0) !important;
}

.stat-content .stat-value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--void);
    margin-bottom: 0.35rem;
}

.stat-content p {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(6, 6, 7, 0.75);
}

/* ================= HOW SECTION ================= */

.how-section {
    padding: 4rem 4rem;
    background: transparent;
}

.how-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ================= HEADINGS (shared editorial style) ================= */

.section-heading1,
.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-heading1 h2,
.section-heading h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--bone);
    margin-bottom: 1rem;
}

/* Kicker above each heading */
.section-heading1::before,
.section-heading::before {
    display: block;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.section-heading1::before {
    content: "HOW TO PLAY";
}

.section-heading::before {
    content: "THE SYSTEM";
}

.section-heading.faq-heading::before {
    content: "QUESTIONS // ANSWERS";
}

/* One-paragraph summary under "HOW IT WORKS" */
.how-intro {
    max-width: 62ch;
    margin: -0.5rem auto 3rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(239, 233, 221, 0.62);
}

/* "01  PLAY WITH FRIENDS ————" label above each row of step cards */
.how-mode {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--bone);
}

.how-mode span {
    color: var(--red);
}

.how-mode::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-strong);
}

.how-grid + .how-mode {
    margin-top: 3.5rem;
}

.heading-line {
    width: 80px;
    height: 4px;
    background: var(--red);
    margin: 0 auto;
    box-shadow: 88px 0 0 -1px var(--bone), -88px 0 0 -1px var(--bone);
    transform: scaleX(1);
}

/* ================= GRID ================= */

.how-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

/* ================= CARD ================= */

.how-card {
    position: relative;
    background: var(--panel);
    padding: 3rem 2rem;
    border: 1px solid var(--line-strong);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.how-card:hover {
    transform: translate(-4px, -4px);
    border-color: var(--bone);
    box-shadow: 8px 8px 0 0 var(--red);
}

/* Red corner tick, bottom-right */
.how-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--red);
    border-bottom: 2px solid var(--red);
}

/* ================= STEP NUMBER ================= */

.step-number {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--red);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.step-number::before {
    content: "STEP ";
    color: rgba(239, 233, 221, 0.35);
}

/* ================= ICON ================= */

.how-icon {
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.how-icon img {
    margin: auto;
    width: 45%;
    opacity: 0.9;
    transition: filter 0.2s ease;
}

/* Icon flips from bone to red on hover */
.how-card:hover .how-icon img {
    filter: invert(22%) sepia(97%) saturate(5000%) hue-rotate(343deg) brightness(101%) contrast(104%) !important;
}

/* ================= TITLE ================= */

.how-card h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    color: var(--bone);
}

/* ================= DESCRIPTION ================= */

.how-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(239, 233, 221, 0.6);
    line-height: 1.6;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .how-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-container,
    .how-grid {
        grid-template-columns: 1fr;
    }

    .stats-section,
    .how-section {
        padding: 4rem 1.5rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(6, 6, 7, 0.35);
        padding-bottom: 1.5rem;
    }
}

/* ================= AUCTION LOGIC ================= */

.auction-logic {
    padding: 6rem 4rem;
    background: var(--panel);
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.auction-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ================= ITEM ================= */

.logic-item {
    display: flex;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--line-strong);
    transition: padding 0.3s ease, background 0.3s ease;
}

.section-heading + .logic-item {
    border-top: 2px solid var(--bone);
}

/* ================= NUMBER ================= */

.logic-number {
    min-width: 120px;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 31, 61, 0.55);
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

/* ================= CONTENT ================= */

.logic-content {
    flex: 1;
}

.logic-content h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    color: var(--bone);
}

.logic-content p {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(239, 233, 221, 0.62);
    max-width: 62ch;
}

.logic-content a {
    color: var(--bone);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
}

.logic-content a:hover {
    color: var(--red);
}

/* ================= HOVER ================= */

.logic-item:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(255, 31, 61, 0.07), transparent 60%);
}

.logic-item:hover .logic-number {
    color: var(--red);
    -webkit-text-stroke-color: var(--red);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .auction-logic {
        padding: 4rem 1.5rem;
    }

    .logic-item {
        flex-direction: column;
        gap: 1rem;
    }

    .logic-number {
        font-size: 3.5rem;
    }

    .logic-content h3 {
        font-size: 1.5rem;
    }
}

/* ================= FOOTER ================= */

.footer {
    background: var(--void);
    color: var(--bone);
    border-top: 2px solid var(--bone);
    margin-top: 0;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

/* ================= BRAND ================= */

.footer-brand {
    max-width: 400px;
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--red);
}

.footer-brand p {
    color: rgba(239, 233, 221, 0.55);
    line-height: 1.8;
}

/* ================= LINKS ================= */

.footer-links,
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Mono column labels */
.footer-links::before,
.footer-socials::before {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--red);
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line-strong);
}

.footer-links::before {
    content: "NAVIGATE";
}

.footer-socials::before {
    content: "CONNECT";
}

.footer-links a,
.footer-socials a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(239, 233, 221, 0.65);
    transition: color 0.2s ease, padding 0.2s ease;
}

.footer-links a:hover,
.footer-socials a:hover {
    color: var(--red);
    padding-left: 0.4rem;
}

/* ================= BOTTOM ================= */

.footer-bottom {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 1.5rem;
}

.footer-bottom p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(239, 233, 221, 0.5);
}

.footer-bottom .creator {
    color: var(--bone);
    border-bottom: 1px solid var(--red);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links,
    .footer-socials {
        align-items: center;
    }
}

/* Small "buy me a coffee" button in the footer. Opens Razorpay's hosted
   Payment Page in a new tab — no payment code or keys live on this site. */
.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    border: 1px solid rgba(255, 176, 32, 0.5);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.coffee-btn:hover {
    color: var(--void);
    background: var(--amber);
    border-color: var(--amber);
}

/* Footer: policy links row (required for payment-gateway verification) */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.9rem;
}

.footer-legal a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(239, 233, 221, 0.5);
    transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
    color: var(--red);
}

/* Thank-you toast after Razorpay redirects back with ?thanks=1 */
.thanks-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 8000;
    width: max-content;
    max-width: calc(100vw - 2rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--panel);
    border: 1px solid var(--amber);
    box-shadow: 5px 5px 0 0 var(--amber);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    line-height: 1.6;
    color: var(--bone);
}

.thanks-toast button {
    color: rgba(239, 233, 221, 0.6);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.25rem;
}

.thanks-toast button:hover {
    color: var(--red);
}

/* ================= POLICY PAGES ================= */
/* contact.html, terms.html, privacy.html, refund-policy.html */

.legal-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.legal-page .legal-kicker {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--red);
    margin-bottom: 0.8rem;
}

.legal-page h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 4rem);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 1rem;
}

.legal-page .legal-updated {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(239, 233, 221, 0.45);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bone);
}

.legal-page h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 2.5rem 0 0.8rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--red);
}

.legal-page p,
.legal-page li {
    line-height: 1.85;
    color: rgba(239, 233, 221, 0.68);
}

.legal-page p + p {
    margin-top: 0.9rem;
}

.legal-page ul {
    list-style: none;
    margin-top: 0.6rem;
}

.legal-page li {
    position: relative;
    padding-left: 1.4rem;
    margin-top: 0.45rem;
}

.legal-page li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 0.6rem;
    height: 2px;
    background: var(--red);
}

.legal-page strong {
    color: var(--bone);
    font-weight: 600;
}

.legal-page a {
    color: var(--bone);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-page a:hover {
    color: var(--red);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    border-left: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    margin-top: 1.5rem;
}

.contact-grid > div {
    padding: 1.25rem;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: var(--panel);
    min-width: 0;
}

.contact-grid dt {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.contact-grid dd {
    color: var(--bone);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    body,
    .logo::before,
    .live-dot,
    .hero-content,
    .stat-bar {
        animation: none !important;
    }
}

/* Available to screen readers and to the document outline, invisible on
   screen — used for section headings the design conveys visually. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}
