/*
 * Teste A/B da home (?v=3). Variante agressiva: laranja + indigo, formas
 * anguladas (clip-path em vez de transform:skew, pra nao depender de QA
 * visual que nao temos neste ambiente), tipografia condensada em caixa alta
 * para titulos. Carregado so em page/index_v3.blade.php.
 */

.gc-v3 {
    --v3-orange: #ff5a1f;
    --v3-orange-soft: #ff8a3d;
    --v3-indigo: #6366f1;
    --v3-surface: #141a26;
    position: relative;
}

.gc-v3 .v3-display {
    font-family: 'Anton', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.v3-hero {
    position: relative;
    overflow: hidden;
}

.v3-hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -20%;
    width: 75%;
    height: 130%;
    background: linear-gradient(135deg, var(--v3-orange), var(--v3-indigo) 75%);
    clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.18;
    z-index: 0;
}

.v3-hero-content {
    position: relative;
    z-index: 1;
    max-width: 46rem;
}

.v3-badge {
    display: inline-flex;
    align-items: center;
    background: var(--v3-orange);
    color: #0d121c;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.v3-hero-title {
    color: #ffffff;
    font-weight: 400;
    font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
    line-height: 1.02;
    margin: 1.25rem 0 0;
}

.v3-hero-subtitle {
    color: #9ca3af;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-top: 1.5rem;
    max-width: 42ch;
}

.v3-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.25rem;
    padding: 0 2rem;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 96% 100%, 0 100%);
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.v3-btn:hover {
    transform: translateY(-2px);
}

.v3-btn-primary {
    background: var(--v3-orange);
    color: #0d121c;
}

.v3-btn-primary:hover {
    background: var(--v3-orange-soft);
}

.v3-btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.v3-btn-secondary:hover {
    border-color: var(--v3-orange);
    color: var(--v3-orange);
}

.v3-hero-microcopy {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 1.1rem;
}

/* ---------- Faixa de declaracao ----------
   Substitui o ticker (removido: o corte diagonal em clip-path raspava as
   letras do texto rolando de ponta a ponta). Mesma ideia de faixa
   diagonal via skew no wrapper + contra-skew no conteudo, mas agora
   estatica -- uma frase de impacto entre o hero e os recursos, sem
   depender de animacao pra funcionar. */

.v3-statement-band {
    position: relative;
    overflow: hidden;
    transform: skewY(-2deg);
    background: linear-gradient(100deg, var(--v3-orange), var(--v3-orange-soft));
    box-shadow: 0 20px 40px -20px rgba(255, 90, 31, 0.55);
}

.v3-statement-inner {
    transform: skewY(2deg);
    padding: 2.75rem 1.5rem;
    text-align: center;
}

.v3-statement-text {
    color: #0d121c;
    font-size: clamp(1.5rem, 1.15rem + 1.8vw, 2.5rem);
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 50rem;
    margin: 0 auto;
}

/* ---------- Cabecalho de secao ---------- */

.v3-section-header {
    max-width: 44rem;
    margin-bottom: 3rem;
}

.v3-heading {
    color: #ffffff;
    font-weight: 400;
    font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    line-height: 1.05;
    margin: 1rem 0 0;
}

.v3-description {
    color: #9ca3af;
    margin-top: 1rem;
    max-width: 56ch;
    font-size: 1.05rem;
}

/* ---------- Cards de recurso ---------- */

.v3-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
    grid-auto-flow: dense;
    gap: 1.75rem;
}

.v3-card {
    position: relative;
    background: var(--v3-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* corte assimetrico -- lasca pequena no topo, lasca maior embaixo --
       pra fugir do retangulo puro sem perder a linguagem angulada */
    clip-path: polygon(
        0 22px, 22px 0,
        100% 0,
        100% calc(100% - 40px), calc(100% - 40px) 100%,
        0 100%
    );
    padding: 2rem 2rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.v3-card::before {
    /* lombada colorida na lateral esquerda, tambem cortada pelo clip-path
       do card -- da o efeito de "etiqueta encaixada" em vez de caixa lisa */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, var(--v3-orange), var(--v3-indigo));
}

.v3-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, var(--v3-orange) 50%);
}

.v3-card:hover {
    border-color: rgba(255, 90, 31, 0.5);
    transform: translateY(-4px);
}

.v3-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--v3-indigo);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.v3-card h3 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
}

.v3-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.v3-card-featured {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(155deg, rgba(255, 90, 31, 0.14), var(--v3-surface) 55%);
    justify-content: center;
}

.v3-card-featured .v3-card-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.85rem;
    background: rgba(255, 90, 31, 0.16);
    color: var(--v3-orange);
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.v3-card-featured h3 {
    font-size: 1.6rem;
}

.v3-card-featured p {
    font-size: 1rem;
    max-width: 34ch;
}

/* ---------- Vitrine "Mega Oferta Prime" (PG-220) ----------
   Mesma vitrine do dashboard (.gc-feature-*, ver resources/sass/_showcase.scss),
   portada aqui com cores fixas em vez de var(--gc-*): essas variaveis so
   existem no bundle do app (Bootstrap + tema claro/escuro), que a landing
   nao carrega -- so Tailwind (CDN) e este arquivo. */

.v3-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 1.5rem;
}

.v3-promo-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--v3-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.v3-promo-tile:hover {
    border-color: rgba(255, 90, 31, 0.5);
    transform: translateY(-4px);
}

.v3-promo-tile-art {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #1a202c;
}

.v3-promo-tile-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v3-promo-tile-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #9ca3af;
}

.v3-promo-tile-badge {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    background: var(--v3-orange);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.v3-promo-tile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.v3-promo-tile-info h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.v3-promo-tile-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.v3-promo-tile-price {
    font-weight: 700;
    color: #ffffff;
}

.v3-promo-tile-prices del {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ---------- Passos ---------- */

.v3-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.v3-step {
    position: relative;
    padding-top: 0.5rem;
}

.v3-step::before {
    /* tab curta e angulada no lugar de uma linha reta de ponta a ponta */
    content: '';
    display: block;
    width: 52px;
    height: 7px;
    margin-bottom: 1.75rem;
    background: var(--v3-orange);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
}

.v3-step-num {
    font-family: 'Anton', 'Inter', sans-serif;
    color: var(--v3-orange);
    font-size: clamp(2.75rem, 2.2rem + 2vw, 4rem);
    line-height: 1;
    display: block;
}

.v3-step h4 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0.75rem 0 0.5rem;
}

.v3-step p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ---------- CTA ---------- */

.v3-cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--v3-orange), var(--v3-indigo) 130%);
    clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0% 96%);
    padding: 4rem 2rem;
    text-align: center;
}

.v3-cta-section h3 {
    color: #0d121c;
    font-weight: 400;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.v3-cta-section p {
    color: rgba(13, 18, 28, 0.75);
    font-weight: 500;
    max-width: 44ch;
    margin: 0 auto 2rem;
}

.v3-cta-section .v3-btn-primary {
    background: #0d121c;
    color: #ffffff;
}

.v3-cta-section .v3-btn-primary:hover {
    background: #1a202c;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
    .v3-steps {
        grid-template-columns: 1fr 1fr;
    }

    .v3-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .v3-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .v3-hero-content {
        max-width: 100%;
    }

    .v3-statement-inner {
        padding: 2rem 1.25rem;
    }

    .v3-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .v3-cards {
        grid-template-columns: 1fr;
    }

    .v3-card-featured {
        grid-column: span 1;
    }

    .v3-card {
        padding: 1.75rem 1.75rem 1.75rem 2.1rem;
    }

    .v3-cta-section {
        padding: 3rem 1.5rem;
    }
}

/* PG-294: card de materia em destaque na home */
.gc-v3 .v3-news-feature { display: flex; flex-direction: column; max-width: 80rem; margin: 0 auto; overflow: hidden; border-radius: 1rem; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(135deg, rgba(79,70,229,.28), rgba(249,115,22,.18)); color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.gc-v3 .v3-news-feature:hover { transform: translateY(-2px); border-color: rgba(249,115,22,.7); }
.gc-v3 .v3-news-feature-img { width: 100%; height: 12rem; object-fit: cover; }
.gc-v3 .v3-news-feature-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.gc-v3 .v3-news-feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .85rem; opacity: .9; }
.gc-v3 .v3-news-feature-title { font-size: 1.6rem; line-height: 1.15; margin: 0; }
.gc-v3 .v3-news-feature-summary { margin: 0; opacity: .85; }
.gc-v3 .v3-news-feature-cta { font-weight: 600; color: #f97316; }
@media (min-width: 768px) {
    .gc-v3 .v3-news-feature { flex-direction: row; align-items: stretch; }
    .gc-v3 .v3-news-feature-img { width: 40%; height: auto; }
    .gc-v3 .v3-news-feature-body { padding: 2.25rem; justify-content: center; }
    .gc-v3 .v3-news-feature-title { font-size: 2.2rem; }
}
