/* --- VARIABLES --- */
:root {
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Color principal del logo */
    --brand: #1670ef;
    --brand-light: #4a94f7;
    --brand-dark: #0d5ed4;
    --brand-glow: rgba(22, 112, 239, 0.4);

    /* Colores modo oscuro */
    --bg-body: #030712;
    --bg-section-alt: #0a0f1a;
    --bg-card: #0f1629;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-heading: #ffffff;
    --border-color: rgba(148, 163, 184, 0.12);

    /* Acentos secundarios */
    --accent-secondary: #38bdf8;
    --accent-tertiary: #22d3ee;
    --accent-success: #34d399;
    --accent-pink: #f472b6;

    /* Gradientes basados en brand */
    --gradient-primary: linear-gradient(135deg, var(--brand) 0%, var(--accent-secondary) 100%);
    --gradient-text: linear-gradient(135deg, var(--brand-light) 0%, var(--accent-tertiary) 50%, var(--accent-success) 100%);
    --gradient-glow: conic-gradient(from 0deg, var(--brand), var(--accent-secondary), var(--accent-tertiary), var(--brand));

    --max-width: 1280px;
    --radius: 24px;
}

/* --- TEMA LIGHT CON ALTO CONTRASTE --- */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-section-alt: #f0f5ff;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-heading: #020617;
    --border-color: rgba(15, 23, 42, 0.12);

    /* Brand más oscuro para mejor contraste en light */
    --brand: #1461d1;
    --brand-light: #1670ef;
    --brand-dark: #0d4ea8;
    --brand-glow: rgba(22, 112, 239, 0.25);

    /* Acentos más oscuros para light */
    --accent-secondary: #0284c7;
    --accent-tertiary: #0891b2;
    --accent-success: #059669;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* --- SCROLLBAR (desktop) --- */
@media (min-width: 901px) {
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg-body); }
    ::-webkit-scrollbar-thumb {
        background: var(--brand);
        border-radius: 4px;
    }
}

/* Hide scrollbar on mobile */
@media (max-width: 900px) {
    html, body {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
}

/* --- UTILITIES --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.d-none { display: none !important; }

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

.section-padding { padding: 5rem 0; position: relative; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.75rem; }
p { color: var(--text-muted); }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(22, 112, 239, 0.1);
    border: 1px solid rgba(22, 112, 239, 0.3);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[data-theme="light"] .section-tag {
    background: rgba(22, 112, 239, 0.08);
    border-color: rgba(22, 112, 239, 0.25);
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
}

/* --- ANIMATIONS --- */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-15px) translateX(10px) rotate(5deg); }
    50% { transform: translateY(-30px) translateX(-5px) rotate(-3deg); }
    75% { transform: translateY(-10px) translateX(-15px) rotate(8deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(20px) translateX(-10px) rotate(-5deg); }
    50% { transform: translateY(35px) translateX(8px) rotate(6deg); }
    75% { transform: translateY(15px) translateX(15px) rotate(-8deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes border-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes slide-up-bounce {
    0% { transform: translateY(100px); opacity: 0; }
    60% { transform: translateY(-10px); }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounce-in {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

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

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- REVEAL CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

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

.logo-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-actions { display: flex; gap: 12px; align-items: center; }

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

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1002;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: rgba(22, 112, 239, 0.1);
    color: var(--text-heading);
}

.lang-option.active {
    background: rgba(22, 112, 239, 0.15);
    color: var(--brand);
}

.lang-flag {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--brand);
    background: rgba(22, 112, 239, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="light"] .lang-dropdown {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* --- NAVIGATION MENU --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-cta-mobile {
    display: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Navigation */
@media (max-width: 900px) {
    /* Prevent horizontal scroll on mobile */
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    /* Header siempre con fondo en móvil para mejor visibilidad */
    header {
        background: rgba(3, 7, 18, 0.8);
        backdrop-filter: blur(10px);
        width: 100%;
        max-width: 100vw;
    }

    [data-theme="light"] header {
        background: rgba(255, 255, 255, 0.9);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
        box-shadow: none;
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
    }

    .nav-cta {
        display: none !important;
    }

    .nav-menu .nav-cta-mobile {
        display: inline-flex;
        margin-top: 1rem;
    }

    /* Logo on mobile */
    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Hide header theme toggle on mobile */
    #theme-toggle {
        display: none;
    }

    /* Show footer theme toggle on mobile */
    .footer-theme-toggle {
        display: inline-flex !important;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- BUTTONS --- */
.btn {
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 25px var(--brand-glow);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px var(--brand-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, 0.02);
}

.btn-ghost:hover {
    background: rgba(22, 112, 239, 0.08);
    border-color: var(--brand);
    transform: translateY(-2px);
}

.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: morph 15s ease-in-out infinite, pulse-glow 8s ease-in-out infinite;
}

.hero-orb-1 {
    top: -20%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(22, 112, 239, 0.25) 0%, transparent 70%);
}

.hero-orb-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    animation-delay: 2s;
}

.hero-orb-3 {
    top: 30%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    animation-delay: 4s;
}

[data-theme="light"] .hero-orb-1 { background: radial-gradient(circle, rgba(22, 112, 239, 0.15) 0%, transparent 70%); }
[data-theme="light"] .hero-orb-2 { background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%); }
[data-theme="light"] .hero-orb-3 { background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%); }

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.18;
    color: var(--brand);
    transition: opacity 0.3s ease;
}

[data-theme="light"] .floating-icon { opacity: 0.2; }

.floating-icon:nth-child(1) { top: 15%; left: 10%; animation: float 8s ease-in-out infinite; }
.floating-icon:nth-child(2) { top: 25%; right: 15%; animation: float-reverse 7s ease-in-out infinite 1s; font-size: 1.8rem; }
.floating-icon:nth-child(3) { bottom: 30%; left: 8%; animation: float 9s ease-in-out infinite 2s; font-size: 2.2rem; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation: float-reverse 6s ease-in-out infinite 0.5s; }
.floating-icon:nth-child(5) { top: 50%; left: 5%; animation: float 10s ease-in-out infinite 3s; font-size: 1.6rem; }
.floating-icon:nth-child(6) { top: 40%; right: 8%; animation: float-reverse 8s ease-in-out infinite 1.5s; font-size: 2.4rem; }

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(22, 112, 239, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 112, 239, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(22, 112, 239, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 112, 239, 0.06) 1px, transparent 1px);
}

.hero-content { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 1.5rem; overflow: hidden; }

.hero-title-line {
    display: block;
    animation: slide-up-bounce 1s ease-out forwards;
    opacity: 0;
}

.hero-title-line:nth-child(2) { animation-delay: 0.2s; }

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 1;
}

.hero-subtitle.fade-out {
    animation: subtitleFadeOut 1.2s ease-out forwards;
}

.hero-subtitle.fade-in {
    animation: subtitleFadeIn 1.8s ease-in forwards;
}

@keyframes subtitleFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes subtitleFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Progress bar for text rotation */
.hero-progress {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
    overflow: hidden;
}

[data-theme="light"] .hero-progress {
    background: rgba(0, 0, 0, 0.08);
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--brand);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Typewriter cursor */
#rotating-title {
    display: inline;
    min-height: 1.2em;
    font-size: 0.7em !important;
}

/* Letter animations for gradient text */
#rotating-title span {
    display: inline;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.letter-fade-in {
    animation: letterIn 0.3s ease-out forwards;
}

.letter-fade-out {
    animation: letterOut 0.15s ease-in forwards;
}

@keyframes letterIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes letterOut {
    from {
        opacity: 1;
        filter: blur(0);
    }
    to {
        opacity: 0;
        filter: blur(4px);
    }
}

#rotating-title::after {
    content: '|';
    animation: blink-cursor 0.8s step-end infinite;
    color: var(--brand);
    font-weight: 300;
    margin-left: 2px;
}

#rotating-title.typing-done::after {
    display: none;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slide-up-bounce 1s ease-out 0.6s forwards;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-main);
}

[data-theme="light"] .badge {
    background: rgba(22, 112, 239, 0.04);
    border-color: rgba(22, 112, 239, 0.15);
}

.badge:hover {
    background: rgba(22, 112, 239, 0.1);
    border-color: var(--brand);
    transform: translateY(-3px);
}

.badge i { color: var(--brand); }

.hero-cta {
    opacity: 0;
    animation: bounce-in 0.8s ease-out 0.8s forwards;
}

/* --- SECTION DIVIDERS --- */
.divider-glow {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), var(--accent-secondary), transparent);
    margin: 0 auto;
    max-width: 80%;
}

.divider-glow::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: inherit;
    filter: blur(20px);
    opacity: 0.5;
}

.divider-dots {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 3rem 0;
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.divider-dot:nth-child(2) { animation-delay: 0.3s; background: var(--accent-secondary); }
.divider-dot:nth-child(3) { animation-delay: 0.6s; background: var(--accent-tertiary); }

.divider-pattern {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.divider-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.divider-pattern-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand);
}

.divider-curve {
    height: 100px;
    position: relative;
    overflow: hidden;
}

.divider-curve svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
}

/* --- VIDEO SECTION --- */
.video-section {
    padding: 0 24px 2rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.video-wrapper {
    max-width: 900px;
    margin: 40px auto 40px auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow:
        0 20px 60px -15px var(--brand-glow),
        0 40px 80px -30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .video-wrapper {
    box-shadow:
        0 20px 60px -15px rgba(22, 112, 239, 0.2),
        0 40px 80px -30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(22, 112, 239, 0.15);
}

.video-glow {
    position: absolute;
    inset: -3px;
    background: var(--gradient-glow);
    border-radius: 18px;
    z-index: -1;
    animation: border-rotate 10s linear infinite;
    opacity: 0.5;
}

[data-theme="light"] .video-glow {
    display: none;
}


.plyr {
    --plyr-color-main: var(--brand);
    --plyr-video-background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.plyr__video-wrapper {
    border-radius: 16px;
    overflow: hidden;
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
}

[data-theme="light"] .video-container {
    background: #f8fafc;
}

/* --- FEATURES SECTION --- */
.features-section {
    background: var(--bg-section-alt);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(22, 112, 239, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

[data-theme="light"] .feature-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(22, 112, 239, 0.3);
    box-shadow: 0 30px 60px -20px var(--brand-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(22, 112, 239, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--brand);
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    background: var(--brand);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.05;
    line-height: 1;
    color: var(--brand);
}

[data-theme="light"] .feature-number { opacity: 0.08; }

/* --- SECURITY SECTION --- */
.security-section {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.security-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.security-line {
    position: absolute;
    background: linear-gradient(180deg, transparent, var(--brand), transparent);
    width: 1px;
    height: 200px;
    opacity: 0.15;
}

[data-theme="light"] .security-line { opacity: 0.2; }

.security-line:nth-child(1) { left: 10%; top: 20%; animation: float-subtle 10s ease-in-out infinite; }
.security-line:nth-child(2) { left: 25%; top: 40%; animation: float-subtle 8s ease-in-out infinite 2s; }
.security-line:nth-child(3) { right: 25%; top: 30%; animation: float-subtle 12s ease-in-out infinite 1s; }
.security-line:nth-child(4) { right: 10%; top: 50%; animation: float-subtle 9s ease-in-out infinite 3s; }

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.security-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.shield-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.shield-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: var(--brand);
    animation: float-gentle 6s ease-in-out infinite;
    z-index: 2;
}

.shield-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid;
    border-radius: 50%;
    animation: rotate-slow 20s linear infinite;
}

.shield-ring-1 {
    width: 200px;
    height: 200px;
    border-color: rgba(22, 112, 239, 0.3);
    border-style: dashed;
}

.shield-ring-2 {
    width: 280px;
    height: 280px;
    border-color: rgba(56, 189, 248, 0.2);
    animation-direction: reverse;
    animation-duration: 30s;
}

.shield-ring-3 {
    width: 360px;
    height: 360px;
    border-color: rgba(34, 211, 238, 0.15);
    border-style: dotted;
    animation-duration: 40s;
}

.shield-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    animation: rotate-slow 15s linear infinite reverse;
}

.shield-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--brand);
}

.shield-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.shield-dot:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.shield-dot:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.shield-dot:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

.security-list { list-style: none; }

.security-item {
    display: flex;
    gap: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(22, 112, 239, 0.02);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    align-items: flex-start;
}

[data-theme="light"] .security-item {
    background: rgba(22, 112, 239, 0.03);
}

.security-item:hover {
    background: rgba(22, 112, 239, 0.06);
    border-color: rgba(22, 112, 239, 0.2);
    transform: translateX(15px);
}

.security-item-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(22, 112, 239, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--brand);
}

.security-item-text h4 {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.security-item-text p {
    font-size: 0.95rem;
    margin: 0;
}

/* --- INTEGRATIONS SECTION --- */
.integrations-section {
    background: var(--bg-section-alt);
    position: relative;
}

.integrations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.integration-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.integration-feature {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

[data-theme="light"] .integration-feature {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.integration-feature:hover {
    background: rgba(22, 112, 239, 0.05);
    border-color: rgba(22, 112, 239, 0.3);
    transform: translateY(-5px);
}

.integration-feature i {
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 1rem;
    display: block;
}

.integration-feature h4 {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.integration-feature p {
    font-size: 0.9rem;
    margin: 0;
}

.device-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.device-main { position: relative; z-index: 2; }

.device-laptop {
    font-size: 10rem;
    color: var(--brand);
    opacity: 0.2;
    animation: float-subtle 5s ease-in-out infinite;
}

[data-theme="light"] .device-laptop { opacity: 0.25; }

.device-floating {
    position: absolute;
    font-size: 3rem;
    color: var(--brand);
    opacity: 0.5;
}

.device-phone { top: 20%; left: 10%; animation: float-subtle 4s ease-in-out infinite; }
.device-tablet { bottom: 20%; right: 10%; animation: float-subtle 5s ease-in-out infinite 1s; }
.device-watch { top: 60%; left: 5%; animation: float-subtle 6s ease-in-out infinite 2s; font-size: 2rem; }

.platform-badges {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.platform-badge {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    color: var(--text-main);
}

[data-theme="light"] .platform-badge {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.platform-badge:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
}

.platform-badge i { color: var(--brand); }

/* --- STATS SECTION --- */
.stats-section {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(22, 112, 239, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

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

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

[data-theme="light"] .stat-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--brand);
}

.stat-card:hover::before { opacity: 0.05; }

.stat-card-inner { position: relative; z-index: 1; }

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(22, 112, 239, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .stats-description {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.stats-description strong {
    color: var(--text-heading);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background: var(--bg-section-alt);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.5s ease;
}

[data-theme="light"] .testimonial-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.2);
    border-color: rgba(22, 112, 239, 0.3);
}

.testimonial-quote {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    opacity: 0.1;
    color: var(--brand);
}

[data-theme="light"] .testimonial-quote { opacity: 0.15; }

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}
.author-avatar>img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand);
}

.author-info h4 {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- PRICING SECTION --- */
.pricing-section {
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(22, 112, 239, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.billing-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.billing-toggle-btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.billing-toggle-btn:hover {
    color: var(--text-heading);
}

.billing-toggle-btn.active {
    background: rgba(22, 112, 239, 0.12);
    color: var(--brand);
    box-shadow: 0 10px 30px -18px var(--brand-glow);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .pricing-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(22, 112, 239, 0.3);
    box-shadow: 0 30px 60px -20px var(--brand-glow);
}

.pricing-card.featured {
    border-color: var(--brand);
    border-top: 6px solid var(--brand);
    background: linear-gradient(180deg, rgba(22, 112, 239, 0.08) 0%, var(--bg-card) 100%);
}

[data-theme="light"] .pricing-card.featured {
    background: linear-gradient(180deg, rgba(22, 112, 239, 0.06) 0%, var(--bg-card) 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pricing-card.featured .pricing-amount {
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(16, 185, 129, 0.95);
    margin-top: 0.8rem;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.pricing-trial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(22, 112, 239, 0.1);
    border: 1px solid rgba(22, 112, 239, 0.3);
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
    margin-top: 1rem;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--brand);
    font-size: 0.9rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.pricing-features li.highlight {
    color: var(--text-heading);
    font-weight: 500;
}

.pricing-features sup {
    color: var(--brand);
}

.pricing-cta {
    margin-top: auto;
}

.pricing-cta .btn {
    width: 100%;
    justify-content: center;
}

.pricing-cta .btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.pricing-cta .btn-outline:hover {
    border-color: var(--brand);
    background: rgba(22, 112, 239, 0.05);
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-note sup {
    color: var(--brand);
}

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

/* Pricing Responsive */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        order: -1;
    }
}

/* --- FAQ SECTION --- */
.faq-section { background: var(--bg-body); }

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    background: var(--bg-card);
}

[data-theme="light"] .faq-item {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item:hover { border-color: rgba(22, 112, 239, 0.3); }

.faq-question {
    padding: 1rem 1rem;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover { background: rgba(22, 112, 239, 0.03); }

.faq-question h4 {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.faq-question i {
    color: var(--brand);
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1rem 2rem 1.5rem;
    margin: 0;
}

/* --- CTA BANNER --- */
.cta-section { padding: 6rem 24px; }

.cta-banner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand);
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

.cta-btn {
    background: white;
    color: var(--brand);
    font-weight: 700;
    padding: 16px 40px;
    font-size: 1.1rem;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* --- CONTACT SECTION --- */
.contact-section { background: var(--bg-section-alt); }

.form-wrapper {
    max-width: 650px;
    margin: 0 auto;
    padding: 3.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .form-wrapper {
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.2);
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-heading);
}

input, textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(22, 112, 239, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] input, [data-theme="light"] textarea {
    background: #f8fafc;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(22, 112, 239, 0.1);
}

textarea { resize: none; min-height: 140px; }

.form-submit {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    justify-content: center;
}

#thxMessage {
    text-align: center;
    padding: 3rem;
}

#thxMessage i {
    font-size: 5rem;
    color: var(--accent-success);
    margin-bottom: 1.5rem;
    display: block;
}

#thxMessage h3 {
    color: var(--text-heading);
}

/* --- PARTNERS SECTION --- */
.partners-section {
    padding: 4rem 0;
    background: var(--bg-section-alt);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.partners-track {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-slider {
    display: flex;
    gap: 2rem;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

.partners-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 150px;
    filter: grayscale();
    cursor: pointer;

}

[data-theme="light"] .partner-logo {
    color: #9ca3af;
    background: rgba(0, 0, 0, 0.02);
}

.partner-logo:hover {
    border-color: var(--brand);
    color: var(--brand);
    filter: none;
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0 2rem;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand { max-width: 300px; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.footer-logo svg {
    width: 36px;
    height: 36px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    color: var(--text-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--brand);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 112, 239, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom .heart {
    color: var(--accent-pink);
    display: inline-block;
    transition: transform 0.2s ease;
}

.footer-bottom p:has(.heart) {
    cursor: pointer;
}

.footer-bottom p:hover .heart {
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Footer theme toggle - hidden on desktop */
.footer-theme-toggle {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: 1fr; gap: 4rem; }
    .security-visual { order: -1; min-height: 400px; }
    .integrations-grid { grid-template-columns: 1fr; gap: 3rem; }
    .device-showcase { order: -1; min-height: 350px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 5rem 0; }
    .hero { padding: 7rem 0 3rem; }
    .hero-badges { flex-direction: column; align-items: center; }
    .badge { width: 100%; max-width: 300px; justify-content: center; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .integration-features { grid-template-columns: 1fr; }
    .platform-badges { flex-wrap: wrap; justify-content: center; width: 100%; }
    .cta-content { padding: 3rem 1.5rem; }
    .form-wrapper { padding: 2rem; }
    .footer-content { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .social-links { justify-content: center; }
    .divider-pattern { height: 60px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .container { padding: 0 16px; }
    .btn { padding: 12px 24px; }

    /* Feature cards mobile layout */
    .feature-card {
        padding: 1.5rem;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0 1rem;
        align-items: center;
    }

    .feature-card .feature-icon {
        grid-row: 1;
        grid-column: 1;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 0;
        border-radius: 14px;
    }

    .feature-card h3 {
        grid-row: 1;
        grid-column: 2;
        margin: 0;
    }

    .feature-card p {
        grid-row: 2;
        grid-column: 1 / -1;
        margin-top: 1rem;
    }

    .feature-number {
        font-size: 5rem;
        opacity: 0.06;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
    }

    [data-theme="light"] .feature-number {
        opacity: 0.1;
    }

    /* Security items mobile layout */
    .security-item {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        align-items: center;
        padding: 1rem;
    }

    .security-item-icon {
        grid-row: 1;
        grid-column: 1;
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 1.1rem;
    }

    .security-item-text {
        display: contents;
    }

    .security-item-text h4 {
        grid-row: 1;
        grid-column: 2;
        margin: 0;
    }

    .security-item-text p {
        grid-row: 2;
        grid-column: 1 / -1;
    }

    .security-item:hover {
        transform: none;
    }

    .shield-container { transform: scale(0.7); }
    .testimonial-card { padding: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}


/* ============================================
   VS COMPETITION SECTION - ESTILOS COHERENTES
   Añadir al final de main.css
   ============================================ */

/* --- DIVIDER AGGRESSIVE --- */
.divider-aggressive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 0;
}

.divider-aggressive-line {
    flex: 1;
    max-width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.divider-aggressive-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 30px var(--brand-glow);
}

/* --- VS SECTION MAIN --- */
.vs-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-section-alt);
}

.vs-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.vs-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.vs-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.vs-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: float-reverse 25s ease-in-out infinite;
}

/* --- HIGHLIGHT TAG --- */
.section-tag-warning {
    background: rgba(22, 112, 239, 0.15) !important;
    border-color: rgba(22, 112, 239, 0.4) !important;
    color: var(--brand) !important;
}

[data-theme="light"] .section-tag-warning {
    background: rgba(22, 112, 239, 0.1) !important;
    border-color: rgba(22, 112, 239, 0.3) !important;
    color: var(--brand-dark) !important;
}

/* --- KILLER STATEMENT --- */
.killer-statement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.1) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(22, 112, 239, 0.3);
    border-radius: var(--radius);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.killer-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.killer-statement p {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-heading);
    margin: 0;
}

.strike-through {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 600px) {
    .killer-statement {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .killer-statement p {
        font-size: 1.1rem;
    }
}

/* --- VS TABLE --- */
.vs-table-wrapper {
    overflow-x: auto;
    margin-bottom: 5rem;
    padding: 2px;
}

.vs-table {
    min-width: 800px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.vs-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.vs-row:last-child {
    border-bottom: none;
}

.vs-header {
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.1), rgba(22, 112, 239, 0.05));
}

.vs-header .vs-cell {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
}

.vs-cell {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.vs-feature-cell {
    background: rgba(22, 112, 239, 0.03);
    font-weight: 500;
    color: var(--text-heading);
}

.vs-feature-cell i {
    color: var(--brand);
    width: 20px;
}

.vs-them-cell {
    background: rgba(100, 116, 139, 0.03);
    color: var(--text-muted);
}

.vs-us-cell {
    background: rgba(22, 112, 239, 0.05);
}

.vs-label-bad {
    padding: 0.4rem 0.8rem;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.vs-label-good {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--brand), var(--accent-secondary));
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.vs-icon-bad {
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.6;
}

.vs-icon-good {
    color: var(--brand);
    font-size: 1.1rem;
}

.price-bad {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.price-good {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
}

.vs-row-highlight {
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.08), rgba(56, 189, 248, 0.02));
}

.vs-row-highlight .vs-us-cell {
    background: rgba(22, 112, 239, 0.12);
}

/* Light theme adjustments */
[data-theme="light"] .vs-table {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .vs-them-cell {
    background: rgba(100, 116, 139, 0.05);
}

[data-theme="light"] .vs-us-cell {
    background: rgba(22, 112, 239, 0.08);
}

/* --- KNOCKOUT SECTION --- */
.knockout-section {
    margin-bottom: 5rem;
}

.knockout-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-heading);
}

.knockout-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-heading);
}


.knockout-title i {
    color: var(--brand);
}

.knockout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 600px) {
    .knockout-grid {
        grid-template-columns: 1fr;
    }
}

.knockout-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.knockout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent-secondary));
}

.knockout-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 112, 239, 0.3);
    box-shadow: 0 20px 40px rgba(22, 112, 239, 0.15);
}

.knockout-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--brand);
    opacity: 0.1;
    font-family: var(--font-display);
    line-height: 1;
}

.knockout-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.15), rgba(56, 189, 248, 0.05));
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.knockout-icon i {
    font-size: 1.3rem;
    color: var(--brand);
}

.knockout-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.knockout-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.knockout-card p strong {
    color: var(--brand);
}

/* Light theme */
[data-theme="light"] .knockout-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .knockout-card:hover {
    box-shadow: 0 20px 40px rgba(22, 112, 239, 0.12);
}

/* --- VS CTA --- */
.vs-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.1), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(22, 112, 239, 0.2);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.vs-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(22, 112, 239, 0.1), transparent 30%);
    animation: border-rotate 10s linear infinite;
    z-index: 0;
}

.vs-cta-content {
    position: relative;
    z-index: 1;
}

.vs-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.vs-cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.vs-cta p strong {
    color: var(--brand);
}

.vs-cta .btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.vs-cta-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Light theme */
[data-theme="light"] .vs-cta {
    background: linear-gradient(135deg, rgba(22, 112, 239, 0.08), rgba(34, 197, 94, 0.04));
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .vs-table {
        min-width: 0;
    }

    .vs-row.vs-header {
        display: none;
    }

    .vs-row {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--border-color);
    }

    .vs-row:last-child {
        border-bottom: none;
    }

    .vs-cell {
        padding: 0.85rem 1rem;
        font-size: 0.85rem;
    }

    .vs-feature-cell {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-size: 0.9rem;
    }

    .vs-them-cell,
    .vs-us-cell {
        width: 50%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .vs-them-cell::before,
    .vs-us-cell::before {
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.7;
    }

    .vs-them-cell::before {
        content: "Escribas / Nuance";
        color: var(--text-muted);
    }

    .vs-us-cell::before {
        content: "Listen.Doctor";
        color: var(--brand);
    }

    .knockout-title {
        font-size: 1.4rem;
    }

    .vs-cta {
        padding: 2.5rem 1.5rem;
    }

    .vs-cta h3 {
        font-size: 1.5rem;
    }
}

/* --- ANIMATION DELAYS --- */
.knockout-card.reveal.stagger-1 { transition-delay: 0.1s; }
.knockout-card.reveal.stagger-2 { transition-delay: 0.2s; }
.knockout-card.reveal.stagger-3 { transition-delay: 0.3s; }
.knockout-card.reveal.stagger-4 { transition-delay: 0.4s; }
.knockout-card.reveal.stagger-5 { transition-delay: 0.5s; }
.knockout-card.reveal.stagger-6 { transition-delay: 0.6s; }

