/* ===== Template Neon: Bold Game / Vibrant ===== */
/* Design: Bold geometric hero, neon accent strips, horizontal scroll screenshots, dark game aesthetic */

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

body {
    font-family: var(--font-body), 'DM Sans', 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;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
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-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Accent line under navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.3px;
}

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

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

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-body), 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

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

.nav-play {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-play:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow-primary); }

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

/* Diagonal accent strip */
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: -10%;
    width: 55%;
    height: 100%;
    background: var(--card);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    min-height: 560px;
    position: relative;
    z-index: 1;
}

.hero-left { padding: 60px 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--badge-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: var(--font-body), 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary);
    margin-bottom: 24px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 68px;
    font-weight: 800;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero h1 .line-accent {
    display: block;
    color: var(--primary);
    -webkit-text-stroke: 0px;
}

.hero h1 .line-outline {
    display: block;
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    color: var(--text-secondary);
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0;
    height: 100%;
}

.hero-img-wrap {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.hero-img-wrap img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    object-fit: cover;
}

/* Glow under hero image */
.hero-img-wrap::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 10%; right: 10%;
    height: 60px;
    background: var(--glow-primary);
    filter: blur(30px);
    z-index: -1;
}

/* ===== Accent Strip ===== */
.accent-strip {
    background: var(--gradient);
    padding: 14px 0;
    overflow: hidden;
    /* 防止内容换行导致高度变化 */
    white-space: nowrap;
}

.strip-track {
    display: inline-flex;
    gap: 0;
    /* 两组内容拼接，动画移动一组的宽度实现无缝循环 */
    animation: marquee 18s linear infinite;
    will-change: transform;
}

/* 暂停 hover */
.accent-strip:hover .strip-track {
    animation-play-state: paused;
}

.strip-group {
    display: inline-flex;
    gap: 0;
    flex-shrink: 0;
}

.strip-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 32px;
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

.strip-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Features: Horizontal scroll screenshots ===== */
/* 9:16 竖屏截图横向滚动展示 */
.features {
    padding: 80px 0;
    background: var(--bg);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body), 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-tag::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--primary);
}

.section-title {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 40px;
    line-height: 1.1;
}

.features-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    /* 让滚动区域稍微超出容器，视觉上暗示可以滚动 */
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
}

.features-scroll::-webkit-scrollbar { height: 3px; }
.features-scroll::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.features-scroll::-webkit-scrollbar-track { background: transparent; }

.feat-slide {
    /* 宽度基于 9:16 比例：高度约 480px → 宽度 270px */
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    position: relative;
}

.feat-slide:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 16px 40px rgba(0,0,0,0.3);
    transform: translateY(-6px);
}

/* 9:16 完整展示，不裁切 */
.feat-slide-img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.feat-slide-body {
    padding: 16px;
}

.feat-slide-num {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.feat-slide-body h3 {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.feat-slide-body p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== About: Dark panel ===== */
.about {
    padding: 80px 0;
    background: var(--card);
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--glow-primary);
    filter: blur(80px);
    pointer-events: none;
}

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

.about-left .section-tag { margin-bottom: 12px; }

.about-left h2 {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.1;
}

.about-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.highlight-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
}

.highlight-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    transition: all 0.2s ease;
}

.highlight-chip::before {
    content: '▸';
    color: var(--primary);
    font-size: 10px;
    flex-shrink: 0;
}

.highlight-chip:hover { border-color: var(--primary); color: var(--text); }

.how-to-panel {
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    border-top: 3px solid var(--primary);
}

.how-to-panel h4 {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.how-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.step-num {
    width: 26px; height: 26px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.how-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, var(--glow-secondary), transparent);
    pointer-events: none;
}

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

.cta-inner h2 {
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.1;
}

.cta-inner h2 span { color: var(--primary); }

.cta-inner p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
    padding: 56px 0 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading), 'Syne', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.footer-brand img { width: 32px; height: 32px; border-radius: 7px; }

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h5 {
    font-family: var(--font-body), 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 3px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-faint);
}

/* ===== Legal page ===== */
.legal-page { padding: 100px 0 80px; }
.legal-page .about-content { max-width: 720px; margin: 0 auto; }
.legal-page .about-content h1 { font-family: var(--font-heading), 'Syne', sans-serif; font-size: 40px; font-weight: 800; margin-bottom: 8px; letter-spacing: -1px; }
.legal-page .about-content .meta { color: var(--text-muted); font-size: 13px; margin-bottom: 40px; }
.legal-page .about-content h2 { font-family: var(--font-heading), 'Syne', sans-serif; font-size: 22px; font-weight: 700; margin: 40px 0 12px; }
.legal-page .about-content h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-page .about-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.legal-page .about-content ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; }
.legal-page .about-content ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }
.legal-page .about-content a { color: var(--primary); text-decoration: underline; }
.legal-page .about-content hr { border: none; height: 1px; background: var(--border-subtle); margin: 32px 0; }
.legal-page .about-content strong { color: var(--text); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 52px; }
    .section-title { font-size: 36px; }
    .about-layout { gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: var(--nav-bg);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-subtle);
        backdrop-filter: blur(20px);
    }
    .nav-links.open { display: flex; }
    .nav-play { display: none; }

    .hero { padding: 80px 0 0; }
    .hero::before { display: none; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 44px; }
    .hero-right { padding: 0; }
    .hero-img-wrap { max-width: 100%; }

    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .highlight-list { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .cta-inner h2 { font-size: 36px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 34px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .section-title { font-size: 28px; }
    .footer-top { grid-template-columns: 1fr; }
    .feat-slide { flex: 0 0 160px; }
    .features-scroll { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
}
