/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --primary: #10B981;
    --primary-light: #34D399;
    --primary-dark: #059669;
    --accent: #00CEC9;
    --accent-light: #81ECEC;
    --success: #00B894;
    --warning: #FDCB6E;
    --error: #FF6B6B;
    --info: #74B9FF;

    --bg: #0A0F14;
    --bg-light: #111827;
    --card: #1F2937;
    --card-light: #374151;
    --text: #F9FAFB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border: #374151;

    --feature-orange: #F39C12;
    --feature-blue: #3498DB;
    --feature-pink: #E84393;
    --feature-green: #00B894;
    --feature-yellow: #F1C40F;
    --feature-red: #FF7675;
    --feature-purple: #8E44AD;

    --gold: #FACC15;
    --gold-dark: #CA8A04;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(16, 185, 129, 0.2);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.15);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--primary-light);
    background: rgba(16, 185, 129, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--text);
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -15%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    top: 30%;
    left: 20%;
    opacity: 0.15;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1.5px, transparent 1.5px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation: pulse 2.5s infinite;
}

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

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.1));
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-stat-divider {
    width: 1.5px;
    height: 44px;
    background: var(--border);
}

.hero-actions {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 40px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.45);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(202, 138, 4, 0.25);
}

.btn-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(202, 138, 4, 0.4);
}

.btn-lg {
    padding: 22px 48px;
    font-size: 1.2rem;
    border-radius: 22px;
}

/* ===== PHONE MOCKUP ===== */
.hero-mockup {
    flex: 0.8;
    position: relative;
    animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 650px;
    margin: 0 auto;
    background: #000;
    border-radius: 44px;
    padding: 12px;
    border: 4px solid #1f2937;
    overflow: hidden;
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.6),
        0 0 40px rgba(16, 185, 129, 0.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 32px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 34px;
}

.phone-glow {
    position: absolute;
    inset: -60px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    z-index: -1;
    animation: glowPulse 5s infinite ease-in-out;
}

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

/* ===== SECTION SHARED STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.15);
    margin-bottom: 24px;
}

.section-badge.accent {
    background: rgba(0, 206, 201, 0.1);
    color: var(--accent-light);
    border-color: rgba(0, 206, 201, 0.15);
}

.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

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

/* ===== FEATURES ===== */
.features {
    padding: 140px 0;
    background: linear-gradient(to bottom, var(--bg), var(--bg-light));
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px);
    background: var(--card-light);
    border-color: rgba(16, 185, 129, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
}

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

/* Individual colors for features */
.feature-card[data-color] .feature-icon {
    background: color-mix(in srgb, attr(data-color color), transparent 85%);
}

/* ===== GAMIFICATION ===== */
.gamification {
    padding: 140px 0;
    background: var(--bg-light);
    position: relative;
}

.gamification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.gamification-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gamification-card:hover {
    transform: translateY(-12px);
    background: var(--card-light);
    border-color: rgba(0, 206, 201, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.gamification-icon {
    font-size: 3.5rem;
    margin-bottom: 28px;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.gamification-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.gamification-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PREMIUM ===== */
.premium {
    padding: 140px 0;
    background: var(--bg);
}

.premium-card {
    position: relative;
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.05), transparent 50%),
                var(--card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.15);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.premium-content {
    position: relative;
    padding: 80px 60px;
    text-align: center;
    z-index: 2;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    padding: 10px 28px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 32px;
}

.premium-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold), #FDE047);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.2));
}

.premium-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 56px;
    text-align: left;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== DOWNLOAD CTA ===== */
.download {
    padding: 140px 0;
    background: linear-gradient(to top, var(--bg), var(--bg-light));
    position: relative;
    overflow: hidden;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.download h2 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.download p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 56px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 360px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-group h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.footer-links-group a {
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.footer-links-group a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 140px 0 100px;
    background: var(--bg);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 40px;
    transition: transform 0.3s;
}

.legal-back:hover {
    transform: translateX(-8px);
}

.legal-header {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.legal-header p {
    color: var(--text-muted);
    font-weight: 600;
}

.legal-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 48px 0 24px;
    color: #fff;
}

.legal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--primary-light);
}

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

.legal-content ul {
    margin-bottom: 32px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
}

.legal-content a {
    color: var(--primary-light);
    text-decoration: underline;
}

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 24px;
        right: 24px;
        background: var(--card);
        padding: 32px;
        border-radius: 24px;
        flex-direction: column;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
        z-index: 1000;
    }
    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.4s ease-out;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .premium-content { padding: 48px 24px; }
}
