:root {
    --bg-dark: #0a0a1a;
    --bg-darker: #060612;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3a;
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.3);
    --secondary: #06b6d4;
    --accent: #a78bfa;
    --text-main: #ffffff;
    --text-muted: #9ca3c0;
    --text-subtle: #6b7099;
    --success: #4ade80;
    --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
    --gradient-text: linear-gradient(135deg, #a78bfa, #06b6d4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Label */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(167, 139, 250, 0.05);
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card.animate-in:nth-child(1) { transition-delay: 0s; }
.feature-card.animate-in:nth-child(2) { transition-delay: 0.1s; }
.feature-card.animate-in:nth-child(3) { transition-delay: 0.2s; }
.feature-card.animate-in:nth-child(4) { transition-delay: 0.3s; }
.feature-card.animate-in:nth-child(5) { transition-delay: 0.4s; }
.feature-card.animate-in:nth-child(6) { transition-delay: 0.5s; }
.feature-card.animate-in:nth-child(7) { transition-delay: 0.1s; }
.feature-card.animate-in:nth-child(8) { transition-delay: 0.2s; }
.feature-card.animate-in:nth-child(9) { transition-delay: 0.3s; }

.coming-feature.animate-in:nth-child(1) { transition-delay: 0.1s; }
.coming-feature.animate-in:nth-child(2) { transition-delay: 0.2s; }
.coming-feature.animate-in:nth-child(3) { transition-delay: 0.3s; }
.coming-feature.animate-in:nth-child(4) { transition-delay: 0.4s; }

/* ============ HEADER ============ */
header {
    padding: 1.25rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 26, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-download {
    background: var(--primary);
    color: white;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 2rem;
}

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

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.7;
}

.store-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #000;
    color: white;
    padding: 0.75rem 1.75rem 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: var(--transition);
    min-width: 175px;
}

.store-badge:hover {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.store-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-badge-text small {
    display: block;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.store-badge-text strong {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-subtle);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Image / Phone */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Phone Mockup */
.iphone-mockup {
    width: 280px;
    height: 570px;
    background: #000;
    border-radius: 44px;
    padding: 10px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.iphone-mockup .screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: var(--bg-dark);
}

.iphone-mockup .screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-mockup .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

/* ============ SOCIAL PROOF ============ */
.social-proof {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(255, 255, 255, 0.01);
}

.proof-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-subtle);
    font-size: 0.9rem;
    font-weight: 500;
}

.proof-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* ============ FEATURES ============ */
.features {
    padding: 8rem 0;
    position: relative;
}

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

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

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

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.icon-ai { background: rgba(6, 182, 212, 0.1); color: var(--secondary); }
.icon-lifestyle { background: rgba(74, 222, 128, 0.1); color: var(--success); }
.icon-meds { background: rgba(251, 146, 60, 0.1); color: #fb923c; }
.icon-report { background: rgba(167, 139, 250, 0.1); color: var(--accent); }
.icon-fitness { background: rgba(248, 113, 113, 0.1); color: #f87171; }
.icon-nutri { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.icon-tcc { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.icon-lib { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

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

/* ============ GAMIFICATION ============ */
.gamification {
    padding: 8rem 0;
    background: var(--bg-darker);
    position: relative;
}

.gamification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
}

.gamification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.3), transparent);
}

.gamification-flex {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.gamification-flex.reverse {
    flex-direction: row-reverse;
}

.levels-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.level-item:hover {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.05);
    transform: translateX(8px);
}

.level-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.level-info h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.level-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Check List */
.check-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.check-list li svg {
    color: var(--success);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============ PLANS COMING SOON ============ */
.plans-coming {
    padding: 8rem 0;
    position: relative;
}

.coming-soon-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 28px;
    border: 1px solid rgba(124, 58, 237, 0.15);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
}

.coming-soon-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.coming-soon-content {
    position: relative;
    z-index: 1;
}

.pulse-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    animation: pulse-ring 2.5s ease-in-out infinite;
    position: relative;
}

.pulse-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.15);
    animation: pulse-ring-outer 2.5s ease-in-out infinite;
}

.pulse-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(124, 58, 237, 0); }
}

@keyframes pulse-ring-outer {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0; }
}

.coming-soon-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.coming-soon-card > .coming-soon-content > p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.coming-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.coming-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.coming-feature:hover {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.05);
}

.coming-feature svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.coming-sub {
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-bottom: 1.5rem;
}

/* ============ CTA ============ */
.cta-section {
    padding: 4rem 0 8rem;
}

.cta-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cta-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-card .store-btns {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* ============ FOOTER ============ */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--bg-darker);
}

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

.footer-info .logo {
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-subtle);
    font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .section-title h2, .hero-content h2, .cta-card h2 {
        font-size: 2.2rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-flex, .gamification-flex, .gamification-flex.reverse {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .store-btns {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .check-list {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 9rem 0 4rem;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .section-title h2, .hero-content h2, .cta-card h2 {
        font-size: 1.9rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-links.open {
        display: flex;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .coming-features {
        grid-template-columns: 1fr;
    }
    .coming-soon-card {
        padding: 3rem 1.5rem;
    }
    .cta-card {
        padding: 3rem 1.5rem;
    }
    .store-btns {
        flex-direction: column;
        align-items: center;
    }
    .store-badge {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .proof-items {
        gap: 1.5rem;
    }
    .iphone-mockup {
        width: 240px;
        height: 490px;
    }
    .gamification-flex {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .feature-card {
        padding: 2rem 1.5rem;
    }
}
