/* ============================================
   Battery Health Checker — v1.0.0 Website
   Design inspired by Cryptix dark landing page
   Primary: #2CCF6D | Dark-first, browser theme
   ============================================ */

/* ---------- CSS Variables (Dark Default) ---------- */
:root {
    --primary: #2CCF6D;
    --primary-dark: #22a857;
    --primary-light: #3ddb7e;
    --primary-glow: rgba(44, 207, 109, 0.15);
    --primary-glow-strong: rgba(44, 207, 109, 0.25);

    /* Dark theme (default) */
    --bg-body: #0a0e14;
    --bg-section: #0d1117;
    --bg-section-alt: #0a0e14;
    --bg-card: rgba(17, 24, 32, 0.7);
    --bg-card-hover: rgba(22, 30, 40, 0.85);
    --bg-nav: rgba(10, 14, 20, 0.85);
    --bg-nav-scrolled: rgba(10, 14, 20, 0.95);
    --bg-input: rgba(22, 30, 40, 0.6);

    --text-primary: #f0f2f5;
    --text-secondary: #8b949e;
    --text-muted: #545d68;
    --text-on-primary: #000000;

    --border-color: rgba(44, 207, 109, 0.08);
    --border-card: rgba(44, 207, 109, 0.1);
    --border-card-hover: rgba(44, 207, 109, 0.25);
    --border-nav: rgba(255, 255, 255, 0.06);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(44, 207, 109, 0.08);
    --shadow-glow: 0 0 40px rgba(44, 207, 109, 0.12);
    --shadow-btn: 0 4px 20px rgba(44, 207, 109, 0.25);
    --shadow-btn-hover: 0 8px 36px rgba(44, 207, 109, 0.4);
}

/* ---------- Light Theme ---------- */
@media (prefers-color-scheme: light) {
    :root:not(.dark-theme) {
        --bg-body: #f8fafb;
        --bg-section: #ffffff;
        --bg-section-alt: #f2f5f7;
        --bg-card: rgba(255, 255, 255, 0.9);
        --bg-card-hover: rgba(255, 255, 255, 1);
        --bg-nav: rgba(255, 255, 255, 0.88);
        --bg-nav-scrolled: rgba(255, 255, 255, 0.96);
        --bg-input: rgba(241, 243, 245, 0.8);

        --text-primary: #1a1e24;
        --text-secondary: #5a6370;
        --text-muted: #9ca3af;
        --text-on-primary: #ffffff;

        --border-color: rgba(0, 0, 0, 0.06);
        --border-card: rgba(0, 0, 0, 0.08);
        --border-card-hover: rgba(44, 207, 109, 0.3);
        --border-nav: rgba(0, 0, 0, 0.06);

        --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
        --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
        --shadow-glow: 0 0 30px rgba(44, 207, 109, 0.08);
        --shadow-btn: 0 4px 16px rgba(44, 207, 109, 0.2);
        --shadow-btn-hover: 0 8px 28px rgba(44, 207, 109, 0.35);
    }
}

/* Manual theme overrides */
:root.light-theme {
    --bg-body: #f8fafb;
    --bg-section: #ffffff;
    --bg-section-alt: #f2f5f7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-nav: rgba(255, 255, 255, 0.88);
    --bg-nav-scrolled: rgba(255, 255, 255, 0.96);
    --bg-input: rgba(241, 243, 245, 0.8);

    --text-primary: #1a1e24;
    --text-secondary: #5a6370;
    --text-muted: #9ca3af;
    --text-on-primary: #ffffff;

    --border-color: rgba(0, 0, 0, 0.06);
    --border-card: rgba(0, 0, 0, 0.08);
    --border-card-hover: rgba(44, 207, 109, 0.3);
    --border-nav: rgba(0, 0, 0, 0.06);

    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(44, 207, 109, 0.08);
    --shadow-btn: 0 4px 16px rgba(44, 207, 109, 0.2);
    --shadow-btn-hover: 0 8px 28px rgba(44, 207, 109, 0.35);
}

:root.dark-theme {
    --bg-body: #0a0e14;
    --bg-section: #0d1117;
    --bg-section-alt: #0a0e14;
    --bg-card: rgba(17, 24, 32, 0.7);
    --bg-card-hover: rgba(22, 30, 40, 0.85);
    --bg-nav: rgba(10, 14, 20, 0.85);
    --bg-nav-scrolled: rgba(10, 14, 20, 0.95);
    --bg-input: rgba(22, 30, 40, 0.6);

    --text-primary: #f0f2f5;
    --text-secondary: #8b949e;
    --text-muted: #545d68;
    --text-on-primary: #000000;

    --border-color: rgba(44, 207, 109, 0.08);
    --border-card: rgba(44, 207, 109, 0.1);
    --border-card-hover: rgba(44, 207, 109, 0.25);
    --border-nav: rgba(255, 255, 255, 0.06);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(44, 207, 109, 0.08);
    --shadow-glow: 0 0 40px rgba(44, 207, 109, 0.12);
    --shadow-btn: 0 4px 20px rgba(44, 207, 109, 0.25);
    --shadow-btn-hover: 0 8px 36px rgba(44, 207, 109, 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
    background: var(--primary);
    color: var(--text-on-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- Layout ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Section Label ---------- */
.section-label {
    display: inline-block;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.15);
    border-radius: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.section-title p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Navigation ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-nav);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: var(--bg-nav-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--border-card);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-switch {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    position: relative;
}

.theme-switch:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

.theme-switch svg {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme icon visibility */
.sun-icon { opacity: 1; transform: rotate(0) scale(1); }
.moon-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

@media (prefers-color-scheme: light) {
    :root:not(.dark-theme):not(.light-theme) .sun-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
    :root:not(.dark-theme):not(.light-theme) .moon-icon { opacity: 1; transform: rotate(0) scale(1); }
}

:root.light-theme .sun-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
:root.light-theme .moon-icon { opacity: 1; transform: rotate(0) scale(1); }
:root.dark-theme .sun-icon { opacity: 1; transform: rotate(0) scale(1); }
:root.dark-theme .moon-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--text-on-primary);
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    box-shadow: var(--shadow-btn);
    transform: translateY(-1px);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

/* Ambient glow orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(44, 207, 109, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 207, 109, 0.04) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

.hero-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.15);
    color: var(--primary);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: 4.25rem;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, #5ce89e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: var(--text-on-primary);
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

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

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary svg {
    width: 20px;
    height: 20px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

/* Hero app screenshot */
.hero-screenshot {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-screenshot img {
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card-hover), var(--shadow-glow);
    transition: all 0.5s ease;
}

.hero-screenshot:hover img {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover), 0 0 60px rgba(44, 207, 109, 0.15);
}

/* Gradient line under hero screenshot */
.hero-glow-line {
    width: 60%;
    height: 2px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
    margin-top: -1px;
    border-radius: 2px;
}

/* ========== MARQUEE / TRUST STRIP ========== */
.marquee-section {
    padding: 2rem 0;
    overflow: hidden;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    user-select: none;
}

.marquee-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ========== FEATURES SECTION ========== */
.features {
    padding: 120px 0;
    background: var(--bg-section);
    position: relative;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.features-header-text h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-header-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-glow-strong);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== APP SHOWCASE ========== */
.showcase {
    padding: 120px 0;
    background: var(--bg-section-alt);
    position: relative;
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.showcase-image {
    position: relative;
}

.showcase-image img {
    border-radius: 16px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-card);
    transition: all 0.5s ease;
}

.showcase-image:hover img {
    box-shadow: var(--shadow-card-hover), var(--shadow-glow);
    transform: translateY(-6px);
}

.showcase-text h2 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.showcase-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.showcase-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-section);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
}

.step-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== DOWNLOAD SECTION ========== */
.download-section {
    padding: 120px 0;
    background: var(--bg-section-alt);
    position: relative;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.download-card.featured {
    border-color: rgba(44, 207, 109, 0.2);
    background: linear-gradient(180deg, var(--primary-glow) 0%, var(--bg-card) 100%);
}

.download-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.download-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.download-card .card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.download-card .btn-primary,
.download-card .btn-secondary {
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
}

.checksum-area {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checksum-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.checksum-btn:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.checksum-btn svg {
    width: 13px;
    height: 13px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.12);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Play Store badge */
.play-store-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.play-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.play-store-badge img {
    height: 50px;
    width: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* ========== WHY CHOOSE US ========== */
.why-section {
    padding: 120px 0;
    background: var(--bg-section);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.why-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.why-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-glow);
    border: 1px solid rgba(44, 207, 109, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.why-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== FAQ SECTION ========== */
.faq {
    padding: 120px 0;
    background: var(--bg-section-alt);
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-card-hover);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(44, 207, 109, 0.06);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-glow);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
    padding-right: 1rem;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle svg {
    color: var(--text-on-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 1.75rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
    border-top: 1px solid var(--border-color);
    margin: 0 1.75rem;
    padding: 1.25rem 0 1.5rem;
}

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

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(44, 207, 109, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-inner h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-inner p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hosting promo tip */
.hosting-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.hosting-tip:hover {
    border-color: var(--border-card-hover);
    background: var(--bg-card-hover);
}

.hosting-tip .tip-icon {
    font-size: 1.1rem;
}

.hosting-tip a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.hosting-tip a:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-on-primary);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

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

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(44, 207, 109, 0.1); }
    50% { box-shadow: 0 0 40px rgba(44, 207, 109, 0.2); }
}

/* Scroll animation utility */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.25rem;
    }

    .section-title h2,
    .features-header-text h2,
    .showcase-text h2,
    .cta-inner h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links, .nav-right .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-nav-scrolled);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-card);
        border-radius: 0 0 16px 16px;
        box-shadow: var(--shadow-card);
        gap: 0.25rem;
    }

    .nav-links.active a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
        text-align: center;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features, .showcase, .how-it-works,
    .download-section, .why-section, .faq, .cta-banner {
        padding: 80px 0;
    }

    .features-grid, .steps-grid, .download-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .showcase-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .section-title h2,
    .features-header-text h2,
    .showcase-text h2,
    .cta-inner h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-title h2,
    .features-header-text h2,
    .showcase-text h2,
    .cta-inner h2 {
        font-size: 1.75rem;
    }

    .showcase-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .stat-item {
        text-align: center;
    }
}

/* ---------- Accessibility ---------- */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.theme-switch:focus-visible,
.nav-cta:focus-visible,
.checksum-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Skip smooth transitions for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Legal Page Styles ---------- */
.legal-page {
    padding: 120px 0 80px;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

/* Ambient glow for legal page */
.legal-page::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow-strong) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(80px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 2;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.legal-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.legal-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-card);
}

.legal-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.legal-content ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.legal-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
    border-bottom: 1px dashed var(--primary-glow-strong);
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-light);
    border-bottom-style: solid;
    border-bottom-color: var(--primary);
}

.legal-content .last-updated {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-card);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 100px 0 60px;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
    
    .legal-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .legal-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
}

/* ---------- Konami Code Easter Egg ---------- */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.konami-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.konami-content {
    background: var(--bg-card);
    border: 1px solid var(--border-card-hover);
    box-shadow: 0 0 60px rgba(44, 207, 109, 0.2), var(--shadow-card-hover);
    padding: 4rem 3rem;
    border-radius: 28px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.konami-overlay.active .konami-content {
    transform: scale(1) translateY(0);
}

.konami-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 207, 109, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.konami-japanese {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(44, 207, 109, 0.3);
    font-family: 'Outfit', 'Inter', sans-serif;
    animation: textPulse 2s infinite alternate;
}

@keyframes textPulse {
    0% { text-shadow: 0 0 15px rgba(44, 207, 109, 0.2); }
    100% { text-shadow: 0 0 30px rgba(44, 207, 109, 0.5); }
}

.konami-english {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

.konami-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.konami-close-btn:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.konami-close-btn svg {
    width: 14px;
    height: 14px;
}


