:root {
    /* Colors */
    --bg-color: #040506;
    --bg-alt: #0a0b0d;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --primary: #EA4B71;
    /* n8n Pink */
    --primary-hover: #D63D60;
    --accent: #FFD166;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(4, 5, 6, 0.7);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --nav-height: 80px;
    --container-width: 1200px;
}

[data-theme="light"] {
    --bg-color: #F8F9FA;
    --bg-alt: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: rgba(0, 0, 0, 0.1);
    --card-bg: #FFFFFF;
    --card-hover: #F3F4F6;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.small-container {
    max-width: 800px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-gradient {
    background: radial-gradient(circle at center, rgba(234, 75, 113, 0.1) 0%, transparent 70%), var(--bg-color);
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.small-gap {
    gap: 16px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #111827 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 75, 113, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 75, 113, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-main);
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(234, 75, 113, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(234, 75, 113, 0.2);
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 80%, var(--bg-color) 100%);
    pointer-events: none;
    z-index: 5;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Social Proof */
.social-proof {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
    background-color: var(--bg-alt);
}

.trusted-by {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    opacity: 0.6;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s;
}

.logos-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.logo-item {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: 0.3s ease;
}

.card:hover {
    background: var(--card-hover);
    border-color: rgba(234, 75, 113, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(234, 75, 113, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    position: relative;
    padding-top: 24px;
}

.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.step:first-child::before {
    background: linear-gradient(90deg, var(--primary), var(--border));
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(234, 75, 113, 0.1);
    margin-bottom: 16px;
    line-height: 1;
}

/* ROI Calculator */
.roi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.roi-result {
    text-align: center;
    background: linear-gradient(135deg, rgba(234, 75, 113, 0.1), rgba(4, 5, 6, 0.0));
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(234, 75, 113, 0.2);
}

.result-box {
    margin-bottom: 24px;
}

.result-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
}

.highlight .amount {
    color: var(--primary);
}

.currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.roi-note {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Tiles */
.tile {
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: 0.3s;
}

.tile:hover {
    border-color: var(--primary);
}

/* Pricing */
.price-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(234, 75, 113, 0.05), transparent);
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 16px 0;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.benefits {
    margin: 24px 0 32px;
    text-align: left;
}

.benefits li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.benefits li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ */
.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header .icon {
    font-weight: 300;
    font-size: 1.5rem;
    transition: 0.3s;
}

.accordion-header[aria-expanded="true"] .icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 24px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 75, 113, 0.1);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .logo {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

/* Theme Toggle */
.theme-btn {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.theme-btn:hover {
    color: var(--primary);
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

[data-theme="light"] .icon-sun {
    display: block;
}

[data-theme="light"] .icon-moon {
    display: none;
}

/* Whatsapp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in,
.fade-in-left {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Legal Pages */
.legal-page main {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
}

.legal-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 30px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .legal-page main {
        padding-top: calc(var(--nav-height) + 20px);
    }
}

/* Chat Widget Specialized Styles */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    max-height: calc(100vh - 120px);
    max-width: calc(100vw - 60px);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .chat-container {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.chat-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(234, 75, 113, 0.2), transparent);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info .logo {
    font-size: 1.1rem;
    display: block;
}

.header-info .subtitle {
    font-size: 0.75rem;
    margin: 0;
    color: var(--primary);
    font-weight: 500;
}

#close-chat {
    font-size: 1.8rem;
    color: var(--text-main);
    line-height: 1;
    padding: 8px;
    opacity: 0.8;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

#close-chat:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

[data-theme="light"] #close-chat {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="light"] #close-chat:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .message.bot {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-wrapper {
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
}

.attachment-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.attachment-preview:empty {
    display: none;
}

.preview-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-file {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .chat-input-area {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-input-area textarea {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    resize: none;
    font-size: 0.95rem;
    padding: 4px 0;
    max-height: 120px;
}

.chat-input-area textarea:focus {
    outline: none;
}

.input-btn {
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-btn:hover {
    color: var(--primary);
}

/* Typing Indicator */
.typing-indicator {
    padding: 10px 20px;
    display: none;
    gap: 4px;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Scrollbar Style */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Responsive Widget */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 15px !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        height: min(650px, 80vh) !important;
        max-height: 85dvh !important;
        max-width: 100% !important;
        transform: translateY(120%);
        border-radius: 20px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }

    .chat-widget.active {
        transform: translateY(0);
    }

    .chat-container {
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .chat-header {
        padding: 15px 20px !important;
    }

    #close-chat {
        width: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 2.2rem !important;
        z-index: 10002 !important;
        position: relative !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        line-height: 1 !important;
        padding-bottom: 4px !important;
        color: white !important;
        opacity: 1 !important;
    }

    [data-theme="light"] #close-chat {
        background: rgba(0, 0, 0, 0.1) !important;
        color: var(--text-main) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
}

/* Landscape Adaptation for Mobiles/Tablets */
@media (max-height: 500px) and (max-width: 900px) {
    .chat-widget {
        height: 85vh !important;
        width: 400px !important;
        right: 20px !important;
        left: auto !important;
        bottom: 10px !important;
    }

    .chat-header {
        padding: 8px 15px !important;
    }

    .chat-messages {
        padding: 10px !important;
    }

    .chat-input-area {
        padding: 8px !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .contact-container,
    .roi-wrapper {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .step::before {
        width: 2px;
        height: 100%;
        left: -16px;
        top: 0;
    }

    .step {
        padding-top: 0;
        padding-left: 24px;
        margin-left: 16px;
    }
}