@font-face {
    font-family: "Milton";
    src: url("fonts/Milton_Two.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Chakra Petch";
    src: url("fonts/Chakra_Petch/ChakraPetch-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   RESET GERAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    margin: 0;

    overflow-x: hidden;
    max-width: 100%;

    background: #0d0d0d;
    color: #f5f5f5;

    font-family: Arial, sans-serif;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 50px;
    border-bottom: 1px solid #333;
}

.site-brand {
    grid-column: 2;
    display: block;
    text-decoration: none;
}

.site-name {
    font-family: "Chakra Petch", Arial, sans-serif;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.6),
        0 0 14px rgba(40, 255, 159, 0.55);
}

.site-link {
    font-family: "Chakra Petch", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.site-link:hover {
    opacity: 0.65;
}

.site-link-left {
    grid-column: 1;
    justify-self: start;
}

.site-link-right {
    grid-column: 3;
    justify-self: end;
}


/* =========================================================
   HERO / CAPA
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    min-height: 85vh;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: #000000;
}

/* Foto (base = celular): a foto surge do preto */

.hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;

    height: 100%;
    width: 75%;

    object-fit: cover;
    object-position: center 17%;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 12%,
        rgba(0, 0, 0, 0.30) 28%,
        rgba(0, 0, 0, 0.62) 45%,
        rgba(0, 0, 0, 0.88) 62%,
        #000 80%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.08) 12%,
        rgba(0, 0, 0, 0.30) 28%,
        rgba(0, 0, 0, 0.62) 45%,
        rgba(0, 0, 0, 0.88) 62%,
        #000 80%
    );
}

/* Energia (base = celular): canvas desenhado por energy.js, fundo preto absoluto
   - horizontal: 100% até 30% da tela, dissolve até 50%, depois nada
   - diagonal: o canto inferior direito se desfaz primeiro */

.hero-energy {
    position: absolute;
    inset: 0;
    z-index: 2;

    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    pointer-events: none;

    -webkit-mask-image:
        linear-gradient(to right, #000 0%, #000 30%, transparent 50%),
        linear-gradient(135deg, #000 0%, #000 55%, transparent 100%);
    mask-image:
        linear-gradient(to right, #000 0%, #000 30%, transparent 50%),
        linear-gradient(135deg, #000 0%, #000 55%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* Texto e botão */

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 560px;
    margin: 0;
    padding: 0 50px;

    text-align: left;
}

.hero-content p {
    margin: 0;

    font-size: 18px;
    line-height: 1.6;

    color: #ffffff;

    text-shadow: 0 0 12px #000, 0 0 4px #000;
}

.hero-content button {
    margin-top: 30px;

    padding: 16px 36px;

    background: #f5f5f5;
    color: #0d0d0d;

    border: 1px solid #f5f5f5;
    border-radius: 2px;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.hero-content button:hover {
    background: #ffffff;

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(40, 255, 159, 0.7);

    transform: translateY(-2px);
}


/* =========================================================
   HERO NO COMPUTADOR
   Tela dividida em 10 partes de 10% (da esquerda para a direita):
   - a foto começa no início da 4ª parte (30%) e vai até a borda direita
   - o preto se desfaz e a foto surge entre 30% e ~73%
   - a energia invade a foto e termina no fim da 7ª parte (70%)
   ========================================================= */

@media (min-width: 601px) {

    .hero-photo {
        left: 30%;
        right: auto;
        width: 70%;

        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 10%,
            rgba(0, 0, 0, 0.30) 22%,
            rgba(0, 0, 0, 0.62) 36%,
            rgba(0, 0, 0, 0.88) 50%,
            #000 62%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.08) 10%,
            rgba(0, 0, 0, 0.30) 22%,
            rgba(0, 0, 0, 0.62) 36%,
            rgba(0, 0, 0, 0.88) 50%,
            #000 62%
        );
    }

    /* "screen" faz o preto do canvas ficar invisível sobre a foto:
       sobra só o verde, que invade a imagem */
    .hero-energy {
        mix-blend-mode: screen;

        -webkit-mask-image:
            linear-gradient(to right, #000 0%, #000 40%, transparent 70%),
            linear-gradient(135deg, #000 0%, #000 60%, transparent 100%);
        mask-image:
            linear-gradient(to right, #000 0%, #000 40%, transparent 70%),
            linear-gradient(135deg, #000 0%, #000 60%, transparent 100%);
    }
}


/* =========================================================
   HERO NO CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        align-items: flex-end;
        min-height: 90vh;
    }

    .hero-photo {
        width: 85%;
    }

    .hero-energy {
        -webkit-mask-image:
            linear-gradient(to right, #000 0%, #000 15%, transparent 35%),
            linear-gradient(135deg, #000 0%, #000 55%, transparent 100%);
        mask-image:
            linear-gradient(to right, #000 0%, #000 15%, transparent 35%),
            linear-gradient(135deg, #000 0%, #000 55%, transparent 100%);
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px 50px;
    }
}


/* =========================================================
   CABEÇALHO NO CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .site-header {
        grid-template-columns: 1fr 1fr;
        row-gap: 14px;
        padding: 18px 20px;
    }

    /* Nome: linha de cima, centralizado */
    .site-brand {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        text-align: center;
    }

    .site-name {
        font-size: clamp(26px, 9vw, 40px);
        letter-spacing: 2px;
        white-space: nowrap;
    }

    /* Links: linha de baixo, um em cada ponta */
    .site-link {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .site-link-left {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .site-link-right {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }
}

/* =========================================================
   TELAS INTERMEDIÁRIAS E CELULAR DEITADO
   ========================================================= */

/* O nome encolhe conforme a tela e nunca quebra de linha */
@media (min-width: 601px) {

    .site-header {
        padding-left: clamp(20px, 4vw, 50px);
        padding-right: clamp(20px, 4vw, 50px);
    }

    .site-name {
        white-space: nowrap;
        font-size: clamp(30px, 5.2vw, 56px);
        letter-spacing: clamp(1px, 0.4vw, 4px);
    }

    .site-link {
        font-size: clamp(13px, 1.8vw, 20px);
        letter-spacing: 1.5px;
    }
}

/* Celular deitado: tela baixa, então o hero ganha altura
   e a foto mostra o topo (cabeça) */
@media (min-width: 601px) and (max-height: 520px) {

    .site-header {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-photo {
        object-position: center top;
    }
}

/* =========================================================
   CHAMADA DO HERO (selo + título + botões neon)
   Cole este bloco no FINAL do style.css
   ========================================================= */

@property --ang {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

/* Selo de agenda */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 14px;

    font-size: 13px;
    line-height: 1.2;
    color: #bfffe0;

    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(40, 255, 159, 0.5);
    border-radius: 999px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28ff9f;
    animation: cta-blink 1.4s ease-in-out infinite;
}

/* Título */

.hero-title {
    margin: 16px 0 24px;

    font-family: "Chakra Petch", Arial, sans-serif;
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.1;
    color: #ffffff;

    text-shadow: 0 0 14px #000, 0 0 4px #000;
}

/* Linha dos botões */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* Moldura neon (a borda que gira) */

.cta-neon {
    display: inline-block;
    padding: 2px;
    border-radius: 4px;

    background: conic-gradient(
        from var(--ang),
        #28ff9f,
        #0b3d2a 25%,
        #28ff9f 50%,
        #0b3d2a 75%,
        #28ff9f
    );
    box-shadow: 0 0 18px rgba(40, 255, 159, 0.45);

    animation: cta-spin 3.5s linear infinite;
}

.cta-neon-pink {
    background: conic-gradient(
        from var(--ang),
        #ff3ea5,
        #4a0f2e 25%,
        #ff3ea5 50%,
        #4a0f2e 75%,
        #ff3ea5
    );
    box-shadow: 0 0 18px rgba(255, 62, 165, 0.45);
}

.cta-neon-sm {
    padding: 1.5px;
    border-radius: 3px;
}

/* Botão dentro da moldura */

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 16px 30px;

    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;

    color: #ffffff;
    background: #050505;
    border-radius: 2px;

    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #0c1f17;
}

.cta-neon-pink .cta-btn:hover {
    background: #2a0a1b;
}

.cta-btn-sm {
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 1.2px;
}

.cta-arrow {
    display: inline-block;
    animation: cta-nudge 1.4s ease-in-out infinite;
}

/* Linha de apoio (precisa do .hero-content na frente para vencer o ".hero-content p") */

.hero-content .hero-proof {
    margin-top: 16px;

    font-size: 13px;
    line-height: 1.5;
    color: #cfcfcf;
}

/* Animações */

@keyframes cta-spin {
    to { --ang: 360deg; }
}

@keyframes cta-nudge {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

@keyframes cta-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-neon,
    .cta-arrow,
    .hero-badge-dot {
        animation: none;
    }
}

/* Computador: o bloco de texto fica mais largo para o título caber em 2 linhas */

@media (min-width: 601px) {
    .hero-content {
        max-width: 660px;
    }
}

/* Celular */

@media (max-width: 600px) {
    .hero-title {
        font-size: 28px;
        margin: 14px 0 20px;
    }

    .hero-actions {
        gap: 12px;
    }

    .cta-btn {
        padding: 15px 22px;
        font-size: 13px;
    }

    .cta-btn-sm {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* =========================================================
   HERO NO CELULAR: CABE NA TELA, SEM PRECISAR ROLAR
   ========================================================= */

@media (max-width: 600px) and (orientation: portrait) {

    .hero {
        min-height: calc(100vh - var(--header-h, 103px));
        min-height: calc(100dvh - var(--header-h, 103px));
        align-items: flex-end;
    }

    .hero-content {
        padding: 0 20px clamp(70px, 13svh, 130px);
    }
}

@media (orientation: landscape) and (max-height: 520px) {

    .site-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-name {
        font-size: clamp(24px, 4vw, 34px);
    }

    .hero {
        min-height: calc(100vh - var(--header-h, 70px));
        min-height: calc(100dvh - var(--header-h, 70px));

        align-items: center;
        padding-top: 28px;
    }

    .hero-content {
        max-width: 560px;
        padding: 0 clamp(20px, 5vw, 56px);
    }

    .hero-badge {
        padding: 5px 12px;
        font-size: 12px;
    }

    .hero-title {
        margin: 10px 0 14px;
        font-size: 24px;
    }

    .cta-btn {
        padding: 12px 22px;
        font-size: 13px;
    }

    .cta-btn-sm {
        padding: 9px 16px;
        font-size: 12px;
    }

    .hero-content .hero-proof {
        margin-top: 10px;
        font-size: 12px;
    }
}

/* =========================================================
   LOGO (tigre) AO LADO DO NOME
   ========================================================= */

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
}

.site-logo {
    display: block;
    width: auto;
    height: clamp(40px, 4.8vw, 66px);
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.5))
        drop-shadow(0 0 8px rgba(40, 255, 159, 0.5));
}

@media (max-width: 600px) {
    .site-logo {
        height: clamp(30px, 10vw, 44px);
    }
}
