/* ======================================================
   DESIGN SYSTEM — WellSolutions
   ====================================================== */
:root {
    --color-primary:      #0033A0;
    --color-primary-dark:  #001f66;
    --color-accent:       #00E5FF;
    --color-accent-soft:  rgba(0, 229, 255, 0.15);
    --color-neutral-dark: #4A5568;
    --color-neutral-mid:  #718096;
    --color-bg-light:     #F4F7FA;
    --color-bg-warm:      #EDF2F7;
    --color-white:        #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Inter', sans-serif;

    --shadow-sm:  0 1px 3px rgba(0, 51, 160, 0.06);
    --shadow-md:  0 4px 16px rgba(0, 51, 160, 0.08);
    --shadow-lg:  0 12px 40px rgba(0, 51, 160, 0.10);
    --shadow-glow: 0 0 24px rgba(0, 229, 255, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================================================
   RESET & BASE
   ====================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-neutral-dark);
    line-height: 1.7;
    background: var(--color-white);
    overflow-x: hidden;
}

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

/* ======================================================
   PRE-LOADER
   ====================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__core {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader__icon {
    width: 56px;
    height: auto;
    animation: preloaderPulse 2s var(--ease-out) infinite;
    filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.4));
}

.preloader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}

.preloader__ring--outer {
    border-top-color: var(--color-accent);
    border-right-color: rgba(0, 229, 255, 0.3);
    animation: orbitSpin 1.4s linear infinite;
}

.preloader__ring--inner {
    inset: 14px;
    border-bottom-color: var(--color-primary);
    border-left-color: rgba(0, 51, 160, 0.25);
    animation: orbitSpin 1.8s linear infinite reverse;
}

.preloader__ring--glow {
    inset: -6px;
    border-top-color: rgba(0, 229, 255, 0.15);
    animation: orbitSpin 2.4s linear infinite;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.4)); }
    50%      { transform: scale(1.06); filter: drop-shadow(0 0 28px rgba(0, 229, 255, 0.6)); }
}

/* ======================================================
   LAYOUT UTILITIES
   ====================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-pad {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.15;
}

h1 { font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
    font-size: clamp(0.95rem, 1.5vw, 1.075rem);
    line-height: 1.75;
}

/* ======================================================
   CTA — Premium style (no pill buttons)
   Inspired by Linear/Stripe: text + gradient underline
   ====================================================== */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    position: relative;
    cursor: pointer;
    border: none;
    background: none;
    letter-spacing: 0.01em;
    transition: color 0.3s var(--ease-out);
}

.cta-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
    opacity: 0.7;
}

.cta-link:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.cta-link:hover {
    color: var(--color-primary-dark);
}

.cta-link__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    font-size: 0.85rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    flex-shrink: 0;
}

.cta-link:hover .cta-link__arrow {
    transform: translateX(4px);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

/* Primary CTA: filled angular shape */
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    letter-spacing: 0.01em;
}

.cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 51, 160, 0.3);
}

.cta-primary:hover::before {
    opacity: 1;
}

.cta-primary span {
    position: relative;
    z-index: 1;
}

.cta-primary__icon {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--ease-out);
}

.cta-primary:hover .cta-primary__icon {
    transform: translateX(3px);
}

/* Secondary CTA: ghost angular */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    background: transparent;
    border: 1.5px solid rgba(0, 51, 160, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.cta-secondary:hover {
    border-color: var(--color-primary);
    background: rgba(0, 51, 160, 0.04);
    transform: translateY(-2px);
}

/* ======================================================
   HEADER
   ====================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    transition: background 0.35s var(--ease-out),
                box-shadow 0.35s var(--ease-out),
                padding 0.35s var(--ease-out);
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 20px rgba(0, 51, 160, 0.07);
    padding: 0.6rem 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    height: 38px;
    width: auto;
    flex-shrink: 0;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.header__links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s var(--ease-out);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.35s var(--ease-out);
}

.header__link:hover { color: var(--color-primary-dark); }
.header__link:hover::after { width: 100%; }

/* Header CTA — text-link style, not pill */
.header__cta {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s var(--ease-out);
}

.header__cta::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: opacity 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
    transform: scaleX(1);
    opacity: 0.4;
}

.header__cta:hover::after {
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.header__cta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
    display: inline-block;
}

/* Mobile menu toggle */
.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.header__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg-light);
}

/* SVG flowing lines background */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg svg {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    right: -30%;
    opacity: 0.18;
}

.hero__flow-line {
    fill: none;
    stroke-linecap: round;
    animation: flowDrift 12s ease-in-out infinite alternate;
}

.hero__flow-line:nth-child(1) { stroke: var(--color-primary); stroke-width: 1.5; animation-delay: 0s; }
.hero__flow-line:nth-child(2) { stroke: var(--color-accent); stroke-width: 1; animation-delay: -2s; opacity: 0.7; }
.hero__flow-line:nth-child(3) { stroke: var(--color-primary); stroke-width: 0.8; animation-delay: -4s; opacity: 0.5; }
.hero__flow-line:nth-child(4) { stroke: var(--color-accent); stroke-width: 1.2; animation-delay: -6s; opacity: 0.6; }
.hero__flow-line:nth-child(5) { stroke: var(--color-primary); stroke-width: 0.6; animation-delay: -8s; opacity: 0.4; }
.hero__flow-line:nth-child(6) { stroke: rgba(0, 51, 160, 0.5); stroke-width: 1.8; animation-delay: -1s; opacity: 0.3; }
.hero__flow-line:nth-child(7) { stroke: rgba(0, 229, 255, 0.6); stroke-width: 0.7; animation-delay: -3s; opacity: 0.5; }
.hero__flow-line:nth-child(8) { stroke: var(--color-primary); stroke-width: 1; animation-delay: -5s; opacity: 0.35; }

@keyframes flowDrift {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-30px) translateY(15px); }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 2.5rem;
    padding-top: 7rem;
    padding-bottom: 5rem;
}

.hero__content {
    max-width: 720px;
}

.hero__tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero__tagline-line {
    display: inline-block;
    width: 32px;
    height: 2px;
    vertical-align: middle;
    border-radius: 2px;
}

.hero__tagline-line--left {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-right: 0.75rem;
}

.hero__tagline-line--right {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    margin-left: 0.75rem;
}

.hero__title {
    margin-bottom: 1.75rem;
    letter-spacing: -0.025em;
    line-height: 1.12;
}

.hero__title > span {
    display: block;
}

.hero__title-nowrap {
    white-space: nowrap;
}

.hero__accent-text {
    background: linear-gradient(135deg, var(--color-primary) 40%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    color: var(--color-neutral-dark);
    margin-bottom: 2.5rem;
    max-width: 520px;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__w-icon {
    width: clamp(140px, 16vw, 220px);
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 51, 160, 0.15))
            drop-shadow(0 0 30px rgba(0, 229, 255, 0.12));
    animation: heroFloat 6s var(--ease-out) infinite;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero__orb--cyan {
    width: 220px;
    height: 220px;
    background: rgba(0, 229, 255, 0.1);
    top: 10%;
    right: 0%;
}

.hero__orb--blue {
    width: 180px;
    height: 180px;
    background: rgba(0, 51, 160, 0.07);
    bottom: 10%;
    right: 20%;
}

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

/* Full-width scroll divider */
.hero__scroll-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    height: 50px;
}

.hero__scroll-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent));
    border-radius: 1px;
}

.hero__scroll-divider-line:last-child {
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary), transparent);
}

.hero__scroll-divider-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-neutral-mid);
    flex-shrink: 0;
    animation: scrollTextPulse 2.5s var(--ease-out) infinite;
}

@keyframes scrollTextPulse {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* ======================================================
   REVEAL ANIMATIONS
   ====================================================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ======================================================
   PILARES — Horizontal card layout
   ====================================================== */
.pilares {
    background: var(--color-bg-light);
    position: relative;
}

.pilares__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.pilares__label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.6;
}

.pilares__subtitle {
    color: var(--color-neutral-mid);
    margin-top: 1rem;
}

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

/* Horizontal card: icon left, content right */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    position: relative;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 51, 160, 0.04);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.45s var(--ease-out);
}

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

.card:hover::before {
    transform: scaleY(1);
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.card:hover .card__icon {
    background: rgba(0, 229, 255, 0.22);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--color-primary);
    stroke: var(--color-primary);
}

.card__body {
    flex: 1;
    min-width: 0;
}

.card__title {
    margin-bottom: 0.5rem;
}

.card__text {
    color: var(--color-neutral-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ======================================================
   SERVICES SECTION
   ====================================================== */
.servicos {
    background:
        linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.servicos::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.servicos::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.06), transparent 70%);
    bottom: -150px;
    left: -150px;
    pointer-events: none;
}

.servicos__inner {
    position: relative;
    z-index: 1;
}

.servicos__header {
    text-align: center;
    margin-bottom: 4rem;
}

.servicos__label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.servicos__title {
    color: var(--color-white);
    max-width: 550px;
    margin: 0 auto;
}

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

.servico {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.servico::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.servico:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.servico:hover::before { opacity: 1; }

.servico__number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: rgba(0, 229, 255, 0.1);
    line-height: 1;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.servico__title {
    color: var(--color-white);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.servico__text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.servico__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.servico__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
}

/* ======================================================
   CONTACT / CTA BAND
   ====================================================== */
.cta-band {
    background: var(--color-bg-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Mirrored flowing lines — ascending left-to-right (opposite of hero) */
.cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-band__bg svg {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -30%;
    opacity: 0.12;
}

.cta-band__flow-line {
    fill: none;
    stroke-linecap: round;
    animation: flowDriftReverse 14s ease-in-out infinite alternate;
}

.cta-band__flow-line:nth-child(1) { stroke: var(--color-primary); stroke-width: 1.5; animation-delay: 0s; }
.cta-band__flow-line:nth-child(2) { stroke: var(--color-accent); stroke-width: 1; animation-delay: -2.5s; opacity: 0.7; }
.cta-band__flow-line:nth-child(3) { stroke: var(--color-primary); stroke-width: 0.8; animation-delay: -5s; opacity: 0.5; }
.cta-band__flow-line:nth-child(4) { stroke: var(--color-accent); stroke-width: 1.2; animation-delay: -7s; opacity: 0.6; }
.cta-band__flow-line:nth-child(5) { stroke: var(--color-primary); stroke-width: 0.6; animation-delay: -9s; opacity: 0.4; }
.cta-band__flow-line:nth-child(6) { stroke: rgba(0, 51, 160, 0.5); stroke-width: 1.8; animation-delay: -1.5s; opacity: 0.3; }

@keyframes flowDriftReverse {
    0%   { transform: translateX(0) translateY(0); }
    100% { transform: translateX(30px) translateY(-15px); }
}

.cta-band__inner {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-band__title { margin-bottom: 1rem; }

.cta-band__text {
    color: var(--color-neutral-mid);
    margin-bottom: 2rem;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 300px;
}

.footer__logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    transition: color 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__list a:hover { color: var(--color-accent); }

.footer__list svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer__socials {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s var(--ease-out);
}

.footer__social-link:hover svg {
    fill: var(--color-primary-dark);
}

/* ======================================================
   RESPONSIVE — TABLET
   ====================================================== */
@media (max-width: 968px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
        gap: 2.5rem;
    }

    .hero__content { max-width: 100%; margin: 0 auto; }
    .hero__title-nowrap { white-space: normal; }
    .hero__subtitle { max-width: 100%; margin: 0 auto 2.5rem; }
    .hero__actions { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__w-icon { width: clamp(140px, 30vw, 220px); }
    .hero__orb--cyan, .hero__orb--blue { display: none; }
    .hero__scroll-divider { display: none; }

    .pilares__grid { max-width: 600px; margin: 0 auto; }
    .card { flex-direction: column; gap: 1rem; }

    .servicos__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer__inner { grid-template-columns: 1fr; text-align: center; }
    .footer__brand p { max-width: 100%; }
    .footer__logo { margin: 0 auto; }
    .footer__bottom { justify-content: center; flex-direction: column; text-align: center; }
    .footer__socials { justify-content: center; }
}

/* ======================================================
   RESPONSIVE — MOBILE
   ====================================================== */
@media (max-width: 640px) {
    .header__links { display: none; }
    .header__toggle { display: flex; }
    .header__cta--desktop { display: none; }

    .mobile-nav {
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    .mobile-nav.active { opacity: 1; visibility: visible; }

    .mobile-nav__link {
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 1.6rem;
        color: var(--color-primary);
        transition: color 0.3s;
    }

    .mobile-nav__link:hover { color: var(--color-accent); }
    .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ======================================================
   INITIAL PAGE-LOAD ANIMATIONS
   ====================================================== */
.hero__content, .hero__visual { opacity: 0; }

body.loaded .hero__content {
    animation: fadeSlideUp 0.9s 0.3s var(--ease-out) forwards;
}

body.loaded .hero__visual {
    animation: fadeSlideUp 0.9s 0.15s var(--ease-out) forwards;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fonts-loading .hero__title,
.fonts-loading h2,
.fonts-loading h3 { visibility: hidden; }
