/* ══════════════════════════════════════════
   SinapsIA — Modern Slate Palette
   #FBC02D  Golden Yellow (Primary)
   #0F172A  Deep Slate (Background)
   #1E293B  Slate Medium (Surface)
   #F1F5F9  Smoke White (Text)
   #38BDF8  Cyan (Accent)
   ══════════════════════════════════════════ */

:root {
    --gold: #FBC02D;
    --gold-hover: #F9A825;
    --gold-dim: rgba(251, 192, 45, 0.12);
    --gold-glow: rgba(251, 192, 45, 0.35);

    --bg: #0F172A;
    --bg-deep: #0B1120;
    --surface: #1E293B;
    --surface-light: #273548;

    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    --cyan: #38BDF8;
    --cyan-dim: rgba(56, 189, 248, 0.12);

    --border: rgba(148, 163, 184, 0.08);
    --border-hover: rgba(148, 163, 184, 0.15);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h: 72px;
}

/* ═══ RESET ═══ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

/* ═══ UTILITIES ═══ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background: var(--bg-deep);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(251, 192, 45, 0.2);
    margin-bottom: 16px;
}

.highlight {
    color: var(--gold);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-md {
    width: 22px;
    height: 22px;
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.35s var(--ease);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-glow {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 0 0 var(--gold-glow);
}

.btn-glow:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-xl {
    padding: 18px 42px;
    font-size: 1.15rem;
}

/* ═══ NAVBAR ═══ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--gold);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: #000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: var(--bg-deep);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
    transition: all 0.4s var(--ease);
    z-index: 99;
    opacity: 0;
}

.mobile-nav.open {
    height: calc(100vh - var(--nav-h));
    padding: 24px;
    opacity: 1;
}

.mobile-nav a {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.mobile-nav a:hover {
    color: var(--gold);
}

.mobile-cta {
    margin-top: 20px;
    text-align: center;
    justify-content: center;
}

/* ═══ HERO ═══ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 40px) 24px 40px;
    text-align: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid rgba(251, 192, 45, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
}

#hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-metrics {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding: 28px 40px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.metric {
    text-align: center;
}

.metric-val {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--mono);
}

.metric-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.metric-label {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border-hover);
}

/* ═══ TRUST / MARQUEE ═══ */
.trust-bar {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-deep);
}

.marquee {
    position: relative;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ═══ SPLIT LAYOUT (philosophie) ═══ */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.split-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.split-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.mini-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.mini-card h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.mini-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.mini-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--gold-dim);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-icon.accent {
    background: var(--cyan-dim);
    color: var(--cyan);
}

.mini-icon.warm {
    background: rgba(251, 113, 133, 0.12);
    color: #FB7185;
}

/* ═══ BENTO GRID (services) ═══ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    background-size: cover;
    background-position: center;
}

.bento-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 1;
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 36px;
}

.bento-content i {
    width: 40px;
    height: 40px;
    color: var(--gold);
    margin-bottom: 20px;
}

.bento-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.bento-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bento-lg {
    grid-column: span 1;
    min-height: 320px;
}

.bento-md {
    grid-column: span 1;
    min-height: 320px;
}

.bento-accent {
    border-color: rgba(251, 192, 45, 0.3);
}

.bento-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: var(--gold);
    color: #000;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══ PRODUCTS ═══ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--border-hover);
}

.product-visual {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, var(--surface) 100%);
}

.product-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.product-body {
    padding: 24px 28px 28px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.product-header i {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

.product-header h3 {
    font-size: 1.3rem;
}

.product-body>p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-metrics {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-metrics div {
    display: flex;
    flex-direction: column;
}

.product-metrics strong {
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 800;
}

.product-metrics small {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ═══ PROCESS TIMELINE ═══ */
.process-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.process-step {
    flex: 1;
    max-width: 300px;
    padding: 32px;
    text-align: center;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(251, 192, 45, 0.15);
    font-family: var(--mono);
    margin-bottom: 8px;
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--gold-dim);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(251, 192, 45, 0.2);
}

.step-icon i {
    width: 24px;
    height: 24px;
}

.process-step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 100px;
    flex-shrink: 0;
}

/* ═══ WHY US ═══ */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 16px;
    line-height: 1.2;
}

.why-us-text p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.why-us-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.diff-card {
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.diff-card:hover {
    border-color: var(--gold);
    background: var(--surface-light);
}

.diff-card i {
    width: 28px;
    height: 28px;
    color: var(--gold);
    margin-bottom: 12px;
}

.diff-card h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.diff-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ═══ FAQ ═══ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.3s;
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--gold);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary span:first-child {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: -4px;
}

/* ═══ FINAL CTA ═══ */
.cta-final {
    text-align: center;
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.cta-final .container {
    position: relative;
    z-index: 2;
}

.cta-final h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}

.cta-final p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-buttons {
    margin-bottom: 30px;
}

.cta-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.88rem;
}

/* ═══ FOOTER ═══ */
footer {
    border-top: 1px solid var(--border);
    padding-top: 48px;
    padding-bottom: 24px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ═══ ANIMATIONS ═══ */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate="fade-right"] {
    transform: translateX(-32px);
}

[data-animate="fade-left"] {
    transform: translateX(32px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-connector {
        width: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .metric-divider {
        width: 60px;
        height: 1px;
    }

    .split-layout,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-lg,
    .bento-md {
        min-height: 260px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--gold), transparent);
        margin: 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg,
    .btn-xl {
        width: 100%;
        justify-content: center;
    }

    .bento-content {
        padding: 24px;
    }

    .product-body {
        padding: 20px;
    }
}