/* Landing Page Styles - Combined Theme (Dark Hero + Light Sections) */

:root {
    /* Dark Hero Theme */
    --hero-bg: #121212;
    --hero-bg-gradient-start: #1a1a1a;
    --hero-bg-gradient-end: #2d2d2d;
    --hero-text: #eeeeee;
    --hero-text-muted: #aaaaaa;
    
    /* Light Sections Theme */
    --light-bg: #ffffff;
    --light-bg-alt: #f8f9fa;
    --light-text: #333333;
    --light-text-muted: #666666;
    
    /* Accent Colors */
    --accent-primary: #007acc;
    --accent-primary-hover: #005f9e;
    --accent-secondary: #4caf50;
    
    /* Spacing */
    --section-padding: clamp(40px, 8vw, 80px);
    --container-max-width: 1200px;
    
    /* Typography */
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--light-text);
    background: var(--light-bg);
    overflow-x: hidden;
    scroll-padding-top: 44px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 0.75rem;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.section {
    padding: var(--section-padding) 0;
}

/* Hero Section (Dark Theme) */
.hero {
    background: linear-gradient(135deg, var(--hero-bg-gradient-start) 0%, var(--hero-bg-gradient-end) 100%);
    color: var(--hero-text);
    min-height: 80vh;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 122, 204, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-padding) clamp(20px, 5vw, 40px);
}

@media (min-width: 1200px) {
    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-content {
        margin-top: auto;
        padding-top: 40px;
        padding-bottom: clamp(80px, 12vh, 160px);
    }
}

.hero h1 {
    color: var(--hero-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero .subheadline {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--hero-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.trust-indicator {
    font-size: 0.9rem;
    color: var(--hero-text-muted);
    margin-top: 1rem;
}

/* Landing Navigation */
.landing-nav {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 10;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 4px clamp(20px, 5vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-logo {
    color: var(--hero-text);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--hero-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

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

.nav-actions {
    display: flex;
    gap: 0.75rem;
}

.nav-actions .btn {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.nav-profile {
    position: relative;
}

.nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--hero-text);
    cursor: pointer;
    font-size: 0.8rem;
    text-decoration: none;
}

.nav-profile-btn:hover,
.nav-profile-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

.nav-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-email {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-caret {
    font-size: 0.7rem;
    opacity: 0.7;
}

.nav-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-width: 180px;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity 0.2s ease;
    z-index: 20;
}

.nav-dropdown a {
    display: block;
    padding: 8px 14px;
    color: var(--hero-text);
    text-decoration: none;
    font-size: 0.85rem;
}

.nav-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-profile:focus-within .nav-dropdown,
.nav-profile:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(12px, 2vw, 16px) clamp(24px, 4vw, 32px);
    border-radius: 6px;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.btn-success {
    background: var(--accent-secondary);
    color: #ffffff;
}

.btn-success:hover {
    background: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--hero-text);
    border: 2px solid var(--hero-text);
}

.btn-secondary:hover {
    background: var(--hero-text);
    color: var(--hero-bg);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

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

/* Light Sections */
.section-light {
    background: var(--light-bg);
    color: var(--light-text);
}

.section-light-alt {
    background: var(--light-bg-alt);
    color: var(--light-text);
}

.section-dark {
    background: var(--hero-bg);
    color: var(--hero-text);
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.section-dark .section-heading h2 {
    color: var(--hero-text);
}

.section-heading p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--light-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-heading p {
    color: var(--hero-text-muted);
}

/* Problem/Solution Section */
.problem-solution {
    padding: var(--section-padding) 0;
}

.problem-solution-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: clamp(24px, 4vw, 32px);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--accent-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.feature-card h3 {
    color: var(--light-text);
    margin-bottom: 0.75rem;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.feature-card p {
    color: var(--light-text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin-bottom: 0;
}

/* How It Works */
.how-it-works {
    padding: var(--section-padding) 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-top: 3rem;
    position: relative;
}

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

.step-number {
    width: 64px;
    height: 64px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--light-text-muted);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Pricing Section */
.pricing-section {
    padding: var(--section-padding) 0;
}

.pricing-card {
    max-width: 500px;
    margin: 3rem auto;
    background: white;
    border-radius: 16px;
    padding: clamp(32px, 5vw, 48px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pricing-amount {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--accent-primary);
    margin: 1rem 0;
}

.pricing-period {
    color: var(--light-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--light-text);
    border-bottom: 1px solid #e0e0e0;
    padding-left: 2rem;
    position: relative;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Use Cases */
.use-cases {
    padding: var(--section-padding) 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(20px, 3vw, 32px);
    margin-top: 3rem;
}

.use-case-card {
    background: white;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.use-case-card h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.use-case-card p {
    color: var(--light-text-muted);
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    margin-bottom: 0;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--hero-bg-gradient-start) 0%, var(--hero-bg-gradient-end) 100%);
    color: var(--hero-text);
    padding: var(--section-padding) 0;
    text-align: center;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta h2 {
    color: var(--hero-text);
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--hero-text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--hero-bg);
    color: var(--hero-text-muted);
    padding: clamp(32px, 5vw, 48px) 0 clamp(24px, 4vw, 32px);
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--hero-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--hero-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid,
    .steps-container,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        margin-bottom: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 20px;
    }
    
    .hero-content,
    .pricing-card {
        padding: 24px 20px;
    }
    
    .feature-card,
    .step-card,
    .use-case-card {
        padding: 20px;
    }
}

/* Smooth Scroll Animation (if JS enabled) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    .feature-card,
    .step-card,
    .use-case-card {
        opacity: 1;
        animation: fadeInUp 0.6s ease-out;
    }
}

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