/* Custom Properties & Reset */
:root {
    --bg-dark: #09090b;
    --bg-card: rgba(18, 18, 24, 0.7);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --primary: #3f8cff; /* Premium Royal Blue (App Theme) */
    --primary-glow: rgba(63, 140, 255, 0.35);
    --accent: #10b981; /* Emerald Green (App Theme) */
    --accent-glow: rgba(16, 185, 129, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --font-outfit: 'Outfit', sans-serif;
    --font-jakarta: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-jakarta);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
}

.blob-1 {
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.blob-2 {
    top: 600px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: var(--accent);
}

/* Header & Navigation */
header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    background: linear-gradient(135deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

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

/* Header Actions Group (Re-aligned on mobile) */
.header-actions-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 200;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
}

/* Language Selector Styles */
.lang-selector {
    position: relative;
}

.lang-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 9999px;
    font-family: var(--font-jakarta);
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    min-width: 160px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 150;
}

.lang-dropdown.show {
    display: flex;
}

.lang-btn {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(63, 140, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1a68d9);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero Section */
.hero {
    padding: 60px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(63, 140, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(63, 140, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
    line-height: 1.6;
}

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

/* Store Buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    background: #000;
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap; /* Prevent button wrapping */
}

.store-btn i {
    font-size: 28px;
    margin-right: 14px;
    color: #fff;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-btn-text span {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text strong {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 600;
}

.store-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 140, 255, 0.15);
}

/* Phone Mockup & Slider Styling */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    border: 12px solid #1c1c1f;
    border-radius: 42px;
    background: #000;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.9);
}

.screen-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.phone-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    z-index: 2;
}

.screenshot-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.screenshot-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.screenshot-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.screenshot-caption-container {
    margin-top: 20px;
    text-align: center;
    min-height: 48px;
    max-width: 280px;
}

.screenshot-caption {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.4;
}

/* Features Section */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-outfit);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(63, 140, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(63, 140, 255, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(63, 140, 255, 0.2);
}

.feature-card h3 {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* AI Coach Detail Section (#about) */
.about-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: rgba(5, 5, 8, 0.4);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-screenshot {
    width: 270px;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-title {
    font-family: var(--font-outfit);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.about-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.about-feat-item i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 16px;
}

/* Gallery Section (3 App Screenshots) */
.gallery-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(63, 140, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.gallery-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.gallery-caption {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

/* Download CTA Section */
.download-cta {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(63, 140, 255, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--border);
    text-align: center;
}

.download-container {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-cta h2 {
    font-family: var(--font-outfit);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.download-cta p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Download Modal Styling (Glassmorphism design) */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.download-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px 40px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.download-modal.show .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-family: var(--font-outfit);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: none;
}

.modal-btn i {
    font-size: 20px;
}

.modal-btn-ios {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.modal-btn-ios:hover {
    background: #fff;
    transform: translateY(-2px);
}

.modal-btn-android {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.modal-btn-android:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Legal Documents Page Styling */
.legal-container {
    max-width: 800px;
    padding: 60px 24px 100px;
}

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

.legal-header h1 {
    font-family: var(--font-outfit);
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.legal-content h2 {
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-content p, .legal-content li {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
    background: #050507;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    padding-bottom: 60px;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 320px;
    font-size: 14px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-links-group h4 {
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* Responsive & Mobile Optimization (Breakpoints) */
@media (max-width: 1024px) {
    /* Hide desktop nav menu earlier to prevent long translations from wrapping in header */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: rgba(9, 9, 11, 0.98);
        border-left: 1px solid var(--border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 80px 40px;
        gap: 24px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 120;
    }

    .nav-menu.show {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(255,255,255,0.1);
        border-color: var(--primary);
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 968px) {
    /* Hero Responsive */
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }
    
    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Features Grid */
    .features {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* About Section */
    .about-section {
        padding: 80px 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-content {
        align-items: center;
    }
    
    .about-features {
        align-items: flex-start;
    }

    /* Gallery Grid */
    .gallery-section {
        padding: 80px 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gallery-img {
        max-width: 200px;
    }

    /* Download CTA */
    .download-cta {
        padding: 80px 0;
    }
    
    .download-cta h2 {
        font-size: 36px;
    }
    
    .download-cta p {
        font-size: 16px;
    }

    /* Footer Responsive */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links-group {
        align-items: center;
    }
}

/* Adjustments for very narrow screens (e.g. iPhone SE, 320px+) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .about-title {
        font-size: 28px;
    }
    
    .legal-header h1 {
        font-size: 30px;
    }
    
    .lang-trigger {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .header-actions-group {
        gap: 8px;
    }
}
