/* ==========================================================================
   BeOEE Landing Page - Tier-1 Design System (Nvidia/Stripe/Vercel inspired)
   Version: 2.0
   ========================================================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors - Tech Palette */
    --color-primary: #0066FF;
    --color-primary-dark: #0052CC;
    --color-primary-light: #3385FF;
    --color-accent: #06B6D4;
    --color-accent-dark: #0891B2;
    
    /* Neutrals */
    --color-dark: #0F172A;
    --color-dark-2: #1E293B;
    --color-dark-3: #334155;
    --color-gray: #64748B;
    --color-gray-light: #94A3B8;
    --color-light: #F8FAFC;
    --color-white: #FFFFFF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #06B6D4 100%);
    --gradient-hero: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-popover: 500;
}

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

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

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-dark);
}

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

p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-gray);
}

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

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

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

/* Container System */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: all var(--transition-base);
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-lg);
}

.logo img {
    height: 45px;
    width: auto;
    max-width: 100%;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark-2);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-primary);
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
    background: rgba(0, 102, 255, 0.05);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--color-white);
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-light);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-gray-light);
}

.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.3s backwards;
}

.visual-card {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.visual-card.floating {
    animation: floating 6s ease-in-out infinite;
}

.visual-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
}

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.feature-card p {
    color: var(--color-gray);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--color-light);
}

.steps-container {
    display: grid;
    gap: var(--space-3xl);
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.step-card:nth-child(even) {
    grid-template-columns: auto 1fr 1fr;
}

.step-card:nth-child(even) .step-visual {
    order: -1;
}

.step-number {
    font-size: 4rem;
    font-weight: var(--font-weight-black);
    color: transparent;
    -webkit-text-stroke: 2px var(--color-primary);
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.step-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.step-visual img {
    width: 100%;
    height: auto;
    transition: transform var(--transition-slow);
}

.step-card:hover .step-visual img {
    transform: scale(1.05);
}

/* Ajuste: forzar que el paso marcado con `.no-reverse` mantenga
   la estructura apilada (número arriba, contenido, imagen abajo)
   en tamaños reducidos y sobrescriba la inversión aplicada por
   `.step-card:nth-child(even)` cuando sea necesario. */
.step-card.no-reverse .step-visual {
    order: 0;
}

@media (max-width: 1024px) {
    .step-card.no-reverse {
        grid-template-columns: 1fr;
    }
    .step-card.no-reverse .step-visual {
        order: 0;
    }
}

/* Demo Section */
.demo-section {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.demo-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.demo-image {
    overflow: hidden;
    aspect-ratio: 16/10;
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.demo-card:hover .demo-image img {
    transform: scale(1.1);
}

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

.demo-content h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.demo-content p {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

/* Benefits */
.benefits {
    padding: var(--space-4xl) 0;
    background: var(--gradient-hero);
    color: var(--color-white);
}

.benefits .section-header h2,
.benefits .section-subtitle {
    color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.benefit-card {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.5);
}

.benefit-icon {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.benefit-card p {
    color: var(--color-gray-light);
    margin-bottom: var(--space-lg);
}

.benefit-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-lg);
}

.benefit-image img {
    width: 100%;
    height: auto;
}

/* Pricing */
.pricing {
    padding: var(--space-4xl) 0;
    background: var(--color-light);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.pricing-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-white);
    border: 2px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-2xl);
}

.plan-header {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.plan-description {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.plan-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
}

.plan-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.pricing-note {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius-lg);
}

.pricing-note p {
    color: var(--color-dark);
}

.small-text {
    font-size: 0.875rem;
    color: var(--color-dark-3);
    margin-top: var(--space-sm);
}

/* Hardware */
.hardware {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.hardware-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
    align-items: center;
}

.hardware-text h3 {
    margin-bottom: var(--space-lg);
}

.hardware-text p {
    margin-bottom: var(--space-lg);
}

.hardware-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.hardware-features li {
    padding-left: var(--space-lg);
    position: relative;
}

.hardware-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
}

.highlight {
    padding: var(--space-md);
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

.hardware-visual {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.compatibility-section {
    margin-top: var(--space-4xl);
}

.compatibility-section h3 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.compatibility-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    font-size: 1.125rem;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.compatibility-item {
    padding: var(--space-lg);
    background: var(--color-light);
    border-radius: var(--radius-lg);
}

.compatibility-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.compatibility-card {
    padding: var(--space-lg);
    background: var(--color-light);
    border-radius: var(--radius-lg);
}

.compatibility-card h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.compatibility-note {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(0, 102, 255, 0.05);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

.compatibility-note strong {
    color: var(--color-dark);
}

/* FAQ */
.faq {
    padding: var(--space-4xl) 0;
    background: var(--color-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: var(--space-lg);
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-content p {
    color: var(--color-gray);
}

/* Contact Form */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.contact-form {
    padding: var(--space-xl);
    background: var(--color-light);
    border-radius: var(--radius-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: var(--color-white);
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.checkbox-group {
    margin: var(--space-xl) 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    cursor: pointer;
}

.form-note {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-gray);
}

.form-message {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent-dark);
    border: 1px solid var(--color-accent);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
    border: 1px solid #EF4444;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    background: var(--color-dark);
    color: var(--color-white);
}

/* Ensure all text and links inside the footer have sufficient contrast */
.footer p,
.footer a {
    color: var(--color-white);
}

.footer a:hover,
.footer a:focus {
    color: var(--color-primary-light);
}

/* Specific cookie settings link in footer */
.footer #cookie-settings {
    color: var(--color-white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.footer-column h3 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    color: var(--color-white);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-logo {
    margin-bottom: var(--space-md);
}

.footer-note {
    font-size: 0.875rem;
    margin-top: var(--space-md);
    font-style: italic;
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Scroll Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .step-card {
        grid-template-columns: 1fr;
    }
    
    .step-card:nth-child(even) .step-visual {
        order: 0;
    }
    
    .hardware-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    :root {
        font-size: 15px;
    }
    
    .header-content {
        height: 64px;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        display: flex;
        align-items: center;
    }
    
    .header-cta {
        display: flex;
        align-items: center;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-menu li {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }
    
    .nav-menu .nav-link {
        text-align: center;
        width: 100%;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .features-grid,
    .benefits-grid,
    .pricing-table,
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* Legal Pages Specific Styles */
.legal-page {
    background: var(--color-light);
}

.legal-page .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.legal-page .section-header h1 {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.legal-page .section-header p {
    font-size: 0.9375rem;
    color: var(--color-gray);
}

.legal-page section {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-sm);
}

.legal-page h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

.legal-page h3 {
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    margin-bottom: var(--space-sm);
    color: var(--color-dark-2);
}

.legal-page p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--color-dark-3);
}

.legal-page ul, .legal-page ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-page li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.legal-page a {
    color: var(--color-primary);
    text-decoration: underline;
}

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

.legal-page strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

.legal-page em {
    font-style: italic;
    color: var(--color-gray);
}

.legal-page .highlight-box {
    background: var(--color-light);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.legal-page .contact-box {
    background: var(--color-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--space-3xl);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-lg);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-light);
}

.cookie-banner-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.cookie-banner-buttons .btn {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .footer,
    .contact,
    .btn,
    .cookie-banner {
        display: none !important;
    }
}

/* ============================================
   Legal Pages Enhanced Styles
   ============================================ */

/* Legal Page Container */
.legal-container {
    padding: var(--space-3xl) 0 var(--space-4xl);
    background: var(--color-white);
    min-height: 60vh;
}

/* Legal Header */
.legal-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--color-gray-dark);
    max-width: 800px;
    margin: var(--space-md) auto 0;
    line-height: 1.7;
}

/* Legal Sections */
.legal-section {
    margin-bottom: var(--space-3xl);
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
    scroll-margin-top: 100px; /* For anchor links with fixed header */
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: var(--space-lg) 0 var(--space-md);
}

.legal-section p {
    margin-bottom: var(--space-md);
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.legal-section ul,
.legal-section ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-lg);
}

.legal-section li {
    margin-bottom: var(--space-sm);
    line-height: 1.7;
    color: var(--color-gray-dark);
}

/* Legal Data List (for key-value pairs) */
.legal-data-list {
    background: var(--color-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.legal-data-list dt {
    font-weight: 600;
    color: var(--color-dark);
    margin-top: var(--space-md);
}

.legal-data-list dt:first-child {
    margin-top: 0;
}

.legal-data-list dd {
    margin-left: 0;
    margin-bottom: var(--space-sm);
    color: var(--color-gray-dark);
}

/* Legal Alerts */
.legal-alert {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-xl) 0;
    border-left: 4px solid;
}

.legal-alert.alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.legal-alert .alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.legal-alert strong {
    color: inherit;
}

/* Legal Highlight Box */
.legal-highlight {
    background: var(--color-light);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
    border-radius: var(--radius-md);
}

.legal-highlight p:last-child {
    margin-bottom: 0;
}

/* Legal Notes */
.legal-note {
    font-size: 0.938rem;
    color: var(--color-gray);
    font-style: italic;
    padding: var(--space-md);
    background: var(--color-light);
    border-radius: var(--radius-sm);
    margin: var(--space-md) 0;
}

.legal-note-small {
    font-size: 0.875rem;
    color: var(--color-gray);
    margin-top: var(--space-sm);
}

/* Contact Box */
.legal-contact-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: var(--space-4xl);
}

.legal-contact-box h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.legal-contact-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-sm);
}

.contact-highlight {
    font-size: 1.25rem;
    font-weight: 600;
    margin: var(--space-lg) 0;
}

.contact-highlight a {
    color: var(--color-white);
    text-decoration: underline;
}

.contact-highlight a:hover {
    text-decoration: none;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 0.938rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-table thead {
    background: var(--color-primary);
    color: var(--color-white);
}

.cookie-table th {
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.cookie-table tbody tr:hover {
    background: var(--color-light);
}

.cookie-table code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Footer Legal Simple */
.footer-legal-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer-legal-simple p {
    color: var(--color-gray);
    font-size: 0.875rem;
}

.footer-legal-simple nav {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal-simple nav a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal-simple nav a:hover {
    color: var(--color-primary);
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-intro {
        font-size: 1rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.125rem;
    }

    .legal-alert {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .cookie-table {
        font-size: 0.875rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: var(--space-sm);
    }

    .footer-legal-simple nav {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
