/* ============================================
   NexMail.ai - Modern Light Theme Stylesheet
   Clean, tech-forward design for email AI platform
   ============================================ */

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
    /* Color Palette - Updated to match design */
    --primary-gradient: linear-gradient(135deg, #3C6E71 0%, #284B63 100%);
    --primary-dark: #284B63;
    --primary-light: #3C6E71;
    --primary-accent: #3C6E71;

    --bg-white: #FFFFFF;
    --bg-light: #f5f5f5;
    --bg-lighter: #fafafa;
    --bg-dark: #353535;

    --text-dark: #353535;
    --text-secondary: #284B63;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --border-color: #D9D9D9;
    --border-light: #e5e7eb;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ============================================
   Skip to Content (Accessibility)
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-dark);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: var(--z-tooltip);
    border-radius: 0 0 var(--radius-md) 0;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

.logo-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

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

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

.nav-link-cta {
    background: var(--primary-gradient);
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-link-login {
    color: var(--text-dark);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-base);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

/* Mobile Menu Active State */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Dropdown */
@media (max-width: 767px) {
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease-out;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 120px 0 var(--spacing-3xl);
    background: linear-gradient(180deg, var(--bg-lighter) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
}

.hero-content-centered {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.badge-icon {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.badge-icon svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

/* Hero Visual - Centered */
.hero-visual-centered {
    max-width: 900px;
    width: 100%;
    position: relative;
}

/* Hero Stats - Centered Below Video */
.hero-stats-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    width: 100%;
    max-width: 900px;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.video-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

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

.mockup-frame {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mockup-header {
    background: var(--bg-lighter);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-address {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.mockup-content {
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease-out backwards;
}

.floating-badge-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0.2s;
}

.floating-badge-2 {
    bottom: 30%;
    left: -5%;
    animation-delay: 0.4s;
}

.floating-badge-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: 0.6s;
}

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

.badge-emoji {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.badge-emoji svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-lighter);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 2px solid var(--border-light);
    transition: var(--transition-base);
}

.step-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-card-highlighted {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.step-card-highlighted .step-number,
.step-card-highlighted .step-title,
.step-card-highlighted .step-description,
.step-card-highlighted .step-features li {
    color: white;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-lighter);
    margin-bottom: var(--spacing-sm);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    color: var(--primary-dark);
}

.step-icon svg {
    width: 32px;
    height: 32px;
}

.step-card-highlighted .step-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.step-description {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.step-features {
    list-style: none;
}

.step-features li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.step-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.step-card-highlighted .step-features li::before {
    color: white;
}

.cta-center {
    text-align: center;
}

/* ============================================
   Design Showcase Section
   ============================================ */
.design-showcase {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-white);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto var(--spacing-lg);
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        min-width: 33.333%;
    }
}

.email-preview {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.email-preview:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.email-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.email-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--spacing-md);
}

.email-category {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.carousel-btn-prev {
    left: -24px;
}

.carousel-btn-next {
    right: -24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: var(--primary-dark);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ============================================
   Control Features Section
   ============================================ */
.control-features {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-lighter);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.editor-preview {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.editor-preview img {
    width: 100%;
    height: auto;
}

/* ============================================
   Brands & Testimonials Section
   ============================================ */
.brands-testimonials {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.brands-marquee {
    overflow: hidden;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    background: var(--bg-lighter);
}

.marquee-content {
    display: flex;
    gap: var(--spacing-2xl);
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--bg-lighter);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    margin-bottom: var(--spacing-md);
}

.star {
    color: #f59e0b;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Integrations Section
   ============================================ */
.integrations {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-lighter);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .integrations-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.integration-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.integration-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.integration-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.integration-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Make Shopify logo smaller */
.integration-card:first-child .integration-logo img {
    width: 60%;
    height: 60%;
}

.integration-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary-dark);
}

.integration-icon svg {
    width: 32px;
    height: 32px;
}

.integration-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.integration-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.toggle-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

input:checked + .toggle-slider {
    background: var(--primary-dark);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.save-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--bg-lighter);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    background: white;
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-xl);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0.25rem;
}

.price-period {
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-lighter);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-icon {
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--primary-gradient);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   Partner Program Section
   ============================================ */
.partner-program {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-lighter);
}

.partner-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .partner-content {
        grid-template-columns: 1fr 1fr;
    }
}

.partner-benefits {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.partner-benefits li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.benefit-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.partner-stats-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: var(--text-muted);
}

.stat-row .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark, #1a202c);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-col-main {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo .logo-image {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.newsletter-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9375rem;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--bg-lighter);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

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

.btn-white:hover {
    background: var(--bg-lighter);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 767px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    .hero {
        padding: 100px 0 var(--spacing-2xl);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats-centered {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .floating-badge {
        display: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* ============================================
   Legal Pages (Privacy Policy, Terms of Service)
   ============================================ */
.legal-page {
    padding: 120px 0 var(--spacing-3xl);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xs);
}

.legal-content p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: var(--spacing-sm);
}

.legal-content ul {
    margin: 0 0 var(--spacing-sm) var(--spacing-lg);
    padding: 0;
    list-style: disc;
}

.legal-content ul li {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--primary-accent);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--spacing-xl) 0;
}

@media (max-width: 767px) {
    .legal-title {
        font-size: 1.75rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}

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

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .mobile-menu-toggle,
    .scroll-to-top,
    .cta-section {
        display: none;
    }
}
