/* ============================================================
   StyleIndex.css — Tema Exclusivo do index.html
   Templo de Tatânea | Selva, Dinossauros, Céu e Sol
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&family=Inter:wght@400;500;600&family=Outfit:wght@400;600&display=swap');

:root {
    /* BLOCO 01: FUNDAÇÃO — Fundos e Bases */
    --idx-bg-void: #030d07;
    --idx-bg-deep: #06140a;
    --idx-bg-dark: #0a1e10;
    --idx-bg-medium: #0f2918;
    --idx-bg-card: #112214;
    --idx-bg-section: #0d1f11;
    --idx-bg-input: rgba(10, 24, 14, 0.95);
    --idx-bg-overlay: rgba(2, 8, 4, 0.85);

    /* BLOCO 02: SELVA — Verdes Vivos */
    --idx-jungle-bright: #4ade80;
    --idx-jungle-vivid: #22c55e;
    --idx-jungle-mid: #16a34a;
    --idx-jungle-deep: #166534;
    --idx-jungle-shadow: #14532d;
    --idx-jungle-mist: rgba(74, 222, 128, 0.12);
    --idx-jungle-glow: rgba(34, 197, 94, 0.35);

    /* BLOCO 05: JOIAS */
    --idx-gem-emerald: #10b981;
    --idx-gem-glow-emerald: rgba(16, 185, 129, 0.45);

    /* BLOCO 06: SERPENTES — Dourados */
    --idx-snake-gold: #eab308;
    --idx-snake-gold-dark: #a16207;
    --idx-snake-glow: rgba(234, 179, 8, 0.45);

    /* BLOCO 07: TIPOGRAFIA */
    --idx-font-display: 'Cinzel', serif;
    --idx-font-body: 'Inter', sans-serif;
    --idx-font-alt: 'Outfit', sans-serif;
    --idx-text-primary: #d4f7e0;
    --idx-text-secondary: #7db89a;
    --idx-text-highlight: #a7f3d0;
    --idx-text-gold: #fde68a;
    --idx-text-on-dark: #ecfdf5;

    /* BLOCO 08: EFEITOS */
    --idx-shadow-dark: rgba(0, 0, 0, 0.85);
    --idx-shadow-jungle: rgba(6, 20, 10, 0.80);
    --idx-shadow-gold: rgba(161, 98, 7, 0.45);
    --idx-border-jungle: rgba(74, 222, 128, 0.35);
    --idx-border-gold: rgba(234, 179, 8, 0.50);

    /* MISSING UTILITIES */
    --idx-text-dim: #7db89a;
    --idx-border-dim: rgba(74, 222, 128, 0.15);
    --idx-flower-fuchsia: #f0abfc;
}

body {
    background-color: var(--idx-bg-void);
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(22, 101, 52, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 75%, rgba(232, 121, 249, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    font-family: var(--idx-font-body);
    color: var(--idx-text-primary);
    margin: 0;
}

.navbar {
    background: rgba(3, 13, 7, 0.95);
    border-bottom: 2px solid var(--idx-border-jungle);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.navbar-logo {
    font-family: var(--idx-font-display);
    font-size: 1.8rem;
    color: var(--idx-snake-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo-text {
    position: relative;
    padding-bottom: 4px;
}

.navbar-logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--idx-gem-emerald) 15%,
            var(--idx-snake-gold) 50%,
            var(--idx-jungle-bright) 85%,
            transparent 100%);
    box-shadow: 0 0 10px var(--idx-gem-glow-emerald);
}

.navbar-mini-logo {
    height: 60px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.navbar-menu a {
    color: var(--idx-text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--idx-gem-emerald) 0%,
            var(--idx-snake-gold) 50%,
            var(--idx-jungle-bright) 100%);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.navbar-menu a:hover {
    color: var(--idx-text-primary);
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a.active {
    color: var(--idx-snake-gold);
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.navbar-toggle {
    display: none;
    /* Hide on Desktop */
    background: none;
    border: none;
    color: var(--idx-snake-gold);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}

.navbar-toggle:hover {
    color: var(--idx-jungle-bright);
}

/* ============================================================
   HERO SECTION — Céu, Nuvens e Fundo Artístico
============================================================ */
.home-hero-section {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #74b9ff 0%, #a29bfe 100%);
}

.sky-clouds {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.cloud {
    position: absolute;
    background: #fff;
    width: 220px;
    height: 70px;
    border-radius: 50px;
    filter: blur(10px);
    animation: moveC linear infinite;
}

.cloud::after,
.cloud::before {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.cloud::after {
    width: 110px;
    height: 110px;
    top: -55px;
    left: 35px;
}

.cloud::before {
    width: 90px;
    height: 90px;
    top: -45px;
    right: 35px;
}

.cloud--1 {
    top: 15%;
    left: -300px;
    animation-duration: 60s;
}

.cloud--2 {
    top: 35%;
    right: -300px;
    animation: moveCR linear infinite 45s;
}

.cloud--3 {
    top: 60%;
    left: -250px;
    animation-duration: 75s;
    animation-delay: 15s;
}

@keyframes moveC {
    from {
        left: -300px;
    }

    to {
        left: 110%;
    }
}

@keyframes moveCR {
    from {
        right: -300px;
    }

    to {
        right: 110%;
    }
}

/* ============================================================
   AMBIÊNCIA OCEASIONAL — Pássaros em Sprite Opesados
============================================================ */
.sky-birds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    /* Na FRENTE do Sol para evitar bugs de filtro SVG e focar silhueta */
    overflow: hidden;
}

.bird {
    background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/174479/bird-cells-new.svg');
    /* Filtro silhueta escura: deixei levemente esbranquiçado/esverdeado para misturar na luz e no fundo escuro */
    filter: invert(10%) sepia(55%) saturate(300%) hue-rotate(150deg) brightness(80%) contrast(110%);
    background-size: auto 100%;
    width: 88px;
    height: 125px;
    will-change: background-position;
    animation: fly-cycle 6.8s steps(1) infinite;
}

.bird-one {
    animation-delay: -0.5s;
}

.bird-two {
    animation-delay: -0.75s;
}

.bird-three {
    animation-delay: -0.25s;
}

.bird-four {
    animation-delay: -0.5s;
}

.bird-container {
    position: absolute;
    top: 70%;
    left: -10%;
    transform: scale(0) translateX(-10vw);
    will-change: transform;
    animation: fly-right-one linear infinite;
}

/* Deixei um pouco mais lento para ser um pouco mais sutil que o original de 14s */
.bird-container-one {
    top: 65%;
    animation-duration: 45s;
    animation-delay: 0s;
}

.bird-container-two {
    top: 45%;
    animation-duration: 48s;
    animation-delay: 5s;
}

.bird-container-three {
    top: 75%;
    animation-duration: 52s;
    animation-delay: 15s;
}

.bird-container-four {
    top: 30%;
    animation-duration: 46s;
    animation-delay: 20s;
}

@keyframes fly-cycle {

    /* 0-58% do tempo (aprox 4s): Planando com ASAS ABERTAS (Frame 9) */
    0%,
    58% {
        background-position: -720px 0;
    }

    /* 1ª Batida (58% - 79%): 10 quadros orgânicos */
    60% {
        background-position: -810px 0;
    }

    62% {
        background-position: 0 0;
    }

    64% {
        background-position: -90px 0;
    }

    66% {
        background-position: -180px 0;
    }

    68% {
        background-position: -270px 0;
    }

    70% {
        background-position: -360px 0;
    }

    72% {
        background-position: -450px 0;
    }

    74% {
        background-position: -540px 0;
    }

    76% {
        background-position: -630px 0;
    }

    78% {
        background-position: -720px 0;
    }

    /* 2ª Batida (79% - 100%) */
    81% {
        background-position: -810px 0;
    }

    83% {
        background-position: 0 0;
    }

    85% {
        background-position: -90px 0;
    }

    87% {
        background-position: -180px 0;
    }

    89% {
        background-position: -270px 0;
    }

    91% {
        background-position: -360px 0;
    }

    93% {
        background-position: -450px 0;
    }

    95% {
        background-position: -540px 0;
    }

    97% {
        background-position: -630px 0;
    }

    100% {
        background-position: -720px 0;
    }
}

@keyframes fly-right-one {
    0% {
        transform: scale(0.12) translateX(-10vw);
    }

    15% {
        transform: translateY(2vh) translateX(20vw) scale(0.18);
    }

    35% {
        transform: translateY(-1vh) translateX(45vw) scale(0.22);
    }

    55% {
        transform: translateY(3vh) translateX(70vw) scale(0.18);
    }

    75% {
        transform: translateY(0vh) translateX(95vw) scale(0.15);
    }

    100% {
        transform: translateY(0vh) translateX(120vw) scale(0.12);
    }
}

.hero-sun {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0.01) scaleY(0);
    width: 650px;
    height: 85%;
    /* Reduzido de 100% para não ir além do necessário */
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
    filter: drop-shadow(0 0 50px rgba(0, 210, 255, 0.3));

    /* Sequência: Silêncio (0.5s) -> Crescimento Vertical (3s) -> Pausa (0.5s) -> Expansão */
    transform-origin: center top;
    animation: expand-pillar-cinematic 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes expand-pillar-cinematic {
    0% {
        /* Começa instantaneamente */
        transform: translateX(-50%) scaleX(0.01) scaleY(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    35% {
        /* Desce até o chão */
        transform: translateX(-50%) scaleX(0.01) scaleY(1);
    }

    65%,
    100% {
        /* Expande para os lados */
        transform: translateX(-50%) scaleX(1) scaleY(1);
        opacity: 1;
    }
}

/* Responsividade do Sol Oco & Content */
@media (max-width: 768px) {
    .hero-sun {
        width: 380px;
    }
}

.home-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;

    /* Revelação sincronizada com o final da expansão */
    opacity: 0;
    transform: translateY(10px);
    animation: fade-in-entry 0.8s ease-out 1.8s forwards;
}

.sun-content-layer {
    opacity: 0;
    animation: fade-in-entry 1s ease-out 1.6s forwards;
}

.sun-logo {
    transform: translateY(0);
}

.sun-glow-shell {
    animation: pulse-glow-slow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow-slow {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 0.95;
    }
}

@keyframes fade-in-entry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-hero-title,
.hero-title {
    font-family: var(--idx-font-display);
    font-size: 3.5rem;
    color: var(--idx-text-gold);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.home-hero-subtitle {
    font-family: var(--idx-font-body);
    font-size: 1.6rem;
    color: var(--idx-text-on-dark);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    margin-bottom: 25px;
}

.home-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-panel {
    font-family: var(--idx-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 280px;
    text-align: center;
    box-sizing: border-box;
}

.btn-panel-primary {
    background: linear-gradient(135deg, var(--idx-jungle-vivid), var(--idx-jungle-deep));
    color: #fff;
    box-shadow: 0 4px 15px var(--idx-jungle-glow);
    border-color: var(--idx-jungle-bright);
}

.btn-panel-primary:hover {
    background: linear-gradient(135deg, var(--idx-jungle-bright), var(--idx-jungle-vivid));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.5);
}

.btn-panel-secondary {
    background: rgba(10, 24, 14, 0.6);
    color: var(--idx-snake-gold);
    border: 2px solid var(--idx-snake-gold);
    box-shadow: 0 4px 15px var(--idx-snake-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Textura da Pedra Preciosa Esmeralda (Invisível no Normal) */
.btn-panel-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    /* Cortes em Facetas e Feixe de Brilho Translúcido */
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.6) 30%, transparent 40%),
        linear-gradient(45deg, var(--idx-gem-emerald) 0%, rgba(4, 120, 87, 0.95) 45%, rgba(6, 95, 70, 1) 50%, var(--idx-gem-emerald) 100%),
        linear-gradient(-45deg, transparent 40%, rgba(52, 211, 153, 0.3) 50%, transparent 60%);
    background-size: 300% 300%, 100% 100%, 100% 100%;
    background-position: 100% 50%, 0 0, 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* O Poder da Joia ao Passar o Mouse */
.btn-panel-secondary:hover {
    color: #fff;
    border-color: #a7f3d0;
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 12px 35px rgba(16, 185, 129, 0.70),
        inset 0 0 25px rgba(2, 44, 34, 0.85);
    /* Profundidade escura dentro da joia */
}

/* Disparo do Brilho e Revelação Cristalina */
.btn-panel-secondary:hover::before {
    opacity: 1;
    animation: gemShine 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* A Luz Cruzando a Camada do Cristal */
@keyframes gemShine {
    0% {
        background-position: 100% 50%, 0 0, 0 0;
    }

    100% {
        background-position: -20% 50%, 0 0, 0 0;
    }
}

/* Resto das Seções... */

.home-features-section,
.features {
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(22, 101, 52, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--idx-bg-deep) 0%, var(--idx-bg-medium) 50%, var(--idx-bg-deep) 100%);
}

/* PadrÃ£o de escamas de serpente no fundo */
.home-features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg,
            transparent,
            transparent 28px,
            rgba(74, 222, 128, 0.025) 28px,
            rgba(74, 222, 128, 0.025) 29px),
        repeating-linear-gradient(-60deg,
            transparent,
            transparent 28px,
            rgba(234, 179, 8, 0.018) 28px,
            rgba(234, 179, 8, 0.018) 29px);
    pointer-events: none;
}

.home-container,
.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-section-title,
.section-title-home {
    font-family: var(--idx-font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--idx-snake-gold);
    text-align: center;
    margin-bottom: 64px;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 20px var(--idx-snake-glow),
        0 2px 8px var(--idx-shadow-dark);
    position: relative;
}

.home-section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--idx-gem-emerald),
            var(--idx-snake-gold),
            var(--idx-flower-fuchsia),
            var(--idx-snake-gold),
            var(--idx-gem-emerald),
            transparent);
    margin: 16px auto 0;
    border-radius: 1px;
}

.home-features-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.home-feature-card,
.feature-card {
    background:
        linear-gradient(145deg,
            rgba(17, 34, 20, 0.90) 0%,
            rgba(10, 24, 14, 0.95) 100%);
    padding: 30px;
    border: 1px solid var(--idx-border-dim);
    border-top: 2px solid var(--idx-border-jungle);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.34, 1.20, 0.64, 1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(14px 0,
            100% 0,
            100% calc(100% - 14px),
            calc(100% - 14px) 100%,
            0 100%,
            0 14px);
}

/* Ornamento de joia no canto do card */
.home-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(74, 222, 128, 0.05) 0%,
            transparent 50%,
            rgba(234, 179, 8, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Reflexo de gema no hover */
.home-feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(74, 222, 128, 0.04) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.home-feature-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--idx-border-jungle);
    border-top-color: var(--idx-jungle-bright);
    box-shadow:
        0 16px 40px var(--idx-shadow-jungle),
        0 0 20px var(--idx-jungle-mist),
        inset 0 0 30px rgba(74, 222, 128, 0.04);
}

.home-feature-card:hover::before,
.feature-card:hover::before {
    opacity: 1;
}

.home-feature-card:hover::after,
.feature-card:hover::after {
    opacity: 1;
}

/* Ãcones das features â€” cada um com brilho de joia especÃ­fica */
.home-feature-icon,
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.40));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.home-feature-card:hover .home-feature-icon {
    transform: scale(1.12) rotate(-5deg);
    filter: drop-shadow(0 0 16px rgba(74, 222, 128, 0.60));
}

.home-feature-card h3,
.feature-card h3 {
    font-family: var(--idx-font-display);
    font-size: 1.15rem;
    color: var(--idx-text-highlight);
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.home-feature-card p,
.feature-card p {
    color: var(--idx-text-secondary);
    line-height: 1.7;
    margin-bottom: 22px;
    font-size: 0.98rem;
}

.home-feature-link,
.feature-link {
    color: var(--idx-gem-emerald);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--idx-font-display);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.home-feature-link::after,
.feature-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--idx-gem-emerald);
    transition: width 0.3s ease;
}

.home-feature-link:hover,
.feature-link:hover {
    color: var(--idx-jungle-bright);
    transform: translateX(6px);
}

.home-feature-link:hover::after,
.feature-link:hover::after {
    width: 100%;
}


/* ============================================================
   ABOUT SECTION â€” Lenda da Selva
============================================================ */
.home-about-section,
.about {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(234, 179, 8, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 0%, rgba(22, 101, 52, 0.10) 0%, transparent 45%),
        linear-gradient(180deg, var(--idx-bg-dark) 0%, var(--idx-bg-void) 100%);
}

.home-about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            var(--idx-flower-fuchsia) 30%,
            var(--idx-snake-gold) 50%,
            var(--idx-flower-fuchsia) 70%,
            transparent);
    opacity: 0.45;
}

.home-about-content,
.about-content {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.home-about-content p,
.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--idx-text-secondary);
    margin-bottom: 22px;
}

.home-about-content p strong,
.about-content p strong {
    color: var(--idx-text-highlight);
    font-weight: 600;
}


/* ============================================================
   FOOTER 
============================================================ */
.footer {
    background:
        linear-gradient(180deg,
            var(--idx-bg-void) 0%,
            var(--idx-dino-scale-dark) 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg,
            transparent,
            var(--idx-border-jungle) 30%,
            var(--idx-border-gold) 50%,
            var(--idx-border-jungle) 70%,
            transparent) 1;
    padding: 36px 20px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: ' Pela Glória de Tatânea. Alma incandescente da nação Guerreira.';
    display: block;
    font-size: 0.85rem;
    letter-spacing: 8px;
    opacity: 0.22;
    margin-bottom: 20px;
    animation: footerOrnament 6s ease-in-out infinite;
}

@keyframes footerOrnament {

    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.30;
    }
}

.footer p {
    color: var(--idx-text-dim);
    margin-bottom: 18px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--idx-text-secondary);
    text-decoration: none;
    font-family: var(--idx-font-display);
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--idx-gem-emerald), var(--idx-snake-gold));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--idx-jungle-bright);
}

.footer-links a:hover::after {
    width: 100%;
}


/* ============================================================
   PANEL OVERLAY â€” Portal da Selva
============================================================ */
.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 4, 0.88);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.panel-overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* ============================================================
   TOME PANEL â€” Pergaminho da Selva (Joias e Dinossauros)
============================================================ */
.tome-panel {
    position: relative;
    width: min(880px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at 20% 5%, rgba(22, 101, 52, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 95%, rgba(234, 179, 8, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(232, 121, 249, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, #07160b 0%, #04100a 40%, #061208 100%);
    border: 1px solid var(--idx-border-jungle);
    border-radius: 5px;
    padding: 0;
    transform: scale(0.88) translateY(30px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.10),
        0 0 50px rgba(22, 101, 52, 0.20),
        0 0 80px rgba(234, 179, 8, 0.08),
        0 32px 90px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(74, 222, 128, 0.10);

    scrollbar-width: thin;
    scrollbar-color: rgba(74, 222, 128, 0.30) transparent;
}

.tome-panel::-webkit-scrollbar {
    width: 5px;
}

.tome-panel::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.30);
    border-radius: 3px;
}

.panel-overlay.active .tome-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Linhas ornamentais de topo e base */
.tome-panel::before,
.tome-panel::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            var(--idx-border-jungle) 20%,
            var(--idx-snake-gold) 50%,
            var(--idx-border-jungle) 80%,
            transparent);
}


/* ============================================================
   PANEL HEADER â€” InscriÃ§Ã£o do Templo
============================================================ */
.tome-header {
    padding: 34px 44px 22px;
    text-align: center;
    position: relative;
}

.tome-header-rune {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.55));
    animation: runeFloat 3.5s ease-in-out infinite;
}

@keyframes runeFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-6px) rotate(2deg);
    }

    66% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

.tome-header h2 {
    font-family: var(--idx-font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--idx-snake-gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 6px;
    text-shadow:
        0 0 20px var(--idx-snake-glow),
        0 2px 8px var(--idx-shadow-dark);
}

.tome-header p {
    font-family: var(--idx-font-body);
    font-style: italic;
    color: var(--idx-text-dim);
    font-size: 1rem;
    margin: 0;
}

/* Divisor ornamental */
.tome-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 44px;
    margin-bottom: 30px;
}

.tome-divider::before,
.tome-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--idx-border-jungle));
}

.tome-divider::after {
    background: linear-gradient(270deg, transparent, var(--idx-border-jungle));
}

.tome-divider span {
    color: var(--idx-gem-emerald);
    font-size: 1.1rem;
    text-shadow: 0 0 8px var(--idx-gem-glow-emerald);
}


/* ============================================================
   TOME CARDS GRID â€” RelÃ­quias da Selva
============================================================ */
.tome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 36px 40px;
}

.tome-card {
    position: relative;
    background:
        linear-gradient(145deg,
            rgba(17, 34, 20, 0.85) 0%,
            rgba(10, 24, 14, 0.92) 100%);
    border: 1px solid var(--idx-border-dim);
    border-top: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: 3px;
    padding: 22px 20px 20px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: border-color 0.28s, transform 0.28s, background 0.28s, box-shadow 0.28s;

    opacity: 0;
    transform: translateY(18px);
    animation: none;
}

.panel-overlay.active .tome-card {
    animation: cardReveal 0.4s forwards;
}

.panel-overlay.active .tome-card:nth-child(1) {
    animation-delay: 0.05s;
}

.panel-overlay.active .tome-card:nth-child(2) {
    animation-delay: 0.10s;
}

.panel-overlay.active .tome-card:nth-child(3) {
    animation-delay: 0.15s;
}

.panel-overlay.active .tome-card:nth-child(4) {
    animation-delay: 0.20s;
}

.panel-overlay.active .tome-card:nth-child(5) {
    animation-delay: 0.25s;
}

.panel-overlay.active .tome-card:nth-child(6) {
    animation-delay: 0.30s;
}

.panel-overlay.active .tome-card:nth-child(7) {
    animation-delay: 0.35s;
}

.panel-overlay.active .tome-card:nth-child(8) {
    animation-delay: 0.40s;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reflexo de gema ao hover */
.tome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(74, 222, 128, 0.08) 0%,
            rgba(234, 179, 8, 0.04) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tome-card:hover {
    border-color: rgba(74, 222, 128, 0.50);
    border-top-color: var(--idx-jungle-bright);
    transform: translateY(-4px);
    background:
        linear-gradient(145deg,
            rgba(22, 101, 52, 0.15) 0%,
            rgba(10, 24, 14, 0.95) 100%);
    box-shadow:
        0 8px 28px var(--idx-shadow-jungle),
        0 0 15px rgba(74, 222, 128, 0.12);
}

.tome-card:hover::before {
    opacity: 1;
}

/* Badges de status */
.tome-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--idx-font-display);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--idx-gem-emerald);
    border: 1px solid rgba(16, 185, 129, 0.30);
}

.badge-soon {
    background: rgba(234, 179, 8, 0.12);
    color: var(--idx-snake-gold);
    border: 1px solid rgba(234, 179, 8, 0.28);
}

.badge-wip {
    background: rgba(232, 121, 249, 0.12);
    color: var(--idx-flower-fuchsia);
    border: 1px solid rgba(232, 121, 249, 0.28);
}

.tome-card-icon {
    font-size: 1.9rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.30));
    transition: filter 0.3s ease;
}

.tome-card:hover .tome-card-icon {
    filter: drop-shadow(0 0 14px rgba(74, 222, 128, 0.55));
}

.tome-card-title {
    font-family: var(--idx-font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--idx-text-highlight);
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.tome-card-desc {
    font-family: var(--idx-font-body);
    font-size: 0.88rem;
    color: var(--idx-text-dim);
    line-height: 1.6;
}

.tome-card-arrow {
    margin-top: auto;
    font-family: var(--idx-font-display);
    font-size: 0.70rem;
    color: rgba(74, 222, 128, 0.40);
    letter-spacing: 0.10em;
    transition: color 0.25s, letter-spacing 0.25s;
}

.tome-card:hover .tome-card-arrow {
    color: var(--idx-jungle-bright);
    letter-spacing: 0.18em;
}


/* ============================================================
   CLOSE BUTTON â€” Espinho de Selva
============================================================ */
.tome-panel.stand-alone {
    transform: translateY(0);
    opacity: 1;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: block;
    /* Garante que não herda display: none ou algo similar */
}

/* Revelar cards automaticamente em páginas stand-alone */
.tome-panel.stand-alone .tome-card {
    opacity: 1;
    transform: translateY(0);
    animation: cardReveal 0.5s ease forwards;
}

/* Escalonamento da animação para os cards stand-alone */
.tome-panel.stand-alone .tome-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tome-panel.stand-alone .tome-card:nth-child(2) {
    animation-delay: 0.15s;
}

.tome-panel.stand-alone .tome-card:nth-child(3) {
    animation-delay: 0.2s;
}

.tome-panel.stand-alone .tome-card:nth-child(4) {
    animation-delay: 0.25s;
}

.tome-panel.stand-alone .tome-card:nth-child(5) {
    animation-delay: 0.3s;
}

.tome-panel.stand-alone .tome-card:nth-child(6) {
    animation-delay: 0.35s;
}

.tome-panel.stand-alone .tome-card:nth-child(7) {
    animation-delay: 0.4s;
}

.tome-panel.stand-alone .tome-card:nth-child(8) {
    animation-delay: 0.45s;
}

.tome-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid var(--idx-border-dim);
    border-radius: 3px;
    color: var(--idx-text-dim);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
    z-index: 2;
}

.tome-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.40);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.20);
}


/* ============================================================
   ANIMAÃ‡Ã•ES ORNAMENTAIS â€” Gemas Pulsantes
============================================================ */
@keyframes gemPulse {

    0%,
    100% {
        box-shadow: 0 0 4px var(--idx-gem-glow-emerald);
    }

    50% {
        box-shadow: 0 0 14px var(--idx-gem-glow-emerald),
            0 0 28px rgba(16, 185, 129, 0.20);
    }
}

@keyframes snakeShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes flowerBloom {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(232, 121, 249, 0.30));
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(232, 121, 249, 0.60));
    }
}

/* SeleÃ§Ã£o de texto â€” Cor de joia */
::selection {
    background: rgba(74, 222, 128, 0.28);
    color: var(--idx-text-on-dark);
}


/* ============================================================
   BLOCO 11: RESPONSIVIDADE â€” Selva em Todos os Tamanhos
============================================================ */
@media (max-width: 768px) {
    .navbar-container {
        padding: 12px 20px;
    }

    .navbar-logo {
        font-size: 1.4rem;
    }

    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        background: rgba(3, 13, 7, 0.98);
        flex-direction: column;
        gap: 30px;
        border: none;
        backdrop-filter: blur(10px);
        z-index: 999;
    }

    .navbar-menu.open,
    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li a {
        padding: 14px 24px;
        display: block;
        border: none;
        font-size: 1.5rem;
    }

    .navbar-toggle {
        display: block;
        position: relative;
        z-index: 1000;
    }

    .home-hero-title,
    .hero-title {
        font-size: 2.8rem;
    }

    .home-hero-subtitle {
        font-size: 1.2rem;
    }

    .home-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tome-grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 30px;
    }

    .tome-header {
        padding: 26px 28px 18px;
    }

    .tome-divider {
        padding: 0 28px;
    }

    .home-section-title {
        font-size: 1.8rem;
    }

    .sun-logo {
        transform: translateY(120px);
        /* ajusta até ficar bom */
    }
}

@media (max-width: 480px) {

    .home-hero-title,
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .btn-panel {
        padding: 13px 24px;
        font-size: 0.80rem;
    }

    .home-hero-buttons {
        gap: 14px;
        flex-direction: column;
        /* Botões empilhados para melhor clique no celular */
        width: 100%;
        padding: 0 10px;
    }

    .btn-panel {
        width: 100%;
        /* Ocupar toda a largura em telas pequenas */
        text-align: center;
    }

    .tome-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 24px;
    }

    .footer-links {
        gap: 18px;
    }
}

.sun-logo {
    transform: translateY(120px);
    /* ajusta até ficar bom */
}

/* Zoom focado apenas no pilar */

.portal-transition-active .sun-content-layer {
    opacity: 0 !important;
    transition: opacity 0.3s ease-out !important;
}

.portal-transition-active .hero-sun .sun-glow-shell {
    opacity: 1 !important;
    animation: none !important;
}