/* CSS Variables - App Brand Colors */
:root {
    /* Brand Colors (from app) */
    --brand-primary: #FFFFFF;
    --brand-secondary: #2D5BE3;
    --brand-accent: #0732A2;
    
    /* Background Colors */
    --bg-primary: #0A0E1A;
    --bg-surface: #151B2E;
    --bg-surface-secondary: #1E2538;
    
    /* Text Colors */
    --text-primary: #E5E5E5;
    --text-secondary: #A1A1A1;
    --text-muted: #888888;
    
    /* Border Colors */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--brand-secondary);
    color: var(--brand-primary) !important;
    border-radius: 6px;
    font-weight: 500;
}

.nav-cta:hover {
    opacity: 1;
    background: var(--brand-accent);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements - Reusable class */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before,
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        /* Dust particles - scattered glowing dots - increased opacity for visibility */
        radial-gradient(circle at 15% 25%, rgba(75, 158, 235, 0.35) 1.5px, transparent 1.5px),
        radial-gradient(circle at 35% 45%, rgba(45, 91, 227, 0.33) 1px, transparent 1px),
        radial-gradient(circle at 55% 15%, rgba(75, 158, 235, 0.37) 1.5px, transparent 1.5px),
        radial-gradient(circle at 75% 65%, rgba(45, 91, 227, 0.31) 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, rgba(75, 158, 235, 0.34) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 35%, rgba(45, 91, 227, 0.36) 1px, transparent 1px),
        radial-gradient(circle at 45% 85%, rgba(75, 158, 235, 0.32) 1.5px, transparent 1.5px),
        radial-gradient(circle at 65% 5%, rgba(45, 91, 227, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 5% 55%, rgba(75, 158, 235, 0.33) 1.5px, transparent 1.5px),
        radial-gradient(circle at 95% 85%, rgba(45, 91, 227, 0.31) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(75, 158, 235, 0.36) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 70%, rgba(45, 91, 227, 0.34) 1px, transparent 1px),
        radial-gradient(circle at 30% 30%, rgba(75, 158, 235, 0.32) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 90%, rgba(45, 91, 227, 0.37) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(75, 158, 235, 0.33) 1.5px, transparent 1.5px),
        radial-gradient(circle at 20% 60%, rgba(45, 91, 227, 0.35) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(75, 158, 235, 0.31) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 10%, rgba(45, 91, 227, 0.34) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, rgba(75, 158, 235, 0.36) 1.5px, transparent 1.5px),
        radial-gradient(circle at 12% 40%, rgba(45, 91, 227, 0.32) 1px, transparent 1px);
    background-size: 
        300% 300%, 280% 280%, 320% 320%, 290% 290%, 310% 310%,
        300% 300%, 280% 280%, 320% 320%, 290% 290%, 310% 310%,
        300% 300%, 280% 280%, 320% 320%, 290% 290%, 310% 310%,
        300% 300%, 280% 280%, 320% 320%, 290% 290%, 310% 310%;
    background-position:
        15% 25%, 35% 45%, 55% 15%, 75% 65%, 25% 75%,
        85% 35%, 45% 85%, 65% 5%, 5% 55%, 95% 85%,
        10% 10%, 90% 70%, 30% 30%, 70% 90%, 50% 50%,
        20% 60%, 80% 20%, 40% 10%, 60% 80%, 12% 40%;
    animation: particleDrift 25s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleDrift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 1;
    }
    20% {
        transform: translate(1.5%, -0.8%);
        opacity: 0.9;
    }
    40% {
        transform: translate(-0.8%, 1.5%);
        opacity: 0.95;
    }
    60% {
        transform: translate(0.8%, 0.8%);
        opacity: 0.92;
    }
    80% {
        transform: translate(-1%, 1.2%);
        opacity: 0.93;
    }
}

/* Ensure content stays above animated background */
.hero-content,
.particle-bg > * {
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--brand-secondary);
    color: var(--brand-primary);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 7rem 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

/* Features Section */
.features-section {
    background: var(--bg-surface);
    padding-top: 4.5rem; /* Reduced from 7rem to tighten gap after hero */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(45, 91, 227, 0.15);
}

.feature-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    color: var(--brand-secondary);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    animation: iconPulse 0.6s ease-in-out;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--brand-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Use Cases Section */
.use-cases-section {
    background: var(--bg-primary);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.use-case {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 91, 227, 0.3);
    box-shadow: 0 8px 24px rgba(45, 91, 227, 0.1);
}

.use-case-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--brand-primary);
}

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

/* Support Section */
.support-section {
    background: var(--bg-surface);
}

.support-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
}

.faq-item {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(45, 91, 227, 0.3);
    transform: translateX(4px);
}

.faq-item h4 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--brand-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-item a {
    text-decoration: underline;
}

.contact-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-email {
    font-size: 1.25rem;
}

.contact-email a {
    color: var(--brand-secondary);
    font-weight: 600;
}

/* Download Section */
.download-section {
    background: var(--bg-primary);
    text-align: center;
}

.download-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.download-badge {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-badge img {
    height: 64px;
    filter: invert(1) brightness(2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-badge:hover {
    transform: scale(1.05);
}

.download-badge:hover img {
    transform: scale(1.02);
}

.download-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 48px;
    width: 48px;
    border-radius: 8px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--brand-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--brand-primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    color: var(--brand-secondary);
    transform: translateY(-2px);
}

/* Make email icon slightly more prominent */
.footer-social a[href^="mailto:"] {
    width: 44px;
    height: 44px;
}

.footer-social a[href^="mailto:"] svg {
    width: 26px;
    height: 26px;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

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

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

/* Animations */
@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.1); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .features-section {
        padding-top: 3rem; /* Reduced from 4rem to tighten gap after hero on mobile */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }
    
    .use-case {
        padding: 2rem 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-brand {
        gap: 0.5rem;
    }
    
    .nav-title {
        font-size: 1.25rem;
    }
    
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-card h3 {
        font-size: 1.25rem;
    }
    
    .download-links {
        flex-direction: column;
        align-items: center;
    }
}
