/* Reset and Base Styles */

/* Modern font optimizations */
@supports (font-variation-settings: normal) {
    body { font-family: 'Inter Variable', ui-sans-serif, system-ui, sans-serif; }
}

:root {
    /* ModClear palette (inspired by provided swatch) */
    --mc-bg: #EEE9DF; /* Palladian */
    --mc-subtle: #C9C1B1; /* Oatmeal */
    --mc-primary-900: #1B2632; /* Abyssal Anchorfish Blue */
    --mc-primary-700: #2C3B4D; /* Blue Fantastic */
    --mc-accent-500: #FFB162; /* Burning Flame */
    --mc-accent-700: #A35139; /* Truffle Trouble */
    --mc-surface: #FFFFFF; /* Cards / surfaces */
    --mc-text: #1B2632; /* Primary text */
    --mc-text-muted: #2C3B4D; /* Muted text */
    --mc-border: rgba(27, 38, 50, 0.12); /* Hairline borders from primary */
    --mc-tint: rgba(201, 193, 177, 0.18); /* Subtle oatmeal-tinted background */

    /* Spacing scale (Close-like rhythm) */
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
}
section { scroll-margin-top: 5rem; }
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.625;
    color: var(--mc-text);
    background-color: var(--mc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variation-settings: normal;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--mc-border);
    z-index: 50;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

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

.nav-logo h2 {
    color: var(--mc-primary-900);
    font-weight: 800;
    font-size: 1.875rem;
    line-height: 2.25rem;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--mc-text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--mc-primary-700);
}

.nav-cta .btn-primary {
    background-color: var(--mc-accent-500);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border: 0;
    cursor: pointer;
}

.nav-cta .btn-primary:hover {
    background-color: var(--mc-accent-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(27, 38, 50, 0.12), 0 4px 6px -2px rgba(27, 38, 50, 0.06);
}

/* Hero Section */
.hero {
    padding: calc(var(--space-24) + 2rem) 0 var(--space-16);
    background: linear-gradient(135deg, var(--mc-primary-900) 0%, var(--mc-primary-700) 100%);
    color: #ffffff;
    text-align: center;
}

.preheadline {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-headline {
    font-size: 3.75rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    font-variation-settings: 'wght' 900;
}

.hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-video {
    margin: 3rem 0;
}

.video-container {
    max-width: 42rem;
    margin: 0 auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mc-accent-500);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    box-shadow: 0 10px 15px -3px rgba(27, 38, 50, 0.12), 0 4px 6px -2px rgba(27, 38, 50, 0.06);
    border: 0;
    cursor: pointer;
}

.btn-cta:hover {
    background-color: var(--mc-accent-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(27, 38, 50, 0.16), 0 10px 10px -5px rgba(27, 38, 50, 0.08);
}

/* Social Proof */
.social-proof {
    padding: var(--space-16) 0;
    background-color: var(--mc-surface);
    text-align: center;
}

.social-proof h3 {
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5rem;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-item {
    padding: 0.75rem 1.5rem;
    background-color: var(--mc-surface);
    border-radius: 0.5rem;
    font-weight: 600;
    color: var(--mc-text-muted);
    box-shadow: 0 1px 3px 0 rgba(27, 38, 50, 0.08), 0 1px 2px 0 rgba(27, 38, 50, 0.04);
    border: 1px solid var(--mc-border);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.logo-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Quote Section */
.quote-section {
    padding: var(--space-24) 0;
    background-color: var(--mc-surface);
}

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

.prominent-quote {
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--mc-text);
    margin: 0 0 2rem;
    font-style: italic;
    position: relative;
}

.prominent-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--mc-accent-500);
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-family: Georgia, serif;
}

.prominent-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--mc-accent-500);
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    font-family: Georgia, serif;
}

.quote-source {
    font-size: 1.125rem;
    color: var(--mc-text-muted);
    font-weight: 500;
    font-style: normal;
}

/* How it Works */
.how-it-works {
    padding: var(--space-24) 0;
    background-color: var(--mc-tint);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--mc-text);
    letter-spacing: -0.02em;
    font-variation-settings: 'wght' 800;
}

.section-subheadline {
    text-align: center;
    font-size: 1.125rem;
    color: var(--mc-text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: var(--mc-surface);
    border-radius: 0.75rem;
    border: 1px solid var(--mc-border);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    display: block;
    text-align: center;
}

.step h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.step p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

/* Testimonials */
.testimonials {
    padding: var(--space-24) 0;
    background-color: var(--mc-surface);
}

.testimonials h2 {
    text-align: center;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--mc-text);
    letter-spacing: -0.02em;
    font-variation-settings: 'wght' 800;
}

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

.testimonial {
    background-color: var(--mc-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--mc-accent-500);
    border: 1px solid var(--mc-border);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.testimonial-logo {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    background-color: var(--mc-subtle);
    border-radius: 50%;
    opacity: 0.6;
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 1.5rem;
    color: #374151;
    font-style: italic;
}

.testimonial-author strong {
    color: #111827;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.testimonial-author span {
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* FAQ */
.faq {
    padding: var(--space-24) 0;
    background-color: var(--mc-surface);
}

.faq h2 {
    text-align: center;
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--mc-text);
    letter-spacing: -0.02em;
    font-variation-settings: 'wght' 800;
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    space-y: 1rem;
}

.faq-item {
    background-color: var(--mc-surface);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(27, 38, 50, 0.08), 0 1px 2px 0 rgba(27, 38, 50, 0.04);
    border: 1px solid var(--mc-border);
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: var(--mc-text);
    cursor: pointer;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question:focus {
    outline: 2px solid var(--mc-primary-700);
    outline-offset: 2px;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    line-height: 1.7;
    display: none;
    font-size: 1rem;
}

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

/* Final CTA */
.final-cta {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, var(--mc-primary-900) 0%, var(--mc-primary-700) 100%);
    color: #ffffff;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-variation-settings: 'wght' 800;
}

.final-cta p {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 3rem;
    color: #e0e7ff;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--mc-accent-500);
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.75rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    box-shadow: 0 10px 15px -3px rgba(27, 38, 50, 0.12), 0 4px 6px -2px rgba(27, 38, 50, 0.06);
    border: 0;
    cursor: pointer;
}

.btn-cta-large:hover {
    background-color: var(--mc-accent-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(27, 38, 50, 0.16), 0 10px 10px -5px rgba(27, 38, 50, 0.08);
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background-color: var(--mc-primary-900);
    color: #ffffff;
    padding: 3rem 0;
}

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

.footer-logo h3 {
    color: var(--mc-accent-500);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 2rem;
}

.footer-status {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-style: normal;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

/* Privacy Policy Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--mc-surface);
    margin: 5% auto;
    padding: 0;
    border-radius: 0.75rem;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--mc-border);
}

.modal-header h2 {
    margin: 0;
    color: var(--mc-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.close {
    color: var(--mc-text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--mc-text);
}

.modal-body {
    padding: 1rem 2rem 2rem;
    line-height: 1.6;
    color: var(--mc-text);
}

.modal-body h3 {
    color: var(--mc-text);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero {
        padding: 6rem 0 4.5rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subheadline {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 3rem;
    }
    
    .prominent-quote {
        font-size: 1.5rem;
    }
    
    .prominent-quote::before,
    .prominent-quote::after {
        font-size: 3rem;
    }
    
    .prominent-quote::before {
        left: -1.5rem;
        top: -0.5rem;
    }
    
    .prominent-quote::after {
        right: -1.5rem;
        bottom: -1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero {
        padding: 4.5rem 0 3.25rem;
    }
    
    .hero-headline {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .video-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .logos {
        gap: 1rem;
    }
    
    .logo-item {
        font-size: 0.875rem;
        line-height: 1.25rem;
        padding: 0.5rem 1rem;
    }
    
    .benefits h2,
    .how-it-works h2,
    .testimonials h2,
    .faq h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .final-cta h2 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .btn-cta,
    .btn-cta-large {
        font-size: 1rem;
        line-height: 1.5rem;
        padding: 1rem 1.5rem;
    }
}
