/* Location Changer - Advanced SEO Optimized Styles */
/* Critical rendering path optimized for Core Web Vitals */

:root {
    --primary-gradient: linear-gradient(135deg, #6C63FF 0%, #3B82F6 100%);
    --dark-bg: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --primary-purple: #6C63FF;
    --primary-blue: #3B82F6;
    --shadow-primary: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

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

/* Performance optimized font loading */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-display: swap;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Critical CSS for above-the-fold content */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: background;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* Hero section - critical for LCP */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s infinite ease-in-out;
    will-change: transform, opacity;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

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

.app-store-btn:hover {
    background: #1a1a1a;
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.apple-logo {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.app-icon-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
}

.hero-app-icon {
    width: 160px;
    height: 160px;
    border-radius: 32px;
    box-shadow: var(--shadow-primary), var(--shadow-glow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.hero-app-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), 0 15px 40px rgba(108, 99, 255, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Main content structure */
main {
    padding-top: 80px;
}

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

/* Section styling */
section {
    padding: 6rem 0;
    position: relative;
}

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

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

/* Features grid - optimized for performance */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-purple);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 18px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    font-size: 1rem;
    line-height: 1.6;
}

/* How it works section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.step p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Use cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.use-case {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.use-case:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-purple);
    transform: translateY(-8px);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.use-case h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.use-case p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Comparison table - SEO optimized */
.comparison-table {
    background: var(--glass-bg);
    border-radius: 24px;
    overflow: hidden;
    margin-top: 4rem;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.table-header {
    background: var(--primary-gradient);
    padding: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0;
}

.comparison-cell {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.comparison-cell:nth-child(4n+2),
.comparison-cell:nth-child(4n+3),
.comparison-cell:nth-child(4n+4) {
    text-align: center;
    justify-content: center;
}

.check {
    color: #4ade80;
    font-size: 1.4rem;
    font-weight: 700;
}

.cross {
    color: #f87171;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Screenshots section */
.screenshots-container {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.screenshot {
    min-width: 220px;
    height: 440px;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2e);
    border-radius: 32px;
    padding: 18px;
    border: 2px solid #333;
    position: relative;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.screenshot:hover {
    transform: scale(1.05);
}

.screenshot-content {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
}

/* FAQ section - SEO critical */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 4rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-purple);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer.active {
    display: block;
}

.faq-toggle {
    transition: transform 0.3s ease;
    color: var(--primary-purple);
    font-size: 1.2rem;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* CTA section */
.cta {
    text-align: center;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.15), rgba(59, 130, 246, 0.15));
    border-radius: 32px;
    padding: 5rem 3rem;
    margin: 4rem 0;
    border: 1px solid var(--glass-border);
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.urgency-text {
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.copyright {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Performance optimization classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive design - mobile first approach */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 4rem 0 3rem;
        min-height: auto;
    }

    .hero-app-icon {
        width: 130px;
        height: 130px;
        border-radius: 28px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .use-cases {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-cell {
        justify-content: flex-start;
        text-align: left;
    }

    .screenshots-container {
        gap: 1.5rem;
    }

    .screenshot {
        min-width: 180px;
        height: 360px;
    }

    section {
        padding: 4rem 0;
    }

    .cta {
        padding: 3rem 2rem;
        border-radius: 24px;
    }

    .footer-links {
        gap: 2rem;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero-app-icon {
        width: 110px;
        height: 110px;
        border-radius: 24px;
    }

    .app-store-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    header, .app-store-btn, .cta, footer {
        display: none;
    }
}

/* Critical loading states */
.loading {
    opacity: 0;
    transform: translateY(20px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}