:root {
    --bg: #070b18;
    --bg-alt: #0a1022;
    --panel: #0e1629;
    --panel-2: #121c34;
    --line: rgba(148, 163, 184, .12);
    --line-2: rgba(148, 163, 184, .22);
    --text: #cbd5e1;
    --muted: #8391a7;
    --white: #f1f5f9;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --radius: 14px;
    --shadow: 0 16px 40px rgba(0, 0, 0, .45);
    --grad: linear-gradient(135deg, var(--blue), var(--cyan));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px;
    font: 600 .95rem/1 inherit; font-family: inherit;
    color: #fff; background: var(--grad);
    border: 0; border-radius: 10px; cursor: pointer;
    box-shadow: 0 6px 22px rgba(59, 130, 246, .35);
    transition: box-shadow .3s, transform .2s ease-out;
}
.btn::after {           /* light sweep on hover */
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: left .6s;
}
.btn:hover { box-shadow: 0 10px 34px rgba(34, 211, 238, .45); }
.btn:hover::after { left: 140%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { background: transparent; border: 1.5px solid var(--line-2); box-shadow: none; }
.btn-outline:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34,211,238,.3), inset 0 0 12px rgba(34,211,238,.12); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* ---------- nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: var(--nav-pad, 18px) 0;
    transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
    background: rgba(7, 11, 24, .82); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.35); padding: calc(var(--nav-pad, 18px) * .55) 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--white); }
.logo-mark {
    width: 30px; height: 30px; border-radius: 8px; background: var(--grad); position: relative;
    box-shadow: 0 0 16px rgba(34,211,238,.5);
}
.logo-img { height: var(--logo-h, 44px); width: auto; max-width: 320px; object-fit: contain; display: block; transition: filter .3s, transform .3s; }
.logo:hover .logo-img { filter: drop-shadow(0 0 10px rgba(34,211,238,.55)); transform: scale(1.04); }
.nav.scrolled .logo-img { height: calc(var(--logo-h, 44px) * .85); }
.nav .logo-img { transition: height .3s, filter .3s, transform .3s; }
.footer .logo-img { height: var(--logo-fh, 40px); }
.logo-mark::after { content: ""; position: absolute; inset: 8px; border: 2px solid #fff; border-radius: 3px; transform: rotate(45deg); }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav > a:not(.btn) { position: relative; font-weight: 500; font-size: .95rem; color: var(--text); transition: color .3s; }
.nav nav > a:not(.btn):hover { color: var(--white); }
.nav nav > a:not(.btn)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
    background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.nav nav > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 8px; }
.lang-switch a { padding: 4px 8px; font-size: .75rem; font-weight: 700; color: var(--muted); border-radius: 5px; transition: .25s; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.active { color: #fff; background: var(--grad); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 2px; background: var(--white); transition: .3s; }
.menu-btn span:first-child { top: 5px; } .menu-btn span:last-child { bottom: 5px; }

/* ---------- hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: radial-gradient(ellipse at 70% 25%, #16306e 0%, #0b1533 38%, var(--bg) 78%);
    color: #fff; overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; border-radius: 99px; font-size: .85rem; font-weight: 500;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); line-height: 1.12; font-weight: 800; margin: 22px 0; letter-spacing: -.02em; color: var(--white); }
.lead { max-width: 580px; font-size: 1.12rem; color: rgba(226,232,240,.7); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; z-index: 1; bottom: 30px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.clients-section { padding-top: 40px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 14px; letter-spacing: -.01em; }
.section-head p, .about p, .contact-wrap > div > p { color: var(--muted); }

.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards with mouse-follow glow ---------- */
.card {
    position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; overflow: hidden; isolation: isolate;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.glow::before {           /* spotlight that follows the cursor */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.14), transparent 45%);
}
.glow::after {            /* glowing border that follows the cursor */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .4s;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--cyan), var(--blue) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.glow:hover::before, .glow:hover::after { opacity: 1; }
article.card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 30px rgba(59,130,246,.12); }

.card-icon {
    width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(34,211,238,.1)); color: var(--cyan);
    border: 1px solid var(--line);
    transition: background .4s, color .4s, box-shadow .4s, transform .4s;
}
.ico { width: 28px; height: 28px; }
.ico * { stroke-dasharray: 80; stroke-dashoffset: 0; }
.card:hover .card-icon { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(34,211,238,.4); transform: rotate(-6deg) scale(1.05); }
.card:hover .ico * { animation: draw 1.1s ease forwards; }   /* icon re-draws itself */
@keyframes draw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.card h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--cyan); }
.card-link em { display: inline-block; font-style: normal; transition: transform .3s; }
.card:hover .card-link em { transform: translateX(6px); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before {          /* connecting line */
    content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, transparent 8px 16px); opacity: .3;
}
.step { text-align: center; position: relative; }
.step-num {
    width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 800; font-size: 1.2rem; color: var(--cyan); background: var(--panel);
    border: 2px solid var(--line-2); position: relative; transition: .4s;
}
.step-num::before {       /* rotating ring on hover */
    content: ""; position: absolute; inset: -7px; border-radius: 50%;
    border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--blue);
    opacity: 0; transition: opacity .3s;
}
.step:hover .step-num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 30px rgba(34,211,238,.45); }
.step:hover .step-num::before { opacity: 1; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step h3 { color: var(--white); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- client logos marquee ---------- */
.marquee {
    overflow: hidden; padding: 30px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile {
    position: relative;
    width: 200px; height: 110px; margin-right: 90px; flex-shrink: 0;
    transition: transform .35s;
}
.logo-tile img {           /* full-colour logo */
    position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px);
    object-fit: contain; object-position: center; display: block;
}
.logo-tile:hover { transform: translateY(-6px) scale(1.08); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { padding-left: 32px; position: relative; font-weight: 500; color: var(--text); }
.checks li::before {
    content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--grad);
}
.tech-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
    padding: 12px 22px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
    font-weight: 600; color: var(--white);
    transition: transform .3s, box-shadow .3s, color .3s, border-color .3s;
}
.chip:hover { transform: translateY(-4px) scale(1.05); color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.1), 0 10px 24px rgba(34,211,238,.18); }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; max-width: 720px; text-align: center; }
.contact-wrap .contact { text-align: left; }
.contact-info { margin-top: 22px; display: flex; justify-content: center; }
.contact-info div { display: inline-flex; gap: 10px; align-items: center; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); transition: border-color .3s, box-shadow .3s; }
.contact-info div:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34,211,238,.2); }
.contact-info b { color: var(--white); }
.contact-info a, .contact-info span { color: var(--muted); transition: color .25s; }
.contact-info a:hover { color: var(--cyan); }
.contact { display: grid; gap: 20px; box-shadow: var(--shadow); }
.field { position: relative; }
.field input, .field textarea {
    width: 100%; padding: 22px 16px 8px; font: inherit; color: var(--white);
    border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); resize: vertical;
    transition: border-color .3s, box-shadow .3s;
}
.field label { position: absolute; left: 17px; top: 15px; color: var(--muted); pointer-events: none; transition: .25s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 5px; font-size: .74rem; color: var(--cyan); font-weight: 600; }
.contact .btn { justify-self: stretch; }
.form-status { min-height: 1.4em; font-size: .92rem; font-weight: 500; }
.form-status.ok { color: #34d399; }
.form-status.err { color: #f87171; }

/* ---------- footer ---------- */
.footer { background: #050814; border-top: 1px solid var(--line); color: var(--muted); padding: var(--foot-pad, 34px) 0; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-text { line-height: 1.7; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    color: #fff; background: #25d366;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .3s, box-shadow .3s;
}
.whatsapp svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.whatsapp::before, .whatsapp::after {  /* pulsing rings */
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: #25d366; animation: wa-pulse 2.2s ease-out infinite;
}
.whatsapp::after { animation-delay: 1.1s; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
.whatsapp:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 10px 34px rgba(37,211,102,.65); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0ms); }
.reveal.visible { opacity: 1; transform: none; }
article.card.reveal.visible:hover { transform: translateY(-8px); transition-delay: 0ms; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .nav nav { gap: 20px; }
}
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .steps::before { display: none; }
    .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
    .menu-btn { display: block; }
    .nav nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
        background: rgba(7,11,24,.97); border-bottom: 1px solid var(--line); display: none; padding: 10px 20px 20px;
    }
    .nav nav > a:not(.btn) { padding: 12px 0; }
    .lang-switch { align-self: flex-start; margin: 10px 0; }
    body.menu-open .nav nav { display: flex; }
    body.menu-open .nav { background: rgba(7,11,24,.97); }
}
@media (max-width: 720px) {
    .grid-3, .steps { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .logo-tile { width: 160px; height: 90px; margin-right: 56px; }
    .whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
    .footer { padding-bottom: calc(var(--foot-pad, 34px) + 60px); } /* keep text clear of the WhatsApp button */
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee { overflow-x: auto; }
}
