/* LongFu88 Asia — modular theme: imperial gold on deep plum/black */

:root {
    --lf-bg: #0a0710;
    --lf-bg-elevated: #120c1c;
    --lf-card: #1a1228;
    --lf-card-hover: #221a32;
    --lf-border: rgba(212, 175, 55, 0.15);
    --lf-gold: #d4af37;
    --lf-gold-dim: #9a7b2e;
    --lf-crimson: #be123c;
    --lf-crimson-deep: #881337;
    --lf-text: #f8f5ff;
    --lf-muted: #a89bb8;
    --lf-success: #34d399;
    --lf-radius: 12px;
    --lf-radius-lg: 20px;
    --lf-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --lf-glow: 0 0 32px rgba(212, 175, 55, 0.12);
    --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
    --font-display: "Outfit", var(--font);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--lf-bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(190, 18, 60, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 175, 55, 0.06), transparent);
    color: var(--lf-text);
    line-height: 1.65;
    min-height: 100vh;
    padding-top: 72px;
}

@media (min-width: 960px) {
    body { padding-top: 80px; }
}

a {
    color: var(--lf-gold);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}
a:hover { color: #f0d78c; }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 7, 16, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--lf-border);
    transition: background 0.25s, box-shadow 0.25s;
}
.header--scrolled {
    background: rgba(10, 7, 16, 0.96);
    box-shadow: var(--lf-shadow);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-shrink: 0;
}
.logo__mark {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--lf-gold);
    font-weight: 700;
}
.logo__text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--lf-text);
    letter-spacing: -0.02em;
}
.logo__accent { color: var(--lf-gold); }
.logo__region {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lf-muted);
    font-weight: 600;
    align-self: flex-start;
    margin-left: 0.15rem;
}
.logo--footer .logo__region { display: none; }

.nav { display: none; }
@media (min-width: 960px) {
    .nav { display: block; }
    .nav__list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
        list-style: none;
        justify-content: flex-end;
    }
    .nav__link {
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--lf-muted);
        padding: 0.35rem 0;
    }
    .nav__link:hover, .nav__link--active {
        color: var(--lf-gold);
    }
}

.header__cta { display: none; }
@media (min-width: 960px) {
    .header__cta { display: inline-flex; }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--lf-border);
    border-radius: 10px;
    background: var(--lf-card);
    color: var(--lf-text);
    cursor: pointer;
}
@media (min-width: 960px) {
    .mobile-menu-toggle { display: none; }
    .mobile-menu,
    .mobile-menu.active {
        display: none !important;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 7, 16, 0.98);
    z-index: 999;
    padding: 1.5rem;
    overflow-y: auto;
}
.mobile-menu.active { display: block; }
.mobile-menu__list { list-style: none; }
.mobile-menu__link {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--lf-border);
    font-weight: 600;
    color: var(--lf-text);
}
.mobile-menu__link--active,
.mobile-menu__link.nav__link--active { color: var(--lf-gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn--gold {
    background: linear-gradient(135deg, #e8c547 0%, var(--lf-gold-dim) 100%);
    color: #1a0a0a;
    box-shadow: var(--lf-glow);
}
.btn--gold:hover {
    transform: translateY(-2px);
    color: #1a0a0a;
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
}
.btn--outline {
    background: transparent;
    border: 2px solid var(--lf-gold);
    color: var(--lf-gold);
}
.btn--outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f0d78c;
}
.btn--lg { padding: 0.85rem 1.75rem; font-size: 0.85rem; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.7rem; }

/* Hero */
.hero {
    position: relative;
    padding: 3rem 0 4rem;
    overflow: hidden;
}
.hero--home {
    background:
        linear-gradient(165deg, rgba(18, 12, 28, 0.92) 0%, rgba(10, 7, 16, 0.98) 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 900px) {
    .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lf-crimson);
    background: rgba(190, 18, 60, 0.15);
    border: 1px solid rgba(190, 18, 60, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(120deg, #fff 20%, #e8d5a8 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: 1.05rem;
    color: var(--lf-muted);
    max-width: 38ch;
    margin-bottom: 1.5rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__panel {
    background: linear-gradient(145deg, var(--lf-card) 0%, var(--lf-bg-elevated) 100%);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--lf-shadow);
}
.hero__panel-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lf-muted);
    margin-bottom: 1rem;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 600px) {
    .stats-row { grid-template-columns: repeat(4, 1fr); }
}

.stat-pill {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--lf-radius);
    padding: 0.85rem;
    text-align: center;
    border: 1px solid var(--lf-border);
}
.stat-pill__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--lf-gold);
    line-height: 1.2;
}
.stat-pill__label {
    font-size: 0.7rem;
    color: var(--lf-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

/* Sections */
.section {
    padding: 3rem 0;
}
.section--alt {
    background: rgba(18, 12, 28, 0.5);
    border-top: 1px solid var(--lf-border);
    border-bottom: 1px solid var(--lf-border);
}

.section__header {
    max-width: 720px;
    margin-bottom: 2rem;
}
.section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lf-crimson);
    margin-bottom: 0.5rem;
}
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.section__desc {
    color: var(--lf-muted);
    font-size: 1.02rem;
}

/* Content prose */
.prose {
    font-size: 1.02rem;
    color: var(--lf-muted);
}
.prose h2 {
    font-family: var(--font-display);
    color: var(--lf-text);
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}
.prose h3 {
    font-family: var(--font-display);
    color: var(--lf-text);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--lf-text); }

/* Split layout */
.split {
    display: grid;
    gap: 2rem;
}
@media (min-width: 880px) {
    .split--rev {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    .split--rev .split__aside { order: 2; }
    .split--rev .split__main { order: 1; }
}

/* Cards grid */
.card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--lf-card);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    padding: 1.35rem;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-3px);
}
.feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--lf-crimson-deep), var(--lf-crimson));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.feature-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--lf-text);
}
.feature-card__text { font-size: 0.92rem; color: var(--lf-muted); }

/* Listicle */
.listicle {
    counter-reset: item;
    list-style: none;
    margin: 0;
    padding: 0;
}
.listicle__item {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    margin-bottom: 1rem;
    background: var(--lf-bg-elevated);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
}
.listicle__item::before {
    counter-increment: item;
    content: counter(item);
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--lf-gold), var(--lf-gold-dim));
    color: #1a0a0a;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.listicle__item h3 {
    font-size: 1.1rem;
    color: var(--lf-text);
    margin-bottom: 0.35rem;
}
.listicle__item p { font-size: 0.95rem; color: var(--lf-muted); margin: 0; }

/* Steps (infographic flow) */
.steps-flow {
    display: grid;
    gap: 0;
    margin: 2rem 0;
}
@media (min-width: 720px) {
    .steps-flow {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

.step-node {
    position: relative;
    padding: 1.25rem 1rem;
    background: var(--lf-card);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    text-align: center;
}
@media (min-width: 720px) {
    .step-node:not(:last-child)::after {
        content: "→";
        position: absolute;
        right: -0.55rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--lf-gold-dim);
        font-weight: 700;
        z-index: 1;
    }
}
.step-node__num {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--lf-gold);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.step-node__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lf-text);
}
.step-node__hint {
    font-size: 0.78rem;
    color: var(--lf-muted);
    margin-top: 0.35rem;
}

/* Infographic bar */
.infographic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.infographic-bar__segment {
    flex: 1 1 120px;
    min-height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lf-crimson), var(--lf-gold-dim));
    opacity: 0.85;
}
.infographic-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--lf-muted);
}
.infographic-legend span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 0.35rem;
    background: var(--lf-gold);
    vertical-align: middle;
}

/* CTA banner */
.cta-banner {
    padding: 2.5rem 0;
}
.cta-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(190, 18, 60, 0.2) 0%, rgba(26, 18, 40, 0.95) 100%);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius-lg);
}
@media (min-width: 700px) {
    .cta-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cta-banner__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}
.cta-banner__subtitle {
    color: var(--lf-muted);
    font-size: 0.95rem;
    max-width: 52ch;
}

/* Aside box */
.aside-box {
    background: var(--lf-card);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    padding: 1.25rem;
    position: sticky;
    top: 96px;
}
.aside-box h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lf-muted);
    margin-bottom: 0.75rem;
}
.fact-list { list-style: none; }
.fact-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--lf-border);
    font-size: 0.88rem;
}
.fact-list li:last-child { border-bottom: none; }
.fact-list strong { color: var(--lf-gold); }

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--lf-border);
    background: #06040a;
}
.footer__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
}
.footer__lead { color: var(--lf-muted); font-size: 0.92rem; margin-top: 0.75rem; max-width: 36ch; }
.footer__heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lf-muted);
    margin-bottom: 0.75rem;
}
.footer__links { list-style: none; }
.footer__links a {
    display: block;
    padding: 0.25rem 0;
    color: var(--lf-muted);
    font-size: 0.92rem;
}
.footer__links a:hover { color: var(--lf-gold); }

.age-strip {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: rgba(190, 18, 60, 0.08);
    border: 1px solid rgba(190, 18, 60, 0.25);
    border-radius: var(--lf-radius);
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--lf-muted);
}
.age-strip__badge {
    flex-shrink: 0;
    font-weight: 800;
    padding: 0.35rem 0.6rem;
    background: var(--lf-crimson);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
}

.footer__trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--lf-border);
    border-bottom: 1px solid var(--lf-border);
    font-size: 0.8rem;
}
.footer__trust-label { color: var(--lf-muted); margin-right: 0.5rem; }
.footer__trust-strip a { color: var(--lf-muted); }
.footer__trust-strip a:hover { color: var(--lf-gold); }

.trust-grid { margin-top: 2rem; }
.trust-grid__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.trust-grid__intro { color: var(--lf-muted); font-size: 0.92rem; margin-bottom: 1.25rem; max-width: 65ch; }
.trust-grid__cols {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .trust-grid__cols { grid-template-columns: repeat(3, 1fr); }
}
.trust-card {
    background: var(--lf-bg-elevated);
    border: 1px solid var(--lf-border);
    border-radius: var(--lf-radius);
    padding: 1.15rem;
}
.trust-card__title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lf-gold);
    margin-bottom: 0.65rem;
}
.trust-card__list { list-style: none; }
.trust-card__list a {
    display: block;
    font-size: 0.86rem;
    color: var(--lf-muted);
    padding: 0.3rem 0;
}
.trust-card__list a:hover { color: var(--lf-gold); }

.footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lf-border);
    text-align: center;
    font-size: 0.82rem;
    color: var(--lf-muted);
}
.footer__legal a { color: var(--lf-muted); margin: 0 0.35rem; }
.footer__legal a:hover { color: var(--lf-gold); }

/* Page hero compact */
.page-hero {
    padding: 2rem 0 2.5rem;
    border-bottom: 1px solid var(--lf-border);
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.page-hero__summary {
    color: var(--lf-muted);
    font-size: 1.05rem;
    max-width: 65ch;
}

/* Tables */
.data-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--lf-radius);
    border: 1px solid var(--lf-border);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--lf-border);
}
.data-table th {
    background: var(--lf-bg-elevated);
    color: var(--lf-text);
    font-weight: 700;
}
.data-table td { color: var(--lf-muted); }
.data-table tr:last-child td { border-bottom: none; }

/* Reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--lf-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--lf-muted); }
.breadcrumb a:hover { color: var(--lf-gold); }

/* Skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--lf-gold);
    color: #1a0a0a;
    padding: 0.5rem 1rem;
    z-index: 2000;
}
.skip-link:focus { left: 0; }
