/* Landixa - Design System */

/* Deployment Flow Test - Timestamp: 2026-02-23 17:35 */
:root {

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #0ea5e9;
    --accent: #f43f5e;
    --bg-dark: #0a0f1d;
    /* Slightly lighter for better contrast with particles */
    --bg-card: rgba(17, 24, 39, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 8px 24px rgba(0, 0, 0, 0.15);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-blue: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

body.light-theme {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --shadow-premium: 0 8px 20px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Atmospheric Lights */
.atmosphere-layers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.light-beam {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: rotateLight 20s linear infinite;
}

.light-beam-1 {
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.light-beam-2 {
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.light-beam-3 {
    top: 40%;
    left: 60%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 70%);
    animation-duration: 40s;
}

body.light-theme .light-beam {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0) 70%);
}

@keyframes rotateLight {
    0% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.2) translate(50px, 100px);
    }

    66% {
        transform: scale(0.8) translate(-50px, 50px);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Utils */
.gradient-text {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
    pointer-events: none;
}

.brand-blue {
    color: var(--primary) !important;
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
}

/* Premium Brand Motion: Supernova Effect */
.brand-block {
    margin-bottom: 2rem;
    animation: brandFloat 6s ease-in-out infinite;
    will-change: transform;
}

.brand-motion h1,
.brand-motion .brand-subtitle {
    background: linear-gradient(90deg,
            #6366f1 0%,
            #6366f1 45%,
            #ffffff 50%,
            #6366f1 55%,
            #6366f1 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShimmer 5s linear infinite;
    display: block;
}

.brand-motion h1 {
    font-size: clamp(2.2rem, 10vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.brand-motion .brand-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    opacity: 0.9;
}

@keyframes brandFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

@keyframes brandShimmer {
    0% {
        background-position: 150% 0;
    }

    100% {
        background-position: -150% 0;
    }
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-primary-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-3d {
    position: relative;
    transform-style: preserve-3d;
}

.btn-3d:active {
    transform: translateY(2px);
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

body.light-theme .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo {
    height: 2.4rem;
    margin-top: 2px;
    width: auto;
    object-fit: contain;
}

.pro-badge {
    font-size: 0.7rem;
    background: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    /* Increased vertical breathing room */
    position: relative;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
}

.hero-visual.sticky-chat {
    position: fixed;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    z-index: 2000;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-visual.sticky-chat .floating-card {
    pointer-events: auto;
}

.floating-card {
    width: 380px;
    background: rgba(15, 15, 20, 0.7);
    /* Slightly darker for better contrast */
    backdrop-filter: blur(25px);
    border: 2px solid rgba(99, 102, 241, 0.4);
    /* Enhanced primary border */
    border-radius: 24px;
    --move-x: 0px;
    --move-y: 0px;
    transform: translate(var(--move-x), var(--move-y)) perspective(1000px) rotateY(-15deg);
    z-index: 1000;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(99, 102, 241, 0.15);
    /* Outer primary glow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .floating-card {
        width: 400px;
        /* Increased from 340px to avoid 'squashed' look */
    }

    .chat-container {
        height: 350px;
        /* Reduced from 380px */
    }

}

body.light-theme .floating-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.5);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 0 20px rgba(99, 102, 241, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
}

/* Hero Text Color Overrides */
.hero-main-title {
    background: none !important;
    -webkit-text-fill-color: #64748b !important;
    color: #64748b !important;
    animation: none !important;
    font-size: clamp(2.2rem, 10vw, 5.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-main-title .blue {
    color: #6366f1 !important;
    -webkit-text-fill-color: #6366f1 !important;
}

.hero-subtitle {
    color: #64748b !important;
    opacity: 1 !important;
}


.chat-container {
    display: flex;
    flex-direction: column;
    height: 380px;
    padding: 1.5rem;
    gap: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.ai {
    align-self: flex-start;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-main);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    min-width: 0;
    /* Prevents input from pushing out content */
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.5rem;
    font-size: 0.85rem;
    outline: none;
}

.chat-send-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

.chat-send-btn i {
    width: 16px;
    height: 16px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.ai-status i {
    width: 16px;
    height: 16px;
}

.chat-header .chat-close-btn {
    margin-left: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.skeleton-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-line.short {
    width: 40%;
}

.metrics-sim {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.metric .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric .value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
}

/* Benefits Grid */
.benefits {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.tilt-card {
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: visible;
    /* Important for popup visibility */
}

.tilt-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.1);
}

/* Benefit Popups (The WOW Factor) */
.card-popup {
    position: absolute;
    bottom: calc(100% + 1.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

body.light-theme .card-popup {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

body.light-theme .popup-features li {
    color: #1e293b;
}

.card-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
}

.tilt-card:hover .card-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.popup-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.popup-features li i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.popup-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--glass-bg);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-left: 2px solid var(--primary);
    padding-left: 1rem;
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form Section */
.leads-form-section {
    padding: 100px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    margin-bottom: 0.5rem;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 33.33%;
    background: var(--gradient-1);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 18px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 3rem;
    color: white;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.input-wrapper select option {
    background-color: #0f172a;
    /* Force dark background for dropdown */
    color: white;
}

body.light-theme .input-wrapper select option {
    background-color: white;
    color: #1e293b;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.3rem;
    display: none;
}

.input-group.invalid .error-msg {
    display: block;
}

.input-group.invalid input {
    border-color: var(--accent);
}

.checkbox-group.invalid label {
    color: var(--accent);
}

.checkbox-group.invalid input {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.checkbox-group {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.checkbox-group input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.form-footer .btn {
    flex: 1;
}

.btn-submit {
    position: relative;
    overflow: hidden;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .loader {
    display: block;
}

/* Success State */
.form-feedback {
    text-align: center;
    padding: 2rem 0;
}

.icon-success {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.redirect-timer {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
}

.cta-content {
    padding: 4rem;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* WhatsApp Floating */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.popup {
    max-width: 450px;
    position: relative;
    text-align: center;
    animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.popup-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.popup h3 {
    margin-bottom: 1rem;
}

.popup p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Scroll Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animations Core */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal-text {
    animation: revealText 1s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes revealText {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual:not(.sticky-chat) {
        display: none;
    }

    .hero-visual.sticky-chat {
        right: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        width: 100%;
        justify-content: flex-end;
        pointer-events: none;
    }

    .hero-visual.sticky-chat .floating-card {
        width: 320px;
        max-width: 80vw;
        pointer-events: auto;
        transform: perspective(1000px) rotateY(-5deg);
        /* Subtle tilt for mobile */
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .glass-nav .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .nav-links {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
    }

    .cta-content {
        padding: 2rem;
    }

    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    section {
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-top: 1rem !important;
        padding: 0 1rem;
    }

    .hero-support-text p {
        font-size: 0.95rem;
        padding: 0 1rem;
        max-width: 100%;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        padding: 1.1rem !important;
        font-size: 1rem !important;
        text-align: center !important;
    }
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: none;
}

body.light-theme .moon-icon {
    display: block;
}

/* Form Inputs Light Theme Overrides */
body.light-theme .input-wrapper input,
body.light-theme .input-wrapper select,
body.light-theme .input-wrapper textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

body.light-theme .input-wrapper input::placeholder,
body.light-theme .input-wrapper textarea::placeholder {
    color: #64748b;
}

body.light-theme .input-wrapper i {
    color: #64748b;
}

body.light-theme .input-wrapper input:focus,
body.light-theme .input-wrapper select:focus,
body.light-theme .input-wrapper textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Chatbot Light Theme Overrides */
body.light-theme .floating-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.05),
        0 0 30px rgba(99, 102, 241, 0.1);
}

body.light-theme .message.ai {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: #1e293b;
}

body.light-theme .chat-input-area {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-theme .chat-input-area input {
    color: #1e293b;
}

body.light-theme .chat-input-area input::placeholder {
    color: #94a3b8;
}

body.light-theme .chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .dot.red,
body.light-theme .dot.yellow,
body.light-theme .dot.green {
    opacity: 0.8;
}

/* Hero Brand Visibility in Light Theme - Fixed Clipping */
/* Hero Brand Visibility in Light Theme - Fixed Clipping */
body.light-theme .brand-motion h1,
body.light-theme .brand-motion .brand-subtitle {
    background: linear-gradient(90deg,
            #1e293b 0%,
            #1e293b 45%,
            #4f46e5 50%,
            #0ea5e9 55%,
            #1e293b 60%,
            #1e293b 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brandShimmer 5s linear infinite;
    color: transparent;
}

.sun-icon {
    display: block;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Pricing Section Styles */
.pricing {
    padding: 100px 0;
}





.pricing-card {
    position: relative;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    min-height: 4.5rem; /* Increased to ensure 2-line titles don't push content down */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.pricing-card .payment-info {
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pricing-card .delivery {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-card .features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pricing-card .features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-card .features li i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.pricing-card .target {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.pricing-card .w-full {
    width: 100%;
}

/* Tiers Colors */
.tier-green {
    border-bottom: 4px solid #10b981;
}

.tier-blue {
    border-bottom: 4px solid #0ea5e9;
}

.tier-purple {
    border-bottom: 4px solid #8b5cf6;
}

.tier-red {
    border-bottom: 4px solid #ef4444;
}

/* Recommended Plan Highlight */
.pricing-card.recommended {
    border: 2px solid var(--primary);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    z-index: 10;
}

.pricing-card.recommended:hover {
    transform: translateY(-10px);
}

.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Pricing Footer Info */
.pricing-footer-info {
    margin-top: 5rem;
    text-align: center;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.trust-badges span i {
    color: #10b981;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Light Theme Adaptations */
body.light-theme .pricing-card {
    background: rgba(255, 255, 255, 0.6);
}

body.light-theme .pricing-card .target {
    background: rgba(0, 0, 0, 0.03);
}

body.light-theme .pricing-card.recommended {
    background: rgba(99, 102, 241, 0.05);
}

@media (max-width: 1024px) {
    .pricing-card.recommended {
        transform: scale(1);
        margin: 1rem 0;
    }

    .pricing-card.recommended:hover {
        transform: translateY(-10px);
    }
}

/* Chatbot Mobile Optimization: Launcher & Modal */
.chat-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1, #64748B);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(30, 41, 59, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: none;
}

.chat-launcher i {
    width: 28px;
    height: 28px;
}

.chat-launcher:hover {
    transform: scale(1.1) rotate(5deg);
}

.launcher-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #6366F1;
    opacity: 0.6;
    animation: launcherPulse 2s infinite;
    z-index: -1;
}

@keyframes launcherPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    /* Only desktop logic? User asked for minimize/close on mobile */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-close-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.header-left {
    display: flex;
    gap: 6px;
}


@media (max-width: 1024px) {
    .chat-launcher {
        display: flex !important;
        /* Show bubble on mobile */
        bottom: 110px;
        /* Stacking above WhatsApp (which is at 2rem/32px + 60px height) */
        right: 2rem;
        /* Align with WhatsApp button */
        z-index: 1100;
        position: fixed;
        pointer-events: auto;
    }

    .chat-launcher.hidden {
        display: none !important;
    }

    .hero-visual.sticky-chat {
        position: fixed;
        right: 30px;
        bottom: 30px;
        width: 350px;
        height: auto;
        margin: 0;
        padding: 0;
        z-index: 2000;
        pointer-events: none;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .hero-visual.sticky-chat .floating-card {
        position: relative;
        /* Relative to the fixed container */
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 350px;
        height: 500px;
        max-height: 80vh;
        margin: 0;
        opacity: 0;
        transform: translate(var(--move-x, 0), calc(var(--move-y, 0) + 20px)) scale(0.95);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.4s;
        z-index: 2001;
        will-change: transform, opacity;
    }

    .hero-visual.sticky-chat.active .floating-card {
        opacity: 1;
        transform: translate(var(--move-x, 0), var(--move-y, 0)) scale(1);
        pointer-events: auto;
        visibility: visible;
    }

    .chat-close-btn {
        display: flex;
        /* Show close btn on mobile */
    }

    /* Hide 3D follow effects on mobile to improve performance in modal */
    .hero-visual.sticky-chat.active .floating-card {
        --move-x: 0px !important;
        --move-y: 0px !important;
    }
}

/* --- Pricing Tooltips --- */
.pricing-card {
    position: relative;
}

.pricing-card[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: rgba(15, 23, 42, 0.98);
    color: white;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    width: 280px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    pointer-events: none;
    line-height: 1.5;
}

.pricing-card[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-110%);
}

body.light-theme .pricing-card[data-tooltip]::after {
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.2);
}

/* Tooltips for individual feature items */
.pricing-card .features li[data-tooltip] {
    position: relative;
    cursor: help;
}

.pricing-card .features li[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.98);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    pointer-events: none;
    line-height: 1.4;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.pricing-card .features li[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

body.light-theme .pricing-card .features li[data-tooltip]::after {
    background: rgba(255, 255, 255, 0.98);
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* --- Pricing Tier Glowing Titles --- */
.pricing-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    font-weight: 800;
}

.tier-green .pricing-header h3 {
    background-image: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

.tier-blue .pricing-header h3 {
    background-image: linear-gradient(90deg, #3b82f6, #60a5fa, #3b82f6);
}

.tier-purple .pricing-header h3 {
    background-image: linear-gradient(90deg, #8b5cf6, #a78bfa, #8b5cf6);
}

.tier-red .pricing-header h3 {
    background-image: linear-gradient(90deg, #ef4444, #fb7185, #ef4444);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* --- Documentation Section --- */
.documentation {
    padding: 8rem 0;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.doc-actions {
    margin-top: 2rem;
}

/* --- Documentation Modal --- */
.doc-modal-content {
    max-width: 800px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.doc-container {
    padding: 3rem;
    overflow-y: auto;
    text-align: left;
}

.doc-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.doc-body {
    color: var(--text-muted);
    line-height: 1.6;
}

.doc-section {
    margin-bottom: 2.5rem;
}

.doc-section h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.doc-section h4 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem 0;
}

.doc-list,
.doc-steps {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.doc-list li,
.doc-steps li {
    margin-bottom: 0.5rem;
}

.doc-note {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-style: italic;
}

.doc-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-card::after {
        display: none;
    }

    .doc-container {
        padding: 1.5rem;
    }

    .doc-header h2 {
        font-size: 1.5rem;
    }
}

/* --- Documentation Table --- */
.doc-table-wrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.doc-table th,
.doc-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-heading);
    font-weight: 600;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 600px) {
    .doc-table {
        font-size: 0.8rem;
    }

    .doc-table th,
    .doc-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* --- Mobile Chat Close Button --- */
#chat-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

/* Cookie Consent System */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 999999;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: auto;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-content h4 {
    color: #fff;
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
}

.cookie-banner-content p {
    color: #9ca3af;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.cookie-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Adjustments */
#cookie-preferences-modal,
#cookie-policy-modal {
    z-index: 1000000;
}

.cookie-preferences-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-pref-item {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Light Theme Overrides for Cookies */
body.light-theme .cookie-banner {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.15);
}

body.light-theme .cookie-actions .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .cookie-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .cookie-banner-content h4 {
    color: #1e293b;
}

body.light-theme .cookie-banner-content p {
    color: #475569;
}

body.light-theme .cookie-pref-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

body.light-theme .cookie-pref-info h5 {
    color: #1e293b;
}

body.light-theme .cookie-pref-description {
    color: #64748b;
}

body.light-theme .slider {
    background-color: #e2e8f0;
}

body.light-theme .doc-modal-content {
    background: #ffffff;
}

body.light-theme .doc-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .doc-header h2 {
    color: #1e293b;
}

body.light-theme .doc-body {
    color: #475569;
}

body.light-theme .doc-section h3 {
    color: #1e293b;
}

body.light-theme .doc-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.switch {
    width: 40px;
    height: 22px;
    position: relative;
    display: inline-block;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(18px);
}

#chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#chat-close i {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    #chat-close {
        display: flex;
    }
}

/* FAQs Section */
.faqs {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-rgb), 0.03), transparent 40%);
}

.faq-grid {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    user-select: none;
}

.faq-question i {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.4);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .faqs {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0.5rem 1.25rem 1rem 1.25rem;
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.6;
    }

    #chat-close {
        display: flex;
    }

    .cookie-pref-item {
        padding: 0.8rem;
    }
}

/* Hero Video Section */
.hero-video {
    padding: 2rem 0 8rem 0;
    position: relative;
    z-index: 10;
}

.hero-video-section {
    text-align: center;
}

.hero-video-section .section-header {
    margin-bottom: 3rem;
}

.hero-video-section p {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

.video-premium-frame {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    overflow: hidden;
    background: #000;
    line-height: 0;
    aspect-ratio: 16 / 9;
}

#hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.light-theme .hero-video-section p {
    color: #1e293b;
}

/* Precios: 4 cards grandes y centradas */
#pricing .pricing-grid {
    display: grid !important;
    width: 100%;
    max-width: 1280px;
    /* más parecido a un container real */
    margin: 0 auto;
    gap: 24px;
    justify-content: center;
    align-items: stretch;
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    /* cards más grandes */
}

/* Centrar específicamente el grid de mantenimiento (2 columnas) */
#pricing #maintenance-grid.pricing-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 420px)) !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 900px !important;
}


/* Tablet */
@media (max-width: 1199px) {
    #pricing .pricing-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        max-width: 900px;
    }
}

/* Móvil */
@media (max-width: 680px) {
    #pricing .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

/* Anti overflow interno sin deformar layout */
#pricing .pricing-card,
#pricing .card,
#pricing .glass-card {
    min-width: 0;
}

#pricing .pricing-card *,
#pricing .card *,
#pricing .glass-card * {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-actions .btn-secondary:hover {
    color: var(--primary);
}

/* Pricing Hierarchy Adjustments */
.price-secondary {
    display: block;
    font-size: 0.55em;
    font-weight: 400;
    opacity: 0.7;
    margin-top: 4px;
}

/* Blog Styles */
.blog-section {
    padding: 120px 0 80px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
}

.blog-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.blog-intro p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {

    .blog-section,
    .blog-container,
    .blog-intro {
        width: 100% !important;
        margin: 0 auto !important;
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        box-sizing: border-box !important;
        text-align: center;
    }

    .blog-intro h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .articles-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 2rem !important;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3.5rem;
    margin-top: 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
}

.category-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--gradient-blue);
    position: relative;
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-img-container img {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary);
}

.category-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.category-page-header {
    padding: 160px 0 60px;
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
}

.category-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="white" fill-opacity="0.05"/></svg>');
    opacity: 0.3;
}

.category-page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.category-page-header .category-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.back-to-blog:hover {
    transform: translateX(-5px);
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Editorial Article Styles */
.editorial-article {
    background: var(--bg-main);
    color: var(--text-main);
    padding-bottom: 5rem;
}

.article-hero {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 5rem;
    background-color: #000;
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.7;
    z-index: 0;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.article-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.article-header-content {
    color: white;
}

.article-header-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.7;
}

.intro-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.article-index {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin: 4rem 0;
    border-radius: 20px;
}

.article-index h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.article-index ul {
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-index a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
    display: inline-block;
}

.article-index a:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.article-body h2 {
    margin: 4.5rem 0 1.8rem;
    font-size: 2rem;
    color: var(--text-main);
    line-height: 1.3;
}

.article-img {
    margin: 3.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.article-img img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-body ul {
    margin: 2rem 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.article-body li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

/* Dark theme adjustments */
.dark-theme .article-hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
}

.dark-theme .article-index {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
}

/* Article Card Hover Effects */
.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

/* FAQ PDF Download Block */
.faq-pdf-download {
    padding: 4rem 0 8rem;
    position: relative;
    z-index: 10;
}

.faq-pdf-download .download-card {
    max-width: 800px;
    margin: 0 auto;
}

.faq-pdf-download h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.faq-pdf-download .download-text {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.faq-pdf-download .details-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    display: inline-block;
    text-align: left;
}

.faq-pdf-download .details-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.faq-pdf-download .details-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
}


/* --- Refactored Utility Classes (v8.0) --- */
.hero-subtitle-refined {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-top: 0.5rem;
}

.hero-support-text-container {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-support-p-1 {
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-support-p-2 {
    margin-left: auto;
    margin-right: auto;
}

.hero-actions-centered {
    justify-content: center;
}

.features-summary-refined {
    padding: 6rem 0;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.features-summary-h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.features-summary-p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.hero-video-player-refined {
    width: 100%;
}

.success-timer {
    margin-top: 1rem;
    color: var(--text-dim);
}

.success-timer-value {
    font-weight: bold;
    color: var(--accent);
}

.error-icon-refined {
    color: var(--accent);
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* Typing Animation */
.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
}

.message.ai.typing {
    background: rgba(99, 102, 241, 0.05);
    border: none;
    width: fit-content;
}

.dot-typing {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: dot-flashing 1.4s infinite linear;
    opacity: 0.3;
}

.dot-typing:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-typing:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-flashing {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* Logo Slider */
.logo-slider {
    padding: 2.5rem 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
    gap: 0;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-left: 0;
    padding-right: 5rem;
    flex-shrink: 0;
}

.logo-slide img {
    height: 48px;
    width: auto;
    display: block;
    flex-shrink: 0;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    object-fit: contain;
}

/* Specific balancing for Hostinger */
.logo-slide img[alt="Hostinger"] {
    height: 200px;
}

/* Specific balancing for WhatsApp */
.logo-slide img[alt="WhatsApp"] {
    height: 56px;
}

/* Specific balancing for Gemini */
.logo-slide img[alt="Gemini"] {
    height: 52px;
}

/* Specific balancing for Stripe and Supabase */
.logo-slide img[alt="Stripe"],
.logo-slide img[alt="Supabase"] {
    height: 44px;
}

[data-theme="dark"] .logo-slide img {
    filter: grayscale(1) invert(1) opacity(0.5);
}

.logo-slide img:hover {
    filter: grayscale(0) opacity(1) !important;
}

@keyframes scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .logo-slider {
        padding: 1.5rem 0;
    }

    .logo-slider::before,
    .logo-slider::after {
        width: 5rem;
    }

    .logo-track {
        gap: 0;
    }

    .logo-slide {
        gap: 2.5rem;
        padding-left: 0;
        padding-right: 2.5rem;
    }

    .logo-slide img {
        height: 32px;
    }

    .logo-slide img[alt="Hostinger"] {
        height: 200px;
    }
    .logo-slide img[alt="WhatsApp"] {
    height: 56px;
    }
}
/* Chatbot CTA Button */
.chat-cta-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    background: #6366F1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    animation: chatBtnAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-cta-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

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

@keyframes chatBtnAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
