/*
HOMEPAGE
Version: 1.0
*/

/* ── Utilitários compartilhados ──────────────────────────── */

.hp-section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hp-section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    margin: 0;
}

.hp-section-title em {
    font-style: normal;
    color: var(--gold);
}

.hp-section-sub {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0;
    line-height: 1.7;
}


/* ============================================================
   D1 · HERO
============================================================ */

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hp-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 16px;
    animation: hero-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hp-hero {
    background:
        /* Ponto quente: origem da luz */
        radial-gradient(ellipse 35% 45% at -5% 20%,
            color-mix(in oklch, var(--gold) 17%, transparent) 0%,
            transparent 100%),
        /* Derramamento: luz espalhando pelo fundo */
        radial-gradient(ellipse 70% 65% at 5% 35%,
            color-mix(in oklch, var(--gold) 10%, transparent) 0%,
            transparent 75%),
        /* Contrabalance frio: canto oposto */
        radial-gradient(ellipse 45% 35% at 105% 5%,
            color-mix(in oklch, white 4%, transparent) 0%,
            transparent 70%),
        /* Base */
        var(--bg-dark);
    overflow: hidden;
    padding-top: clamp(var(--space-lg), 8vw, var(--space-lg));
    /* sem padding-bottom: marquee é flush com a borda */
}

.hp-hero__copy {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
}

.hp-hero__tagline {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-style: italic;
    color: var(--gold);
    padding-left: var(--space-md);
    border-left: 2px solid color-mix(in oklch, var(--gold) 35%, transparent);
    margin-top: var(--space-sm);
    line-height: 1.5;
    /* entra com delay adicional */
    animation: hero-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) 1.55s both;
}

.hp-hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--text-main);
    margin-top: var(--space-sm);
    animation: hero-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hp-hero__title em {
    font-style: normal;
    color: var(--gold);
}

.hp-hero__sub {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 460px;
    margin-top: var(--space-md);
    animation: hero-enter 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.05s both;
}


.hp-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px var(--space-md);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--border-dim);
    width: 100%;
}

.hp-hero__trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: .8rem;
    color: var(--text-muted);
}

.hp-hero__trust li svg {
    color: var(--gold);
    flex-shrink: 0;
}

/* Trust — cada item com micro-stagger */
.hp-hero__trust li:nth-child(1) {
    animation: hero-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.0s both;
}

.hp-hero__trust li:nth-child(2) {
    animation: hero-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.12s both;
}

.hp-hero__trust li:nth-child(3) {
    animation: hero-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) 2.24s both;
}

/* Marquee */
.hp-marquee {
    overflow: hidden;
    border-top: 1px solid var(--border);
    padding: 13px 0;
    background: var(--bg-panel);
    margin: clamp(var(--space-lg), 4vw, var(--space-xl));
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
    mask-image: linear-gradient(90deg,
            transparent 0%,
            black 8%,
            black 92%,
            transparent 100%);
}

.hp-marquee__track {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: hp-marquee 24s linear infinite;
}

.hp-marquee__track span {
    font-family: var(--font-sans);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.hp-marquee__sep {
    color: var(--gold) !important;
    animation: sep-pulse 3s ease-in-out infinite;
}

@keyframes sep-pulse {
    0% {
        opacity: .75;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .75;
    }
}

@keyframes hp-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ============================================================
   D2 · MANIFESTO
============================================================ */

.hp-about {
    background: var(--bg-dark);
    padding: var(--space-lg) 0;
    position: relative;
}

.hp-about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(201, 160, 100, .05) 0%, transparent 65%);
    pointer-events: none;
}


.hp-about .hp-section-title {
    text-transform: none;
    max-width: 800px;
    margin: 0 auto;
}

.hp-about__story {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: justify;
}

.hp-about__story p {
    font-family: var(--font-sans);
    font-size: .97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.hp-about__story p strong {
    color: var(--text-main);
}

.hp-about__story-highlight {
    border-left: 2px solid var(--gold);
    color: var(--text-main) !important;
    font-weight: 500;
    padding: 1rem 1rem;
    text-align: left;
    font-size: 1.25rem !important;
}

.hp-about__story-highlight p {
    margin: 0;
}

.hp-about__quote {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.25em;
}

/* ============================================================
   D3 · TREINAMENTOS
============================================================ */

.hp-training {
    background: #080808;
    padding: var(--space-lg) 0;
}

.hp-training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    padding-top: var(--space-md);
}

.hp-training-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);

    /* Variáveis manipuladas dinamicamente pelo scroll no JS */
    opacity: var(--scroll-opacity, 0);
    translate: 0 var(--scroll-y, 24px);
}

.hp-training-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.hp-training-card--core {
    color: #fff;
    background: radial-gradient(ellipse 80% 40% at 50% 0%,
            color-mix(in oklch, var(--gold) 7%, var(--bg-card)) 0%,
            var(--bg-card) 100%);
}

/* Linha dourada no topo do card core */
.hp-training-card--core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/*Calor suave ao hover */
.hp-training-card--entry:hover {
    border-color: color-mix(in oklch, var(--gold) 22%, var(--border-dim));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}

.hp-training-card--core:hover {
    border-color: color-mix(in oklch, var(--gold) 32%, var(--border-dim));
}

/* */

.hp-training-card__label {
    font-family: var(--font-sans);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-card2);
    border-bottom: 1px solid var(--border-dim);
    padding: 10px var(--space-md);
}

.hp-training-card__label--core {
    color: var(--gold);
    background: var(--gold-fade);
    border-bottom-color: var(--border);
}

.hp-training-card__body {
    flex: 1;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hp-training-card__title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
    margin: 0;
}

.hp-training-card__copy {
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.hp-training-card__bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.hp-training-card__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.hp-training-card__bullets li svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.hp-training-card__footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-dim);
}

/* Botões dos cards */
.hp-btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
    text-align: center;
    letter-spacing: .02em;
}

/*Micro animação de seta*/
.hp-btn-card svg {
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-btn-card:hover svg {
    transform: translateX(4px);
}

/* */

.hp-btn-card--gold {
    background: var(--gold);
    color: #000;
}

.hp-btn-card--gold:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 160, 100, .3);
}

.hp-btn-card--outline {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--border);
}

.hp-btn-card--outline:hover {
    background: var(--gold-fade);
    border-color: var(--gold);
    transform: translateY(-1px);
}

@keyframes breathe-glow {
    0% {
        box-shadow:
            inset 0 0 0 1px color-mix(in oklch, var(--gold) 18%, var(--border-dim)),
            0 0 0 1px rgba(0, 0, 0, 0.3),
            0 8px 32px color-mix(in oklch, var(--gold) 8%, transparent);
    }

    50% {
        box-shadow:
            inset 0 0 0 1px color-mix(in oklch, var(--gold) 30%, var(--border-dim)),
            0 0 0 1px rgba(0, 0, 0, 0.4),
            0 12px 40px color-mix(in oklch, var(--gold) 15%, transparent);
    }

    100% {
        box-shadow:
            inset 0 0 0 1px color-mix(in oklch, var(--gold) 18%, var(--border-dim)),
            0 0 0 1px rgba(0, 0, 0, 0.3),
            0 8px 32px color-mix(in oklch, var(--gold) 8%, transparent);
    }
}

#card-livre {
    animation: breathe-glow 4s ease-in-out infinite;
}

/* ============================================================
   D4 · PROVA SOCIAL
============================================================ */

.hp-proof {
    background: #080808;
    padding: var(--space-lg) 0;
}

.hp-proof__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.hp-testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: 0;
    position: relative;
    transition: border-color var(--transition);
}

.hp-testimonial:hover {
    border-color: var(--border);
}

.hp-testimonial::before {
    content: '\201C';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--gold);
    opacity: .15;
    line-height: 1;
}

.hp-testimonial__text {
    font-family: var(--font-sans);
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

.hp-testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hp-testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-fade);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.hp-testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-testimonial__name {
    display: block;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-main);
}

.hp-testimonial__role {
    font-family: var(--font-sans);
    font-size: .78rem;
    color: var(--text-muted);
}

.hp-testimonial__result {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-fade);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    align-self: flex-start;
}

/* ============================================================
   D5 · NEWSLETTER
============================================================ */

.hp-newsletter {
    background: var(--bg-dark);
    padding: var(--space-lg) 0;
    position: relative;
    border-top: 1px solid var(--border-dim);
}

.hp-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 60%, rgba(201, 160, 100, .06) 0%, transparent 60%);
    pointer-events: none;
}

.hp-newsletter__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    position: relative;
}

/* Copy ─────────────────────────────── */
.hp-newsletter__copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hp-newsletter__title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    margin: 0;
}

.hp-newsletter__title em {
    font-style: normal;
    color: var(--gold);
}

.hp-newsletter__body {
    font-family: var(--font-sans);
    font-size: .97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

/* Form wrap ─────────────────────────── */
.hp-newsletter__form-wrap {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    /* Gradiente: gold fraco no topo → borda dim nas laterais/fundo */
    background-clip: padding-box;
    box-shadow:
        inset 0 0 0 1px color-mix(in oklch, var(--gold) 18%, var(--border-dim)),
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 8px 32px color-mix(in oklch, var(--gold) 8%, transparent);
}

@keyframes shimmer-sweep {
    0% {
        transform: translateX(-200%) skewX(-24deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    60% {
        transform: translateX(300%) skewX(-24deg);
        opacity: 1;
    }

    65%,
    100% {
        transform: translateX(300%) skewX(-24deg);
        opacity: 0;
    }
}

.hp-newsletter__form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            color-mix(in oklch, var(--gold) 70%, transparent) 50%,
            transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    pointer-events: none;
    opacity: 0.8;
}

.hp-newsletter__form-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 65%;
    background: linear-gradient(90deg,
            transparent 0%,
            color-mix(in oklch, var(--gold) 2%, transparent) 40%,
            color-mix(in oklch, white 15%, transparent) 50%,
            color-mix(in oklch, var(--gold) 2%, transparent) 60%,
            transparent 100%);
    animation: shimmer-sweep 8s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.hp-newsletter__micro {
    font-family: var(--font-sans);
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-dim);
}

.hp-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hp-newsletter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    color: #000;
    background: var(--gold);
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    letter-spacing: .02em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-top: 4px;
}

.hp-newsletter__submit:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 160, 100, .35);
}

.modal-field input {
    width: 100%;
    background: color-mix(in oklch, var(--bg-dark) 70%, var(--bg-card));
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text-main);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
}

.modal-field input::placeholder {
    color: var(--text-muted);
    opacity: .5;
}

.modal-field input:focus {
    border-color: color-mix(in oklch, var(--gold) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold) 12%, transparent);
}

.modal-privacy {
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    opacity: .65;
}

/* ============================================================
   RESPONSIVO — Homepage
============================================================ */

@media (max-width: 960px) {
    .hp-hero__copy {
        align-items: center;
    }

    .hp-hero__sub {
        max-width: 100%;
    }

    .hp-hero__trust {
        justify-content: center;
    }

    .hp-newsletter__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .hp-hero {
        padding-top: var(--space-sm);
    }

    .hp-hero__trust {
        margin-top: var(--space-md);
        padding-top: var(--space-sm);
        gap: 8px var(--space-sm);
    }

    .hp-hero__sub,
    .hp-hero__tagline {
        max-width: 100%;
    }

    .hp-newsletter__form-wrap {
        padding: var(--space-md);
    }
}

@media (prefers-reduced-motion: reduce) {

    .hp-eyebrow,
    .hp-hero__title,
    .hp-hero__sub,
    .hp-hero__tagline,
    .hp-hero__trust {
        animation: none;
        opacity: 1;
    }

    .hp-marquee__sep,
    .hp-marquee__track,
    .hp-newsletter__form-wrap::after,
    #card-livre {
        animation: none;
    }

    .hp-training-card {
        opacity: 1 !important;
        translate: 0 0 !important;
    }
}