:root {
    --bg-primary: #090b11;
    --bg-secondary: #111420;
    --bg-card: rgba(22, 26, 43, 0.6);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.15);
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

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

/* Background elements */
.glowing-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.glow-top-right {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
}

.glow-bottom-left {
    bottom: 20%;
    left: -200px;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 11, 17, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 20%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

/* Sections Base */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    color: var(--accent-indigo);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    width: 172px;
    height: 57px;
    background: url('../images/app-store-badge.svg') no-repeat center center;
    background-size: contain;
    border-radius: 12px;
    transition: var(--transition);
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.secondary-cta {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Phone Mockup */
.phone-mockup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.phone-mockup-wrapper::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--accent-indigo-glow) 0%, transparent 70%);
    z-index: -1;
}

.phone-mockup {
    width: 100%;
    max-width: 290px;
    box-sizing: border-box;
    background: #000000;
    border: 12px solid #1e293b;
    border-radius: 36px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Remove speaker/dynamic island since screenshots already contain it */
.phone-mockup::after {
    display: none;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 471 / 1024;
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 24px;
    box-sizing: border-box;
}

/* Custom theme backgrounds */
.phone-screen.theme-dashboard {
    background-color: #050505;
}

.phone-screen.theme-accounts {
    background-color: #eeeef3;
}

.phone-screen.theme-graph {
    background-color: #000000;
}

.phone-screen.theme-calendar {
    background-color: #000000;
}

.phone-screen.theme-milestones {
    background-color: #ffffff;
}

.phone-screen.theme-settings {
    background-color: #ededf1;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.phone-screen img:hover {
    transform: scale(1.02);
}

/* Feature Showcases Grid */
.features-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) .feature-text {
    direction: ltr; /* Reset text direction */
}

.feature-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.tag-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.tag-teal {
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.tag-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.tag-blue {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tag-coral {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.feature-details {
    list-style: none;
}

.feature-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-details li svg {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Privacy Section */
.privacy-section {
    padding: 80px 24px;
}

.privacy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.privacy-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.privacy-icon-wrapper {
    display: flex;
    justify-content: center;
}

.privacy-shield {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.02) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(16, 185, 129, 0.3);
    animation: pulseShield 4s infinite alternate ease-in-out;
}

.privacy-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.privacy-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.privacy-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.privacy-point {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

@keyframes pulseShield {
    0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1); }
    100% { transform: scale(1.04); box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.05); }
}

/* Call to Action (Bottom CTA) */
.cta-section {
    text-align: center;
    padding: 120px 24px;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.cta-container::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-indigo-glow) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.cta-app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 32px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    background: #06070a;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-logo img {
    height: 28px;
    width: auto;
    opacity: 0.8;
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

.footer-links a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding-top: 120px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .feature-row:nth-child(even) {
        direction: ltr;
    }
    
    .feature-details {
        max-width: 540px;
        margin: 0 auto;
        text-align: left;
    }
    
    .feature-details li {
        justify-content: flex-start;
    }
    
    .privacy-card {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
        text-align: center;
    }
    
    .privacy-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .privacy-points {
        grid-template-columns: 1fr;
        justify-items: start;
        max-width: 280px;
        margin: 0 auto;
        gap: 14px;
    }
    
    .privacy-point {
        justify-content: flex-start;
        width: 100%;
    }
    
    .cta-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 580px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
