/* ============================================================
   MineKeo — Homepage styles (public/index.php ONLY)
   Loaded AFTER css/style.css → equal-specificity rules here win.
   Shared components (top-bar, navbar, hero-header, footer, team,
   maintenance modal…) live in style.css — only overridden here
   when the override must apply to the homepage alone.
   Themes: dark (default) / body.light-mode. Xmas inherits dark
   tokens; token-driven rules adapt automatically.
   ============================================================ */

/* ---------- 0. Foundation ---------- */

/* JS-off safety: .reveal must never hide content without JS */
html:not(.js) .reveal {
    opacity: 1;
    transform: none;
}
/* JS-off safety: style.css gates lazy images behind .loaded (JS-added) */
html:not(.js) img[loading="lazy"] {
    opacity: 1;
}

/* Continuous background wash hero → footer (fixed, behind everything) */
body {
    position: relative;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 165, 209, .05), transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(168, 232, 240, .04), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(245, 184, 122, .04), transparent 60%);
    pointer-events: none;
    z-index: -1;
}
body.light-mode::before {
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(212, 74, 44, .05), transparent 60%),
        radial-gradient(ellipse 50% 40% at 20% 70%, rgba(27, 122, 142, .04), transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(224, 136, 33, .04), transparent 60%);
}

/* Scroll progress bar */
.mk-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--mint));
    z-index: 300;
    pointer-events: none;
    transition: opacity .3s;
}

/* ---------- 1. Unified section system ---------- */

.section {
    padding: clamp(64px, 9vh, 104px) 0;
    position: relative;
}
.section.soft {
    background: transparent !important;
}
.section.soft::before,
.section.soft::after {
    display: none !important;
}

.section .section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.section .section-head .eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: .76rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(232, 165, 209, .1);
    border: 1px solid rgba(232, 165, 209, .22);
    margin-bottom: 14px;
}
.section .section-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(120deg, #fff 0%, var(--accent) 60%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.18;
    letter-spacing: -.01em;
}
.section .section-head > p {
    font-size: .98rem;
    color: var(--muted);
    margin: 0 auto;
    line-height: 1.65;
    max-width: 600px;
}
body.light-mode .section .section-head .eyebrow {
    background: rgba(212, 74, 44, .1);
    border-color: rgba(212, 74, 44, .32);
}
body.light-mode .section .section-head h2 {
    background: linear-gradient(120deg, #181410 0%, var(--accent) 60%, #B53A1F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 2. Bleed hero (full-bleed video + overlay) ---------- */

.bleed-hero {
    position: relative;
    min-height: 82vh;
    min-height: 82svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(70px, 10vh, 110px) 0 clamp(90px, 13vh, 140px);
    overflow: hidden;
}
.bleed-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 240px;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 3, 11, .4) 30%, rgba(6, 3, 11, .85) 70%, var(--bg) 100%);
    z-index: 1;
    pointer-events: none;
}
.bleed-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.bleed-video,
.bleed-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bleed-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at center 30%, rgba(6, 3, 11, .2), rgba(6, 3, 11, .85)),
        linear-gradient(180deg, rgba(6, 3, 11, .55) 0%, rgba(6, 3, 11, .35) 40%, rgba(6, 3, 11, .95) 100%);
}

/* Aurora — animated color wash above video, below content */
.mk-aurora {
    position: absolute;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(70px) saturate(1.2);
    opacity: .55;
}
.mk-aurora i {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.mk-aurora i:nth-child(1) {
    width: 46vw;
    height: 46vw;
    left: -8%;
    top: -12%;
    background: radial-gradient(circle, rgba(232, 165, 209, .5), transparent 65%);
    animation: mkAurora1 17s ease-in-out infinite alternate;
}
.mk-aurora i:nth-child(2) {
    width: 38vw;
    height: 38vw;
    right: -6%;
    top: 6%;
    background: radial-gradient(circle, rgba(168, 232, 240, .4), transparent 65%);
    animation: mkAurora2 23s ease-in-out infinite alternate;
}
.mk-aurora i:nth-child(3) {
    width: 42vw;
    height: 42vw;
    left: 28%;
    bottom: -22%;
    background: radial-gradient(circle, rgba(245, 184, 122, .35), transparent 65%);
    animation: mkAurora3 20s ease-in-out infinite alternate;
}
@keyframes mkAurora1 {
    to { transform: translate(10vw, 8vh) scale(1.15); }
}
@keyframes mkAurora2 {
    to { transform: translate(-8vw, 10vh) scale(.9); }
}
@keyframes mkAurora3 {
    to { transform: translate(-9vw, -7vh) scale(1.12); }
}
body.light-mode .mk-aurora {
    mix-blend-mode: normal;
    opacity: .3;
}
body.light-mode .mk-aurora i:nth-child(1) { background: radial-gradient(circle, rgba(212, 74, 44, .3), transparent 65%); }
body.light-mode .mk-aurora i:nth-child(2) { background: radial-gradient(circle, rgba(27, 122, 142, .25), transparent 65%); }
body.light-mode .mk-aurora i:nth-child(3) { background: radial-gradient(circle, rgba(224, 136, 33, .25), transparent 65%); }

/* Floating particles (spawned by js/home.js) */
.mk-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.mk-particle {
    position: absolute;
    bottom: -3vh;
    left: var(--x, 50%);
    width: var(--size, 6px);
    height: var(--size, 6px);
    border-radius: 50%;
    background: var(--c, var(--accent));
    opacity: 0;
    filter: blur(.5px);
    box-shadow: 0 0 10px var(--c, var(--accent));
    animation: mkParticleRise var(--dur, 14s) linear var(--delay, 0s) infinite;
}
@keyframes mkParticleRise {
    0%   { transform: translate(0, 0); opacity: 0; }
    8%   { opacity: var(--o, .7); }
    85%  { opacity: var(--o, .7); }
    100% { transform: translate(var(--drift, 30px), -108vh); opacity: 0; }
}
.mk-particles.is-paused .mk-particle {
    animation-play-state: paused;
}

/* Hero content — tilt vars set by JS.
   Tilt transform must live on .reveal.show level, otherwise style.css's
   `.reveal.show { transform: translateY(0) }` (higher specificity) wins. */
.bleed-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 940px;
    padding: 0 24px;
}
.bleed-content.reveal.show {
    transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
    transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.2, .6, .3, 1);
}
.bleed-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: .14em;
    padding: 7px 16px;
    border-radius: 99px;
    background: rgba(232, 165, 209, .12);
    border: 1px solid rgba(232, 165, 209, .25);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}
.bleed-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(184, 232, 197, .6);
    animation: mkLivePulse 2s infinite;
}
.bleed-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(120deg, #fff 0%, #fef9ff 30%, var(--accent) 65%, var(--accent-2) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.07;
    letter-spacing: -.02em;
    animation: mkTitleShine 9s ease-in-out infinite;
}
@keyframes mkTitleShine {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
/* Word-by-word reveal (spans injected by JS) */
.bleed-title .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(.45em);
    filter: blur(6px);
    transition: opacity .7s cubic-bezier(.2, .65, .3, 1), transform .7s cubic-bezier(.2, .65, .3, 1), filter .7s;
    transition-delay: var(--wd, 0s);
}
.bleed-title.is-in .w {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}
.bleed-tagline {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .85);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.7;
    letter-spacing: .01em;
}
.bleed-tagline-sep {
    color: var(--accent);
    margin: 0 4px;
    font-weight: 700;
    opacity: .7;
}

/* IP copy buttons */
.bleed-ip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 26px;
}
.bleed-ip-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 16px;
    background: rgba(20, 10, 29, .75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: all .25s cubic-bezier(.34, 1.2, .64, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.bleed-ip-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .14), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}
.bleed-ip-btn:hover::after {
    left: 130%;
}
.bleed-ip-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 165, 209, .45);
    background: rgba(20, 10, 29, .9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.bleed-ip-platform {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.bleed-ip-platform-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 5px;
}
.bleed-ip-platform-label svg {
    width: 11px;
    height: 11px;
    color: var(--accent);
}
.bleed-ip-addr {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.bleed-ip-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    transition: color .2s;
    border-left: 1px solid rgba(255, 255, 255, .12);
    padding-left: 12px;
    white-space: nowrap;
}
.bleed-ip-action svg {
    width: 14px;
    height: 14px;
}
.bleed-ip-btn:hover .bleed-ip-action { color: var(--accent-2); }
.bleed-ip-btn.copied {
    border-color: var(--lime);
    background: rgba(184, 232, 197, .12);
}
.bleed-ip-btn.copied .bleed-ip-action { color: var(--lime); }

/* Hero CTAs */
.bleed-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.bleed-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    /* Dark ink on the pastel gradient — white failed contrast (~1.9:1).
       Matches the existing .btn.solid token treatment. */
    color: #2a0f1f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(232, 165, 209, .4);
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.bleed-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-20deg);
    transition: left .5s ease;
    pointer-events: none;
}
.bleed-cta:hover::after { left: 135%; }
.bleed-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(232, 165, 209, .55);
}
.bleed-cta svg {
    width: 16px;
    height: 16px;
    transition: transform .25s;
}
.bleed-cta:hover svg { transform: translateX(3px); }
.bleed-cta.ghost {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--text);
    box-shadow: none;
}
.bleed-cta.ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

/* Floating live counter — fixed, follows scroll */
.bleed-live-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 14px;
    background: rgba(20, 10, 29, .88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(184, 232, 197, .3);
    border-radius: 99px;
    z-index: 60;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(20px);
    animation: mkLiveAppear .6s ease-out .8s forwards;
}
@keyframes mkLiveAppear {
    to { opacity: 1; transform: translateY(0); }
}
.bleed-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(184, 232, 197, .6);
    animation: mkLivePulse 2s infinite;
    flex-shrink: 0;
}
@keyframes mkLivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184, 232, 197, .6); }
    50%      { box-shadow: 0 0 0 9px rgba(184, 232, 197, 0); }
}
.bleed-live-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
}
.bleed-live-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--lime);
    font-variant-numeric: tabular-nums;
}
.bleed-live-label {
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
}

/* Scroll indicator */
.bleed-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 29, .75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--text);
    z-index: 3;
    text-decoration: none;
    animation: mkScrollBounce 2s ease-in-out infinite;
    transition: background .2s, border-color .2s, color .2s;
}
.bleed-scroll:hover {
    background: rgba(20, 10, 29, .95);
    border-color: rgba(232, 165, 209, .4);
    color: var(--accent);
}
@keyframes mkScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}
.bleed-scroll svg {
    width: 22px;
    height: 22px;
}

/* Hero — light mode */
body.light-mode .bleed-video,
body.light-mode .bleed-video-poster {
    filter: brightness(1.05) saturate(.95) contrast(.96);
}
body.light-mode .bleed-overlay {
    background:
        radial-gradient(ellipse 80% 60% at center 30%, rgba(250, 246, 239, .15), rgba(250, 246, 239, .55)),
        linear-gradient(180deg, rgba(250, 246, 239, .35) 0%, rgba(250, 246, 239, .30) 40%, rgba(250, 246, 239, .95) 100%);
}
body.light-mode .bleed-hero::after {
    background: linear-gradient(180deg, transparent 0%, rgba(250, 246, 239, .50) 30%, rgba(250, 246, 239, .90) 70%, var(--bg) 100%);
}
body.light-mode .bleed-eyebrow {
    background: rgba(212, 74, 44, .10);
    border-color: rgba(212, 74, 44, .32);
}
body.light-mode .bleed-eyebrow::before {
    background: #1E8A3F;
    box-shadow: 0 0 0 0 rgba(30, 138, 63, .5);
}
body.light-mode .bleed-title {
    background: linear-gradient(120deg, #181410 0%, var(--accent) 50%, #B53A1F 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.light-mode .bleed-tagline {
    color: rgba(24, 20, 16, .88);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .40);
}
body.light-mode .bleed-ip-btn {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
    color: #181410;
    box-shadow: 0 4px 14px rgba(24, 20, 16, .06);
}
body.light-mode .bleed-ip-btn:hover {
    background: #FFFFFF;
    border-color: rgba(212, 74, 44, .40);
    box-shadow: 0 10px 28px rgba(24, 20, 16, .10);
}
body.light-mode .bleed-ip-btn.copied {
    border-color: #1E8A3F;
    background: rgba(30, 138, 63, .10);
}
body.light-mode .bleed-ip-platform-label { color: #5A5045; }
body.light-mode .bleed-ip-addr { color: #181410; }
body.light-mode .bleed-ip-action {
    border-left-color: rgba(24, 20, 16, .10);
}
body.light-mode .bleed-ip-btn.copied .bleed-ip-action { color: #1E8A3F; }
body.light-mode .bleed-cta {
    box-shadow: 0 8px 24px rgba(212, 74, 44, .30);
}
body.light-mode .bleed-cta:hover {
    box-shadow: 0 14px 36px rgba(212, 74, 44, .40);
}
body.light-mode .bleed-cta.ghost {
    background: rgba(255, 255, 255, .75);
    border-color: rgba(24, 20, 16, .14);
    color: #181410;
}
body.light-mode .bleed-live-widget {
    background: #FFFFFF;
    border-color: rgba(30, 138, 63, .28);
    box-shadow: 0 8px 24px rgba(24, 20, 16, .08);
}
body.light-mode .bleed-live-num { color: #1E8A3F; }
body.light-mode .bleed-live-label { color: #5A5045; }
body.light-mode .bleed-live-dot {
    background: #1E8A3F;
    box-shadow: 0 0 0 0 rgba(30, 138, 63, .50);
}
body.light-mode .bleed-scroll {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .10);
    color: #181410;
}
body.light-mode .bleed-scroll:hover {
    border-color: rgba(212, 74, 44, .40);
    color: var(--accent);
}

/* ---------- 3. Marquee strip ---------- */

.mk-marquee {
    position: relative;
    overflow: hidden;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .015);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mk-marquee-track {
    display: flex;
    width: max-content;
    animation: mkMarquee 36s linear infinite;
}
/* Pause via hover, keyboard focus, or tap-toggled .paused (WCAG 2.2.2) */
.mk-marquee:hover .mk-marquee-track,
.mk-marquee:focus-within .mk-marquee-track,
.mk-marquee.paused .mk-marquee-track {
    animation-play-state: paused;
}
.mk-marquee:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.mk-marquee-track ul {
    display: flex;
    align-items: center;
    gap: 44px;
    list-style: none;
    margin: 0;
    padding: 0 22px;
    flex-shrink: 0;
}
.mk-marquee-track li {
    display: flex;
    align-items: center;
    gap: 44px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .86rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.mk-marquee-track li::after {
    content: '✦';
    color: var(--accent);
    font-size: .8rem;
    opacity: .8;
}
@keyframes mkMarquee {
    to { transform: translateX(-50%); }
}
body.light-mode .mk-marquee {
    border-color: rgba(24, 20, 16, .08);
    background: rgba(24, 20, 16, .02);
}

/* ---------- 4. Bento — ecosystem ---------- */

.mk-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}
button.mk-card {
    font: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
}
.mk-card {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 22px;
    padding: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    color: var(--text);
    text-decoration: none;
    transition: transform .3s cubic-bezier(.2, .65, .3, 1), border-color .3s, box-shadow .3s;
    isolation: isolate;
}
.mk-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 165, 209, .3);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
}
/* Cursor spotlight (vars set by JS) */
.mk-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 165, 209, .12), transparent 55%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
    z-index: 1;
}
.mk-card:hover::after { opacity: 1; }
.mk-card > * {
    position: relative;
    z-index: 2;
}
.mk-card-hero {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 340px;
}
.mk-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.mk-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .65, .3, 1);
}
.mk-card:hover .mk-card-bg img {
    transform: scale(1.05);
}
.mk-card-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(6, 3, 11, .1) 0%, rgba(6, 3, 11, .55) 55%, rgba(6, 3, 11, .92) 100%);
}
.mk-card-badge {
    position: absolute;
    top: 20px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 99px;
    font-family: 'Montserrat', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    z-index: 3;
}
/* Solid-ish dark chip so text stays legible over the brightest part of the
   photo background (the translucent tint alone failed contrast). */
.mk-card-badge.live {
    background: rgba(10, 26, 16, .62);
    border: 1px solid rgba(184, 232, 197, .5);
    color: #d2f0da;
}
.mk-card-badge.live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    animation: mkLivePulse 2s infinite;
}
.mk-card-badge.soon {
    background: rgba(28, 18, 8, .62);
    border: 1px solid rgba(245, 184, 122, .5);
    color: #f8cda0;
}
.mk-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
}
.mk-card-hero .mk-card-title {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.mk-card-desc {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 480px;
}
.mk-card-hero .mk-card-desc {
    color: rgba(255, 255, 255, .82);
}
.mk-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: .84rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .03em;
}
.mk-card-link svg {
    width: 15px;
    height: 15px;
    transition: transform .25s;
}
.mk-card:hover .mk-card-link svg {
    transform: translateX(4px);
}
/* When .mk-card-link is a real <button> (KitKat copy-IP action) */
button.mk-card-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}
button.mk-card-link:hover {
    color: var(--accent-2);
}
button.mk-card-link:hover svg {
    transform: translateX(4px);
}
.mk-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    background: linear-gradient(135deg, rgba(232, 165, 209, .16), rgba(245, 184, 122, .12));
    border: 1px solid rgba(232, 165, 209, .22);
    color: var(--accent);
    transition: transform .3s cubic-bezier(.34, 1.4, .64, 1);
}
.mk-card-icon svg {
    width: 24px;
    height: 24px;
}
.mk-card:hover .mk-card-icon {
    transform: scale(1.08) rotate(-4deg);
}
.mk-card-mini {
    justify-content: flex-start;
    gap: 14px;
    min-height: 220px;
}
.mk-card-mini .mk-card-title {
    font-size: 1.12rem;
    margin: 0;
}
.mk-card-mini .mk-card-desc {
    font-size: .88rem;
}
.mk-card-mini .mk-card-link {
    margin-top: auto;
}
/* Sugus coming-soon shimmer */
.mk-card-soon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(245, 184, 122, .07) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: mkSoonShimmer 3.2s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}
@keyframes mkSoonShimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
body.light-mode .mk-card {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
    box-shadow: 0 2px 10px rgba(24, 20, 16, .04);
}
body.light-mode .mk-card:hover {
    border-color: rgba(212, 74, 44, .3);
    box-shadow: 0 16px 38px rgba(24, 20, 16, .1);
}
body.light-mode .mk-card::after {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 74, 44, .08), transparent 55%);
}
body.light-mode .mk-card-icon {
    background: linear-gradient(135deg, rgba(212, 74, 44, .1), rgba(224, 136, 33, .08));
    border-color: rgba(212, 74, 44, .22);
}
body.light-mode .mk-card-badge.live {
    background: rgba(30, 138, 63, .1);
    border-color: rgba(30, 138, 63, .3);
    color: #176D31;
}
body.light-mode .mk-card-badge.live::before { background: #1E8A3F; }
body.light-mode .mk-card-badge.soon {
    background: rgba(224, 136, 33, .12);
    border-color: rgba(224, 136, 33, .35);
    color: #9A5B12;
}
/* Cards with photo bg keep dark text treatment in light mode */
body.light-mode .mk-card-photo .mk-card-title { color: #fff; }
body.light-mode .mk-card-photo .mk-card-desc { color: rgba(255, 255, 255, .82); }
body.light-mode .mk-card-photo .mk-card-link { color: #f5b87a; }

/* ---------- 5. Stats band ---------- */

.mk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 34px 38px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.mk-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 90% at 10% 50%, rgba(232, 165, 209, .07), transparent 70%),
        radial-gradient(ellipse 40% 90% at 90% 50%, rgba(168, 232, 240, .06), transparent 70%);
    pointer-events: none;
}
.mk-stat {
    position: relative;
    text-align: center;
    padding: 8px 4px;
}
.mk-stat + .mk-stat::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    height: 56%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .14), transparent);
}
.mk-stat-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
}
.mk-stat-label {
    display: block;
    margin-top: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .12em;
}
body.light-mode .mk-stats {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
    box-shadow: 0 4px 16px rgba(24, 20, 16, .05);
}
body.light-mode .mk-stat + .mk-stat::before {
    background: linear-gradient(180deg, transparent, rgba(24, 20, 16, .12), transparent);
}

/* ---------- 6. Giveaway / countdown polish ---------- */

.giveaway-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}
.giveaway-card::before {
    height: 3px;
    background: linear-gradient(90deg, var(--mint), var(--accent), var(--accent-2));
}
.giveaway-card > p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.countdown-number {
    background: linear-gradient(135deg, var(--accent), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-color: rgba(255, 255, 255, .04);
    border: 1px solid rgba(232, 165, 209, .18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2), inset 0 0 24px rgba(232, 165, 209, .05);
}
body.light-mode .giveaway-card {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
}
body.light-mode .countdown-number {
    background-color: #FAF6EF;
    border-color: rgba(212, 74, 44, .2);
    box-shadow: 0 6px 18px rgba(24, 20, 16, .06);
}

/* ---------- 7. FAQ accordion ---------- */

.mk-faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mk-faq-item {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.mk-faq-item.open {
    border-color: rgba(232, 165, 209, .3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
}
.mk-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    transition: color .2s;
}
.mk-faq-q:hover { color: var(--accent); }
/* Inset focus ring so .mk-faq-item's overflow:hidden doesn't clip it */
.mk-faq-q:focus-visible {
    outline-offset: -3px;
    border-radius: 13px;
}
.mk-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 165, 209, .12);
    border: 1px solid rgba(232, 165, 209, .25);
    color: var(--accent);
    transition: transform .35s cubic-bezier(.34, 1.3, .64, 1), background .25s;
}
.mk-faq-icon svg {
    width: 13px;
    height: 13px;
}
.mk-faq-item.open .mk-faq-icon {
    transform: rotate(135deg);
    background: rgba(232, 165, 209, .25);
}
.mk-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    /* visibility:hidden also pulls collapsed content out of tab order + a11y tree */
    visibility: hidden;
    transition: grid-template-rows .4s cubic-bezier(.2, .65, .3, 1), visibility .4s;
}
.mk-faq-item.open .mk-faq-a {
    grid-template-rows: 1fr;
    visibility: visible;
}
.mk-faq-a-inner {
    overflow: hidden;
    min-height: 0;
}
.mk-faq-a-inner p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.7;
}
.mk-faq-a-inner a {
    color: var(--accent);
    text-decoration: underline;
}
body.light-mode .mk-faq-item {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
}
body.light-mode .mk-faq-item.open {
    border-color: rgba(212, 74, 44, .3);
    box-shadow: 0 10px 24px rgba(24, 20, 16, .08);
}
body.light-mode .mk-faq-icon {
    background: rgba(212, 74, 44, .08);
    border-color: rgba(212, 74, 44, .25);
}

/* ---------- 8. Join section / status card ---------- */

.status-card {
    position: relative;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
}
.status-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 70%;
    height: 80%;
    background: radial-gradient(circle, rgba(184, 232, 197, .08), transparent 65%);
    pointer-events: none;
}
.status-card > * {
    position: relative;
    z-index: 1;
}
.status-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.status-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: rgba(184, 232, 197, .12);
    border: 1px solid rgba(184, 232, 197, .3);
    border-radius: 99px;
    font-family: 'Montserrat', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    color: var(--lime);
    letter-spacing: .12em;
}
.status-card-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(184, 232, 197, .6);
    animation: mkLivePulse 2s infinite;
}
.status-card-uptime {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .08em;
}
.status-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text);
    line-height: 1.2;
}
.status-card-sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}
.status-card-ips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.status-card-ips .bleed-ip-btn {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: none;
}
.status-card-ips .bleed-ip-btn:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(232, 165, 209, .3);
}
.status-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.status-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.status-meta-label {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}
.status-meta-value {
    font-family: 'Roboto Mono', monospace;
    font-size: .82rem;
    color: var(--text);
    font-weight: 600;
}
body.light-mode .status-card {
    background: #FFFFFF;
    border-color: rgba(24, 20, 16, .08);
    box-shadow: 0 4px 16px rgba(24, 20, 16, .05);
}
body.light-mode .status-card::before {
    background: radial-gradient(circle, rgba(30, 138, 63, .08), transparent 65%);
}
body.light-mode .status-card-badge {
    background: rgba(30, 138, 63, .10);
    border-color: rgba(30, 138, 63, .30);
    color: #176D31;
}
body.light-mode .status-card-dot {
    background: #1E8A3F;
    box-shadow: 0 0 0 0 rgba(30, 138, 63, .50);
}
body.light-mode .status-card-title { color: #181410; }
body.light-mode .status-card-sub,
body.light-mode .status-card-uptime { color: #5A5045; }
body.light-mode .status-card-ips .bleed-ip-btn {
    background: #FAF6EF;
    border-color: rgba(24, 20, 16, .08);
    color: #181410;
}
body.light-mode .status-card-ips .bleed-ip-btn:hover {
    background: #F8F2E8;
    border-color: rgba(212, 74, 44, .30);
}
body.light-mode .status-card-meta {
    border-top-color: rgba(24, 20, 16, .08);
}
body.light-mode .status-meta-value { color: #181410; }

/* ---------- 9. Final CTA band ---------- */

.mk-cta {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 72px);
    text-align: center;
    border: 1px solid rgba(232, 165, 209, .2);
    isolation: isolate;
}
.mk-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.mk-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}
.mk-cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at center, rgba(6, 3, 11, .55), rgba(6, 3, 11, .9)),
        linear-gradient(180deg, rgba(6, 3, 11, .45), rgba(6, 3, 11, .75));
}
.mk-cta-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 12px;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.01em;
}
.mk-cta-title em {
    font-style: normal;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mk-cta-sub {
    margin: 0 auto 30px;
    max-width: 560px;
    color: rgba(255, 255, 255, .82);
    font-size: 1rem;
    line-height: 1.65;
}
.mk-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
body.light-mode .mk-cta {
    border-color: rgba(212, 74, 44, .25);
}

/* ---------- 10. Responsive ---------- */

@media (max-width: 960px) {
    .mk-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mk-card-hero {
        grid-column: span 2;
        min-height: 300px;
    }
    .mk-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 18px;
        padding: 28px 24px;
    }
    .mk-stat:nth-child(3)::before {
        display: none;
    }
}

/* Mobile / poster fallback for video */
@media (max-width: 960px), (pointer: coarse) {
    .bleed-video { display: none !important; }
}
@media (min-width: 961px) and (pointer: fine) {
    .bleed-video-poster { display: none; }
}

@media (max-width: 640px) {
    .bleed-hero {
        padding: 60px 0 100px;
        min-height: 72svh;
    }
    .bleed-tagline { font-size: .95rem; }
    .bleed-ip-row {
        flex-direction: column;
        align-items: stretch;
    }
    .bleed-ip-btn { width: 100%; }
    .bleed-live-widget {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px 8px 12px;
        gap: 8px;
    }
    .bleed-live-num { font-size: 1rem; }
    .bleed-live-label { font-size: .76rem; }
    .bleed-scroll { display: none; }
    .mk-aurora { display: none; }

    .mk-marquee-track li {
        font-size: .76rem;
        letter-spacing: .16em;
    }
    .mk-bento {
        grid-template-columns: 1fr;
    }
    .mk-card-hero {
        grid-column: span 1;
        min-height: 260px;
    }
    .mk-card-mini { min-height: 0; }
    .mk-stats {
        grid-template-columns: 1fr 1fr;
        padding: 24px 18px;
    }
    .mk-stat + .mk-stat::before { display: none; }
    .mk-faq-q {
        font-size: .92rem;
        padding: 16px 18px;
    }
    .mk-faq-a-inner p { padding: 0 18px 16px; }
    .status-card { padding: 22px; }
    .mk-cta { border-radius: 20px; }
}

/* ---------- 11. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    /* critical.css + style.css set html{scroll-behavior:smooth} unconditionally */
    html { scroll-behavior: auto; }
    .mk-aurora i,
    .mk-marquee-track,
    .bleed-title,
    .bleed-scroll,
    .mk-card-soon-overlay,
    .bleed-eyebrow::before,
    .bleed-live-dot,
    .status-card-dot,
    .mk-card-badge.live::before {
        animation: none !important;
    }
    .mk-particles { display: none; }
    .bleed-title .w {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
    .bleed-content.reveal.show {
        transform: none;
        transition: opacity .8s cubic-bezier(.4, 0, .2, 1);
    }
    .bleed-live-widget {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
