@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProLight.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProLightOblique.otf") format("opentype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProBook.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProBookOblique.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProRoman.otf") format("opentype");
    font-weight: 450;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProOblique.otf") format("opentype");
    font-weight: 450;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProMedium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProMediumOblique.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProHeavy.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProHeavyOblique.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProBlack.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Avenir LT Pro";
    src: url("../fonts/AvenirLTProBlackOblique.otf") format("opentype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-emerald: #00FF97;
    --color-navy: #24214A;
    --color-navy-deep: #191636;
    --color-blue: #3F4796;
    --color-blue-light: #8891B6;
    --color-gray: #717070;
    --color-black: #0B0D0E;
    --color-white: #ffffff;

    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1ebe5b;

    --font-family: "Avenir LT Pro", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-pill: 999px;

    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-cta: 0 14px 30px rgba(37, 211, 102, 0.35);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--color-white);
    background: linear-gradient(135deg, #2b2757, var(--color-navy) 50%, var(--color-navy-deep));
    background-size: 200% 200%;
    animation: bgShift 20s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

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

/* ===== CANVAS PARTICLES ===== */
.particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease 0.4s;
}

.particles.is-ready { opacity: 1; }

/* ===== ANIMATED GRID ===== */
.grid-overlay {
    position: fixed;
    inset: -2px;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 255, 151, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 151, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.7), transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,0.7), transparent 70%);
    animation: gridDrift 25s linear infinite;
}

@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, 60px 60px; }
}

/* ===== ORBS ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.orb--1 {
    width: 420px;
    height: 420px;
    background: var(--color-emerald);
    top: -120px;
    left: -120px;
    opacity: 0.28;
    animation: orbMove1 18s ease-in-out infinite;
}

.orb--2 {
    width: 360px;
    height: 360px;
    background: var(--color-blue);
    bottom: -140px;
    right: -100px;
    opacity: 0.38;
    animation: orbMove2 22s ease-in-out infinite;
}

.orb--3 {
    width: 280px;
    height: 280px;
    background: var(--color-blue-light);
    top: 50%;
    left: 60%;
    opacity: 0.2;
    animation: orbMove3 16s ease-in-out infinite;
}

@keyframes orbMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes orbMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, -60px) scale(1.15); }
}

@keyframes orbMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, -40px) scale(1.08); }
    75% { transform: translate(40px, 30px) scale(0.92); }
}

/* ===== NOISE TEXTURE ===== */
.noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='5'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 2;
    width: min(100%, 720px);
    padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 48px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 5vw, 48px);
    will-change: transform;
}

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BRAND ===== */
.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(0, 255, 151, 0.35), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    animation: breathe 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.1); }
}

.brand__logo {
    width: clamp(220px, 38vw, 340px);
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 255, 151, 0.25));
    animation: logoFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}

/* ===== HERO ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

/* ===== TAG ===== */
.hero__tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    background: rgba(0, 255, 151, 0.08);
    border: 1px solid rgba(0, 255, 151, 0.35);
    color: var(--color-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 151, 0.12);
}

.hero__tag-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 151, 0.4), transparent);
    animation: shine 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes shine {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-emerald);
    box-shadow: 0 0 0 0 rgba(0, 255, 151, 0.6);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 151, 0.6); transform: scale(1); }
    70% { box-shadow: 0 0 0 14px rgba(0, 255, 151, 0); transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 151, 0); transform: scale(1); }
}

/* ===== TITLE (split + gradient animated) ===== */
.hero__title {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__line {
    display: inline-block;
    overflow: hidden;
}

.hero__line .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotate(6deg);
    animation: charIn 0.8s var(--ease) forwards;
}

.hero__line .char--space {
    width: 0.28em;
}

.hero__title--accent,
.hero__title--accent .char {
    background: linear-gradient(120deg, var(--color-emerald) 0%, #7affc7 30%, var(--color-emerald) 60%, #c8ffe6 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 5s ease-in-out infinite;
}

.hero__title--accent .char {
    animation: charIn 0.8s var(--ease) forwards, gradientFlow 5s ease-in-out infinite;
}

@keyframes charIn {
    to { opacity: 1; transform: translateY(0) rotate(0); }
}

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

/* ===== SUBTITLE + TAGLINE ===== */
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    font-weight: 400;
}

.hero__subtitle strong {
    color: var(--color-white);
    font-weight: 700;
    position: relative;
}

.hero__subtitle strong::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-emerald), transparent);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineIn 1.2s var(--ease) 1.5s forwards;
}

@keyframes underlineIn {
    to { transform: scaleX(1); }
}

.hero__tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0.01em;
    position: relative;
}

.hero__tagline::before,
.hero__tagline::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 151, 0.6));
    transform: translateY(-50%);
}

.hero__tagline::before {
    right: calc(100% + 16px);
    background: linear-gradient(270deg, rgba(0, 255, 151, 0.6), transparent);
}

.hero__tagline::after {
    left: calc(100% + 16px);
}

/* ===== PROGRESS ===== */
.progress {
    position: relative;
    width: min(100%, 320px);
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.progress__bar {
    width: 45%;
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, transparent 0%, var(--color-emerald) 50%, transparent 100%);
    box-shadow: 0 0 14px rgba(0, 255, 151, 0.7);
    animation: loading 2.4s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

/* ===== CTA (magnetic + shine + glow) ===== */
.cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    margin-top: 12px;
    border-radius: var(--radius-pill);
    background: var(--color-whatsapp);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    overflow: hidden;
    isolation: isolate;
    will-change: transform;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
}

.cta__inner {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.cta__icon {
    width: 22px;
    height: 22px;
    transition: transform 0.4s var(--ease);
}

.cta__text { position: relative; }

.cta__arrow {
    display: inline-block;
    opacity: 0;
    margin-left: -12px;
    transform: translateX(-6px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), margin 0.3s var(--ease);
}

.cta__glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.4), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
    z-index: 1;
}

.cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s var(--ease);
    z-index: 1;
    pointer-events: none;
}

.cta:hover,
.cta:focus-visible {
    background: var(--color-whatsapp-hover);
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(37, 211, 102, 0.5), 0 0 40px rgba(37, 211, 102, 0.25);
    outline: none;
}

.cta:hover::before,
.cta:focus-visible::before { left: 125%; }
.cta:hover .cta__glow,
.cta:focus-visible .cta__glow { opacity: 1; }
.cta:hover .cta__arrow,
.cta:focus-visible .cta__arrow {
    opacity: 1;
    transform: translateX(0);
    margin-left: 0;
}
.cta:hover .cta__icon { transform: rotate(-10deg) scale(1.1); }

.cta:active { transform: translateY(-2px) scale(0.98); }

/* ===== FOOTER ===== */
.footer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .cta { width: 100%; }
    .hero__tagline::before,
    .hero__tagline::after { width: 20px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}
