/* ===== Base ===== */
html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    padding-top: 64px;
}

/* ===== Color tokens ===== */
:root {
    --stm-green:       #2d7a3a;
    --stm-green-dark:  #1f5c2a;
    --stm-green-light: #e8f5e9;
    --stm-orange:      #e8622a;
}

.stm-text-primary { color: var(--stm-green) !important; }
.stm-bg-light     { background-color: var(--stm-green-light); }

/* ===== Navbar ===== */
.stm-navbar {
    background: linear-gradient(135deg, var(--stm-green-dark) 0%, var(--stm-green) 100%);
    padding: 0.75rem 0;
}

.stm-navbar .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.stm-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.stm-navbar .nav-link:hover,
.stm-navbar .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

/* ===== Hero ===== */
.stm-hero {
    background: linear-gradient(135deg, #1f5c2a 0%, #2d7a3a 50%, #3a9e4b 100%);
    min-height: calc(100vh - 64px);
    padding: 80px 0 60px;
}

.text-white-75 { color: rgba(255,255,255,0.75); }

.stm-badge-free {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem !important;
}

.stm-btn-primary {
    background: var(--stm-orange);
    border-color: var(--stm-orange);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}
.stm-btn-primary:hover {
    background: #c9521f;
    border-color: #c9521f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,98,42,0.35);
}

/* Phone mock in hero */
.hero-phone-mock {
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone-frame {
    width: 220px;
    height: 400px;
    background: rgba(255,255,255,0.12);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.phone-screen { text-align: center; }
.hero-icon {
    font-size: 72px;
    color: rgba(255,255,255,0.9);
}

/* ===== Stats ===== */
.stm-stats { background: #fff; }
.stat-item { padding: 1rem; }
.stat-icon {
    font-size: 1.8rem;
    color: var(--stm-green);
    margin-bottom: 0.5rem;
}
.stat-item h3 { font-size: 1.8rem; }

/* ===== Sections ===== */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ===== Feature Cards ===== */
.feature-card {
    border-radius: 12px !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45,122,58,0.12) !important;
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Sports Grid ===== */
.sport-item {
    background: #f8f9fa;
    transition: background 0.2s, transform 0.2s;
    cursor: default;
}
.sport-item:hover {
    background: var(--stm-green-light);
    transform: translateY(-2px);
}
.sport-emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 0.5rem; }

/* ===== Download Section ===== */
.stm-download-section {
    background: linear-gradient(135deg, var(--stm-green-dark) 0%, var(--stm-green) 100%);
}
.download-btn {
    display: flex;
    align-items: center;
    border-radius: 12px;
    min-width: 160px;
    text-align: left;
}
.download-btn i { color: #333; }

/* ===== Footer ===== */
.stm-footer {
    background: #1a1a2e;
}
.footer-link:hover { color: #fff !important; }

/* ===== Policy Pages ===== */
.policy-header {
    background: linear-gradient(135deg, var(--stm-green-dark) 0%, var(--stm-green) 100%);
    margin-top: -1px;
}

.stm-alert {
    background: var(--stm-green-light);
    border: 1px solid #b2dfb2;
    color: #1f5c2a;
    border-radius: 8px;
}

.contact-box {
    background: #f8fdf9;
    border: 1px solid #c8e6c9;
}

.stm-link {
    color: var(--stm-green);
    text-decoration: none;
}
.stm-link:hover {
    color: var(--stm-green-dark);
    text-decoration: underline;
}

/* ===== About Page ===== */
.about-icon-wrap {
    width: 80px;
    height: 80px;
    background: var(--stm-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.info-item { padding: 0.5rem 0; }

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .stm-hero { padding: 60px 0 40px; min-height: auto; }
    .phone-frame { width: 160px; height: 290px; border-radius: 26px; }
    .hero-icon { font-size: 52px; }
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
}
