/* =====================================================
   INEM - Página Inicial Pública
   ===================================================== */

.landing-body {
    background: var(--lilas-bg);
    color: var(--cinza-900);
    font-family: 'Manrope', 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ HEADER ============ */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(243, 240, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cinza-200);
    padding: 16px 0;
}

[data-theme="escuro"] .landing-header {
    background: rgba(30, 27, 75, 0.95);
}

.landing-header .landing-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.landing-logo img {
    display: block;
    width: auto;
    height: 60px;
    object-fit: contain;
}

.landing-nav {
    display: flex;
    gap: 28px;
}

.landing-nav a {
    color: var(--cinza-700);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav a:hover {
    color: var(--laranja);
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============ HERO ============ */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, 
        #4C1D95 0%, 
        #5B21B6 25%, 
        #6D28D9 50%, 
        #7C3AED 75%, 
        #8B5CF6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: white;
    margin-bottom: 24px;
    text-wrap: balance;
}

.hero-title .highlight {
    color: var(--laranja-claro);
    display: inline-block;
    position: relative;
}

.hero-description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    letter-spacing: 0.05px;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
}

.hero-feature-icon {
    font-size: 18px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-ilustracao {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

.hero-quote {
    position: absolute;
    bottom: 20px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 12px;
    color: white;
    font-size: 13px;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 220px;
}

/* ============ MATÉRIAS ============ */
.materias-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    text-align: center;
    color: var(--azul-marinho);
    margin-bottom: 12px;
    text-wrap: balance;
}

[data-theme="escuro"] .section-title { color: var(--branco); }

.section-subtitle {
    text-align: center;
    color: var(--cinza-500);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.1px;
    margin-bottom: 48px;
}

.materias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.materia-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.materia-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.materia-card.matematica {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.materia-card.quimica {
    background: linear-gradient(135deg, #10B981, #059669);
}

.materia-card.fisica {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.materia-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}

.materia-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.materia-info h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.35px;
    margin-bottom: 4px;
}

.materia-info p {
    font-size: 13px;
    opacity: 0.9;
}

.materia-arrow {
    margin-left: auto;
    font-size: 24px;
    transition: transform 0.3s;
}

.materia-card:hover .materia-arrow {
    transform: translateX(6px);
}

/* ============ RECURSOS ============ */
.recursos-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 80px 0;
    background: #AEA3DF;
}

.recursos-cubos {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.magic-cube {
    position: absolute;
    display: block;
    width: 82px;
    height: auto;
    animation: magic-cube-float 5.2s ease-in-out infinite;
    filter: drop-shadow(0 8px 6px rgba(49, 32, 111, 0.2));
}

.magic-cube--one { top: 8%; left: 1%; width: 76px; animation-delay: -1s; }
.magic-cube--two { top: 16%; right: 1%; width: 60px; animation-delay: -3.2s; animation-duration: 6.4s; }
.magic-cube--three { top: 37%; left: 0; width: 56px; animation-delay: -2.1s; animation-duration: 4.7s; }
.magic-cube--four { top: 50%; right: 0; width: 90px; animation-delay: -4.3s; animation-duration: 6s; }
.magic-cube--five { top: 70%; left: 1%; width: 68px; animation-delay: -1.8s; animation-duration: 5.8s; }
.magic-cube--six { top: 82%; right: 1%; width: 74px; animation-delay: -3.7s; animation-duration: 5s; }
.magic-cube--seven { top: 93%; left: 20%; width: 54px; animation-delay: -0.6s; animation-duration: 4.5s; }

@keyframes magic-cube-float {
    0%, 100% { transform: translateY(8px) rotate(-2deg); }
    50% { transform: translateY(-18px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .magic-cube,
    .calculator-decor {
        animation: none;
    }
}

.recursos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.recurso-card {
    padding: 32px;
    background: var(--cinza-100);
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.recurso-card:hover {
    transform: translateY(-4px);
    border-color: var(--laranja);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.recurso-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.recurso-card h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.25px;
    line-height: 1.35;
    color: var(--azul-marinho);
    margin-bottom: 10px;
}

[data-theme="escuro"] .recurso-card h3 { color: var(--branco); }

.recurso-card p {
    font-size: 14px;
    color: var(--cinza-500);
    line-height: 1.6;
}

/* ============ SOBRE ============ */
.sobre-section {
    padding: 80px 0;
    background: #F97316;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-content .section-title {
    text-align: left;
    margin-bottom: 24px;
    color: #FFFFFF;
}

.sobre-content p {
    font-size: 16px;
    color: #FFFFFF;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sobre-image .mascote-robo {
    display: block;
    width: auto;
    height: min(440px, 62vw);
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.2));
    transform-origin: center bottom;
    animation: mascot-robo-move 4s ease-in-out infinite;
}

@keyframes mascot-robo-move {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sobre-image .mascote-robo {
        animation: none;
    }
}

/* ============ DEPOIMENTOS ============ */
.depoimentos-section {
    padding: 80px 0;
    background: #F97316;
}

.depoimentos-section .section-title,
.depoimentos-section .section-subtitle {
    color: #FFFFFF;
}

[data-theme="escuro"] .depoimentos-section {
    background: #F97316;
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.depoimento-card {
    padding: 32px;
    background: var(--cinza-100);
    border-radius: 20px;
    border-left: 4px solid var(--laranja);
}

.depoimento-text {
    font-size: 15px;
    color: var(--cinza-700);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.depoimento-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--laranja), var(--roxo-primario));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.depoimento-autor strong {
    display: block;
    font-size: 14px;
    color: var(--azul-marinho);
}

[data-theme="escuro"] .depoimento-autor strong { color: var(--branco); }

.depoimento-autor span {
    font-size: 12px;
    color: var(--cinza-500);
}

/* ============ CTA FINAL ============ */
.cta-final {
    padding: 100px 0;
    background: linear-gradient(135deg, #4C1D95, #7C3AED);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 70%);
    border-radius: 50%;
}

.cta-final .landing-container {
    position: relative;
    z-index: 1;
}

.cta-final h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.cta-final p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* ============ FOOTER ============ */
.landing-footer {
    background: var(--azul-marinho);
    padding: 48px 0 24px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    min-height: 72px;
}

.footer-brand img {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--laranja-claro);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .hero-grid, .sobre-grid, .recursos-grid, .depoimentos-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 36px; }
}

/* Identidade INEM para a experiência pública */
.landing-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    padding: 10px 0;
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.landing-header .landing-container {
    justify-content: flex-start;
    gap: 38px;
    padding-right: clamp(24px, 5vw, 64px);
    padding-left: clamp(24px, 5vw, 64px);
}

[data-theme="escuro"] .landing-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.landing-logo img {
    width: 120px;
    height: auto;
}

.landing-nav {
    align-items: center;
    gap: clamp(12px, 2.2vw, 28px);
}

.landing-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.landing-nav a[aria-current="page"] {
    padding: 8px 13px;
    border: 1px solid rgba(164, 91, 255, 0.75);
    border-radius: 999px;
    background: rgba(92, 42, 190, 0.36);
}

.landing-nav a:hover {
    color: #FFC04D;
}

.landing-actions {
    margin-left: auto;
    gap: 10px;
}

.landing-actions .header-lang {
    max-width: 130px;
    padding: 8px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    background: #FFFFFF !important;
    color: #29235E;
    font-size: 11px;
}

.landing-header .header-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.landing-header .header-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}

.landing-header .btn-outline {
    color: #1E1B4B;
    border-color: rgba(30, 27, 75, 0.24);
}

.landing-header .btn-outline:hover {
    border-color: #1E1B4B;
    color: #1E1B4B;
}

.landing-header .btn-login {
    padding: 10px 20px;
    border: 2px solid #F97316;
    border-radius: 999px;
    background: #F97316;
    color: #FFFFFF;
}

.landing-header .btn-login:hover {
    background: #EA580C;
    border-color: #EA580C;
    color: #FFFFFF;
}

[data-theme="escuro"] body.landing-body .landing-nav a {
    color: rgba(255, 255, 255, 0.88);
}

[data-theme="escuro"] body.landing-body .landing-nav a[aria-current="page"] {
    color: #FFFFFF;
}

[data-theme="escuro"] body.landing-body .landing-header .btn-outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.4);
}

[data-theme="escuro"] body.landing-body .landing-header .btn-outline:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.hero {
    min-height: clamp(470px, 42vw, 560px);
    display: flex;
    align-items: center;
    padding: 112px 0 100px;
    background:
        linear-gradient(90deg, rgba(12, 13, 63, 0.64) 0%, rgba(23, 16, 86, 0.36) 43%, rgba(37, 18, 105, 0.08) 78%),
        linear-gradient(0deg, rgba(74, 35, 155, 0.2), transparent 55%),
        url("../images/inicial-hero.jpeg") center 48% / cover no-repeat;
    isolation: isolate;
}

.hero::before {
    top: -58%;
    right: -13%;
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(255, 133, 35, 0.25), transparent 67%);
}

.hero::after {
    bottom: -68%;
    left: 26%;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(181, 99, 255, 0.3), transparent 68%);
}

.hero-grid {
    display: block;
    width: 100%;
}

.hero-content {
    max-width: 460px;
    margin-left: clamp(0px, 1.5vw, 20px);
    transform: translateY(12px);
}

.hero-title {
    max-width: 460px;
    font-size: clamp(36px, 4.5vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin-bottom: 8px;
    text-wrap: pretty;
}

.hero-title .highlight {
    color: #FF9A18;
}

.hero-description {
    max-width: 330px;
    margin-bottom: 16px;
    padding: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.96);
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.4;
}

.hero-cta-icon {
    width: 18px;
    height: 18px;
    margin-right: 7px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

[data-theme="escuro"] .hero-description {
    color: rgba(255, 255, 255, 0.96);
    background: transparent;
    box-shadow: none;
}

.hero-content .btn-primary {
    min-height: 50px;
    padding: 13px 24px;
    border-radius: 999px;
    background: #F97316;
    box-shadow: 0 8px 22px rgba(166, 65, 8, 0.28);
    font-size: 15px;
    font-weight: 800;
}

.hero-image {
    min-height: 360px;
    align-items: center;
    border-radius: 36px;
    background: radial-gradient(ellipse, rgba(255, 168, 45, 0.27), transparent 68%);
}

.hero-ilustracao {
    width: min(100%, 390px);
    max-width: min(100%, 430px);
    max-height: 390px;
    object-fit: contain;
}

.hero-quote {
    position: absolute;
    top: 34%;
    right: max(5%, calc((100vw - 1280px) / 2));
    max-width: 160px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(19, 18, 63, 0.55);
}

.materias-section {
    padding: 34px 0 56px;
    background: linear-gradient(180deg, #EEE8FB 0%, #F7F4FC 100%);
}

.materias-section .landing-container {
    max-width: 1280px;
}

.materias-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.materias-heading-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.materias-heading-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #F0E9FF;
    color: #6B32D8;
    font-size: 25px;
    font-weight: 800;
}

.materias-heading h2 {
    margin-bottom: 2px;
    color: #171B55;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.materias-heading p {
    color: #5D5870;
    font-size: 12px;
    line-height: 1.4;
}

.materias-ver-todas {
    flex: 0 0 auto;
    color: #7136D5;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.materias-ver-todas:hover {
    color: #F97316;
}

.materias-section .materias-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.materias-section .materia-card {
    min-height: 98px;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
}

.materias-section .materia-icon {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 24px;
}

.materias-section .materia-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.materias-section .materia-info h3 {
    font-size: 15px;
    font-weight: 800;
}

.materias-section .materia-info p {
    font-size: 10px;
    line-height: 1.35;
}

.materias-section .materia-arrow {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #7136D5;
    font-size: 15px;
}

.inicio-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(113, 54, 213, 0.18);
}

.inicio-feature {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #171B55;
    text-decoration: none;
}

.inicio-feature + .inicio-feature::before {
    position: absolute;
    left: 0;
    width: 1px;
    height: 30px;
    background: rgba(113, 54, 213, 0.25);
    content: "";
}

.inicio-feature svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    fill: none;
    stroke: #7136D5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.inicio-feature span {
    display: grid;
    gap: 2px;
}

.inicio-feature strong {
    font-size: 12px;
    font-weight: 800;
}

.inicio-feature small {
    color: #5D5870;
    font-size: 10px;
}

[data-theme="escuro"] .materias-section {
    background: linear-gradient(180deg, #19172F 0%, #111126 100%);
}

[data-theme="escuro"] .materias-heading h2,
[data-theme="escuro"] .inicio-feature {
    color: #FFFFFF;
}

[data-theme="escuro"] .materias-heading p,
[data-theme="escuro"] .inicio-feature small {
    color: #C5BED8;
}

[data-theme="escuro"] .inicio-features {
    border-color: rgba(197, 190, 216, 0.22);
}

[data-theme="escuro"] .inicio-feature + .inicio-feature::before {
    background: rgba(197, 190, 216, 0.28);
}

.inicio-feature:hover strong {
    color: #7136D5;
}

.depoimentos-section {
    background: rgba(255, 255, 255, 0.58);
}

[data-theme="claro"] .depoimentos-section {
    background: #F97316;
}

[data-theme="escuro"] .depoimentos-section {
    background: #F97316;
}

html[data-theme="escuro"] body.landing-body .recursos-section {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(245, 227, 255, 0.95), transparent 68%),
        linear-gradient(135deg, #BFA7FF 0%, #A878F0 52%, #8C5DE0 100%);
    color: #171B55;
}

html[data-theme="escuro"] body.landing-body .recursos-section .section-title {
    color: #1E1B4B;
}

.recursos-section {
    padding: 34px 0 42px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.72), transparent 66%),
        linear-gradient(135deg, #D8C9FF 0%, #B99AF4 52%, #9E78E8 100%);
}

.recursos-section .landing-container {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 1220px;
    padding: 22px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(237, 224, 255, 0.56), rgba(170, 127, 239, 0.3));
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.28), 0 10px 26px rgba(80, 46, 156, 0.2);
}

.recursos-section .section-title {
    margin: 0 0 18px;
    color: #171B55;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: center;
}

.recursos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

.recursos-section .recurso-card {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: rgba(250, 245, 255, 0.8);
    box-shadow: 0 4px 12px rgba(84, 48, 150, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.recursos-section .recurso-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.98);
    background: #FFF9FF;
    box-shadow: 0 9px 20px rgba(84, 48, 150, 0.18);
}

.recursos-section .recurso-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    margin: 0 0 4px;
    border-radius: 0;
    background: transparent !important;
    font-size: 38px;
    line-height: 1;
    filter: drop-shadow(0 3px 2px rgba(67, 43, 123, 0.2));
}

.recursos-section .recurso-card h3 {
    margin: 0 0 4px;
    color: #171B55;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.recursos-section .recurso-card p {
    max-width: 260px;
    color: #252451;
    font-size: 12px;
    line-height: 1.4;
}

.recursos-section .recursos-cubos {
    z-index: 0;
}

.recursos-section .landing-container {
    z-index: 1;
}

.recursos-section .magic-cube {
    width: 54px;
    opacity: 0.3;
}

.recursos-section .magic-cube--one {
    top: 7%;
    left: 2%;
}

.recursos-section .magic-cube--two {
    top: 8%;
    right: 2%;
    width: 62px;
}

.recursos-section .magic-cube--three {
    top: 43%;
    left: 1%;
    width: 42px;
}

.recursos-section .magic-cube--four {
    top: 48%;
    right: 1%;
    width: 66px;
}

.recursos-section .magic-cube--five {
    bottom: 6%;
    left: 9%;
    width: 48px;
}

.recursos-section .magic-cube--six {
    right: 9%;
    bottom: 5%;
    width: 56px;
}

.recursos-section .magic-cube--seven {
    top: 25%;
    left: 12%;
    width: 34px;
}

.calculator-decor {
    position: absolute;
    z-index: 0;
    display: block;
    font-size: 46px;
    line-height: 1;
    opacity: 0.34;
    filter: drop-shadow(0 5px 5px rgba(49, 32, 111, 0.22));
    animation: magic-cube-float 5.8s ease-in-out infinite;
}

.calculator-decor--one {
    top: 28%;
    right: 12%;
    animation-delay: -1.6s;
}

.calculator-decor--two {
    bottom: 27%;
    left: 4%;
    font-size: 38px;
    animation-delay: -3.4s;
}

.calculator-decor--three {
    right: 4%;
    bottom: 18%;
    font-size: 36px;
    animation-delay: -2.2s;
}

html[data-theme="escuro"] body.landing-body .recursos-section .recurso-card {
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(250, 245, 255, 0.84);
}

html[data-theme="escuro"] body.landing-body .recursos-section .recurso-card h3,
html[data-theme="escuro"] body.landing-body .recursos-section .recurso-card p {
    color: #252451;
}

.landing-footer {
    background:
        radial-gradient(ellipse at 100% 100%, rgba(114, 67, 217, 0.35), transparent 38%),
        linear-gradient(110deg, #171B55, #10133F);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .landing-header .landing-container {
        gap: 34px;
    }

    .landing-nav {
        gap: 12px;
    }

    .landing-nav a {
        font-size: 11px;
    }
}

@media (max-width: 700px) {
    .landing-header {
        padding: 8px 0;
    }

    .landing-header .landing-container {
        gap: 12px;
    }

    .landing-logo img {
        height: 40px;
    }

    .landing-actions {
        gap: 8px;
    }

    .landing-nav {
        display: none;
    }

    .landing-actions .header-lang {
        max-width: 115px;
        padding: 7px 8px !important;
        font-size: 10px;
    }

    .landing-header .btn-login {
        padding: 8px 13px;
        font-size: 11px;
    }

    .landing-container {
        padding: 0 20px;
    }

    .hero {
        min-height: 630px;
        padding: 110px 0 130px;
        align-items: center;
        background:
            linear-gradient(90deg, rgba(12, 13, 63, 0.74) 0%, rgba(23, 16, 86, 0.45) 55%, rgba(37, 18, 105, 0.18) 100%),
            url("../images/inicial-hero.jpeg") 58% center / cover no-repeat,
            #17134F;
    }

    .hero-grid {
        display: block;
    }

    .hero-content {
        max-width: 360px;
        margin-left: 0;
        transform: translateY(0);
    }

    .hero-title {
        font-size: clamp(36px, 9vw, 44px);
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 12px;
        margin-top: 24px;
    }

    .hero-quote {
        display: none;
    }

    .materias-section {
        padding: 30px 0 42px;
    }

    .recursos-section {
        padding: 34px 0;
    }

    .recursos-section .landing-container {
        width: calc(100% - 24px);
        padding: 22px 14px 18px;
    }

    .recursos-section .section-title {
        margin-bottom: 14px;
        font-size: 21px;
    }

    .recursos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .recursos-section .recurso-card {
        min-height: 146px;
        padding: 10px 8px;
    }

    .recursos-section .recurso-card h3 {
        font-size: 13px;
    }

    .recursos-section .recurso-card p {
        font-size: 11px;
    }

    .recursos-section .magic-cube--one {
        left: 0;
        width: 32px;
    }

    .recursos-section .magic-cube--two {
        right: 1%;
        width: 36px;
    }

    .recursos-section .magic-cube--three {
        left: 0;
        width: 28px;
    }

    .recursos-section .magic-cube--four {
        right: 0;
        width: 34px;
    }

    .recursos-section .magic-cube--five,
    .recursos-section .magic-cube--six,
    .recursos-section .magic-cube--seven {
        display: none;
    }

    .recursos-section .calculator-decor {
        font-size: 30px;
        opacity: 0.3;
    }

    .recursos-section .calculator-decor--one {
        top: 17%;
        right: 3%;
    }

    .recursos-section .calculator-decor--two {
        bottom: 18%;
        left: 2%;
        font-size: 26px;
    }

    .recursos-section .calculator-decor--three {
        display: none;
    }

    .materias-section .landing-container {
        padding: 0 20px;
    }

    .materias-heading {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .materias-heading-copy {
        gap: 10px;
    }

    .materias-heading-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .materias-heading h2 {
        font-size: 17px;
    }

    .materias-heading p {
        max-width: 270px;
        font-size: 11px;
    }

    .materias-ver-todas {
        padding-top: 4px;
        font-size: 11px;
    }

    .materias-section .materias-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .materias-section .materia-card {
        min-height: 82px;
        padding: 12px;
    }

    .materias-section .materia-info h3 {
        font-size: 14px;
    }

    .materias-section .materia-info p {
        font-size: 10px;
    }

    .inicio-features {
        grid-template-columns: 1fr;
        margin-top: 14px;
        padding-top: 8px;
    }

    .inicio-feature {
        min-height: 54px;
        justify-content: flex-start;
        padding: 6px 12px;
    }

    .inicio-feature + .inicio-feature::before {
        top: 0;
        left: 12px;
        width: calc(100% - 24px);
        height: 1px;
    }

    .inicio-feature svg {
        width: 30px;
        height: 30px;
    }

    .recursos-section,
    .sobre-section,
    .depoimentos-section {
        padding: 52px 0;
    }

    .materias-section {
        padding: 30px 0 42px;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .recursos-grid {
        grid-template-columns: 1fr;
    }
}