/* ============================================
   Hmet premium homepage UI
   Fast, responsive, low-lag content cards
   ============================================ */
:root {
    color-scheme: dark;
    --bg: #030303;
    --panel: rgba(12, 12, 12, 0.84);
    --panel-solid: #0c0c0c;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --gold: #ffd700;
    --gold-2: #daa520;
    --gold-3: #b8860b;
    --line: rgba(218, 165, 32, 0.30);
    --radius: 24px;
    --shadow: 0 20px 58px rgba(0, 0, 0, 0.52);
    --fast: 160ms ease;
    --smooth: 360ms cubic-bezier(.2, .8, .2, 1);
}

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

html {
    background: #000;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeSpeed;
}

body.modal-open { overflow: hidden; }

button,
a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

::selection {
    color: #000;
    background: var(--gold);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--gold-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.screen-too-small {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 1rem;
    color: var(--gold);
    background: #000;
    font-size: clamp(1rem, 7vw, 1.5rem);
    font-weight: 950;
    letter-spacing: .08em;
    text-align: center;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 215, 0, 0.12), transparent 25rem),
        radial-gradient(circle at 90% 20%, rgba(218, 165, 32, 0.08), transparent 24rem),
        linear-gradient(180deg, #090909 0%, #050505 52%, #020202 100%);
}

.background-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 215, 0, .50) 0 1px, transparent 1.25px),
        radial-gradient(circle, rgba(255, 248, 214, .24) 0 1px, transparent 1.35px),
        radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.30) 56%, rgba(0,0,0,.86) 100%);
    background-size: 96px 96px, 160px 160px, 100% 100%;
    background-position: 0 0, 40px 50px, center;
    opacity: .62;
}

.top-actions {
    position: fixed;
    top: clamp(.75rem, 2vw, 1.2rem);
    right: clamp(.75rem, 2vw, 1.2rem);
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .7rem;
}

.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .64rem 1rem;
    border: 1px solid rgba(218, 165, 32, .34);
    border-radius: 999px;
    color: rgba(255, 255, 255, .90);
    background: rgba(10, 10, 10, .88);
    box-shadow: 0 10px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
    cursor: pointer;
    font-size: .86rem;
    font-weight: 850;
    transition: transform var(--fast), border-color var(--fast), color var(--fast), background var(--fast), box-shadow var(--fast);
}

.action-btn:hover,
.action-btn:focus-visible {
    color: var(--gold);
    border-color: rgba(255, 215, 0, .75);
    background: rgba(24, 19, 5, .94);
    box-shadow: 0 14px 34px rgba(218, 165, 32, .12), inset 0 1px 0 rgba(255,255,255,.12);
    transform: translateY(-2px);
    outline: none;
}

.new-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .18);
}

.container {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    margin-inline: auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.hero {
    display: grid;
    place-items: center;
    min-height: clamp(300px, 46vh, 500px);
    padding: clamp(5rem, 10vw, 7rem) 1rem clamp(2.2rem, 4vw, 4rem);
    text-align: center;
}

.eyebrow,
.section-kicker {
    color: rgba(218, 165, 32, .84);
    font-size: clamp(.78rem, 2vw, .98rem);
    font-weight: 850;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.logo {
    display: inline-block;
    margin-top: .9rem;
    color: var(--gold);
    text-decoration: none;
    font-size: clamp(3rem, 11vw, 7.4rem);
    font-weight: 950;
    letter-spacing: .035em;
    line-height: .92;
    background: linear-gradient(90deg, var(--gold-3) 0%, var(--gold) 30%, #fff8d6 50%, var(--gold) 70%, var(--gold-3) 100%);
    background-size: 180% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, .13));
    transition: transform var(--smooth), filter var(--smooth), background-position var(--smooth);
}

.logo:hover,
.logo:focus-visible {
    transform: translateY(-4px) scale(1.02);
    background-position: 100% center;
    filter: drop-shadow(0 0 28px rgba(255, 215, 0, .22));
    outline: none;
}

.logo.logo-pop { animation: logoPop 340ms cubic-bezier(.2,.9,.2,1); }
@keyframes logoPop { 45% { transform: scale(1.05); } }

.hero-text,
.weekend-note {
    width: min(680px, 100%);
    color: var(--muted);
    font-size: clamp(.98rem, 2.5vw, 1.18rem);
    line-height: 1.7;
}

.hero-text { margin-top: 1.2rem; }

.weekend-note {
    margin-top: .55rem;
    color: rgba(255, 215, 0, .88);
    font-weight: 850;
}

.vault-panel {
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid rgba(218, 165, 32, .22);
    border-radius: clamp(24px, 4vw, 34px);
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
        rgba(7, 7, 7, .82);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}

.vault-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 215, 0, .13), transparent 20rem),
        radial-gradient(circle at 90% 10%, rgba(255, 215, 0, .07), transparent 18rem);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(.8rem, 2vw, 1rem) clamp(.2rem, 1vw, .4rem) 1.2rem;
}

.section-heading h1 {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 3.1rem);
    font-weight: 950;
    line-height: 1;
    text-align: right;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2vw, 1.45rem);
    align-items: stretch;
}

.content-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)), var(--panel-solid);
    box-shadow: 0 18px 42px rgba(0,0,0,.44);
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.99);
    animation: cardAppear 420ms cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: var(--delay, 0ms);
    contain: layout paint;
    transition: transform var(--smooth), border-color var(--smooth), box-shadow var(--smooth), background var(--smooth);
}

@keyframes cardAppear { to { opacity: 1; transform: translate3d(0,0,0) scale(1); } }

.content-card:hover,
.content-card:focus-visible {
    border-color: rgba(255, 215, 0, .62);
    box-shadow: 0 24px 60px rgba(0,0,0,.62), 0 0 30px rgba(218, 165, 32, .14);
    transform: translate3d(0, -7px, 0) scale(1.008);
    outline: none;
}

.content-card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 50% 40%, rgba(255, 215, 0, .13), transparent 44%), linear-gradient(135deg, #171717, #070707);
}

.content-card-image-wrapper::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 50%;
    background: linear-gradient(transparent, rgba(9,9,9,.94));
    pointer-events: none;
}

.card-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.12) 42%, transparent 58%);
    transform: translateX(-110%);
    pointer-events: none;
}

.content-card:hover .card-shine,
.content-card:focus-visible .card-shine { animation: cardShine 560ms ease; }

@keyframes cardShine {
    0% { opacity: 0; transform: translateX(-110%); }
    22% { opacity: 1; }
    100% { opacity: 0; transform: translateX(110%); }
}

.content-card-image-wrapper.missing-image::before {
    content: "Image not found";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: rgba(255, 215, 0, .78);
    font-weight: 900;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.content-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0) scale(1.001);
    transition: transform 560ms cubic-bezier(.2,.8,.2,1), filter var(--smooth), opacity var(--smooth);
}

.content-card:hover .content-card-image,
.content-card:focus-visible .content-card-image {
    transform: translateZ(0) scale(1.055);
    filter: saturate(1.08) contrast(1.04);
}

.content-card-body {
    display: grid;
    gap: .78rem;
    padding: 1.18rem 1.22rem 1.28rem;
}

.content-card-title {
    color: #f1f1f1;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.02em;
    transition: color var(--fast);
}

.content-card-title span {
    color: rgba(255,255,255,.56);
    font-size: .82em;
}

.content-card:hover .content-card-title,
.content-card:focus-visible .content-card-title { color: var(--gold); }

.open-indicator {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: .4rem;
    color: var(--gold-2);
    font-size: .92rem;
    font-weight: 900;
    opacity: .86;
    transition: transform var(--smooth), color var(--fast), opacity var(--fast);
}

.content-card:hover .open-indicator,
.content-card:focus-visible .open-indicator {
    color: var(--gold);
    opacity: 1;
    transform: translate3d(6px, 0, 0);
}

.coming-text {
    margin: clamp(1.1rem, 2vw, 1.45rem) auto .2rem;
    padding: .9rem 1rem;
    width: min(680px, 100%);
    border: 1px solid rgba(218, 165, 32, .20);
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    background: rgba(255, 255, 255, .035);
    text-align: center;
    font-weight: 750;
    line-height: 1.45;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .84);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--smooth), visibility var(--smooth);
}

.modal.active { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    width: min(640px, 100%);
    max-height: min(82vh, 760px);
    overflow-y: auto;
    padding: clamp(1.4rem, 4vw, 2.35rem);
    border: 1px solid rgba(218, 165, 32, .42);
    border-radius: 24px;
    background: radial-gradient(circle at top, rgba(255, 215, 0, .09), transparent 18rem), #101010;
    box-shadow: 0 28px 80px rgba(0,0,0,.82), 0 0 36px rgba(218, 165, 32, .08);
    transform: translate3d(0, 18px, 0) scale(.985);
    transition: transform var(--smooth);
}

.modal.active .modal-content { transform: translate3d(0, 0, 0) scale(1); }

.modal-content h2 {
    margin-bottom: 1.2rem;
    color: var(--gold);
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    font-weight: 950;
    letter-spacing: .02em;
}

.modal-subtitle {
    margin-bottom: 1.35rem;
    color: var(--muted);
    font-size: .95rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    transition: transform var(--smooth), color var(--fast), border-color var(--fast), background var(--fast);
}

.close-modal:hover,
.close-modal:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(218, 165, 32, .12);
    transform: rotate(90deg);
    outline: none;
}

.text-center { text-align: center; }

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: .85rem;
}

.share-option {
    display: grid;
    justify-items: center;
    gap: .72rem;
    min-height: 112px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.04);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    transition: transform var(--smooth), border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.share-option:hover,
.share-option:focus-visible {
    border-color: rgba(255, 215, 0, .70);
    background: rgba(218, 165, 32, .10);
    box-shadow: 0 12px 28px rgba(218,165,32,.09);
    transform: translateY(-4px);
    outline: none;
}

.share-option[hidden] { display: none; }
.share-icon { font-size: 1.8rem; }

.version-item {
    padding: 1.05rem 1.1rem;
    margin-bottom: .85rem;
    border-left: 3px solid var(--gold-2);
    border-radius: 0 16px 16px 0;
    background: rgba(255,255,255,.045);
    transition: background var(--fast), transform var(--fast);
}

.version-item:hover {
    background: rgba(218, 165, 32, .08);
    transform: translateX(3px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .4rem;
}

.version-number {
    color: var(--gold);
    font-weight: 950;
}

.version-date {
    color: rgba(255,255,255,.42);
    font-size: .82rem;
}

.version-title {
    margin-bottom: .28rem;
    color: #fff;
    font-size: 1.02rem;
}

.version-text {
    color: var(--muted);
    line-height: 1.55;
    font-size: .94rem;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 80;
    padding: .86rem 1.25rem;
    border-radius: 999px;
    color: #000;
    background: var(--gold);
    box-shadow: 0 12px 34px rgba(218,165,32,.28);
    font-weight: 950;
    opacity: 0;
    transform: translate3d(-50%, 18px, 0);
    pointer-events: none;
    transition: opacity var(--smooth), transform var(--smooth);
}

.toast.show {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

.easter-egg-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.94);
    pointer-events: none;
}

.easter-egg-overlay.active { display: grid; }

.easter-egg-text {
    color: var(--gold);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 950;
    text-shadow: 0 0 38px rgba(255, 215, 0, .55);
    animation: easterBounce .42s ease-in-out infinite alternate;
}

@keyframes easterBounce { to { transform: scale(1.10); } }

.footer {
    padding: clamp(1.5rem, 4vw, 2.5rem) 1rem;
    color: rgba(255,255,255,.38);
    text-align: center;
    font-size: .88rem;
}

.footer:hover { color: var(--gold-2); }

@media (min-width: 1000px) {
    .content-grid[data-count="1"] { grid-template-columns: minmax(300px, 440px); justify-content: center; }
    .content-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(300px, 440px)); justify-content: center; }
    .content-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .top-actions {
        left: .75rem;
        right: .75rem;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .section-heading h1 { text-align: left; }
}

@media (max-width: 620px) {
    .container { padding: .85rem; }

    .top-actions {
        position: absolute;
        justify-content: center;
    }

    .action-btn {
        min-height: 38px;
        padding: .52rem .72rem;
        font-size: .76rem;
    }

    .hero {
        min-height: 350px;
        padding-top: 5.8rem;
    }

    .vault-panel {
        padding: .9rem;
        border-radius: 24px;
    }

    .content-grid { grid-template-columns: 1fr; }
    .share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coming-text { border-radius: 18px; }
}

@media (max-width: 380px) {
    .icon { display: none; }
    .eyebrow,
    .section-kicker { letter-spacing: .16em; }
}

@media (max-width: 319px), (max-height: 360px) {
    body { overflow: hidden; }
    .page-shell { display: none; }
    .screen-too-small { display: grid; }
}

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

@media (prefers-reduced-data: reduce) {
    .background-glow,
    .logo { animation: none; }
    .background-glow { opacity: .38; }
}
