/* ============================================
   EBOX3 - Dark Theme
   Software Development Company
   Black design system with green brand accent.
   ============================================ */

:root {
    /* Primary Colors — Emerald Green */
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-primary-light: #34d399;
    --color-primary-rgb: 16, 185, 129;

    /* Secondary Colors — Teal */
    --color-secondary: #14b8a6;
    --color-secondary-light: #2dd4bf;
    --color-secondary-rgb: 20, 184, 166;

    /* Accent Colors — Emerald */
    --color-accent: #10b981;
    --color-accent-light: #34d399;
    --color-accent-rgb: 16, 185, 129;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    --color-info: #3b82f6;
    --color-info-light: #60a5fa;

    /* Background Colors — Pure Black */
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-elevated: #111111;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    /* Surface Colors */
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-card-hover: rgba(255, 255, 255, 0.06);
    --surface-input: rgba(255, 255, 255, 0.03);
    --surface-highlight: rgba(16, 185, 129, 0.08);

    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --text-on-primary: #ffffff;
    --text-on-dark: #f0f0f5;
    --text-link: #10b981;
    --text-link-hover: #34d399;

    /* Border Colors */
    --border-default: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-focus: #10b981;
    --border-error: #ef4444;

    /* Shadow Colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);
    --shadow-glow-lg: 0 0 60px rgba(16, 185, 129, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 50%, #14b8a6 100%);
    --gradient-hero: linear-gradient(180deg, #000000 0%, #050505 100%);
    --gradient-card: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(20, 184, 166, 0.04) 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.15) 50%, transparent 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 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;

    /* Typography — Sora */
    --font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   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-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

.main-content > section {
    opacity: 0;
}

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

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: calc(var(--space-4xl) * 1.5) 0;
}

@media (max-width: 968px) {
    .section {
        padding: var(--space-2xl) 0;
    }

    .section-lg {
        padding: var(--space-3xl) 0;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

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

a:hover {
    color: var(--text-link-hover);
}

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

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
    color: var(--text-on-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1.5px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--surface-highlight);
    color: var(--color-primary);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
}

.card-feature {
    padding: var(--space-2xl);
    text-align: center;
}

.card-feature .icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
}

.card-feature h3 {
    margin-bottom: var(--space-md);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.navbar-scrolled {
    box-shadow: var(--shadow-md), 0 0 40px rgba(16, 185, 129, 0.05);
    border-bottom-color: rgba(16, 185, 129, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-left: -7rem;
    margin-top: 0.5rem;
}

.navbar-logo {
    height: 20rem;
    width: auto;
}

.navbar-brand-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-toggle {
    display: none;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
}

.navbar-toggle span {
    display: block;
    width: 1.25rem;
    height: 3px;
    min-height: 3px;
    background-color: #ffffff !important;
    border-radius: 2px;
    flex-shrink: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Menu — hidden by default */
.mobile-menu {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .navbar-toggle {
        display: flex !important;
        z-index: 1000;
    }

    .navbar-toggle span {
        transform-origin: center;
    }

    .navbar-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .navbar-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .navbar-links,
    .navbar-actions {
        display: none !important;
    }

    .mobile-menu {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal), padding var(--transition-normal);
        padding: 0 var(--space-md);
    }

    .mobile-menu.open {
        max-height: 800px;
        padding: var(--space-lg) var(--space-md) var(--space-2xl);
        border-top: 1px solid var(--border-light);
    }

    .mobile-link {
        display: flex;
        align-items: center;
        gap: var(--space-md);
        padding: var(--space-md) 0;
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-medium);
        color: var(--text-secondary);
        text-decoration: none;
        border-bottom: 1px solid var(--border-light);
        transition: color var(--transition-fast);
    }

    .mobile-link svg {
        flex-shrink: 0;
    }

    .mobile-link:hover,
    .mobile-link.active {
        color: var(--color-primary);
    }

    .mobile-link:last-of-type {
        border-bottom: none;
    }

    .mobile-divider {
        height: 1px;
        background: var(--border-default);
        margin: var(--space-lg) 0;
    }

    .mobile-language {
        margin-bottom: var(--space-md);
    }

    .mobile-label {
        display: block;
        font-size: var(--font-size-sm);
        color: var(--text-muted);
        margin-bottom: var(--space-sm);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-language-options {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .mobile-lang-btn {
        padding: var(--space-sm) var(--space-md);
        border: 1px solid var(--border-default);
        border-radius: var(--radius-md);
        background: var(--bg-primary);
        color: var(--text-secondary);
        font-size: var(--font-size-sm);
        cursor: pointer;
        transition: all var(--transition-fast);
    }

    .mobile-lang-btn:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

    .mobile-lang-btn.active {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: calc(var(--space-4xl) * 2) 0 var(--space-4xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Primary glow */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Secondary glow */
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

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

.hero-content .hero-text {
    grid-column: 1;
    grid-row: 1;
}

.hero-content .hero-actions {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-content .hero-image {
    grid-column: 2;
    grid-row: 1 / 3;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    outline: none;
    letter-spacing: -0.03em;
}

.hero-title:focus,
.hero-title *:focus,
.text-gradient:focus {
    outline: none;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 968px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-content .hero-text {
        grid-column: 1;
        grid-row: auto;
        order: 1;
        max-width: 100%;
    }

    .hero-content .hero-image {
        grid-column: 1;
        grid-row: auto;
        order: 2;
        max-width: 95%;
        margin: 0 auto;
    }

    .hero-content .hero-actions {
        grid-column: 1;
        grid-row: auto;
        order: 3;
        justify-content: center;
    }

    .hero-badge {
        margin-bottom: var(--space-sm);
    }

    .hero-title {
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-md);
    }

    .hero-content {
        gap: var(--space-sm);
    }

    .hero-badge {
        margin-bottom: var(--space-xs);
        font-size: 0.7rem;
        padding: 2px var(--space-sm);
        white-space: nowrap;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: var(--space-xs);
    }

    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: 0;
    }

    .hero-content .hero-actions {
        gap: var(--space-sm);
    }

    .hero-content .hero-actions .btn-lg {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
        border-radius: var(--radius-lg);
    }
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

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

/* ============================================
   STATS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.stat-value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.3));
}

.stat-label {
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-on-primary);
    text-align: center;
    padding: var(--space-4xl);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section h2 {
    color: var(--text-on-primary);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-section .btn {
    background: var(--bg-primary);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section .btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-default);
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.4), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    height: 6rem;
    width: auto;
    margin-left: -1rem;
    margin-bottom: -0.5rem;
}

.footer-brand-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

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

.footer-link {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

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

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

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: var(--z-dropdown);
    display: none;
}

.language-dropdown.open {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: var(--space-md);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.language-option:hover {
    background: var(--surface-highlight);
    color: var(--color-primary);
}

.language-option.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

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

.section-header p {
    font-size: var(--font-size-lg);
}

/* ============================================
   LEGAL CONTENT STYLING
   ============================================ */
.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

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

/* ============================================
   SCROLL EFFECTS
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.js-ready .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-in { animation: slideIn 0.5s ease forwards; }

/* ============================================
   RESPONSIVE VISIBILITY
   ============================================ */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 641px) {
    .show-mobile { display: none !important; }
}
