/* ============================================================
   弹玩玩 Landing Page
   主色：薄荷绿（取自 App 主题）
   ============================================================ */

:root {
    --mint-50: #f5f9ec;
    --mint-100: #e8f0d4;
    --mint-200: #d4e3a8;
    --mint-300: #c8d99c;
    --mint-500: #93b04a;
    --mint-700: #4f6c1f;
    --ink-900: #1a1d14;
    --ink-700: #3a4030;
    --ink-500: #6b7160;
    --ink-300: #b8bbb0;
    --bg-cream: #faf8f1;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(26, 29, 20, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 29, 20, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 29, 20, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--ink-900);
    background: var(--bg-cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 241, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(26, 29, 20, 0.06);
}

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

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }

.site-nav { display: flex; gap: 32px; }
.site-nav a {
    font-size: 14px;
    color: var(--ink-700);
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--mint-700); }

@media (max-width: 720px) {
    .site-nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--mint-100) 0%, var(--bg-cream) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--mint-200) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: var(--mint-700);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-title em {
    font-style: normal;
    color: var(--mint-700);
    background: var(--mint-300);
    padding: 0 8px;
    border-radius: 8px;
}

.hero-sub {
    font-size: 18px;
    color: var(--ink-700);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    border: none;
    text-align: left;
}
.btn small { display: block; font-size: 11px; font-weight: 400; opacity: 0.75; }
.btn strong { display: block; font-size: 15px; font-weight: 700; }
.btn-icon { font-size: 20px; opacity: 0.9; }

.btn-primary {
    background: var(--ink-900);
    color: var(--white);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary {
    background: var(--white);
    color: var(--ink-900);
    border: 1px solid rgba(26, 29, 20, 0.12);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn.disabled { opacity: 0.7; cursor: not-allowed; }
.btn.disabled:hover { transform: none; }

.hero-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--ink-500);
}

/* Phone frame */
.hero-visual { display: flex; justify-content: center; }
.phone-frame {
    width: 280px;
    padding: 12px;
    background: var(--ink-900);
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.05) inset;
    position: relative;
}
.phone-frame::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    z-index: 2;
}
.phone-frame img {
    border-radius: 28px;
    width: 100%;
}

@media (max-width: 900px) {
    .hero { padding: 56px 0 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-title { font-size: 40px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .hero-sub { font-size: 16px; }
}

/* ============================================================
   Section commons
   ============================================================ */
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-head h2 {
    font-size: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.section-head p {
    font-size: 17px;
    color: var(--ink-500);
}

@media (max-width: 720px) {
    .section-head h2 { font-size: 28px; }
}

/* ============================================================
   Features (game modes)
   ============================================================ */
.features { padding: 100px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--ink-500); }

.mode-classic { background: linear-gradient(160deg, #1a1d14 0%, #2a2e1f 100%); color: var(--white); }
.mode-classic .feature-tag { background: var(--mint-300); color: var(--mint-700); }
.mode-classic p { color: rgba(255,255,255,0.7); }

.mode-stage .feature-tag { background: #fef3d4; color: #8a6d1a; }
.mode-fun .feature-tag { background: #dfeaf6; color: #2c5a8f; }
.mode-boss .feature-tag { background: #fce4dc; color: #a8412a; }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .features { padding: 72px 0; }
}
@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Highlights
   ============================================================ */
.highlights {
    padding: 100px 0;
    background: var(--mint-50);
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.highlight-item { text-align: center; padding: 16px; }
.highlight-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
    width: 72px;
    height: 72px;
    line-height: 72px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}
.highlight-item h3 { font-size: 17px; margin-bottom: 8px; }
.highlight-item p { font-size: 14px; color: var(--ink-500); }

@media (max-width: 900px) {
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .highlights { padding: 72px 0; }
}

/* ============================================================
   Screens
   ============================================================ */
.screens { padding: 100px 0; }
.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}
.screen-item { text-align: center; }
.phone-frame-sm {
    width: 220px;
    padding: 8px;
    border-radius: 32px;
}
.phone-frame-sm::before { top: 10px; width: 60px; height: 4px; }
.phone-frame-sm img { border-radius: 24px; }
.screen-item figcaption {
    margin-top: 20px;
    font-size: 14px;
    color: var(--ink-500);
}

@media (max-width: 900px) {
    .screen-grid { grid-template-columns: repeat(2, 1fr); }
    .screen-item:nth-child(3) { grid-column: 1 / -1; }
    .screens { padding: 72px 0; }
}
@media (max-width: 540px) {
    .screen-grid { grid-template-columns: 1fr; }
    .screen-item:nth-child(3) { grid-column: auto; }
}

/* ============================================================
   About
   ============================================================ */
.about {
    padding: 100px 0;
    background: var(--ink-900);
    color: var(--white);
}
.about-inner { max-width: 820px; margin: 0 auto; }
.about h2 { font-size: 36px; margin-bottom: 24px; }
.about p { font-size: 17px; color: rgba(255,255,255,0.75); margin-bottom: 36px; }
.about strong { color: var(--mint-300); }

.contact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-list dt {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.contact-list dd { font-size: 15px; color: var(--white); }
.contact-list a { color: var(--mint-300); }
.contact-list a:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .about { padding: 72px 0; }
    .about h2 { font-size: 28px; }
    .contact-list { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #14160e;
    color: rgba(255,255,255,0.7);
    padding: 56px 0 24px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--mint-300); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
}
.footer-logo { width: 32px; height: 32px; border-radius: 6px; }
.footer-sub {
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
    max-width: 280px;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p, .footer-bottom a {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}
.footer-bottom a:hover { color: var(--mint-300); }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal {
    padding: 80px 0;
    background: var(--white);
}
.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}
.legal h1 {
    font-size: 36px;
    margin-bottom: 8px;
}
.legal-meta {
    color: var(--ink-500);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(26, 29, 20, 0.08);
}
.legal h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--ink-900);
}
.legal h3 {
    font-size: 17px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--ink-700);
}
.legal p, .legal li {
    font-size: 15px;
    color: var(--ink-700);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 16px; }
.legal a { color: var(--mint-700); text-decoration: underline; }

@media (max-width: 720px) {
    .legal { padding: 56px 0; }
    .legal h1 { font-size: 28px; }
}
