:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --pink: #ec4899;
    --emerald: #10b981;
    --yellow: #f59e0b;
    --orange: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --indigo-50: #eef2ff;
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafbff;
    color: var(--gray-900);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Utility */
.hidden { display: none !important; }
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: block; } }

.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-gradient {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: white; /* Default to white for dark hero */
}

nav .brand-name { color: white; }
nav .lang-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: white; }

nav.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--gray-900);
}

nav.scrolled .brand-name { color: var(--gray-900); }
nav.scrolled .lang-btn { background: rgba(255, 255, 255, 0.8); border-color: var(--gray-200); color: var(--gray-700); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.logo-icon {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom right, #6366f1, #9333ea);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon { transform: scale(1.1); }

.logo-icon i { color: white; width: 1.25rem; height: 1.25rem; stroke-width: 2.5; }

.status-dot {
    position: absolute;
    top: -0.125rem;
    right: -0.125rem;
    width: 0.75rem;
    height: 0.75rem;
    background: #34d399;
    border: 2px solid white;
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.logo-text { display: flex; align-items: center; margin-left: -0.125rem; }
.brand-num { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.05em; color: var(--primary); }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--gray-900); }

.lang-switcher { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover { border-color: var(--primary); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.lang-btn .chevron { width: 0.875rem; height: 0.875rem; transition: transform 0.2s; }
.lang-btn.active .chevron { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 170px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 0.75rem;
    padding: 0.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.lang-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    background: none;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: all 0.2s;
}

.lang-option:hover { background: var(--gray-50); }
.lang-option.active { background: var(--indigo-50); color: var(--indigo-700); font-weight: 600; }
.lang-option .check { margin-left: auto; width: 1rem; height: 1rem; color: var(--primary); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 9999px;
    opacity: 0.2;
    animation: float var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.hero-bg-gradients {
    position: absolute;
    inset: 0;
    opacity: 0.3;
}

.gradient { position: absolute; border-radius: 9999px; filter: blur(100px); }
.gradient-1 { top: 20%; left: 10%; width: 50%; height: 50%; background: rgba(99, 102, 241, 0.3); }
.gradient-2 { top: 10%; right: 10%; width: 40%; height: 40%; background: rgba(139, 92, 246, 0.2); }
.gradient-3 { bottom: 10%; left: 30%; width: 40%; height: 40%; background: rgba(168, 85, 247, 0.15); }

.hero-rings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.ring { border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.05); margin-bottom: -100%; }
.ring-1 { width: 700px; height: 700px; }
.ring-2 { width: 500px; height: 500px; }
.ring-3 { width: 300px; height: 300px; border-color: rgba(255, 255, 255, 0.08); }

.hero-container { position: relative; z-index: 10; padding-top: 5rem; padding-bottom: 5rem; }
.hero-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; } }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #c7d2fe;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: white;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 4.5rem; } }

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-300);
    max-width: 32rem;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, #6366f1, #9333ea);
    color: white;
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px -5px rgba(99, 102, 241, 0.4);
}

.btn-primary i { width: 1rem; height: 1rem; transition: transform 0.3s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }

.btn-white {
    background: white;
    color: var(--indigo-700);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-white:hover { transform: scale(1.03); box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.3); }

/* Visual Mockup */
.visual-wrapper { position: relative; }

.float-icon {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pulse 4s infinite;
}

.float-icon i { width: 1.5rem; height: 1.5rem; }

.icon-in { top: -2rem; left: -2rem; padding: 1rem; color: #34d399; animation-duration: 3s; }
.icon-out { bottom: -1rem; right: -1rem; padding: 1rem; color: #60a5fa; animation-duration: 4s; }
.icon-headset { top: 50%; right: -3rem; padding: 0.75rem; color: #c084fc; animation-duration: 3.5s; }

.mockup-card {
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mockup-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; }
.red { background: #f87171; }
.yellow { background: #fbbf24; }
.green { background: #34d399; }
.mockup-title { margin-left: 0.75rem; font-size: 0.875rem; color: var(--gray-400); font-family: monospace; }

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-mini {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-mini-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--gray-400); margin-bottom: 0.5rem; }
.stat-mini-header i { width: 0.875rem; height: 0.875rem; }
.stat-mini-value { font-size: 1.5rem; font-weight: 700; color: white; }

.text-emerald { color: #34d399 !important; }
.text-yellow { color: #fbbf24 !important; }
.text-indigo { color: #818cf8 !important; }
.text-purple { color: #a78bfa !important; }
.text-pink { color: #f472b6 !important; }

.mockup-list { display: flex; flex-direction: column; gap: 0.5rem; }
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.list-item-left { display: flex; align-items: center; gap: 0.75rem; }
.status-indicator { width: 0.5rem; height: 0.5rem; border-radius: 9999px; }
.bg-emerald { background: #34d399; }
.bg-yellow { background: #fbbf24; }
.bg-orange { background: #fb923c; }

.item-name { font-size: 0.875rem; font-weight: 500; color: white; }
.item-num { font-size: 0.75rem; color: var(--gray-500); font-family: monospace; }

.status-badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.bg-emerald-light { background: rgba(52, 211, 153, 0.2); color: #34d399; }
.bg-yellow-light { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.bg-orange-light { background: rgba(251, 146, 60, 0.2); color: #fb923c; }

/* Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; }
.scroll-indicator button { background: none; border: none; color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: color 0.3s; }
.scroll-indicator button:hover { color: white; }
.scroll-indicator i { width: 1.25rem; height: 1.25rem; }

/* Stats */
.stats { position: relative; margin-top: -5rem; z-index: 20; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
}

.stat-card:hover { transform: translateY(-0.5rem); box-shadow: 0 25px 30px -12px rgba(99, 102, 241, 0.25); }
.stat-card i { width: 1.5rem; height: 1.5rem; margin-bottom: 0.75rem; margin-left: auto; margin-right: auto; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--gray-500); }

/* Features */
.features { padding: 8rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--indigo-50);
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.025em; color: var(--gray-900); }
@media (min-width: 640px) { .section-title { font-size: 3rem; } }

.features-grid {
    display: grid;
    gap: 1.5rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
}

.feature-card:hover { transform: translateY(-0.5rem); box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2); }

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: background 0.3s;
}

.feature-card:hover .feature-icon { background: linear-gradient(to bottom right, #6366f1, #9333ea); }
.feature-icon i { width: 1.5rem; height: 1.5rem; color: var(--primary); transition: color 0.3s; }
.feature-card:hover .feature-icon i { color: white; }

.feature-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* CTA */
.cta { padding-bottom: 6rem; }
.cta-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 1024px) { .cta-card { padding: 4rem; } }

.cta-content { position: relative; z-index: 10; }
.cta-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.cta-icon i { width: 2rem; height: 2rem; color: white; }
.cta-title { font-size: 1.875rem; font-weight: 700; color: white; margin-bottom: 1rem; }
@media (min-width: 640px) { .cta-title { font-size: 2.25rem; } }
.cta-subtitle { font-size: 1.125rem; color: var(--gray-300); margin-bottom: 2rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* Footer */
footer { padding: 3rem 0; border-top: 1px solid var(--gray-100); background: white; }
.footer-container { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 640px) { .footer-container { flex-direction: row; } }

.footer-logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-icon.small { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.logo-icon.small i { width: 1rem; height: 1rem; }
.copyright { font-size: 0.875rem; color: var(--gray-500); }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-slide-up { animation: slide-up 0.8s ease-out forwards; }
.animate-slide-in-right { animation: slide-in-right 0.6s ease-out forwards; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }
