/* ============================================================
   CATÁLOGO DE CURSOS — Premium Edition
   ============================================================ */

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

:root {
    color-scheme: dark;
    --bg:        #080808;
    --card-bg:   rgba(16, 16, 16, 0.95);
    --border:    rgba(255,255,255,0.07);
    --border-h:  rgba(255,255,255,0.13);
    --gold:      #FFD700;
    --gold-2:    #FFA500;
    --gold-dim:  rgba(255,215,0,0.10);
    --green:     #00e678;
    --green-2:   #00b856;
    --green-dim: rgba(0,230,120,0.10);
    --white:     #ffffff;
    --gray:      #505050;
    --gray-lt:   #999999;
    --wpp:       #25D366;
    --r:         20px;
    --r-sm:      12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,.25); border-radius: 3px; }

/* ============================================================
   CANVAS
   ============================================================ */
#circuit-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   FAB WHATSAPP
   ============================================================ */
.wpp-fab {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--wpp);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(37,211,102,.45);
    transition: transform .25s, box-shadow .25s;
}
.wpp-fab:hover { transform: scale(1.1) rotate(-5deg); box-shadow: 0 8px 32px rgba(37,211,102,.65); }

/* ============================================================
   LAYOUT
   ============================================================ */
.page {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 16px 72px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ============================================================
   CABEÇALHO
   ============================================================ */
.page-head { text-align: center; margin-bottom: 12px; padding: 0 8px; }
.eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .6rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gray-lt);
    margin-bottom: 10px;
    opacity: .6;
}
.page-head h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 9vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.page-head h1 em {
    font-style: italic;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    border-radius: 2px;
    margin: 0 auto;
    box-shadow: 0 0 14px rgba(255,215,0,.55);
}

/* ============================================================
   CARDS — base
   ============================================================ */
.card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}
.card:not(.card--soon):hover {
    transform: translateY(-5px) scale(1.004);
    border-color: var(--border-h);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}

/* ── Card hero (Método Inverter Fácil) ── */
.card--hero {
    border-color: rgba(255,215,0,.32);
    box-shadow: 0 0 0 1px rgba(255,215,0,.1), 0 6px 36px rgba(255,215,0,.1);
}
.card--hero:hover {
    border-color: rgba(255,215,0,.6) !important;
    box-shadow: 0 0 0 1px rgba(255,215,0,.28),
                0 20px 60px rgba(255,215,0,.18),
                0 4px 20px rgba(0,0,0,.5) !important;
}

/* ── Card lançamento (Engenharia Reversa) ── */
.card--launch {
    border-color: rgba(0,230,120,.38);
    box-shadow: 0 0 0 1px rgba(0,230,120,.1), 0 6px 36px rgba(0,230,120,.12);
    overflow: visible;
}
.card--launch > * { border-radius: 0; }
.card--launch > *:first-child { border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.card--launch > *:last-child  { border-radius: 0 0 var(--r) var(--r); }
.card--launch:hover {
    border-color: rgba(0,230,120,.65) !important;
    box-shadow: 0 0 0 1px rgba(0,230,120,.28),
                0 20px 60px rgba(0,230,120,.2),
                0 4px 20px rgba(0,0,0,.5) !important;
}

/* ── Faixa de lançamento ── */
.launch-ribbon {
    background: linear-gradient(90deg, #00c860, #00e678, #00c860);
    background-size: 200% 100%;
    animation: ribbon-shimmer 2.5s linear infinite;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: var(--r) var(--r) 0 0;
}
@keyframes ribbon-shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ── Pontos pulsantes ── */
.live-dot, .live-dot-sm {
    display: inline-block;
    border-radius: 50%;
    background: #000;
    flex-shrink: 0;
    animation: pulse-dot 1.4s ease-in-out infinite;
}
.live-dot    { width: 8px; height: 8px; }
.live-dot-sm { width: 6px; height: 6px; }
@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(0,0,0,.5); }
    70%  { box-shadow: 0 0 0 6px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ============================================================
   CAPA DO CURSO
   ============================================================ */
.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0d0d;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.card:not(.card--soon):hover .card-cover img { transform: scale(1.04); }

.cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.15);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .62rem;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
}
.badge--gold {
    background: linear-gradient(135deg, rgba(255,215,0,.92), rgba(255,165,0,.92));
    border-color: transparent;
    color: #000;
    box-shadow: 0 2px 12px rgba(255,215,0,.38);
}
.badge--live {
    background: rgba(0,200,100,.85) !important;
    border-color: transparent !important;
    color: #000 !important;
    box-shadow: 0 2px 12px rgba(0,200,100,.38);
    display: flex !important;
}

/* ============================================================
   CORPO DO CARD
   ============================================================ */
.card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pills */
.card-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.card-pills span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gold-dim);
    border: 1px solid rgba(255,215,0,.18);
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .64rem;
    letter-spacing: .3px;
    padding: 5px 12px;
    border-radius: 50px;
}
.card-pills span i { font-size: .68rem; }

/* ── Texto do card de lançamento ── */
.launch-headline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--white);
}
.launch-desc {
    font-size: .82rem;
    color: var(--gray-lt);
    line-height: 1.6;
    margin-top: -4px;
}
.founder-note {
    display: grid;
    gap: 7px;
    background: rgba(0,230,120,.06);
    border: 1px solid rgba(0,230,120,.18);
    border-radius: var(--r-sm);
    padding: 11px 12px;
}
.founder-note span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .74rem;
    color: var(--gray-lt);
    line-height: 1.35;
}
.founder-note i {
    color: var(--green);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================
   CONTADOR REGRESSIVO
   ============================================================ */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0;
}
.cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.cd-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--green);
    background: rgba(0,230,120,.08);
    border: 1px solid rgba(0,230,120,.22);
    border-radius: 10px;
    padding: 10px 6px;
    width: 100%;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0,230,120,.55);
    transition: transform .15s;
}
.cd-num.tick { transform: scale(1.06); }
.cd-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .58rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-lt);
    opacity: .7;
}
.cd-sep {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--green);
    opacity: .5;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* Estado "ao vivo" (quando o contador zera) */
.countdown.is-live .cd-num {
    color: #ff4444;
    background: rgba(255,68,68,.08);
    border-color: rgba(255,68,68,.3);
    text-shadow: 0 0 20px rgba(255,68,68,.6);
    animation: pulse-live-num 1s ease-in-out infinite;
}
@keyframes pulse-live-num {
    0%,100% { opacity: 1; }
    50%      { opacity: .6; }
}
/* Botão pisca durante ao vivo */
.countdown.is-live ~ .btn--launch {
    animation: pulse-live-btn 1.6s ease-in-out infinite;
}
@keyframes pulse-live-btn {
    0%,100% { box-shadow: 0 4px 22px rgba(0,200,100,.32); }
    50%      { box-shadow: 0 6px 32px rgba(0,200,100,.72); }
}

/* ============================================================
   PROVA SOCIAL
   ============================================================ */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-top: 2px;
    border-top: 1px solid rgba(255,255,255,.05);
    padding-top: 10px;
}
.sp-stars { display: flex; gap: 2px; }
.sp-stars i { color: var(--gold); font-size: .72rem; }
.sp-text {
    font-size: .76rem;
    color: var(--gray-lt);
}
.sp-text strong { color: var(--white); font-weight: 600; }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .3px;
    cursor: pointer;
    padding: 14px 20px;
    transition: transform .25s, box-shadow .25s;
    text-align: center;
}
.btn--hero {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 22px rgba(255,185,0,.32);
}
.card--hero:hover .btn--hero {
    box-shadow: 0 8px 36px rgba(255,185,0,.55);
    transform: scale(1.02);
}
.btn--outline {
    background: rgba(255,255,255,.04);
    border: 1.5px solid rgba(255,255,255,.12);
    color: var(--white);
}
.card:hover .btn--outline {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.25);
}
.btn--launch {
    background: linear-gradient(135deg, #00e678 0%, #00b856 100%);
    color: #000;
    font-size: .9rem;
    padding: 15px 20px;
    box-shadow: 0 4px 22px rgba(0,200,100,.32);
}
.card--launch:hover .btn--launch {
    box-shadow: 0 8px 36px rgba(0,200,100,.55);
    transform: scale(1.02);
}

/* ============================================================
   LINKS EXTRAS (YouTube / WhatsApp)
   ============================================================ */
.extra-links { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.extra-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .87rem;
    letter-spacing: .2px;
    transition: transform .25s, box-shadow .25s, filter .25s;
    border: 1px solid transparent;
}
.extra-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.extra-btn span { flex: 1; }
.extra-arrow { font-size: .72rem; opacity: .55; transition: transform .25s; }
.extra-btn:hover .extra-arrow { transform: translateX(4px); opacity: 1; }
.extra-btn i:first-child { font-size: 1.25rem; width: 24px; text-align: center; }

.extra-yt  {
    background: rgba(204,0,0,.1);
    border-color: rgba(204,0,0,.22);
    color: #ff5555;
    box-shadow: 0 4px 18px rgba(204,0,0,.1);
}
.extra-yt:hover { box-shadow: 0 8px 28px rgba(204,0,0,.28); }
.extra-wpp {
    background: rgba(37,211,102,.1);
    border-color: rgba(37,211,102,.2);
    color: #4ade80;
    box-shadow: 0 4px 18px rgba(37,211,102,.1);
}
.extra-wpp:hover { box-shadow: 0 8px 28px rgba(37,211,102,.25); }

/* ============================================================
   CURSO PRESENCIAL / ASSISTÊNCIA
   ============================================================ */
.offline-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}
.section-mini-head {
    text-align: center;
    padding: 20px 8px 8px;
}
.section-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.section-mini-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    line-height: 1.15;
    font-weight: 900;
}
.section-mini-head h2 em {
    font-style: italic;
    background: linear-gradient(135deg, #00e678, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-line {
    width: 34px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    box-shadow: 0 0 14px rgba(0,230,120,.4);
}
.offline-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    background: rgba(14,14,14,.96);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .3s;
}
.offline-card:hover {
    transform: translateY(-5px) scale(1.004);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.offline-card--course {
    border-color: rgba(0,230,120,.28);
    box-shadow: 0 0 0 1px rgba(0,230,120,.08), 0 6px 32px rgba(0,230,120,.1);
}
.offline-card--repair {
    border-color: rgba(255,215,0,.24);
    box-shadow: 0 0 0 1px rgba(255,215,0,.07), 0 6px 32px rgba(255,215,0,.08);
}
.offline-media {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    overflow: hidden;
    background: #07131e;
}
.offline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.offline-card:hover .offline-media img { transform: scale(1.035); }
.offline-media--placeholder {
    min-height: 150px;
    aspect-ratio: auto;
}
.offline-media--placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,230,120,.18), rgba(255,215,0,.08)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 34px);
}
.offline-card--repair .offline-media--placeholder::before {
    background:
        linear-gradient(135deg, rgba(255,215,0,.16), rgba(37,211,102,.08)),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 34px);
}
.offline-media--placeholder i,
.offline-media--placeholder span {
    position: relative;
    z-index: 1;
}
.offline-media--placeholder i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.44);
    border: 1px solid rgba(255,255,255,.16);
    color: var(--green);
    font-size: 1.25rem;
}
.offline-card--repair .offline-media--placeholder i { color: var(--gold); }
.offline-media--placeholder span {
    font-family: 'Montserrat', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.68);
}
.offline-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.offline-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    background: rgba(0,230,120,.09);
    border: 1px solid rgba(0,230,120,.2);
    color: var(--green);
    font-family: 'Montserrat', sans-serif;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.offline-card--repair .offline-badge {
    background: rgba(255,215,0,.09);
    border-color: rgba(255,215,0,.2);
    color: var(--gold);
}
.offline-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 900;
}
.offline-body p {
    color: var(--gray-lt);
    font-size: .82rem;
    line-height: 1.6;
}
.offline-points {
    display: grid;
    gap: 7px;
}
.offline-points span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-lt);
    font-size: .76rem;
    line-height: 1.35;
}
.offline-points i {
    width: 15px;
    color: var(--green);
    text-align: center;
    flex-shrink: 0;
}
.offline-card--repair .offline-points i { color: var(--gold); }
.offline-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 50px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #00e678, #00b856);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,200,100,.28);
}
.offline-cta--repair {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 20px rgba(255,185,0,.25);
}

/* ============================================================
   MODAL PRÉ-VENDA
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
    position: relative;
    width: min(100%, 430px);
    background: rgba(14,14,14,.98);
    border: 1px solid rgba(0,230,120,.28);
    border-radius: var(--r);
    padding: 24px 20px 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.72), 0 0 0 1px rgba(0,230,120,.08);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    color: var(--gray-lt);
    cursor: pointer;
}
.modal-kicker {
    font-family: 'Montserrat', sans-serif;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 8px;
}
.modal-dialog h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    line-height: 1.18;
    margin-right: 32px;
    margin-bottom: 10px;
}
.modal-text {
    color: var(--gray-lt);
    font-size: .88rem;
    line-height: 1.65;
    margin-bottom: 14px;
}
.modal-points {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}
.modal-points span {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 10px 11px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--gray-lt);
    font-size: .8rem;
    line-height: 1.35;
}
.modal-points i {
    color: var(--green);
    margin-top: 2px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.modal-cta { text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    color: var(--gray);
    font-size: .7rem;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.04);
    margin-top: 8px;
    letter-spacing: .5px;
}

@media (min-width: 540px) {
    .page { padding-left: 24px; padding-right: 24px; }
}
