@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Refined Dark Premium */
    --primary: #0f172a; 
    --primary-light: #1e293b;
    --accent: #10b981; 
    --accent-glow: rgba(16, 185, 129, 0.4);
    --secondary: #6366f1; 
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --bg-main: #020617; 
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --hero-title-gradient: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    --header-scrolled-bg: rgba(2, 6, 23, 0.85);
    --store-btn-bg: #000000;
    --store-btn-text: #ffffff;
    
    /* Mesh Gradients */
    --mesh-1: radial-gradient(at 0% 0%, hsla(160, 84%, 39%, 0.15) 0px, transparent 50%);
    --mesh-2: radial-gradient(at 100% 100%, hsla(230, 84%, 63%, 0.1) 0px, transparent 50%);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadow */
    --glow-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* Light Theme Variables */
body.light-theme {
    --primary: #f8fafc;
    --primary-light: #e2e8f0;
    --accent: #059669;
    --accent-glow: rgba(5, 150, 105, 0.25);
    --secondary: #4f46e5;
    --text-main: #0f172a;
    --text-dim: #475569;
    --bg-main: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.1);
    --hero-title-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --header-scrolled-bg: rgba(241, 245, 249, 0.85);
    --store-btn-bg: #ffffff;
    --store-btn-text: #0f172a;
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-dim);
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 1rem 0;
    background: var(--header-scrolled-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

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

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--accent);
    color: var(--accent);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 180px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

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

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-mockup {
    position: relative;
}

.phone-frame {
    width: 320px;
    height: 680px;
    background: transparent;
    border: none;
    border-radius: 40px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-main);
}

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

/* Features */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.feature-card {
    padding: 3rem 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Screenshots Showcase - New Perspective Layout */
.screenshots {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.showcase-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 4rem 0;
}

.showcase-item {
    width: 300px;
    height: auto;
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

.showcase-item:hover {
    transform: translateY(-10px);
}

/* Privacy */
.privacy {
    padding: 100px 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.privacy-card {
    padding: 2rem;
}

.privacy-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Download Section */
.download-section {
    padding: 100px 0;
    text-align: center;
}

.download-box {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.download-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.store-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.store-btn {
    background: var(--store-btn-bg);
    color: var(--store-btn-text);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.store-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.store-btn i {
    font-size: 2rem;
}

.store-btn span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.7;
}

.store-btn strong {
    display: block;
    font-size: 1.2rem;
}

.store-btn.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.footer-brand p {
    margin: 1.5rem 0;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-email {
    color: var(--text-main) !important;
    text-decoration: none;
    font-weight: 500;
}

.footer-email:hover {
    color: var(--accent) !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Responsive Refinements */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-mockup {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .phone-frame {
        width: 280px;
        height: 580px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    
    .nav-links.mobile-active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero {
        padding: 130px 0 50px;
    }

    .showcase-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 1.5rem 0.5rem;
        gap: 1.25rem;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .showcase-grid::-webkit-scrollbar {
        display: none;
    }

    .showcase-item {
        flex: 0 0 250px;
        scroll-snap-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .download-box h2 {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .showcase-item {
        flex: 0 0 220px;
    }
}