/* ==========================================
   CSS VARIABLES - Design System
   ========================================== */
:root {
    /* Primary Palette */
    --orange-primary: #FF8C42;
    --orange-hover: #E67A2E;
    --warm-white: #FAF9F7;
    --warm-gray: #F5F3F0;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #767676;

    /* Borders & Shadows */
    --border-light: #E5E3DF;
    --shadow-warm: rgba(255, 140, 66, 0.1);
    --shadow-base: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-hero: 3.5rem;
    --text-h2: 2.5rem;
    --text-h3: 1.75rem;
    --text-body: 1.125rem;
    --text-small: 0.875rem;
    --weight-bold: 700;
    --weight-medium: 500;
    --weight-regular: 400;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

/* ==========================================
   BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: var(--weight-bold);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 12px var(--shadow-base);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--orange-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

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

.logo-text {
    color: var(--orange-primary);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow-warm);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background-color: var(--orange-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-medium {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-large {
    padding: 20px 40px;
    font-size: var(--text-body);
}

.btn-extra-large {
    padding: 24px 48px;
    font-size: 1.25rem;
}

.cta-button:hover {
    transform: scale(1.02) translateY(-2px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding-top: calc(120px + 80px);
    padding-bottom: 80px;
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--warm-gray) 100%);
    text-align: center;
}

.hero-title {
    font-size: var(--text-hero);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-body);
}

.hero-caption {
    margin-top: var(--space-sm);
    font-size: var(--text-small);
    color: var(--text-muted);
}

/* ==========================================
   DEMO SECTION
   ========================================== */
.demo-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.section-title {
    font-size: var(--text-h2);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.video-container {
    max-width: 900px;
    margin: 0 auto var(--space-md);
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-base);
    background-color: #000;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background-color: #000;
}

.video-container video:focus {
    outline: 2px solid var(--orange-primary);
    outline-offset: 2px;
}

.demo-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits-section {
    padding: var(--space-xl) 0;
    background-color: var(--warm-gray);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.benefit-card {
    background-color: white;
    padding: var(--space-md);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-warm);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-sm);
    color: var(--orange-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-icon {
    font-size: 48px;
}

.benefit-title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
}

.benefit-text {
    color: var(--text-secondary);
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
    padding: var(--space-xl) 0;
    background-color: white;
}

.steps {
    max-width: 800px;
    margin: var(--space-lg) auto;
}

.step {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: var(--orange-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-xs);
}

.step-text {
    color: var(--text-secondary);
}

.steps-conclusion {
    text-align: center;
    font-size: var(--text-h2);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-top: var(--space-lg);
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-section {
    padding: var(--space-xl) 0;
    background-color: var(--warm-gray);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 900px;
    margin: var(--space-lg) auto;
}

.pricing-card {
    background-color: white;
    padding: var(--space-lg);
    border-radius: 12px;
    position: relative;
}

.pricing-card-featured {
    border: 2px solid var(--orange-primary);
    box-shadow: 0 8px 24px var(--shadow-warm);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--orange-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
}

.pricing-title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.pricing-price {
    font-size: var(--text-hero);
    font-weight: var(--weight-bold);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.pricing-period {
    font-size: var(--text-body);
    font-weight: var(--weight-regular);
    color: var(--text-muted);
}

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

.pricing-features li {
    padding: var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.checkmark {
    color: #10B981;
    font-weight: var(--weight-bold);
    font-size: 1.25rem;
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-md);
    font-size: var(--text-small);
    color: var(--text-muted);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.faq-list {
    max-width: 800px;
    margin: var(--space-lg) auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: var(--text-body);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    text-align: left;
    font-family: var(--font-primary);
}

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

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--orange-primary);
}

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

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

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: var(--space-md);
}

.faq-answer p {
    color: var(--text-secondary);
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta {
    padding: var(--space-xl) 0;
    background: linear-gradient(180deg, var(--warm-white) 0%, rgba(255, 140, 66, 0.1) 100%);
    text-align: center;
}

.final-cta-subtitle {
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-body);
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: var(--weight-bold);
    color: var(--orange-primary);
    margin-bottom: var(--space-xs);
}

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

.footer-logo-text {
    color: var(--orange-primary);
}

.footer-tagline {
    font-size: var(--text-small);
    opacity: 0.8;
}

.footer-contact a {
    color: white;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--orange-primary);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-small);
}

.footer-links a {
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--text-small);
    opacity: 0.7;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --text-hero: 3rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card-featured {
        transform: scale(1.05);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-right {
        text-align: right;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --text-hero: 3.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    :root {
        --text-hero: 2.25rem;
        --text-h2: 2rem;
        --text-h3: 1.5rem;
    }

    .hero {
        padding-top: calc(80px + 80px);
        padding-bottom: 60px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    .btn-extra-large {
        padding: 20px 40px;
        font-size: 1.125rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .logo-text {
        font-size: 1.25rem;
    }

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

    .footer-logo-image {
        height: 28px;
        width: 28px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
