/* ===== Template B: Modern Flat / Card Grid ===== */
/* Design: Full-screen hero with image overlay, card grid features, clean split layout */

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

body {
    font-family: var(--font-body), 'Inter', 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: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 17px;
}

.navbar.scrolled .nav-brand { color: var(--text); }

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

.brand-icon-sm {
    width: 28px; height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
}

.navbar.scrolled .nav-toggle { color: var(--text); }

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body), 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar.scrolled .nav-links a { color: var(--text-secondary); }

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

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

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;
}

.nav-cta:hover {
    opacity: 0.9;
    background: var(--primary) !important;
}

/* ===== Hero: Full-screen ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 em {
    font-style: normal;
    color: var(--secondary);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--gradient);
    color: #fff;
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-download.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-download.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== Stats Bar ===== */
.stats-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 48px;
}

.stat-num {
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* ===== Features: Phone Screenshot Showcase ===== */
/* 9:16 竖屏截图并排展示，保持完整比例 */
.features {
    padding: 100px 0;
    background: var(--bg);
}

.section-eyebrow {
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 56px;
}

/* Screenshot strip: 5 phones in a row, arc layout, no scroll */
.screenshot-strip {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0;
    padding: 0 0 24px;
    /* 不设 overflow，5张图直接铺满 */
}

.screenshot-item {
    flex: 1;
    min-width: 0;          /* 允许收缩到容器宽度 */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Arc: items 1,5 lowest; 2,4 mid; 3 highest */
.screenshot-item:nth-child(1),
.screenshot-item:nth-child(5) { transform: translateY(32px); }
.screenshot-item:nth-child(2),
.screenshot-item:nth-child(4) { transform: translateY(16px); }
.screenshot-item:nth-child(3) { transform: translateY(0); }

.screenshot-item:hover { transform: translateY(-8px) !important; }

.screenshot-phone {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-subtle);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    background: var(--card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.screenshot-item:hover .screenshot-phone {
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 2px var(--primary);
    border-color: var(--primary);
}

/* 保持 9:16 完整比例，不裁切 */
.screenshot-phone img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.screenshot-label {
    margin-top: 14px;
    text-align: center;
    padding: 0 4px;
    width: 100%;
}

.screenshot-num {
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.screenshot-label h3 {
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.screenshot-label p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===== About: Split ===== */
.about {
    padding: 100px 0;
    background: var(--card);
    border-top: 1px solid var(--border-subtle);
}

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

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

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

.about-block {
    margin-bottom: 36px;
}

.about-block h4 {
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.check-list li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 22px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.step-list {
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 28px;
    position: relative;
    margin-bottom: 4px;
}

.step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 3px;
}

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

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

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.cta-text h2 {
    font-family: var(--font-heading), 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.cta-banner .btn-download {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.cta-banner .btn-download:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

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

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

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

.footer-brand-col p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 13px !important;
    color: var(--text-faint) !important;
    margin-top: 24px !important;
}

.footer-links-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-link-group h5 {
    font-family: var(--font-heading), 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

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

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

/* ===== Legal page ===== */
.legal-page { padding: 120px 0 80px; }
.legal-page .about-content { max-width: 720px; margin: 0 auto; }
.legal-page .about-content h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .about-content .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-page .about-content h2 { font-size: 22px; 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-heading { font-size: 34px; }
    .about-grid { gap: 48px; }
    .about-left h2 { font-size: 32px; }
    .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 68px; 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; }
    .navbar { background: var(--nav-bg); backdrop-filter: blur(20px); }
    .navbar.scrolled { background: var(--nav-bg); }
    .nav-brand { color: var(--text); }
    .nav-toggle { color: var(--text); }
    .nav-links a { color: var(--text-secondary); }

    .hero { height: auto; min-height: 100vh; padding: 100px 0 80px; }
    .hero h1 { font-size: 38px; }
    .hero-sub { font-size: 16px; }
    .hero-scroll-hint { display: none; }

    .stats-inner { flex-wrap: wrap; gap: 16px; padding: 20px; }
    .stat-item { padding: 0 20px; }
    .stat-divider { display: none; }

    .screenshot-strip {
        gap: 8px;
        padding-bottom: 0;
    }
    .screenshot-item {
        flex: 1;
        min-width: 0;
    }
    /* 移动端取消弧形偏移 */
    .screenshot-item:nth-child(1),
    .screenshot-item:nth-child(2),
    .screenshot-item:nth-child(3),
    .screenshot-item:nth-child(4),
    .screenshot-item:nth-child(5) { transform: none; }
    .screenshot-item:hover { transform: translateY(-4px) !important; }
    .screenshot-label h3 { font-size: 11px; }
    .screenshot-label p { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-col { grid-template-columns: repeat(2, 1fr); }
    .cta-text h2 { font-size: 28px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
    .hero-btns { flex-direction: column; }
    .btn-download, .btn-outline { width: 100%; justify-content: center; }
    .section-heading { font-size: 26px; }
    .footer-links-col { grid-template-columns: 1fr; }
}

/* Navbar scroll behavior */
