/* ══════════════════════════════════
   HERO — White Apple style
   Fundo branco, globo via mix-blend-mode
══════════════════════════════════ */

@keyframes eyebrowGlowRotate {
    from { transform: translate(-50%, -50%) rotate(0deg);   }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes dotGlow {
    0%, 100% { box-shadow: 0 0 3px rgba(48,209,88,0.8); }
    50%       { box-shadow: 0 0 8px rgba(48,209,88,1), 0 0 18px rgba(48,209,88,0.35); }
}

/* ── Hero section ── */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f5f5f7;
}

/* Dark nebula on the right — gives mix-blend-mode:screen a dark surface to
   blend against so the globe appears. On the white left (text area) the globe
   stays invisible (screen on white = white). The hero-overlay handles the
   left-to-transparent fade so text always reads cleanly. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 62% 130% at 75% 90%,
        rgba(0, 0, 0, 0.93) 0%,
        rgba(0, 0, 0, 0.52) 38%,
        rgba(0, 0, 0, 0.32) 58%,
        transparent          100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── Globe — mix-blend-mode: screen makes dark bg transparent on white ── */
.hero-globe {
    position: absolute;
    right: -5%;
    top: 0;
    width: 62%;
    height: 100%;
    z-index: 1;
    opacity: 0.90;
    mix-blend-mode: screen;
}

.hero-globe iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 2s ease;
    user-select: none;
    -webkit-user-select: none;
}
.hero-globe iframe.loaded { opacity: 1; }

/* ── Directional overlay: white left → transparent right ── */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(245,245,247,0.98)  0%,
        rgba(245,245,247,0.92)  28%,
        rgba(245,245,247,0.65)  52%,
        rgba(245,245,247,0.18)  72%,
        transparent             100%);
    z-index: 2;
    pointer-events: none;
}

/* ── Inner layout ── */
.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0 0 0 max(40px, 5vw);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ── Text content — left side ── */
.hero-content {
    width: 600px;
    max-width: 600px;
    text-align: left;
    padding: 100px 0;
}

/* ── Eyebrow pill ── */
.hero-eyebrow-wrap {
    position: relative;
    display: inline-flex;
    border-radius: 980px;
    margin-bottom: 28px;
    padding: 1.5px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.07),
        0 2px 8px rgba(0,0,0,0.07);
}

/* Subtle rotating border (dark version) */
.hero-eyebrow-wrap::before {
    content: '';
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    background: conic-gradient(
        from var(--glow-angle),
        transparent    0deg,
        transparent    300deg,
        rgba(0,0,0,0.18) 345deg,
        rgba(0,0,0,0.32) 358deg,
        rgba(0,0,0,0.18) 360deg
    );
    animation: eyebrowGlowRotate 3s linear infinite;
    z-index: 0;
}

.hero-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 980px;
    background: rgba(255,255,255,0.92);
    color: rgba(0,0,0,0.68);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* ── Green dot ── */
.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    flex-shrink: 0;
    animation: dotGlow 2.2s ease-in-out infinite;
}

/* ── Title — dark gradient, Apple-grade ── */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6.5vw, 82px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    background: linear-gradient(180deg, #1d1d1f 0%, #3a3a3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-accent {
    background: linear-gradient(160deg, #1d1d1f 0%, #3a3a3c 50%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Subtitle ── */
.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 300;
    color: #6e6e73;
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: 44px;
    letter-spacing: 0.01em;
}

/* ── Action buttons ── */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* ════════════════════════════════
   HERO BUTTONS — Light theme
════════════════════════════════ */

@keyframes heroDotBreath {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.6; transform: scale(0.8); }
}
@keyframes heroDotRing {
    0%   { box-shadow: 0 0 0 0px  rgba(48,209,88,0.6); }
    70%  { box-shadow: 0 0 0 8px  rgba(48,209,88,0.0); }
    100% { box-shadow: 0 0 0 0px  rgba(48,209,88,0.0); }
}
@keyframes sweepShine {
    0%   { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}

/* ── Base compartilhada ── */
/* ══════════════════════════════════════════
   HERO BUTTON — production-grade component
   ══════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes sweepShine {
    0%   { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(350%)  skewX(-20deg); }
}

@keyframes heroDotBreath {
    0%, 100% { box-shadow: 0 0 6px 1px rgba(48, 209, 88, 0.55); }
    50%       { box-shadow: 0 0 12px 3px rgba(48, 209, 88, 0.85); }
}

@keyframes heroDotRing {
    0%   { box-shadow: 0 0 0 0   rgba(48, 209, 88, 0.5); opacity: 1; }
    70%  { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0);   opacity: 0; }
    100% { box-shadow: 0 0 0 0   rgba(48, 209, 88, 0);   opacity: 0; }
}


/* ── Base ── */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px 0 24px;
    height: 54px;
    border-radius: 980px;
    border: 1px solid transparent;   /* reserva espaço para a borda do ghost */
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    isolation: isolate;              /* cria stacking context limpo */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);

    transition:
        transform     0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow    0.45s cubic-bezier(0.16, 1, 0.3, 1),
        background    0.35s ease,
        color         0.35s ease,
        border-color  0.35s ease;
}

.hero-btn:focus-visible {
    outline: 2px solid rgba(0, 125, 250, 0.75);
    outline-offset: 3px;
}

.hero-btn:active {
    transform: scale(0.96) !important;
    transition-duration: 0.1s !important;
}


/* ══ PRIMÁRIO — dark pill on light bg ══ */
.hero-btn--primary {
    background: linear-gradient(170deg, #1d1d1f 0%, #2c2c2e 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow:
        0 2px  8px  rgba(0, 0, 0, 0.14),
        0 6px  20px rgba(0, 0, 0, 0.12),
        0 14px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(170deg, #2c2c2e 0%, #3a3a3c 100%);
    box-shadow:
        0 4px  12px rgba(0, 0, 0, 0.18),
        0 10px 32px rgba(0, 0, 0, 0.16),
        0 20px 56px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}


/* ── Glare sweep ── */
.hero-btn__shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%; 
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 100%
    );
    transform: translateX(-160%) skewX(-20deg);
    pointer-events: none;
    z-index: 2;
}

.hero-btn--primary:hover .hero-btn__shine {
    animation: sweepShine 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-btn--primary:not(:hover) .hero-btn__shine {
    animation: none;
    transform: translateX(-160%) skewX(-20deg);
}


/* ── Green status dot ── */
.hero-btn__dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #30d158;
    box-shadow: 0 0 6px 1px rgba(48, 209, 88, 0.55);
    animation: heroDotBreath 3s ease-in-out infinite;
}

.hero-btn__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
}

.hero-btn--primary:hover .hero-btn__dot::after {
    animation: heroDotRing 2.2s ease-out infinite;
}


/* ── Arrow icon ── */
.hero-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.38);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color     0.3s ease;
}

.hero-btn--primary:hover .hero-btn__icon {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.82);
}


/* ══ GHOST — light outline on light bg ══ */
.hero-btn--ghost {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.68);
    padding: 0 28px;
    border-color: rgba(0, 0, 0, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero-btn--ghost:hover {
    background: rgba(0, 0, 0, 0.065);
    color: #1d1d1f;
    border-color: rgba(0, 0, 0, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 2px  8px rgba(0, 0, 0, 0.07),
        0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px) scale(1.02);
}


/* ══ Hero fade — bottom veil ══ */
.hero-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(245, 245, 247, 0.6) 40%,
        #f5f5f7 100%
    );
    pointer-events: none;
    z-index: 4;
}