/* ==================================================
   1. ROOT & RESET
   ================================================== */
:root {
    --primary: #ee3780;
    --primary-light: #ff6aa4;
    --dark: #0f1117;
    --dark-2: #171923;
    --text: #121212;
    --text-light: #6b7280;
    --bg: #f5f5f7;
    --white: #ffffff;
    --border: #e5e7eb;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
}
/* ==================================================
   2. LAYOUT & ELEMENTOS COMUNS
   ================================================== */
.container {
    width: 92%;
    max-width: 1400px;
    margin: auto;
}
/* Botões */
.btn-pink {
    padding: 9px 17px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 10px 30px rgba(238, 55, 128, .35);
    transition: transform 0.2s ease;
}
.btn-pink:hover {
    transform: translateY(-3px);
}
.btn-submit {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(90deg, #ff3377, #ff5e97);
}
/* Subtítulos gerais */
.subtitle {
    color: #717789;
}
/* Textos e Utilitários */
.text-spacing {
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}
/* ==================================================
   3. TOPBAR
   ================================================== */
.topbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 999;
}
.topbar-content {
    min-height: 75px;
    display: flex;
    align-items: center;
}
.logo {
    width: 120px;
}
/* ==================================================
   4. HERO SECTION
   ================================================== */
.hero {
    background: 
        radial-gradient(circle at top right, rgba(238, 55, 128, .25), transparent 35%),
        linear-gradient(135deg, #0f1117, #171923);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(238, 55, 128, .12);
    filter: blur(120px);
    top: -200px;
    right: -100px;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}
.hero-left {
    max-width: 650px;
}
.badge {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    margin-bottom: 25px;
}
.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
}
.hero h1 span {
    color: var(--primary);
}
.hero p {
    color: #d0d0d0;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 35px;
}
.hero-right {
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-card {
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 26px;
    transition: .3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(238, 55, 128, .4);
}
.feature-card h3 {
    color: #fff;
    margin-bottom: 10px;
}
.feature-card p {
    color: #bfbfbf;
    font-size: 14px;
}
/* Hero Divider */
.hero-divider {
    height: 80px;
    margin-top: -40px;
    background: #fff;
    border-top-left-radius: 100% 80px;
    border-top-right-radius: 100% 80px;
    position: relative;
    z-index: 5;
}
/* ==================================================
   5. STATS SECTION (CARDS DO ENEM)
   ================================================== */
.stats {
    padding: 40px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.stat-card {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s cubic-bezier(.2,.8,.2,1);
    will-change: transform, box-shadow;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 45px rgba(241, 63, 133, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.08);
}
.stat-card h2 {
    margin-top: 10px;
    font-size: 42px;
    line-height: 1;
}
.stat-icon-container {
    width: 48px;
    height: 48px;
    background-color: #fdebf2;
    color: #ee3780;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-content {
    display: flex;
    flex-direction: column;
}
/* ==================================================
   6. HIGHLIGHT SECTION (SUA ESCOLA)
   ================================================== */
.highlight {
    margin: 30px 0;
    padding: 1.5rem 0;
}
.highlight-card {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #ed327b 0%, #be1e5d 100%);
    color: #fff;
    padding: 24px;
    min-height: 140px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(237, 50, 123, 0.15);
}
.highlight-card::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.school-info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.school-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}
.school-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.school-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 2px 0 0 0;
    font-weight: 500;
}
.school-stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}
.score-box {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}
.score-box.highlight-purple .champion-badge {
    background: rgba(0, 0, 0, 0.15);
}
.champion-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 15px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}
.score-number {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}
/* ==================================================
   7. RANKING TABLE
   ================================================== */
.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.ranking-header h2 {
    margin: 0;
}
.ranking-count {
    background: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}
.table-wrapper {
    border: 1px solid #e5e7eb;
    background: #fff;
    max-height: 70vh;
    border-radius: 24px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.06);
}
table {
    width: 100%;
    min-width: 1600px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}
thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #111, #1f2937) !important;
    color: #fff !important;
    z-index: 20;
}
thead th * {
    color: #fff !important;
}
th, td {
    padding: 14px 12px;
    white-space: nowrap;
}
thead th:first-child,
tbody td:first-child {
    position: sticky;
    left: 0;
}
thead th:first-child {
    z-index: 30;
}
tbody td:first-child {
    background: #fff;
    z-index: 5;
    color: var(--primary);
    font-weight: 800;
}
tbody tr:nth-child(even) {
    background: #fafafa;
}
tbody tr:hover {
    background: #fff0f6;
}
/* Segunda coluna congelada na tabela */
thead th:nth-child(2),
tbody td:nth-child(2) {
    position: sticky;
    left: 85px;
}
thead th:nth-child(2) {
    z-index: 30;
}
tbody td:nth-child(2) {
    z-index: 4;
    background: #fff;
}
tbody tr:nth-child(even) td:nth-child(2) {
    background: #fafafa;
}
tbody tr:hover td:nth-child(2) {
    background: #fff0f6;
}
/* Filtros Antigos (se houverem) */
.filters {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #ececec;
}
.filter-group {
    display: flex;
    gap: 10px;
}
.year {
    border: none;
    background: #f3f4f6;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
}
.year.active {
    background: var(--primary);
    color: #fff;
}
/* ==================================================
   8. SEÇÃO: COMO FUNCIONA (PASSOS)
   ================================================== */
.como-funciona {
    background-color: #fcfcfc;
}
.como-funciona .section-title {
    color: #1a1a1a;
    font-size: 2rem;
}
.step-card {
    background: #f4f5f7;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.step-number-circle {
    width: 65px;
    height: 65px;
    background-color: #e6007e;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
}
.step-card h4 {
    color: #111111;
    font-size: 1.25rem;
}
.step-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;
}
.step-arrow {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #e6007e;
    z-index: 10;
    pointer-events: none;
}
/* ==================================================
   9. SEÇÃO: INTELIGÊNCIA EDUCACIONAL & PARCEIROS
   ================================================== */
.inteligencia-educacional {
    background-color: #ffffff;
}
.inteligencia-educacional h2 {
    color: #111111;
    font-size: 2.2rem;
    line-height: 1.2;
}
.stat-big-card {
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #e6007e;
    transition: all 0.3s ease;
}
.stat-big-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(230, 0, 126, 0.05);
    transform: translateY(-2px);
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e6007e;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a4a4a;
    line-height: 1.4;
}
.logos-marcas-wrapper {
    margin-top: 2rem;
}
/* Containers das Marcas */
.brand-placeholder {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}
.brand-placeholder:hover {
    background-color: #ffffff;
    border-color: #e6007e;
    box-shadow: 0 6px 15px rgba(230, 0, 126, 0.08);
}
.logo-brand {
    max-height: 60px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease-in-out;
}
.brand-placeholder:hover .logo-brand {
    transform: scale(1.05);
}
.logo-somos-parceira {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logo-somos-parceira:hover {
    filter: grayscale(0%);
    opacity: 1;
}
/* ==================================================
   10. SEÇÃO: PERGUNTAS FREQUENTES (ACCORDION)
   ================================================== */
#faqAccordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}
#faqAccordion .accordion-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
}
#faqAccordion .accordion-item:last-child {
    border-bottom: none;
}
#faqAccordion .accordion-button {
    background-color: #ffffff;
    color: #333333;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease-in-out;
}
#faqAccordion .accordion-button:hover {
    background-color: #fafafa;
    color: #ff007f;
}
#faqAccordion .accordion-button:not(.collapsed) {
    background-color: #fff0f6;
    color: #d10066;
    box-shadow: none;
}
#faqAccordion .accordion-button::after {
    background-size: 1.1rem;
    transition: transform 0.2s ease-in-out;
}
#faqAccordion .accordion-button:not(.collapsed)::after {
    filter: invert(13%) sepia(95%) saturate(5437%) hue-rotate(325deg) brightness(90%) contrast(108%);
}
#faqAccordion .accordion-button:focus {
    border-color: rgba(255, 0, 127, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 127, 0.15);
}
#faqAccordion .accordion-body {
    padding: 1.5rem;
    background-color: #ffffff;
    color: #555555;
    line-height: 1.6;
    font-size: 0.975rem;
}
/* ==================================================
   11. ELEMENTOS BLOQUEADOS & CONTROLADORES (LOCKED)
   ================================================== */
.locked {
    position: relative;
    isolation: isolate;
    overflow: hidden !important;
}
.locked .content-inner {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}
.lock-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    background: rgba(190, 30, 93, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    border-radius: inherit;
}
.lock-content {
    color: #ffffff;
    padding: 20px;
}
.lock-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 4px;
}
.lock-content h5 {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
}
.lock-content p {
    font-size: 0.8rem;
    margin-bottom: 10px;
}
/* ==================================================
   12. MODAIS (LOGIN & CADASTRO)
   ================================================== */
#modalLogin .modal-content,
#modalCadastro .modal-content {
    border-radius: 20px !important;
    padding: 36px 40px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}
#modalLogin .modal-header,
#modalCadastro .modal-header {
    border-bottom: none !important;
    padding: 0 0 16px 0 !important;
}
#modalLogin .modal-header h2,
#modalCadastro .modal-header h2 {
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #111111 !important;
    margin: 0 !important;
}
#modalLogin .subtitle.mb-4,
#modalCadastro .subtitle.mb-4 {
    text-align: left !important;
    color: #8A8A93 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-bottom: 24px !important;
}
#modalLogin .subtitle.mb-4 {
    margin-top: -8px !important;
}
#modalLogin label.subtitle,
#modalCadastro label.subtitle {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #444446 !important;
    margin-bottom: 6px !important;
    margin-top: 4px !important;
}
#modalLogin label.subtitle {
    font-size: 12px !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
}
#modalLogin .form-control,
#modalCadastro .form-control,
#modalCadastro .form-select {
    border-radius: 10px !important;
    padding: 12px 14px !important;
    border: 1px solid #E5E5EA !important;
    background-color: #FAFAFC !important;
    color: #1C1C1E !important;
    font-size: 14px !important;
}
#modalLogin .form-control {
    padding: 14px 16px !important;
}
#modalLogin .form-control:focus,
#modalCadastro .form-control:focus,
#modalCadastro .form-select:focus {
    background-color: #ffffff !important;
    border-color: #e6207e !important;
    box-shadow: 0 0 0 4px rgba(230, 32, 126, 0.15) !important;
}
#modalLogin .forgot-password {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #636366 !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    display: inline-block !important;
}
#modalLogin .forgot-password:hover {
    color: #e6207e !important;
    text-decoration: underline !important;
}
#modalLogin .btn-pink,
#modalCadastro .btn-pink {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #ff3399 0%, #e6207e 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(230, 32, 126, 0.25) !important;
}
#modalLogin .btn-pink:hover,
#modalCadastro .btn-pink:hover {
    background: linear-gradient(135deg, #ff4da6 0%, #d1136e 100%) !important;
    box-shadow: 0 6px 22px rgba(230, 32, 126, 0.35) !important;
    transform: translateY(-1px) !important;
}
.invalid-feedback-custom {
    color: #e6207e;
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    transition: all 0.2s ease;
}
#btn-ir-cadastro {
  display: inline-block !important;
  width: auto !important;
  min-width: max-content;
  background-color: transparent !important;
  color: #d11c7f !important;
  border: 2px solid #d11c7f !important;
  border-radius: 50px !important;
  padding: 8px 20px !important; 
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 20px auto 10px auto !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  animation: elegantOutlinePulse 2s infinite ease-in-out !important;
}

#btn-ir-cadastro:hover {
  background-color: #d11c7f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(209, 28, 127, 0.3) !important;
}

@keyframes elegantOutlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 28, 127, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(209, 28, 127, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(209, 28, 127, 0);
  }
}
/* ==================================================
   13. MEDIA QUERIES (RESPONSIVIDADE)
   ================================================== */
@media (min-width: 1200px) {
    .highlight-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 24px 32px;
        gap: 32px;
    }
    .school-info-section {
        max-width: 30%;
    }
    .school-stats-section {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
        max-width: 70%;
    }
    .score-box {
        flex: 1;
        min-width: 140px;
        padding: 12px 6px;
    }
    .score-number {
        font-size: 2rem;
    }
}
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    .hero-right {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-card {
        flex-direction: column;
        gap: 25px;
    }
    .inteligencia-educacional h2 {
        font-size: 1.8rem;
    }
}
@media (max-width: 767.98px) {
    .step-arrow {
        display: none !important;
    }
    .step-card {
        margin-bottom: 1rem;
    }
}
@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero p {
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-card h2 {
        font-size: 32px;
    }
    .score-box {
        text-align: left;
    }
}