:root {
    --night: #020817;
    --night-soft: #071122;
    --surface: #0b162a;
    --surface-light: #10203a;
    --blue: #2478f2;
    --electric: #3392ff;
    --cyan: #00b7e8;
    --white: #f5f7fb;
    --muted: #a7b3c7;
    --line: rgba(167, 179, 199, .22);
    --font: "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 20rem;
    overflow-x: hidden;
    color: var(--white);
    background: var(--night);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.5;
}

::selection { color: var(--night); background: var(--cyan); }
a { color: inherit; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

.highlight {
    color: var(--electric);
    font-weight: 600;
}

.card-featured .highlight,
.card-warm .highlight {
    color: #000000;
    font-weight: 800;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.cursor-light {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(36, 120, 242, .2);
    filter: blur(5rem);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .3s ease;
}

.shell { width: min(100% - 2rem, 90rem); margin-inline: auto; }

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.5rem;
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem; text-decoration: none; }
.brand-logo { display: block; width: 2.25rem; height: 2.25rem; object-fit: contain; }
.brand-mark span, .brand-name span, .footer-brand span { color: var(--electric); }
.brand-name, .footer-brand { font-weight: 800; letter-spacing: -.04em; }

.status { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 .28rem rgba(0,183,232,.12); animation: pulse 2s infinite; }
.status-code { display: none; color: var(--muted); }

.hero { display: flex; flex-direction: column; min-height: calc(100svh - 5.5rem); padding-block: 2rem 1.5rem; }
.hero-kicker, .hero-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.hero-title-wrap { display: grid; align-content: center; flex: 1; padding-block: 2.5rem; }
.hero-title { margin: 0; font-size: clamp(2.25rem, 10.75vw, 10rem); font-weight: 800; line-height: .82; letter-spacing: -.04em; word-spacing: 0.25em; text-transform: uppercase; }
.title-indent { display: inline-block; padding-left: clamp(1rem, 8vw, 8rem); }
.title-accent { color: transparent; background: linear-gradient(135deg, #103ba1, var(--blue), var(--electric), var(--cyan), var(--electric), var(--blue), #103ba1); background-size: 300% 300%; background-clip: text; -webkit-background-clip: text; animation: premiumBlueFlow 12s ease-in-out infinite; filter: drop-shadow(0 0 12px rgba(51, 146, 255, 0.25)); }

@keyframes premiumBlueFlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
.hero-note { width: calc(100% - 5rem); max-width: 27rem; margin: 2.5rem 0 0 auto; padding-left: 1rem; border-left: 1px solid var(--electric); color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.35; overflow-wrap: anywhere; }
.hero-footer { margin-top: auto; }
.hero-footer p { margin: 0; }
.round-link { display: grid; place-items: center; width: 3rem; min-width: 3rem; height: 3rem; border: 1px solid var(--muted); border-radius: 50%; transition: color .25s ease, background .25s ease, transform .25s ease; }
.round-link:hover { color: var(--night); background: var(--white); transform: rotate(-12deg); }
.round-link svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; }

.manifesto, .services, .contact { padding-block: 5rem; }
.manifesto { display: grid; gap: 2rem; border-top: 1px solid var(--line); }
.section-index, .eyebrow { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.section-index { color: var(--electric); }
.eyebrow { margin-bottom: 1.25rem; color: var(--muted); }
.manifesto h2, .section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.2rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
.manifesto-copy { display: grid; gap: 1rem; margin-top: 2.5rem; color: var(--muted); }
.manifesto-copy p { max-width: 38rem; margin: 0; }

.services { width: 100%; max-width: none; padding-inline: max(1rem, calc((100% - 90rem) / 2)); background: var(--night-soft); border-block: 1px solid var(--line); }
.section-heading { display: grid; gap: 2rem; margin-bottom: 3rem; }
.services .eyebrow { color: var(--muted); }
.section-heading h2 { margin-top: 1rem; }
.cards-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

.service-card { display: flex; flex-direction: column; justify-content: flex-start; gap: 2rem; min-width: 0; min-height: 25rem; padding: clamp(1.5rem, 2.4vw, 2.25rem); color: var(--white); background: var(--surface); border: 1px solid #17243a; border-radius: .6rem; transition: transform .35s cubic-bezier(.2,.75,.25,1), border-color .35s ease; }
.service-card:hover { transform: translateY(-.45rem); border-color: var(--electric); }
.card-featured { color: var(--white); background: var(--cyan); border-color: var(--cyan); --card-text: rgba(255, 255, 255, 0.75); }
.card-warm { color: var(--white); background: var(--blue); border-color: var(--blue); --card-text: rgba(255, 255, 255, 0.75); }
.card-dark { background: #050d1c; border-color: #17243a; }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-number { font-size: .75rem; font-weight: 800; }
.card-icon { width: 2.75rem; height: 2.75rem; display: block; }
.card-label { margin: 0 0 .75rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; opacity: .7; }
.service-card h3 { margin: 0 0 .4rem; font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -.035em; }
.service-card p:last-child { margin: 0; color: var(--card-text, rgba(255, 255, 255, 0.8)); font-size: .95rem; line-height: 1.45; text-align: left; }

.contact { display: grid; gap: 3rem; }
.contact .section-index { display: block; margin-bottom: 2rem; }
.contact h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); }
.contact-actions { display: grid; align-content: end; }
.contact-link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; min-height: 6rem; padding: 1.25rem 3rem 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-link strong { grid-column: 1; min-width: 0; font-size: clamp(1rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.contact-link svg { position: absolute; right: 0; top: 50%; width: 1.5rem; fill: none; stroke: var(--electric); stroke-width: 1.5; transform: translateY(-50%); transition: transform .25s ease; }
.contact-link:hover svg { transform: translate(.25rem, calc(-50% - .25rem)); }

.site-footer { display: grid; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer p { margin: 0; }
.footer-brand { color: var(--white); font-size: 1.2rem; }
.footer-brand sup { color: var(--cyan); font-size: .45em; }

.reveal { opacity: 0; transform: translateY(1.25rem); animation: reveal .8s cubic-bezier(.2,.75,.25,1) forwards; animation-delay: var(--delay, 0s); }
.reveal-delay-1 { --delay: .05s; }
.reveal-delay-2 { --delay: .12s; }
.reveal-delay-3 { --delay: .22s; }
.reveal-delay-4 { --delay: .3s; }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 .45rem rgba(0,183,232,0); } }

@media (min-width: 40rem) {
    .shell { width: min(100% - 3rem, 90rem); }
    .status-code { display: inline; margin-left: .5rem; }
    .hero { padding-block: 2.5rem 2rem; }
    .hero-title { font-size: clamp(4rem, 10.5vw, 10rem); }
    .hero-note { width: auto; }
    .manifesto-copy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
    .service-card { min-height: 28rem; }
    .site-footer { grid-template-columns: 1fr auto auto; align-items: end; }
}

@media (min-width: 64rem) {
    .site-header { min-height: 6.5rem; }
    .hero { min-height: calc(100svh - 6.5rem); padding-top: 2.5rem; }
    .hero-title-wrap { position: relative; display: flex; flex-direction: column; gap: 2rem; }
    .hero-note { margin-right: 4%; align-self: flex-end; }
    .manifesto { grid-template-columns: minmax(6rem, .3fr) minmax(0, 1.7fr); padding-block: 8rem; }
    .manifesto-content > h2 { max-width: 16ch; }
    .manifesto-copy { width: 75%; margin-left: auto; }
    .services { padding-block: 7rem 8rem; }
    .section-heading { display: flex; flex-direction: column; margin-bottom: 5rem; }
    .contact { grid-template-columns: 1.2fr .8fr; padding-block: 8rem; }
}

@media (min-width: 96rem) {
    .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
    .service-card { min-height: 34rem; }
}

@media (pointer: fine) { .cursor-light.is-visible { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .cursor-light { display: none; }
}

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    text-decoration: none;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    box-shadow: 0 12px 40px 0 rgba(37, 211, 102, 0.25);
    color: #fff;
}

.whatsapp-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.whatsapp-tooltip {
    position: absolute;
    right: 4.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 40rem) {
    .whatsapp-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
