: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);
}

/* 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;
    }
}
