/* ============================================
   GLOBAL STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   CONTAINER
   ============================================ */

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

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

/* ============================================
   HEADER/HERO SECTION
   ============================================ */

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

header p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.features span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

/* ============================================
   DEMO SECTION
   ============================================ */

.demo-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--bg-light);
}

.demo-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.youtube-link:hover {
    background-color: #cc0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.youtube-link span {
    white-space: nowrap;
}

.demo-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

.demo-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.demo-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.demo-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.demo-media {
    width: 100%;
    height: auto;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
}

.demo-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    max-width: 100%;
}

.demo-media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 400px;
    max-width: 100%;
}

.demo-content {
    padding: var(--spacing-lg);
}

.demo-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.demo-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE: TABLET (768px and up)
   ============================================ */

@media (min-width: 768px) {
    .demo-item {
        grid-template-columns: 1fr 1fr;
        padding: var(--spacing-lg);
    }

    .demo-media {
        border-radius: var(--border-radius);
        min-height: 300px;
        max-height: 400px;
    }

    .demo-media img {
        max-height: 400px;
    }

    /* Alternate layout for even items (video right) */
    .demo-item:nth-child(even) {
        grid-template-columns: 1fr 1fr;
    }

    .demo-item:nth-child(even) .demo-media {
        order: 2;
    }

    .demo-item:nth-child(even) .demo-content {
        order: 1;
    }
}

/* ============================================
   RESPONSIVE: DESKTOP (1024px and up)
   ============================================ */

@media (min-width: 1024px) {
    header h1 {
        font-size: 3rem;
    }

    .demo-media {
        min-height: 350px;
        max-height: 450px;
    }

    .demo-media img {
        max-height: 450px;
    }
}

/* ============================================
   RESPONSIVE: MOBILE (under 768px)
   ============================================ */

@media (max-width: 767px) {
    .demo-item {
        grid-template-columns: 1fr;
        padding: var(--spacing-md);
    }

    .demo-media {
        min-height: 250px;
        max-height: 350px;
    }

    .demo-media img {
        max-height: 350px;
    }

    .demo-content {
        padding: var(--spacing-md);
    }

    .demo-content h3 {
        font-size: 1.2rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ============================================
   SECTIONS: FAQ, TERMS, PRIVACY
   ============================================ */

section {
    padding: var(--spacing-xl) var(--spacing-lg);
}

section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

#faqs,
#terms,
#privacy {
    background-color: var(--bg-white);
}

#faqs {
    background-color: var(--bg-light);
}

/* ============================================
   FAQ ITEMS
   ============================================ */

.faq-item {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   LEGAL SECTIONS
   ============================================ */

.legal-box {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    line-height: 1.9;
    color: var(--text-light);
}

.legal-box p {
    margin-bottom: var(--spacing-md);
}

.legal-box strong {
    color: var(--text-dark);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

footer p {
    opacity: 0.8;
}

/* ============================================
   MOBILE FIRST ADJUSTMENTS
   ============================================ */

@media (max-width: 767px) {
    nav .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    nav ul {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .features span {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }

    .demo-section {
        padding: var(--spacing-lg);
    }

    .demo-item {
        padding: var(--spacing-md);
    }

    .demo-content {
        padding: var(--spacing-md);
    }

    .demo-content h3 {
        font-size: 1.3rem;
    }

    section h2 {
        font-size: 1.6rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

/* Smooth transitions for interactive elements */
button,
input,
select,
textarea {
    transition: var(--transition);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

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

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    nav,
    footer {
        display: none;
    }

    body {
        background-color: white;
    }
}
