/* ===================================================
   Template Aurora — Bento Grid + Glassmorphism
   Font: Outfit (headings) + Nunito (body)
   =================================================== */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body), 'Nunito', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content { flex: 1; }

h1, h2, h3, h4 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; }

*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
a, button { outline: none; border: none; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

::selection { background: var(--primary); color: #fff; }

/* ===== Glassmorphism Mixin ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-icon.sm { width: 32px; height: 32px; border-radius: 8px; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

.nav-links {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 100px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px var(--glow-primary);
}

.nav-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--glow-primary);
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--glow-primary);
}

.btn-primary.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    color: var(--text-secondary);
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--bg);
}

/* Gradient mesh background */
.hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, var(--glow-primary), transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 30%, var(--glow-secondary), transparent 55%),
        radial-gradient(ellipse 40% 35% at 15% 70%, var(--glow-accent), transparent 50%),
        radial-gradient(ellipse 60% 50% at 50% 100%, var(--glow-secondary), transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: var(--secondary);
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--glow-secondary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-2 {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.7;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.hero-banner-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse 70% 50% at 50% 50%, var(--glow-secondary), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-banner {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--secondary);
    margin-bottom: 12px;
    padding: 4px 14px;
    background: var(--badge-bg);
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
}

.section-title {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.section-desc {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Bento Grid Features ===== */
/* 针对 9:16 竖屏游戏截图优化 */
.features {
    padding: 120px 0;
    background: var(--bg);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow-primary), var(--glow-secondary), transparent);
}

/* 5 列等宽，弧形排列用 margin-top 实现，不影响卡片高度 */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: end;
}

.bento-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

/* 弧形排列：用 margin-top 下移两侧，中间不动，所有卡片高度一致 */
.bento-card:nth-child(1),
.bento-card:nth-child(5) { margin-top: 48px; }
.bento-card:nth-child(2),
.bento-card:nth-child(4) { margin-top: 24px; }
.bento-card:nth-child(3) { margin-top: 0; }

.bento-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--primary);
    transform: translateY(-6px);
}

/* 图片区域：保持 9:16 完整比例 */
.bento-img-wrap {
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}

.bento-img-wrap img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.bento-card:hover .bento-img-wrap img {
    transform: scale(1.03);
}

.bento-info {
    padding: 16px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.bento-tag {
    display: inline-block;
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--badge-bg);
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.bento-info h3 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    line-height: 1.3;
}

.bento-info p {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== About ===== */
.about {
    padding: 120px 0;
    background: var(--card);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow-secondary), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-left .section-label { margin-bottom: 16px; }
.about-left .section-title { margin-bottom: 20px; }

.about-desc {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
}

.highlights-title {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.highlights-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.pill:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--text);
}

/* How to Play Card */
.how-to-play-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.how-to-play-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-primary), transparent 70%);
    pointer-events: none;
}

.htp-title {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.htp-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.htp-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.htp-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--glow-primary);
}

.htp-text {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 6px;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, var(--glow-primary), transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, var(--glow-secondary), transparent 55%),
        radial-gradient(ellipse 40% 40% at 80% 20%, var(--glow-accent), transparent 55%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    text-align: center;
    z-index: 1;
}

.cta h2 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 0;
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-desc {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 6px;
}

.footer-company {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 13px;
    color: var(--text-faint);
}

.footer-col h4 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 13px;
    color: var(--text-faint);
}

/* ===== Legal Page ===== */
.legal-page {
    padding: 140px 0 80px;
    flex: 1;
}

.legal-page .about-content {
    max-width: 760px;
    margin: 0 auto;
}

.about-content h1 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content h2 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 16px;
}

.about-content h3 {
    font-family: var(--font-heading), 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text);
}

.about-content p {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-content strong { color: var(--text); }

.about-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 32px 0;
}

.about-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-content a:hover { color: var(--secondary); }

.about-content ul, .about-content ol {
    margin: 0 0 20px 20px;
    list-style: disc;
}

.about-content ol { list-style: decimal; }

.about-content li {
    font-family: var(--font-body), 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 52px; }
    .section-title { font-size: 34px; }
    .bento-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .bento-card:nth-child(1),
    .bento-card:nth-child(5) { margin-top: 32px; }
    .bento-card:nth-child(2),
    .bento-card:nth-child(4) { margin-top: 16px; }
    .about-grid { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-download-btn { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        background: var(--footer-bg);
        backdrop-filter: blur(20px);
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { font-size: 16px; }
    /* 移动端：横向滚动展示截图 */
    .bento-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .bento-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
        margin-top: 0 !important;
    }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .features { padding: 80px 0; }
    .about { padding: 80px 0; }
    .cta h2 { font-size: 36px; }
    .cta { padding: 72px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 26px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    .cta h2 { font-size: 28px; }
    .how-to-play-card { padding: 24px; }
    h1 { font-size: 28px; }
    .bento-card { flex: 0 0 140px; }
}
