:root {
    /* Brand Colors */
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --secondary: #0EA5E9;
    /* Sky 500 */
    --accent: #F43F5E;
    /* Rose 500 */
    --gold: #D97706;
    /* Ember 600 */

    /* Neutrals */
    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --text-main: #0F172A;
    /* Slate 900 */
    --text-muted: #64748B;
    /* Slate 500 */
    --border: #E2E8F0;
    /* Slate 200 */

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 100%);
    --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.3);

    /* Fonts */
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    line-height: 1.1;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Helper Classes */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-negative {
    z-index: -10;
}

/* renamed from -z-10 for cleaner vanilla css */
.overflow-hidden {
    overflow: hidden;
}

.pointer-events-none {
    pointer-events: none;
}

.mt-12 {
    margin-top: 3rem;
}


/* --- Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: white;
}

.btn-ghost {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.btn-ghost:hover {
    background: rgba(79, 70, 229, 0.2);
}

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Background Blobs --- */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-float 10s infinite alternate;
}

.blob-1 {
    top: -200px;
    left: -100px;
    background: #c7d2fe;
}

.blob-2 {
    bottom: -200px;
    right: -100px;
    background: #bae6fd;
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -5;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* --- Hero Section --- */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding-top: 4rem;
    /* For fixed nav */
    min-height: 90vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 50ch;
}

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

.hero-stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-simple strong {
    display: block;
    font-size: 1.25rem;
    font-family: var(--font-head);
    color: var(--text-main);
}

.stat-simple span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.separator {
    width: 1px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero-img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    z-index: 2;
    animation: float-y 4s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -20px;
    transform: rotate(-2deg);
}

.badge-1 i {
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
    transform: rotate(2deg);
}

.badge-2 i {
    color: #10B981;
    font-size: 1.25rem;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(var(--r, 0deg));
    }
}

/* --- Marquee --- */
.marquee-container {
    background: var(--text-main);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
    transform: rotate(-1deg);
    margin: 2rem -1rem;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: slide 30s linear infinite;
}

.marquee-content span {
    font-weight: 700;
    margin: 0 2rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* --- Bento Grid / Contexto --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-large {
    grid-column: span 1;
    grid-row: span 2;
    background: var(--text-main);
    color: white;
    border: none;
}

.card-large p {
    color: #94a3b8;
}

.card-large h3 {
    color: white;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.bg-blue {
    background: var(--secondary);
}

.bg-purple {
    background: var(--primary);
}

.bg-pink {
    background: var(--accent);
}

.chart-graphic {
    margin-top: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 100px;
}

.bar {
    width: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.bar-1 {
    height: 30%;
}

.bar-2 {
    height: 50%;
}

.bar-3 {
    height: 80%;
    background: var(--secondary);
}

/* --- Split Section (Silver Economy) --- */
.dark-section {
    background: #0f172a;
    /* Slate 900 */
    color: white;
}

.dark-section .section-title {
    color: white;
}

.dark-section .section-desc {
    color: #94a3b8;
}

.dark-section .section-subtitle {
    color: #818cf8;
}

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

.image-stack {
    position: relative;
    height: 400px;
}

.stack-img {
    position: absolute;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 80%;
    object-fit: cover;
}

.img-back {
    top: 0;
    left: 0;
    opacity: 0.6;
    transform: scale(0.9);
}

.img-front {
    bottom: 0;
    right: 0;
    z-index: 1;
    border: 4px solid #0f172a;
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-list i {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.feature-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-list p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* --- Comparison (Brecha) --- */
.comparison-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.comp-card {
    flex: 1;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-head);
}

.negative {
    border-top: 4px solid var(--accent);
}

.negative .comp-header {
    color: var(--accent);
}

.positive {
    border-top: 4px solid #10B981;
}

.positive .comp-header {
    color: #10B981;
}

.comp-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.comp-list li:last-child {
    border-bottom: none;
}

.comp-icon {
    font-size: 2rem;
    color: var(--text-muted);
    background: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

/* --- Solution --- */
.solution-section {
    background: var(--grad-primary);
    color: white;
}

.solution-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.white .section-title,
.white .section-desc,
.white .section-subtitle {
    color: white;
}

.white .section-subtitle {
    opacity: 0.8;
}

.white .section-desc {
    opacity: 0.9;
}

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

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

.cta-box {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border-radius: 1.5rem;
    margin-top: 4rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--text-main);
    color: white;
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

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

.footer-nav .col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #94a3b8;
}

.footer-nav a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748B;
    font-size: 0.875rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-actions,
    .hero-stats-row {
        justify-content: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .nav-menu,
    .nav-actions .btn {
        display: none;
        /* In production would implement js toggle */
    }

    .mobile-toggle {
        display: block;
    }

    .bento-grid,
    .split-container,
    .comparison-cards,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 2rem;
    }
}