/* ── Reset & Variables ──────────────────── */
:root {
    --bg: #ffffff;
    --bg-raised: #f8f8fa;
    --bg-card: #f3f3f6;
    --bg-card-hover: #eaeaef;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --text-primary: #111118;
    --text-secondary: #555566;
    --text-muted: #999aab;

    --accent: #6c5ce7;
    --accent-light: #5a4bd1;
    --accent-glow: rgba(108, 92, 231, 0.12);
    --green: #059669;
    --green-glow: rgba(5, 150, 105, 0.12);
    --pink: #db2777;
    --amber: #d97706;
    --teal: #0d9488;

    --gradient-accent: linear-gradient(135deg, var(--accent), var(--teal));
    --gradient-warm: linear-gradient(135deg, var(--pink), var(--amber));
    --gradient-cool: linear-gradient(135deg, var(--teal), var(--green));

    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.25s var(--ease);
    --transition-slow: 0.6s var(--ease);

    /* Theme toggle defaults (light) */
    --nav-scrolled-bg: rgba(255, 255, 255, 0.85);
    --modal-input-bg: #fff;
    --selection-color: #111;
    --monitor-frame-bg: #1a1a24;
    --monitor-screen-bg: #0e0e16;
}

/* ── Dark Theme ─────────────────────────── */
[data-theme="dark"] {
    --bg: #0c0c14;
    --bg-raised: #13131e;
    --bg-card: #1a1a28;
    --bg-card-hover: #222233;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #eeeef2;
    --text-secondary: #a0a0b8;
    --text-muted: #666680;

    --accent: #8b7cf7;
    --accent-light: #a99ffa;
    --accent-glow: rgba(139, 124, 247, 0.15);
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.15);
    --pink: #f472b6;
    --amber: #fbbf24;
    --teal: #2dd4bf;

    --nav-scrolled-bg: rgba(12, 12, 20, 0.88);
    --modal-input-bg: #1a1a28;
    --selection-color: #fff;
    --monitor-frame-bg: #0a0a12;
    --monitor-screen-bg: #050508;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.65;
    font-weight: 400;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; }

::selection {
    background: rgba(108, 92, 231, 0.2);
    color: var(--selection-color);
}

/* ── Cursor Glow ─────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(circle, rgba(49, 133, 155, 0.09) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s;
    opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

@media (hover: none) {
    .cursor-glow { display: none; }
}

/* ── Container ───────────────────────────── */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ──────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo:hover .logo-img {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    letter-spacing: -0.01em;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8125rem;
}

.nav-cta:hover {
    background: var(--accent-light);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.btn-primary:hover i {
    transform: translateX(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.03);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.06);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.9375rem;
}

.btn-block {
    width: 100%;
}

.btn-product {
    background: var(--accent);
    color: #fff;
}

.btn-product:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* ── HERO ────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

/* ── Global Noise Overlay ────────────────── */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 9996;
    pointer-events: none;
    opacity: 0.02;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

[data-theme="dark"] .noise-overlay {
    opacity: 0.035;
}

/* ── Hero Parallax System ────────────────── */
.hero-parallax {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient-mesh {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background:
        conic-gradient(from 45deg at 30% 35%, rgba(49, 133, 155, 0.1) 0deg, transparent 120deg),
        conic-gradient(from 200deg at 70% 60%, rgba(108, 92, 231, 0.07) 0deg, transparent 100deg),
        conic-gradient(from 320deg at 50% 80%, rgba(13, 148, 136, 0.05) 0deg, transparent 90deg);
    animation: meshSpin 45s linear infinite;
    will-change: transform;
    -webkit-mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, black 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 45% 45% at 50% 50%, black 0%, transparent 80%);
}

[data-theme="dark"] .hero-gradient-mesh {
    background:
        conic-gradient(from 45deg at 30% 35%, rgba(49, 133, 155, 0.15) 0deg, transparent 120deg),
        conic-gradient(from 200deg at 70% 60%, rgba(108, 92, 231, 0.12) 0deg, transparent 100deg),
        conic-gradient(from 320deg at 50% 80%, rgba(13, 148, 136, 0.08) 0deg, transparent 90deg);
}

.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--text-muted) 0.7px, transparent 0.7px);
    background-size: 28px 28px;
    opacity: 0.06;
    -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, black 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 50% at 50% 45%, black 10%, transparent 75%);
}

[data-theme="dark"] .hero-dot-grid {
    opacity: 0.1;
}

.hero-shapes-layer {
    position: absolute;
    inset: 0;
}

.hero-noise {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.018;
    mix-blend-mode: overlay;
    pointer-events: none;
}

[data-theme="dark"] .hero-noise {
    opacity: 0.03;
}

/* Floating shapes base */
.h-shape {
    position: absolute;
    will-change: transform;
    pointer-events: none;
}

/* ── Glow Orbs ── */
.h-orb {
    border-radius: 50%;
    filter: blur(80px);
}

.h-orb-1 {
    width: 550px;
    height: 380px;
    top: -12%;
    left: 35%;
    background: rgba(49, 133, 155, 0.09);
}

.h-orb-2 {
    width: 320px;
    height: 320px;
    bottom: 5%;
    left: 8%;
    background: rgba(108, 92, 231, 0.07);
}

.h-orb-3 {
    width: 280px;
    height: 280px;
    top: 25%;
    right: -5%;
    background: rgba(13, 148, 136, 0.06);
}

[data-theme="dark"] .h-orb-1 { background: rgba(49, 133, 155, 0.14); }
[data-theme="dark"] .h-orb-2 { background: rgba(108, 92, 231, 0.1); }
[data-theme="dark"] .h-orb-3 { background: rgba(13, 148, 136, 0.08); }

/* ── Rings ── */
.h-ring {
    border-radius: 50%;
    border: 1.5px solid rgba(49, 133, 155, 0.12);
}

.h-ring-1 {
    width: 280px;
    height: 280px;
    top: 6%;
    right: 8%;
}

.h-ring-2 {
    width: 160px;
    height: 160px;
    bottom: 18%;
    left: 6%;
    border-color: rgba(108, 92, 231, 0.1);
}

.h-ring-3 {
    width: 100px;
    height: 100px;
    top: 55%;
    right: 22%;
    border-color: rgba(13, 148, 136, 0.1);
    border-style: dashed;
}

[data-theme="dark"] .h-ring-1 { border-color: rgba(49, 133, 155, 0.2); }
[data-theme="dark"] .h-ring-2 { border-color: rgba(108, 92, 231, 0.16); }
[data-theme="dark"] .h-ring-3 { border-color: rgba(13, 148, 136, 0.16); }

/* ── Diamonds ── */
.h-diamond {
    border: 1.5px solid rgba(49, 133, 155, 0.1);
}

.h-diamond-1 {
    width: 55px;
    height: 55px;
    top: 22%;
    left: 12%;
}

.h-diamond-2 {
    width: 35px;
    height: 35px;
    bottom: 28%;
    right: 14%;
    border-color: rgba(108, 92, 231, 0.08);
}

[data-theme="dark"] .h-diamond-1 { border-color: rgba(49, 133, 155, 0.18); }
[data-theme="dark"] .h-diamond-2 { border-color: rgba(108, 92, 231, 0.14); }

/* ── Beams ── */
.h-beam {
    height: 1px;
}

.h-beam-1 {
    width: 200px;
    top: 30%;
    right: 6%;
    background: linear-gradient(90deg, transparent, rgba(49, 133, 155, 0.3), transparent);
    transform: rotate(-20deg);
}

.h-beam-2 {
    width: 140px;
    bottom: 20%;
    left: 10%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.2), transparent);
    transform: rotate(15deg);
}

.h-beam-3 {
    width: 180px;
    top: 68%;
    left: 28%;
    background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.2), transparent);
    transform: rotate(-8deg);
}

[data-theme="dark"] .h-beam-1 { background: linear-gradient(90deg, transparent, rgba(49, 133, 155, 0.4), transparent); }
[data-theme="dark"] .h-beam-2 { background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.3), transparent); }
[data-theme="dark"] .h-beam-3 { background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.3), transparent); }

/* ── Crosses ── */
.h-cross {
    width: 18px;
    height: 18px;
}

.h-cross::before,
.h-cross::after {
    content: '';
    position: absolute;
    background: rgba(49, 133, 155, 0.25);
}

.h-cross::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.h-cross::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.h-cross-1 { top: 15%; left: 25%; }
.h-cross-2 { bottom: 25%; right: 22%; }
.h-cross-3 { top: 62%; left: 7%; }

[data-theme="dark"] .h-cross::before,
[data-theme="dark"] .h-cross::after {
    background: rgba(49, 133, 155, 0.35);
}

/* ── Arc ── */
.h-arc {
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(49, 133, 155, 0.15);
    border-right-color: rgba(49, 133, 155, 0.08);
}

.h-arc-1 {
    width: 220px;
    height: 220px;
    bottom: 8%;
    right: 15%;
}

[data-theme="dark"] .h-arc-1 {
    border-top-color: rgba(49, 133, 155, 0.25);
    border-right-color: rgba(49, 133, 155, 0.12);
}

/* ── Parallax Keyframes ──────────────────── */
@keyframes meshSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes beamPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.85; }
}

@keyframes orbBreathe {
    0%, 100% { opacity: 1; filter: blur(80px); }
    50% { opacity: 0.6; filter: blur(100px); }
}

.h-beam-1 { animation: beamPulse 5s ease-in-out infinite; }
.h-beam-2 { animation: beamPulse 6.5s ease-in-out infinite 1.5s; }
.h-beam-3 { animation: beamPulse 7s ease-in-out infinite 3s; }

.h-orb-1 { animation: orbBreathe 9s ease-in-out infinite; }
.h-orb-2 { animation: orbBreathe 12s ease-in-out infinite 3s; }
.h-orb-3 { animation: orbBreathe 10s ease-in-out infinite 6s; }

/* Hero content will-change for smooth depth parallax */
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-trust {
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-logo-wrap {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.05s forwards;
}

.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(108, 92, 231, 0.1));
}

/* Hero Claim */
.hero-claim {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.15s forwards;
}

.hero-claim-text {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.15);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 540px;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

/* Hero Trust Bar */
.hero-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.hero-trust-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-trust-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.35;
    transition: var(--transition);
}

.hero-trust-logos img:hover {
    opacity: 0.7;
}

.hero-trust-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Scroll Hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.8s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.7); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ── Section Headers ─────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

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

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

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

.gradient-text-4 {
    background: linear-gradient(135deg, var(--amber), #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-5 {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-6 {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-7 {
    background: linear-gradient(135deg, #0d9488, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-8 {
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ── Products Intro ──────────────────────── */
.products-intro {
    padding: 120px 0 32px;
    position: relative;
}

/* ── Product Sections ────────────────────── */
.product-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.product-parallax-bg {
    position: absolute;
    inset: -100px;
    z-index: 0;
    will-change: transform;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.product-erp .shape-1 {
    width: 400px; height: 400px;
    background: rgba(108, 92, 231, 0.15);
    top: -10%; right: -5%;
}
.product-erp .shape-2 {
    width: 250px; height: 250px;
    background: rgba(45, 212, 191, 0.1);
    bottom: 10%; left: 5%;
}
.product-erp .shape-3 {
    width: 180px; height: 180px;
    background: rgba(244, 114, 182, 0.06);
    top: 50%; left: 30%;
}

.product-caixas .shape-1 {
    width: 380px; height: 380px;
    background: rgba(45, 212, 191, 0.15);
    top: -5%; left: -5%;
}
.product-caixas .shape-2 {
    width: 280px; height: 280px;
    background: rgba(52, 211, 153, 0.1);
    bottom: 5%; right: 10%;
}
.product-caixas .shape-3 {
    width: 180px; height: 180px;
    background: rgba(108, 92, 231, 0.06);
    top: 40%; right: 20%;
}

.product-rotas .shape-1 {
    width: 400px; height: 400px;
    background: rgba(244, 114, 182, 0.12);
    top: -10%; right: -5%;
}
.product-rotas .shape-2 {
    width: 280px; height: 280px;
    background: rgba(251, 191, 36, 0.1);
    bottom: 10%; left: 0%;
}
.product-rotas .shape-3 {
    width: 200px; height: 200px;
    background: rgba(45, 212, 191, 0.06);
    top: 30%; left: 40%;
}

.product-tracker .shape-1 {
    width: 380px; height: 380px;
    background: rgba(251, 191, 36, 0.15);
    top: -5%; left: -5%;
}
.product-tracker .shape-2 {
    width: 280px; height: 280px;
    background: rgba(249, 115, 22, 0.1);
    bottom: 5%; right: 10%;
}
.product-tracker .shape-3 {
    width: 180px; height: 180px;
    background: rgba(108, 92, 231, 0.06);
    top: 40%; right: 25%;
}

.product-nfmd .shape-1 {
    width: 380px; height: 380px;
    background: rgba(239, 68, 68, 0.14);
    top: -8%; right: -3%;
}
.product-nfmd .shape-2 {
    width: 260px; height: 260px;
    background: rgba(249, 115, 22, 0.1);
    bottom: 8%; left: 5%;
}
.product-nfmd .shape-3 {
    width: 180px; height: 180px;
    background: rgba(251, 191, 36, 0.06);
    top: 40%; left: 30%;
}

.product-ecommerce .shape-1 {
    width: 400px; height: 400px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%; right: -5%;
}
.product-ecommerce .shape-2 {
    width: 260px; height: 260px;
    background: rgba(168, 85, 247, 0.1);
    bottom: 10%; left: 5%;
}
.product-ecommerce .shape-3 {
    width: 180px; height: 180px;
    background: rgba(52, 211, 153, 0.06);
    top: 45%; left: 35%;
}

.product-trading .shape-1 {
    width: 400px; height: 400px;
    background: rgba(13, 148, 136, 0.15);
    top: -10%; left: -5%;
}
.product-trading .shape-2 {
    width: 270px; height: 270px;
    background: rgba(6, 182, 212, 0.1);
    bottom: 8%; right: 10%;
}
.product-trading .shape-3 {
    width: 180px; height: 180px;
    background: rgba(45, 212, 191, 0.06);
    top: 40%; right: 25%;
}

.product-agenciamento .shape-1 {
    width: 400px; height: 400px;
    background: rgba(2, 132, 199, 0.15);
    top: -8%; right: -5%;
}
.product-agenciamento .shape-2 {
    width: 270px; height: 270px;
    background: rgba(124, 58, 237, 0.1);
    bottom: 10%; left: 5%;
}
.product-agenciamento .shape-3 {
    width: 180px; height: 180px;
    background: rgba(45, 212, 191, 0.06);
    top: 45%; left: 30%;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-grid-reverse {
    direction: rtl;
}

.product-grid-reverse > * {
    direction: ltr;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.12);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.badge-caixas {
    background: var(--green-glow);
    border-color: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.badge-rotas {
    background: rgba(244, 114, 182, 0.12);
    border-color: rgba(244, 114, 182, 0.1);
    color: var(--pink);
}

.badge-tracker {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.1);
    color: var(--amber);
}

.badge-ecommerce {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.badge-nfmd {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-trading {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.1);
    color: #0d9488;
}

.badge-agenciamento {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.1);
    color: #0284c7;
}

.product-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.product-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.product-features li i {
    color: var(--accent-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.product-caixas .product-features li i { color: var(--green); }
.product-rotas .product-features li i { color: var(--pink); }
.product-tracker .product-features li i { color: var(--amber); }

/* ── Device Mockups ──────────────────────── */
.product-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
    perspective: 1000px;
}

.device-monitor {
    position: relative;
    z-index: 2;
}

/* ── Monitor Frame ───────────────────────── */
.monitor-frame {
    background: #1a1a24;
    border-radius: 12px;
    padding: 10px 10px 10px;
    position: relative;
    max-width: 560px;
    transition: transform 0.4s ease-out;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.monitor-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #333;
}

.monitor-screen {
    border-radius: 6px;
    overflow: hidden;
    background: #0e0e16;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.monitor-screen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.monitor-base {
    display: none;
}

.monitor-stand {
    display: none;
}

.monitor-foot {
    display: none;
}

.monitor-frame-small {
    max-width: 380px;
}

.device-monitor-secondary {
    position: absolute;
    bottom: -20px;
    right: -40px;
    z-index: 1;
    opacity: 0.85;
    transform: scale(0.5) perspective(600px) rotateY(-4deg);
}

/* Phone */
.device-phone {
    position: relative;
    z-index: 3;
}

.phone-frame {
    width: 200px;
    background: #1a1a24;
    border-radius: 28px;
    padding: 6px;
    border: 2px solid #2a2a36;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.4s ease-out;
    cursor: pointer;
    position: relative;
}

.phone-notch {
    width: 36px;
    height: 12px;
    background: #1a1a24;
    border-radius: 20px;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    border-radius: 22px;
    overflow: hidden;
    background: #0e0e16;
    aspect-ratio: 9/19.5;
    position: relative;
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.device-phone-float {
    position: absolute;
    bottom: -16px;
    right: 0;
    z-index: 4;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Rotas phones group */
.product-showcase-rotas {
    flex-direction: column;
    gap: 16px;
}

.phones-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

.phones-group .device-phone {
    animation: phoneFloat 6s ease-in-out infinite;
}

.phones-group .device-phone-1 { animation-delay: 0s; }
.phones-group .device-phone-2 { animation-delay: 0.3s; }
.phones-group .device-phone-3 { animation-delay: 0.6s; }

.phones-group .phone-frame {
    width: 170px;
}

/* ── Services Section ────────────────────── */
.services-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.services-parallax-bg {
    position: absolute;
    inset: -50px;
    z-index: 0;
    will-change: transform;
}

.parallax-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--accent-light);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.service-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.services-cta {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* ── Consultoria Section ─────────────────── */
.consultoria-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--bg-raised);
}

.consultoria-parallax-bg {
    position: absolute;
    inset: -100px;
    z-index: 0;
    will-change: transform;
}

.consultoria-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.consultoria-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(49, 133, 155, 0.08);
    top: -15%;
    left: -10%;
}

.consultoria-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(108, 92, 231, 0.06);
    bottom: -10%;
    right: -5%;
}

.consultoria-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(5, 150, 105, 0.05);
    top: 40%;
    right: 20%;
}

.consultoria-header {
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.consultoria-badge-wrap {
    margin-bottom: 16px;
}

.badge-consultoria {
    background: rgba(49, 133, 155, 0.12);
    border-color: rgba(49, 133, 155, 0.15);
    color: #31859B;
}

[data-theme="dark"] .badge-consultoria {
    background: rgba(49, 133, 155, 0.18);
    border-color: rgba(49, 133, 155, 0.25);
    color: #4db8cf;
}

.consultoria-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* Two-column intro */
.consultoria-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.consultoria-lead {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.consultoria-lead strong {
    color: var(--text-primary);
    font-weight: 600;
}

.consultoria-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.consultoria-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Stats */
.consultoria-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #31859B;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}

[data-theme="dark"] .stat-number {
    color: #4db8cf;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* BI Showcase — full width */
.consultoria-bi-showcase {
    position: relative;
    z-index: 1;
    margin-bottom: 48px;
    text-align: center;
}

.bi-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #31859B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(49, 133, 155, 0.1);
    border: 1px solid rgba(49, 133, 155, 0.15);
}

[data-theme="dark"] .bi-label {
    color: #4db8cf;
    background: rgba(49, 133, 155, 0.15);
    border-color: rgba(49, 133, 155, 0.25);
}

.bi-monitor-wrap {
    max-width: 960px;
    margin: 0 auto;
}

.consultoria-bi-showcase .monitor-frame {
    max-width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(49, 133, 155, 0.08);
}

[data-theme="dark"] .consultoria-bi-showcase .monitor-frame {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(49, 133, 155, 0.15);
}

/* Pillars — 4 columns */
.consultoria-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.consultoria-pillar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    align-items: center;
}

.consultoria-pillar:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .consultoria-pillar:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: rgba(49, 133, 155, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #31859B;
    transition: var(--transition);
}

[data-theme="dark"] .pillar-icon {
    background: rgba(49, 133, 155, 0.18);
    color: #4db8cf;
}

.consultoria-pillar:hover .pillar-icon {
    background: #31859B;
    color: #fff;
    box-shadow: 0 4px 12px rgba(49, 133, 155, 0.25);
}

.pillar-content h4 {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.pillar-content p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* CTA */
.consultoria-cta {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* ── Solutions Section ────────────────────── */
.solutions-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-raised);
}

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.solutions-content .section-tag {
    text-align: left;
}

.solutions-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.solutions-desc {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.solutions-list {
    list-style: none;
    margin-bottom: 32px;
}

.solutions-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.solutions-list li i {
    color: var(--accent);
    font-size: 0.875rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.solutions-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.solutions-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 300px;
}

.sol-icon {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.sol-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.sol-icon-center {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.sol-icon-center:hover {
    background: var(--accent-light);
    color: #fff;
}

/* ── Clients Section ─────────────────────── */
.clients-section {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* ── Marquee ─────────────────────────────── */
.marquee-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-wrapper + .marquee-wrapper {
    margin-top: 16px;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 60s linear infinite;
}

.marquee-track-reverse {
    animation: marqueeScrollReverse 60s linear infinite;
}

.marquee-slide {
    display: flex;
    gap: 48px;
    padding-right: 48px;
    align-items: center;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 20px;
    flex-shrink: 0;
    width: 320px;
    height: 170px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.client-logo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition);
}

.client-logo:hover img {
    opacity: 1;
}

.client-logo--compact {
    width: 240px;
}

.client-logo--compact img {
    transform: scale(0.9);
}

/* ── CTA Section ─────────────────────────── */
.cta-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-parallax-bg {
    position: absolute;
    inset: -100px;
    z-index: 0;
    will-change: transform;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(108, 92, 231, 0.06);
    top: -20%;
    right: -10%;
}

.cta-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(13, 148, 136, 0.05);
    bottom: -20%;
    left: -10%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* ── Footer ──────────────────────────────── */
.footer {
    background: #0e0e16;
    color: #fff;
    padding: 64px 0 0;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 12px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: -0.01em;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-company-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    margin: 0;
}

.footer-company-info p:first-of-type {
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.footer-company-info p strong {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: -0.01em;
}

/* ── Screenshot Preview Modal ────────────── */
.preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 40px;
    cursor: zoom-out;
}

.preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
    transition: var(--transition);
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 92vh;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.preview-overlay.active .preview-body {
    transform: scale(1);
}

/* Preview monitor - much larger */
.preview-body .monitor-frame {
    max-width: 1200px;
    width: 85vw;
    cursor: default;
    padding: 14px 14px 14px;
    border-radius: 16px;
}

.preview-body .monitor-screen {
    border-radius: 8px;
}

.preview-body .monitor-screen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Preview phone - much larger */
.preview-body .phone-frame {
    width: 320px;
    cursor: default;
    border-radius: 44px;
    padding: 10px;
    border-width: 3px;
}

.preview-body .phone-notch {
    width: 56px;
    height: 18px;
    top: 22px;
    border-radius: 20px;
}

.preview-body .phone-screen {
    border-radius: 34px;
}

@media (max-width: 768px) {
    .preview-overlay {
        padding: 20px;
    }

    .preview-body .monitor-frame {
        max-width: 95vw;
        width: 95vw;
    }

    .preview-body .phone-frame {
        width: 260px;
    }
}

/* ── Contact Modal ───────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: var(--transition-slow);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-form .form-group {
    margin-bottom: 14px;
}

.modal-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--modal-input-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition);
    outline: none;
    letter-spacing: -0.01em;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: var(--text-muted);
}

.modal-form textarea {
    resize: vertical;
    min-height: 90px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* WhatsApp section in modal */
.modal-whatsapp {
    margin-top: 16px;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.modal-divider span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 1.2rem;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.modal-success {
    text-align: center;
    padding: 16px 0;
}

.success-icon {
    font-size: 3rem;
    color: var(--green);
    margin-bottom: 12px;
}

.modal-success h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-success p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

/* ── Theme Toggle Button ─────────────────── */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: scale(1.08);
}

.theme-toggle .theme-icon-dark,
.theme-toggle .theme-icon-light {
    position: absolute;
    font-size: 0.95rem;
    transition: all 0.35s var(--ease);
    pointer-events: none;
}

/* Light theme: show moon icon */
.theme-toggle .theme-icon-dark {
    color: var(--text-secondary);
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .theme-icon-light {
    color: var(--amber);
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

/* Dark theme: show sun icon */
[data-theme="dark"] .theme-toggle .theme-icon-dark {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ── Dark Theme Specific Overrides ───────── */
[data-theme="dark"] .navbar.scrolled {
    background: var(--nav-scrolled-bg);
}

[data-theme="dark"] .cursor-glow {
    background: radial-gradient(circle, rgba(49, 133, 155, 0.09) 0%, transparent 70%);
}

[data-theme="dark"] .hero-logo {
    filter: drop-shadow(0 4px 24px rgba(139, 124, 247, 0.2)) brightness(1.1);
}

[data-theme="dark"] .hero-trust-logos img {
    opacity: 0.5;
    filter: brightness(1.5) grayscale(0.3);
}

[data-theme="dark"] .hero-trust-logos img:hover {
    opacity: 0.85;
    filter: brightness(1.8) grayscale(0);
}

[data-theme="dark"] .monitor-frame {
    background: var(--monitor-frame-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .monitor-screen {
    background: var(--monitor-screen-bg);
}

[data-theme="dark"] .phone-frame {
    background: var(--monitor-frame-bg);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .phone-notch {
    background: var(--monitor-frame-bg);
}

[data-theme="dark"] .phone-screen {
    background: var(--monitor-screen-bg);
}

[data-theme="dark"] .btn-ghost {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .modal-form input,
[data-theme="dark"] .modal-form textarea {
    background: var(--modal-input-bg);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .parallax-grid {
    background-image:
        linear-gradient(rgba(139, 124, 247, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 124, 247, 0.06) 1px, transparent 1px);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .client-logo {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .client-logo:hover {
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .client-logo img {
    filter: none;
}

[data-theme="dark"] .client-logo:hover img {
    filter: none;
}

[data-theme="dark"] .footer {
    background: #060609;
}

[data-theme="dark"] .scroll-line {
    background: linear-gradient(to bottom, var(--accent), transparent);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .preview-overlay {
    background: rgba(0, 0, 0, 0.88);
}

/* ── Reveal Animations (Advanced) ─────────── */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #31859B, #6c5ce7, #0d9488);
    background-size: 300% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 10001;
    transition: none;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reveal easing */
:root {
    --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-duration: 1s;
}

/* ── Base Reveal ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    filter: blur(4px);
    transition:
        opacity var(--reveal-duration) var(--reveal-ease),
        transform var(--reveal-duration) var(--reveal-ease),
        filter var(--reveal-duration) var(--reveal-ease);
}

[data-reveal="left"] {
    transform: translateX(-80px) rotateY(6deg) scale(0.96);
    transform-origin: right center;
}

[data-reveal="right"] {
    transform: translateX(80px) rotateY(-6deg) scale(0.96);
    transform-origin: left center;
}

[data-reveal="scale"] {
    transform: scale(0.8) rotateX(4deg);
    filter: blur(8px);
    transform-origin: center bottom;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) rotateX(0deg) rotateY(0deg) scale(1);
    filter: blur(0);
}

/* ── Glow Flash on Reveal — only on product sections ── */
.product-section[data-reveal].revealed {
    position: relative;
}

.product-section.in-view::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(49, 133, 155, 0.08), transparent 60%);
    pointer-events: none;
    animation: revealGlowFlash 1.5s var(--reveal-ease) forwards;
    z-index: 0;
}

@keyframes revealGlowFlash {
    0% { opacity: 0.6; transform: scale(1.01); }
    100% { opacity: 0; transform: scale(1); }
}

/* ── Section Header Reveal — split words ── */
.section-header[data-reveal] .section-title,
.consultoria-header[data-reveal] .consultoria-title {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--reveal-ease);
    transition-delay: 0.15s;
}

.section-header[data-reveal].revealed .section-title,
.consultoria-header[data-reveal].revealed .consultoria-title {
    clip-path: inset(0 0 0% 0);
}

.section-header[data-reveal] .section-tag {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.6s var(--reveal-ease);
}

.section-header[data-reveal].revealed .section-tag {
    transform: none;
    opacity: 1;
}

.section-header[data-reveal] .section-desc {
    transform: translateY(25px);
    opacity: 0;
    filter: blur(3px);
    transition: all 0.8s var(--reveal-ease);
    transition-delay: 0.3s;
}

.section-header[data-reveal].revealed .section-desc {
    transform: none;
    opacity: 1;
    filter: blur(0);
}

/* ── Product Info Reveal — clip + perspective ── */
.product-info[data-reveal="left"],
.product-info[data-reveal="right"] {
    perspective: 1200px;
}

.product-info[data-reveal="left"] .product-info-header {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s var(--reveal-ease);
}

.product-info[data-reveal="right"] .product-info-header {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s var(--reveal-ease);
}

.product-info[data-reveal].revealed .product-info-header {
    opacity: 1;
    transform: none;
}

.product-info[data-reveal] .product-info-body {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--reveal-ease);
    transition-delay: 0.2s;
}

.product-info[data-reveal].revealed .product-info-body {
    opacity: 1;
    transform: none;
}

/* Product features list — stagger in */
.product-info[data-reveal] .product-features li {
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.5s var(--reveal-ease);
}

.product-info[data-reveal].revealed .product-features li {
    opacity: 1;
    transform: none;
}

.product-info[data-reveal].revealed .product-features li:nth-child(1) { transition-delay: 0.3s; }
.product-info[data-reveal].revealed .product-features li:nth-child(2) { transition-delay: 0.37s; }
.product-info[data-reveal].revealed .product-features li:nth-child(3) { transition-delay: 0.44s; }
.product-info[data-reveal].revealed .product-features li:nth-child(4) { transition-delay: 0.51s; }
.product-info[data-reveal].revealed .product-features li:nth-child(5) { transition-delay: 0.58s; }
.product-info[data-reveal].revealed .product-features li:nth-child(6) { transition-delay: 0.65s; }
.product-info[data-reveal].revealed .product-features li:nth-child(7) { transition-delay: 0.72s; }
.product-info[data-reveal].revealed .product-features li:nth-child(8) { transition-delay: 0.79s; }
.product-info[data-reveal].revealed .product-features li:nth-child(9) { transition-delay: 0.86s; }

/* Product button — pop entrance */
.product-info[data-reveal] .btn-product {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: all 0.6s var(--reveal-ease);
    transition-delay: 0.5s;
}

.product-info[data-reveal].revealed .btn-product {
    opacity: 1;
    transform: none;
}

/* ── Product Showcase Reveal — dramatic 3D entrance ── */
.product-showcase[data-reveal="right"] {
    perspective: 1000px;
    transform: translateX(100px) rotateY(-8deg) scale(0.9);
    filter: blur(6px);
}

.product-showcase[data-reveal="left"] {
    perspective: 1000px;
    transform: translateX(-100px) rotateY(8deg) scale(0.9);
    filter: blur(6px);
}

.product-showcase[data-reveal].revealed {
    transform: none;
    filter: blur(0);
}

/* Monitor frame bounce-in within showcase */
.product-showcase[data-reveal] .monitor-frame {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    transition: all 0.9s var(--reveal-ease);
    transition-delay: 0.15s;
}

.product-showcase[data-reveal].revealed .monitor-frame {
    opacity: 1;
    transform: none;
}

/* Phone frames float in later */
.product-showcase[data-reveal] .phone-frame {
    opacity: 0;
    transform: translateY(40px) scale(0.85) rotate(3deg);
    transition: all 0.8s var(--reveal-ease);
    transition-delay: 0.4s;
}

.product-showcase[data-reveal].revealed .phone-frame {
    opacity: 1;
    transform: none;
}

/* Secondary monitor slides in last */
.product-showcase[data-reveal] .device-monitor-secondary {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    transition: all 0.7s var(--reveal-ease);
    transition-delay: 0.55s;
}

.product-showcase[data-reveal].revealed .device-monitor-secondary {
    opacity: 1;
    transform: none;
}

/* ── Stagger children ── */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(35px) scale(0.95);
    filter: blur(3px);
}

[data-reveal-stagger].revealed > * {
    animation: staggerCardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

[data-reveal-stagger].revealed > *:nth-child(1) { animation-delay: 0.06s; }
[data-reveal-stagger].revealed > *:nth-child(2) { animation-delay: 0.14s; }
[data-reveal-stagger].revealed > *:nth-child(3) { animation-delay: 0.22s; }
[data-reveal-stagger].revealed > *:nth-child(4) { animation-delay: 0.30s; }
[data-reveal-stagger].revealed > *:nth-child(5) { animation-delay: 0.38s; }
[data-reveal-stagger].revealed > *:nth-child(6) { animation-delay: 0.46s; }
[data-reveal-stagger].revealed > *:nth-child(7) { animation-delay: 0.54s; }
[data-reveal-stagger].revealed > *:nth-child(8) { animation-delay: 0.62s; }

@keyframes staggerCardReveal {
    0% {
        opacity: 0;
        transform: translateY(35px) scale(0.95) rotateX(5deg);
        filter: blur(3px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    80% {
        transform: translateY(-4px) scale(1.01) rotateX(0deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* ── Consultoria specific reveals ── */
.consultoria-bi-showcase[data-reveal="scale"] .monitor-frame {
    transition: all 1.1s var(--reveal-ease);
    transition-delay: 0.2s;
}

.consultoria-stats[data-reveal] .stat-number {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s var(--reveal-ease);
    transition-delay: 0.2s;
}

.consultoria-stats[data-reveal].revealed .stat-number {
    opacity: 1;
    transform: scale(1);
}

.consultoria-stats[data-reveal] .stat-label {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.5s var(--reveal-ease);
    transition-delay: 0.4s;
}

.consultoria-stats[data-reveal].revealed .stat-label {
    opacity: 1;
    transform: none;
}

.consultoria-stats[data-reveal] .stat-divider {
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.4s var(--reveal-ease);
    transition-delay: 0.3s;
}

.consultoria-stats[data-reveal].revealed .stat-divider {
    opacity: 1;
    transform: scaleY(1);
}

/* ── CTA Section Reveal ── */
.cta-content[data-reveal] .cta-title {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--reveal-ease);
    transition-delay: 0.1s;
}

.cta-content[data-reveal].revealed .cta-title {
    clip-path: inset(0 0 0% 0);
}

.cta-content[data-reveal] .btn {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.7s var(--reveal-ease);
    transition-delay: 0.4s;
}

.cta-content[data-reveal].revealed .btn {
    opacity: 1;
    transform: none;
}

/* ── Marquee — always visible (no reveal animation) ── */

/* ── Solutions visual reveal — icon grid ── */
.solutions-visual {
    perspective: 1000px;
}

.solutions-grid[data-reveal] .sol-icon {
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: all 0.5s var(--reveal-ease);
}

.solutions-grid[data-reveal].revealed .sol-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.solutions-grid[data-reveal].revealed .sol-icon:nth-child(1) { transition-delay: 0.15s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(2) { transition-delay: 0.2s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(3) { transition-delay: 0.25s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(4) { transition-delay: 0.3s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(5) { transition-delay: 0.35s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(6) { transition-delay: 0.4s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(7) { transition-delay: 0.45s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(8) { transition-delay: 0.5s; }
.solutions-grid[data-reveal].revealed .sol-icon:nth-child(9) { transition-delay: 0.55s; }

/* Scroll-driven section transforms */
.product-section {
    --scroll-progress: 0;
}

.product-section .product-info {
    transition: opacity 0.9s var(--reveal-ease), transform 0.9s var(--reveal-ease);
}

.product-section .product-showcase {
    transition: opacity 0.9s var(--reveal-ease), transform 0.9s var(--reveal-ease);
}

/* Smooth section separator line animation */
.section-separator {
    position: relative;
    height: 1px;
    margin: 0;
    border: none;
    overflow: hidden;
}

.section-separator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(49, 133, 155, 0.3), rgba(108, 92, 231, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 1.2s var(--reveal-ease);
}

.section-separator.animate-in::after {
    transform: translateX(0);
}

/* Section background morph on scroll */
.product-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(ellipse at var(--morph-x, 50%) var(--morph-y, 50%), rgba(49, 133, 155, 0.04) 0%, transparent 60%);
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.product-section.in-view::before {
    opacity: 1;
}

/* Scroll velocity blur on fast scroll */
body.fast-scroll [data-reveal].revealed {
    filter: blur(0.5px);
    transition: filter 0.15s ease;
}

body:not(.fast-scroll) [data-reveal].revealed {
    filter: blur(0);
    transition: filter 0.6s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    [data-reveal-stagger] > *,
    .product-showcase[data-reveal] .monitor-frame,
    .product-showcase[data-reveal] .phone-frame {
        transition-duration: 0.01s !important;
        animation-duration: 0.01s !important;
    }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
    .product-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .product-grid-reverse {
        direction: ltr;
    }

    .product-info {
        text-align: center;
        display: contents;
    }

    .product-info-header {
        order: 1;
    }

    .product-showcase {
        order: 2;
    }

    .product-info-body {
        order: 3;
    }

    .product-info-header,
    .product-info-body {
        text-align: center;
    }

    .product-features {
        display: inline-block;
        text-align: left;
    }

    .product-info-body .btn {
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .solutions-content {
        text-align: center;
    }

    .solutions-content .section-tag,
    .solutions-content .section-title {
        text-align: center;
    }

    .solutions-list {
        display: inline-block;
        text-align: left;
    }

    .solutions-content .btn {
        margin: 0 auto;
    }

    .consultoria-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .consultoria-pillars {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: var(--nav-scrolled-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 72px 28px;
        gap: 20px;
        transition: var(--transition-slow);
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 20px 48px;
        min-height: auto;
    }

    /* Reduce parallax complexity on mobile */
    .hero-gradient-mesh { animation-duration: 60s; }
    .h-ring, .h-diamond, .h-beam, .h-cross, .h-arc { display: none; }
    .h-orb-1 { width: 300px; height: 200px; }
    .h-orb-2 { width: 180px; height: 180px; }
    .h-orb-3 { width: 150px; height: 150px; }
    .noise-overlay { display: none; }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        height: 80px;
    }

    .hero-claim-text {
        font-size: 0.7rem;
        padding: 6px 14px;
        letter-spacing: 0.08em;
    }

    .hero-trust-logos {
        gap: 16px;
    }

    .hero-trust-logos img {
        height: 22px;
    }

    .hero-scroll-hint {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .marquee-slide {
        gap: 40px;
        padding-right: 40px;
    }

    /* Hide second marquee row on mobile — one big row only */
    .marquee-wrapper.marquee-reverse {
        display: none;
    }

    .client-logo {
        width: 300px;
        height: 150px;
        padding: 8px 12px;
        border-radius: 16px;
    }

    .client-logo--compact {
        width: 250px;
        height: 140px;
    }

    .client-logo--compact img {
        transform: scale(1);
    }

    .sol-icon {
        width: 72px;
        height: 72px;
    }

    .solutions-icon-grid {
        max-width: 250px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .consultoria-pillars {
        grid-template-columns: 1fr;
    }

    .consultoria-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .phones-group {
        gap: 8px;
    }

    .phones-group .phone-frame {
        width: 130px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-container {
        padding: 24px;
    }

    .product-showcase {
        min-height: 360px;
    }

    .monitor-frame {
        max-width: 420px;
    }

    .device-monitor-secondary {
        display: none;
    }

    /* Simplify reveals on mobile — less aggressive transforms,
       and keep content visible even if observer doesn't fire */
    [data-reveal] {
        transform: translateY(30px);
        filter: none;
    }

    [data-reveal="left"],
    [data-reveal="right"] {
        transform: translateY(30px);
        filter: none;
    }

    [data-reveal="scale"] {
        transform: scale(0.95);
        filter: none;
    }

    .product-showcase[data-reveal="right"],
    .product-showcase[data-reveal="left"] {
        transform: translateY(20px) scale(0.97);
        filter: none;
        perspective: none;
    }

    /* Disable sub-element animations on mobile — just let parent reveal handle it */
    .product-info[data-reveal] .product-info-header,
    .product-info[data-reveal] .product-info-body,
    .product-info[data-reveal] .product-features li,
    .product-info[data-reveal] .btn-product,
    .product-showcase[data-reveal] .monitor-frame,
    .product-showcase[data-reveal] .phone-frame,
    .product-showcase[data-reveal] .device-monitor-secondary,
    .section-header[data-reveal] .section-title,
    .section-header[data-reveal] .section-desc,
    .section-header[data-reveal] .section-tag,
    .consultoria-header[data-reveal] .consultoria-title,
    .consultoria-stats[data-reveal] .stat-number,
    .consultoria-stats[data-reveal] .stat-label,
    .consultoria-stats[data-reveal] .stat-divider,
    .cta-content[data-reveal] .cta-title,
    .cta-content[data-reveal] .btn {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition-delay: 0s !important;
    }

    /* Stagger children — simpler on mobile */
    [data-reveal-stagger] > * {
        filter: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .monitor-frame {
        max-width: 360px;
    }

    .phone-frame {
        width: 150px;
    }

    .product-title {
        font-size: 1.75rem;
    }
}

/* ── Smooth scroll offset ────────────────── */
[id] {
    scroll-margin-top: 72px;
}
