:root { --page-accent: #27ae60; }
  :root {
    --verde-floresta: #1a3a2a;
    --verde-medio: #2d5a3d;
    --verde-claro: #4a8c5c;
    --verde-vivo: #5cb85c;
    --dourado: #c8962a;
    --dourado-claro: #e8b84b;
    --terra: #8b4513;
    --terra-clara: #c4701a;
    --creme: #f5ead8;
    --creme-escuro: #e8d5b7;
    --preto-floresta: #0d1f16;
    --azul-agua: #1a6b8a;
    --azul-ceu: #2980b9;
    --vermelho-cerrado: #c0392b;
    --laranja-pantanal: #e67e22;
    --roxo-caatinga: #8e44ad;
    --bg-dark: #0a1a10;
    --text-light: #f0e8d5;
    --text-muted: #a8b89a;
    --glow: 0 0 30px rgba(90, 184, 92, 0.3);
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 20px;
    line-height: 1.75;
    overflow-x: hidden;
  }

  /* ====== PARTÍCULAS DE FUNDO ====== */
  #particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .particle {
    position: absolute;
    width: 3px; height: 3px;
    background: var(--verde-vivo);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle linear infinite;
  }
  @keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
  }

  /* ====== HERO ====== */
  #hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(ellipse at center, #0f2d1a 0%, #050f09 70%);
    overflow: hidden;
    z-index: 1;
  }

  .hero-bg-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(90, 184, 92, 0.08);
    animation: pulse-ring 6s ease-in-out infinite;
  }
  .ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; border-color: rgba(200, 150, 42, 0.12); }
  .ring:nth-child(2) { width: 500px; height: 500px; animation-delay: 1s; }
  .ring:nth-child(3) { width: 700px; height: 700px; animation-delay: 2s; }
  .ring:nth-child(4) { width: 900px; height: 900px; animation-delay: 3s; }
  .ring:nth-child(5) { width: 1100px; height: 1100px; animation-delay: 4s; }
  @keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
  }

  .hero-badge {
    display: inline-block;
    background: rgba(200, 150, 42, 0.15);
    border: 1px solid rgba(200, 150, 42, 0.4);
    color: var(--dourado-claro);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
  }

  #hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
  }

  .hero-title-main {
    display: block;
    background: linear-gradient(135deg, #5cb85c 0%, #c8962a 50%, #e8b84b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(90, 184, 92, 0.3));
  }

  .hero-title-sub {
    display: block;
    font-style: italic;
    font-weight: 400;
    font-size: 0.45em;
    color: var(--creme-escuro);
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
  }

  .hero-desc {
    max-width: 700px;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1.5rem auto 2.5rem;
    font-style: italic;
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.8;
  }

  .hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.6s both;
  }

  .stat-item {
    text-align: center;
  }
  .stat-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dourado-claro);
    line-height: 1;
  }
  .stat-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .scroll-arrow {
    animation: fadeInUp 1s ease 0.8s both, bob 2s ease-in-out infinite;
    color: var(--verde-vivo);
    font-size: 2rem;
    cursor: pointer;
  }
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }

  /* ====== NAV ====== */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 26, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(90, 184, 92, 0.2);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .nav-logo img {
    height: 30px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
  }
  .nav-logo:hover img { opacity: 0.6; }
  .nav-home {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(90, 184, 92, 0.25);
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
  }
  .nav-home:hover {
    color: var(--verde-vivo);
    border-color: rgba(90, 184, 92, 0.6);
    background: rgba(90, 184, 92, 0.08);
  }

  .nav-links {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .nav-links a:hover {
    color: var(--verde-vivo);
    background: rgba(90, 184, 92, 0.1);
  }

  /* ====== SEÇÕES ====== */
  section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
  }

  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }

  .section-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: var(--dourado);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--creme);
    line-height: 1.1;
  }

  .section-desc {
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-style: italic;
  }

  .divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--verde-vivo), var(--dourado));
    margin: 1.5rem auto;
    border-radius: 2px;
  }

  /* ====== INTRO BRASIL ====== */
  #intro {
    background: linear-gradient(180deg, #050f09 0%, #0a1a10 100%);
  }

  .intro-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .intro-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--creme);
    margin-bottom: 1.5rem;
    line-height: 1.15;
  }

  .intro-text h2 span {
    color: var(--verde-vivo);
  }

  .intro-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .intro-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .fact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(90, 184, 92, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    transition: all 0.3s;
  }
  .fact-card:hover {
    background: rgba(90, 184, 92, 0.07);
    border-color: rgba(90, 184, 92, 0.4);
    transform: translateY(-3px);
  }
  .fact-card .icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  .fact-card strong {
    display: block;
    color: var(--dourado-claro);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
  }
  .fact-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
  }

  /* ====== BIOMAS GRID ====== */
  #biomas {
    background: #080f0a;
  }

  .biomas-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .bioma-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .bioma-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-accent);
    box-shadow: 0 16px 50px rgba(0,0,0,0.5), 0 0 25px var(--card-glow);
  }

  .bioma-card.featured {
    grid-column: span 2;
  }

  .bioma-bg {
    position: absolute;
    inset: 0;
    background: var(--card-bg);
    z-index: 0;
    transition: transform 0.6s ease;
  }
  .bioma-card:hover .bioma-bg {
    transform: scale(1.05);
  }

  .bioma-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
  }

  .bioma-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .bioma-icon-3d {
    font-size: 4.5rem;
    display: block;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), filter 0.35s;
    transform-origin: left top;
    pointer-events: none;
    align-self: flex-start;
    flex-shrink: 0;
  }
  .bioma-card:hover .bioma-icon-3d {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.8));
  }

  .bioma-card-bottom {
    display: flex;
    flex-direction: column;
  }

  .bioma-tag {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    width: fit-content;
  }

  .bioma-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
  }

  .bioma-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.76);
    margin-bottom: 1rem;
    line-height: 1.7;
  }

  .bioma-stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .bioma-stat {
    text-align: left;
  }
  .bioma-stat strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--card-accent, #fff);
  }
  .bioma-stat small {
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
  }

  .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.3rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    width: fit-content;
  }
  .btn-explore:hover {
    background: var(--card-accent);
    border-color: var(--card-accent);
    color: #000;
  }

  /* ====== MODAL ====== */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    padding: 3vh 2vw;
    backdrop-filter: blur(12px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; }
  @media (min-height: 700px) {
    .modal-overlay.active { align-items: center; }
  }

  .modal-box {
    background: linear-gradient(160deg, #0d2018 0%, #091410 60%, #0a1a12 100%);
    border: 1px solid rgba(90, 184, 92, 0.35);
    border-radius: 20px;
    width: 96vw;
    max-height: 94vh;
    min-height: 40vh;
    max-width: 1500px;
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.4s, border-color 0.4s;
  }

  .modal-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem 3rem 3rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(90,184,92,0.3) transparent;
  }
  .modal-scroll-area::-webkit-scrollbar { width: 6px; }
  .modal-scroll-area::-webkit-scrollbar-track { background: transparent; }
  .modal-scroll-area::-webkit-scrollbar-thumb { background: rgba(90,184,92,0.3); border-radius: 3px; }

  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 20;
    flex-shrink: 0;
  }
  .modal-close:hover { background: rgba(220,50,50,0.45); transform: rotate(90deg); }

  .modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--modal-accent, rgba(255,255,255,0.1));
    padding-right: 4rem;
    opacity-border: 0.3;
  }

  .modal-icon { font-size: 6.5rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)); }

  .modal-title-area h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--creme);
    line-height: 1.1;
    text-shadow: 0 0 40px var(--modal-accent, transparent);
  }
  .modal-title-area .subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0.4rem;
    display: block;
  }

  .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .modal-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--modal-accent, var(--dourado-claro));
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .modal-section p, .modal-section li {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .modal-section ul:not(.species-list) {
    list-style: none;
    padding: 0;
  }
  .modal-section ul:not(.species-list) li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .modal-section ul:not(.species-list) li::before {
    content: '▸';
    color: var(--verde-vivo);
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  .species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  .species-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }
  .species-chip:hover {
    background: rgba(90, 184, 92, 0.1);
    border-color: var(--verde-vivo);
    color: var(--verde-vivo);
  }
  .species-chip .s-icon { display: block; font-size: 1.5rem; margin-bottom: 0.3rem; }
  .species-chip .s-name { display: block; font-weight: 600; font-size: 0.75rem; }
  .species-chip .s-sci { display: block; font-style: italic; font-size: 0.65rem; opacity: 0.7; }

  .data-bar {
    margin: 0.4rem 0;
  }
  .data-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
  }
  .data-bar-track {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
  }
  .data-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--verde-vivo), var(--dourado));
    transition: width 1s ease 0.2s;
    width: 0;
  }
  .data-bar-fill.animate { width: var(--target-width); }

  /* ====== SPECIES LIST EXPANDABLE ====== */
  .species-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .species-item {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
  }
  .species-item:hover {
    border-color: rgba(90,184,92,0.3);
  }
  .species-item.open {
    border-color: rgba(90,184,92,0.5);
  }

  .species-item-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    transition: background 0.2s;
    user-select: none;
  }
  .species-item-header:hover {
    background: rgba(90,184,92,0.07);
  }
  .species-item.open .species-item-header {
    background: rgba(90,184,92,0.1);
  }

  .s-icon-sm { font-size: 1.7rem; flex-shrink: 0; }

  .s-label {
    flex: 1;
    font-size: 1.05rem;
    color: var(--creme);
    font-weight: 600;
    line-height: 1.3;
  }
  .s-label em {
    display: block;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
  }

  .s-arrow {
    color: var(--verde-vivo);
    font-size: 0.9rem;
    transition: transform 0.25s;
    flex-shrink: 0;
  }
  .species-item.open .s-arrow { transform: rotate(90deg); }

  .species-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23,1,0.32,1);
    background: rgba(0,0,0,0.2);
  }
  .species-item.open .species-detail {
    max-height: 500px;
  }

  .species-detail-inner {
    display: flex;
    gap: 1.2rem;
    padding: 1rem 1.1rem 1.1rem;
    align-items: flex-start;
  }

  .sd-visual {
    font-size: 5rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    align-self: center;
  }

  .sd-text { flex: 1; }

  .sd-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0.9rem;
  }

  .sd-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .sd-fact {
    display: inline-block;
    background: rgba(90,184,92,0.08);
    border: 1px solid rgba(90,184,92,0.2);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--verde-vivo);
    letter-spacing: 0.04em;
  }
  .sd-fact.status-badge {
    background: rgba(200,150,42,0.1);
    border-color: rgba(200,150,42,0.3);
    color: var(--dourado-claro);
  }

  .threat-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    font-weight: 700;
  }
  .threat-critico { background: rgba(192,57,43,0.2); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
  .threat-alto { background: rgba(230,126,34,0.2); color: #e67e22; border: 1px solid rgba(230,126,34,0.3); }
  .threat-moderado { background: rgba(241,196,15,0.2); color: #f1c40f; border: 1px solid rgba(241,196,15,0.3); }

  /* ====== MATA ATLÂNTICA DESTAQUE ====== */
  #mata-atlantica {
    background: linear-gradient(180deg, #05120a 0%, #08180e 100%);
  }

  .ma-hero {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  .ma-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--creme);
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .ma-info h2 em {
    color: var(--verde-vivo);
    font-style: italic;
  }

  .ma-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }

  .ma-highlight-box {
    background: linear-gradient(135deg, rgba(90,184,92,0.08), rgba(200,150,42,0.05));
    border: 1px solid rgba(90,184,92,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
  }

  .ma-highlight-box .quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--creme);
    line-height: 1.5;
  }

  .ma-highlight-box cite {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--verde-vivo);
    letter-spacing: 0.15em;
    margin-top: 0.8rem;
    text-transform: uppercase;
  }

  .ma-stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .ma-stat-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .ma-stat-row .icon { font-size: 1.5rem; width: 40px; text-align: center; flex-shrink: 0; }
  .ma-stat-row .text strong { display: block; color: var(--dourado-claro); font-family: 'Playfair Display', serif; font-size: 1.1rem; }
  .ma-stat-row .text span { font-size: 0.85rem; color: var(--text-muted); }

  /* ====== MAPA SVG ====== */
  .map-container {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(90, 184, 92, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
  }

  .map-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--verde-vivo);
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
  }

  #brazil-map {
    width: 100%;
    height: auto;
    display: block;
  }

  #brazil-map path {
    fill: rgba(45, 90, 61, 0.25);
    stroke: rgba(90, 184, 92, 0.4);
    stroke-width: 0.8;
    cursor: pointer;
    transition: all 0.3s;
  }
  #brazil-map path:hover {
    fill: rgba(90, 184, 92, 0.4);
    stroke: var(--verde-vivo);
    stroke-width: 1.5;
  }

  #brazil-map .ma-region {
    fill: rgba(90, 184, 92, 0.5);
    stroke: var(--verde-vivo);
    stroke-width: 1;
    animation: pulse-ma 2s ease-in-out infinite;
  }

  @keyframes pulse-ma {
    0%, 100% { fill-opacity: 0.5; }
    50% { fill-opacity: 0.8; }
  }

  .map-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
  }
  .legend-dot {
    width: 12px; height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
  }

  .map-tooltip {
    position: absolute;
    background: rgba(10, 26, 16, 0.95);
    border: 1px solid rgba(90, 184, 92, 0.4);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--creme);
    pointer-events: none;
    display: none;
    z-index: 10;
    white-space: nowrap;
  }

  /* ====== ESPÉCIES CLICÁVEIS ====== */
  #especies {
    background: #060e09;
  }

  .especies-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1.3rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
  }
  .tab-btn:hover, .tab-btn.active {
    background: var(--verde-vivo);
    border-color: var(--verde-vivo);
    color: #000;
  }

  .especies-gallery {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }

  .especie-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
  }

  .especie-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--e-color, #5cb85c), transparent);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .especie-card:hover::before { opacity: 0.08; }

  .especie-card:hover {
    transform: translateY(-5px);
    border-color: var(--e-color, var(--verde-vivo));
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px var(--e-color, var(--verde-vivo));
  }

  .especie-icon { font-size: 3rem; display: block; margin-bottom: 0.8rem; transition: transform 0.3s; }
  .especie-card:hover .especie-icon { transform: scale(1.2); }

  .especie-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--creme);
    margin-bottom: 0.2rem;
  }

  .especie-sci {
    font-style: italic;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.7rem;
  }

  .especie-bioma-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    letter-spacing: 0.08em;
  }

  .especie-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-family: 'Space Mono', monospace;
  }

  /* ====== POVOS ORIGINÁRIOS PREVIEW ====== */
  #povos-preview {
    background: linear-gradient(180deg, #060e09, #080d18 50%, #060e09 100%);
  }

  .povo-teaser {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .povo-teaser-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
  }
  .povo-teaser-card:hover {
    background: rgba(200,150,42,0.07);
    border-color: var(--dourado);
    transform: translateY(-4px);
  }

  .povo-teaser-card .povo-symbol {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
  }

  .povo-teaser-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--creme);
    margin-bottom: 0.3rem;
  }

  .povo-teaser-card .estado-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--dourado);
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .povo-teaser-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
  }

  .coming-soon-banner {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(200,150,42,0.1), rgba(90,184,92,0.05));
    border: 1px solid rgba(200,150,42,0.3);
    border-radius: 16px;
    padding: 2rem;
  }
  .coming-soon-banner h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--dourado-claro);
    margin-bottom: 0.5rem;
  }
  .coming-soon-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  /* ====== FOOTER ====== */
  footer {
    background: var(--preto-floresta);
    border-top: 1px solid rgba(90, 184, 92, 0.15);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--dourado-claro);
    margin-bottom: 0.5rem;
  }

  footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.3rem;
  }

  /* ====== UTILITÁRIOS ====== */
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .visible { animation: fadeInUp 0.7s ease both; }

  @media (max-width: 900px) {
    .biomas-grid { grid-template-columns: 1fr 1fr; }
    .bioma-card.featured { grid-column: span 2; }
    .intro-grid, .ma-hero { grid-template-columns: 1fr; gap: 2rem; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-scroll-area { padding: 1.5rem; }
    .modal-title-area h2 { font-size: 2.2rem; }
    .modal-icon { font-size: 4.5rem; }
    .povo-teaser { grid-template-columns: repeat(2, 1fr); }
    section { padding: 4rem 1.5rem; }
    .nav-links { flex-wrap: wrap; }
    .nav-links a { white-space: normal; }
  }

  @media (max-width: 600px) {
    .biomas-grid { grid-template-columns: 1fr; }
    .bioma-card.featured { grid-column: span 1; }
    .intro-facts { grid-template-columns: 1fr 1fr; }
    .povo-teaser { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 1.5rem; }
    nav { flex-direction: column; align-items: flex-start; padding: 0.8rem 1rem; gap: 0.5rem; }
    .nav-links { flex-wrap: wrap; gap: 0.3rem; }
    .nav-links a { white-space: normal; font-size: 0.6rem; padding: 0.35rem 0.6rem; }
    .nav-home { white-space: normal; }
    section { padding: 4rem 1rem; }
    .bioma-content { min-height: 300px; }
    .modal-box { width: 100vw; height: 100vh; border-radius: 0; }
    .modal-overlay { padding: 0; }
  }

  /* ====== CTA BERA ====== */
  .cta-bera {
    margin: 3rem auto 0;
    max-width: 560px;
    border: 1px solid rgba(200, 150, 42, 0.3);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(200,150,42,0.06) 0%, rgba(26,58,42,0.4) 100%);
    position: relative;
    overflow: hidden;
  }
  .cta-bera::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(200,150,42,0.08), transparent 70%);
    pointer-events: none;
  }
  .cta-bera-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--dourado);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
  }
  .cta-bera h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.35;
  }
  .cta-bera p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-style: normal;
    margin-bottom: 1.4rem;
    line-height: 1.6;
  }
  .cta-bera-btn {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--preto-floresta);
    background: linear-gradient(135deg, var(--dourado-claro), var(--dourado));
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(200,150,42,0.25);
  }
  .cta-bera-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200,150,42,0.4);
  }


  /* ====== ACCORDION MA ====== */
  .ma-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.5rem 0;
  }

  .ma-acc-item {
    border: 1px solid rgba(90,184,92,0.15);
    border-radius: 10px;
    background: rgba(10,26,16,0.5);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s;
  }
  .ma-acc-item:hover {
    border-color: rgba(90,184,92,0.35);
  }
  .ma-acc-item.open {
    border-color: rgba(200,150,42,0.4);
    background: rgba(200,150,42,0.04);
  }

  .ma-acc-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    user-select: none;
  }
  .ma-acc-icon { font-size: 1.3rem; flex-shrink: 0; }
  .ma-acc-title { flex: 1; }
  .ma-acc-title strong {
    display: block;
    color: var(--dourado-claro);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
  }
  .ma-acc-title span {
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .ma-acc-arrow {
    font-size: 0.75rem;
    color: var(--verde-vivo);
    transition: transform 0.3s;
    flex-shrink: 0;
  }
  .ma-acc-item.open .ma-acc-arrow {
    transform: rotate(90deg);
  }

  .ma-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s;
    padding: 0 1rem;
  }
  .ma-acc-item.open .ma-acc-body {
    max-height: 600px;
    padding: 0 1rem 1rem;
  }
  .ma-acc-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.65;
  }
  .ma-acc-body p strong { color: var(--creme); }

  .ma-acc-facts {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.7rem 0;
  }
  .ma-acc-fact {
    display: flex;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: rgba(90,184,92,0.06);
    border-left: 2px solid rgba(90,184,92,0.3);
    padding: 0.4rem 0.7rem;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
  }

  .ma-acc-curiosidade {
    background: rgba(200,150,42,0.07);
    border: 1px solid rgba(200,150,42,0.2);
    border-radius: 8px;
    padding: 0.6rem 0.8rem !important;
    font-size: 0.82rem !important;
    color: var(--dourado-claro) !important;
    margin-top: 0.8rem !important;
  }


/* ── PAGE-SPECIFIC EXTRAS ── */
.page-hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, transparent 30%, #050f09 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.biome-badge {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--page-accent, #5cb85c);
  color: var(--page-accent, #5cb85c);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}
.hero-emoji { font-size: 5rem; display: block; margin-bottom: 1rem; filter: drop-shadow(0 8px 28px rgba(0,0,0,0.6)); }
.hero-biome-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.hero-biome-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--page-accent, #5cb85c);
  margin-bottom: 1rem;
}
.hero-biome-desc {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: italic;
}
.hero-hs-row { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.hs-box {
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  min-width: 88px;
}
.hs-box strong { display:block; font-family:'Space Mono',monospace; font-size:0.95rem; color: var(--page-accent, #5cb85c); }
.hs-box small  { font-family:'Space Mono',monospace; font-size:0.6rem; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); }
/* subject nav tabs */
.subject-tabs { display:flex; flex-wrap:wrap; gap:0.6rem; justify-content:center; margin-bottom:3rem; }
.subject-tab {
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.subject-tab:hover { border-color: var(--page-accent, #5cb85c); color: var(--page-accent, #5cb85c); }
.subject-tab.active { background: var(--page-accent, #5cb85c); border-color: var(--page-accent, #5cb85c); color: #000; font-weight: bold; }
/* fito card grid */
.fito-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap: 1.4rem; max-width: 1100px; margin: 0 auto; }
.fito-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.fito-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height:3px;
  background: var(--page-accent, #5cb85c);
  opacity: 0.55;
  transition: opacity 0.3s;
}
.fito-card:hover { border-color: var(--page-accent,#5cb85c); background: rgba(255,255,255,0.06); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.fito-card:hover::before { opacity: 1; }
.fito-icon { font-size:2.4rem; display:block; margin-bottom:0.6rem; }
.fito-nome { font-family:'Playfair Display',serif; font-size:1.1rem; color:#fff; margin-bottom:0.18rem; }
.fito-sub  { font-family:'Space Mono',monospace; font-size:0.62rem; color:var(--page-accent,#5cb85c); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:0.5rem; }
.fito-desc { color:var(--text-muted); font-size:0.87rem; line-height:1.6; }
.fito-tags { display:flex; flex-wrap:wrap; gap:0.3rem; margin-top:0.8rem; }
.fito-tag  { background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12); border-radius:4px; font-family:'Space Mono',monospace; font-size:0.58rem; padding:0.15rem 0.45rem; color:var(--text-muted); }
/* ameaca box */
.ameaca-box {
  max-width: 760px; margin: 0 auto;
  background: rgba(231,76,60,0.07);
  border: 1px solid rgba(231,76,60,0.2);
  border-left: 4px solid #e74c3c;
  border-radius: 12px;
  padding: 2rem;
}
.ameaca-box h3 { font-family:'Playfair Display',serif; font-size:1.35rem; color:#e74c3c; margin-bottom:0.7rem; }
.ameaca-box p  { color:var(--text-muted); line-height:1.75; }
/* curio grid */
.curio-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; max-width:1000px; margin:0 auto; }
.curio-item {
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.09);
  border-radius:10px;
  padding:1rem 1.2rem;
  font-size:0.9rem;
  color:var(--text-muted);
  line-height:1.65;
}
.curio-item::before { content:'✦'; color:var(--page-accent,#5cb85c); margin-right:0.5rem; font-size:0.65rem; }
/* biome nav footer strip */
.biome-nav-strip {
  display:flex; flex-wrap:wrap; gap:0.6rem; justify-content:center;
  padding:1.8rem 2rem;
  background:rgba(255,255,255,0.02);
  border-top:1px solid rgba(255,255,255,0.06);
}
.biome-nav-strip a {
  padding:0.4rem 1rem;
  border:1px solid rgba(255,255,255,0.14);
  border-radius:20px;
  color:var(--text-muted);
  text-decoration:none;
  font-family:'Space Mono',monospace;
  font-size:0.66rem;
  transition:all 0.2s;
}
.biome-nav-strip a:hover { border-color:var(--page-accent,#5cb85c); color:var(--page-accent,#5cb85c); }

/* ══════ MÓDULO CLIMA & SAZONALIDADE ══════ */
.clima-modulo-outer { max-width: 860px; margin: 0 auto; }
.clima-tipo-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 20px;
  border: 1px solid var(--page-accent, #5cb85c);
  color: var(--page-accent, #5cb85c); margin-bottom: .7rem;
}
.clima-header-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.5rem; align-items: start; margin-bottom: 1.8rem;
}
.clima-desc-text {
  color: var(--text-muted); font-size: 1rem; line-height: 1.75;
  font-style: italic;
  border-left: 3px solid var(--page-accent, #5cb85c);
  padding-left: 1.2rem;
}
.clima-pills { display: flex; flex-direction: column; gap: .5rem; min-width: 150px; }
.clima-pill {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: .5rem .9rem; text-align: center;
}
.clima-pill strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--dourado-claro); line-height: 1.1;
}
.clima-pill small {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.clima-chart-wrap {
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 1.4rem 1.4rem .9rem;
  margin-bottom: 1.2rem; position: relative; overflow: hidden;
}
.clima-chart-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(90,184,92,.06) 0%, transparent 65%);
}
.clima-chart-legend {
  display: flex; gap: 1.4rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.clima-legend-item {
  display: flex; align-items: center; gap: .45rem;
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase;
}
.clima-chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.clima-indices {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .7rem; margin-bottom: 1.2rem;
}
.clima-indice-box {
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: .8rem 1rem;
}
.clima-indice-label {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .3rem;
}
.clima-indice-val {
  font-family: 'Playfair Display', serif; font-size: 1.25rem;
  color: var(--page-accent, #5cb85c); font-weight: 700; line-height: 1.1;
}
.clima-indice-sub { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.clima-estacoes-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1.2rem;
}
.clima-estacao-card {
  border-radius: 10px; padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  transition: border-color .2s, background .2s;
}
.clima-estacao-card:hover {
  border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06);
}
.clima-estacao-icon { font-size: 1.5rem; display: block; margin-bottom: .3rem; }
.clima-estacao-nome {
  font-family: 'Space Mono', monospace; font-size: .56rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .1rem;
}
.clima-estacao-meses {
  font-family: 'Playfair Display', serif; font-size: .9rem;
  color: var(--text-light); font-weight: 700;
}
.clima-estacao-desc { font-size: .76rem; color: var(--text-muted); margin-top: .3rem; line-height: 1.5; }
.clima-curio-box {
  background: rgba(90,184,92,.05); border: 1px solid rgba(90,184,92,.15);
  border-radius: 10px; padding: .9rem 1.1rem;
  font-size: .88rem; color: var(--text-muted); line-height: 1.65;
}
.clima-curio-box::before { content: '✦ '; color: var(--page-accent, #5cb85c); font-size: .7rem; }
.clima-tooltip {
  position: fixed; background: #0d1f16;
  border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  padding: .65rem 1rem; font-size: .82rem;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  z-index: 9999; min-width: 140px; box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.clima-tooltip.show { opacity: 1; }
.clima-tt-mes {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .1em; color: var(--page-accent, #5cb85c);
  text-transform: uppercase; margin-bottom: .3rem;
}
@media (max-width: 640px) {
  .clima-header-grid { grid-template-columns: 1fr; }
  .clima-pills { flex-direction: row; flex-wrap: wrap; }
  .clima-estacoes-strip { grid-template-columns: 1fr 1fr; }
  .clima-indices { grid-template-columns: 1fr 1fr; }
}
/* ══════ FIM MÓDULO CLIMA ══════ */


/* ══════ MÓDULO LINHA DO TEMPO — DESMATAMENTO ══════ */
.desmat-modulo { max-width: 860px; margin: 0 auto; }

/* Cabeçalho */
.desmat-header {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 1.8rem; flex-wrap: wrap;
}
.desmat-header-text { flex: 1; min-width: 240px; }
.desmat-eyebrow {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: #e74c3c; margin-bottom: .5rem;
}
.desmat-headline {
  font-family: 'Playfair Display', serif; font-size: 1.65rem;
  color: var(--text-light); font-weight: 900; line-height: 1.15;
  margin-bottom: .5rem;
}
.desmat-sub {
  color: var(--text-muted); font-size: .92rem; line-height: 1.7;
}
.desmat-big-number {
  text-align: center; min-width: 130px;
  background: rgba(231,76,60,.08);
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 14px; padding: .9rem 1.1rem;
  flex-shrink: 0;
}
.desmat-big-number strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2.4rem; color: #e74c3c; line-height: 1; font-weight: 900;
}
.desmat-big-number span {
  font-family: 'Space Mono', monospace; font-size: .58rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
}

/* Gráfico área */
.desmat-chart-wrap {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 1.4rem 1.4rem 1rem;
  margin-bottom: 1rem; position: relative; overflow: hidden;
}
.desmat-chart-wrap::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(231,76,60,.05) 0%, transparent 60%);
}
.desmat-chart-title {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem; opacity: .7;
}
.desmat-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Linha do tempo vertical */
.desmat-timeline {
  position: relative; padding-left: 1.8rem; margin-bottom: 1.5rem;
}
.desmat-timeline::before {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, #e74c3c 0%, rgba(231,76,60,.15) 100%);
}
.desmat-event {
  position: relative; margin-bottom: 1.1rem; cursor: pointer;
}
.desmat-event::before {
  content: ''; position: absolute; left: -1.55rem; top: .45rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #e74c3c; border: 2px solid #0a1a10;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(231,76,60,.4);
}
.desmat-event:hover::before {
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(231,76,60,.2);
}
.desmat-event-header {
  display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.desmat-event-ano {
  font-family: 'Space Mono', monospace; font-size: .68rem;
  letter-spacing: .1em; color: #e74c3c; flex-shrink: 0;
}
.desmat-event-titulo {
  font-family: 'Playfair Display', serif; font-size: 1rem;
  color: var(--text-light); font-weight: 700; line-height: 1.2;
}
.desmat-event-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.23,1,.32,1), opacity .3s;
  opacity: 0;
}
.desmat-event.open .desmat-event-body {
  max-height: 200px; opacity: 1;
}
.desmat-event-desc {
  color: var(--text-muted); font-size: .87rem; line-height: 1.65;
  padding: .5rem 0 .3rem; border-left: 2px solid rgba(231,76,60,.25);
  padding-left: .8rem; margin-top: .3rem;
}
.desmat-event-stat {
  display: inline-block; font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .08em;
  background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.2);
  color: #e74c3c; border-radius: 4px; padding: .2rem .6rem; margin-top: .4rem;
}

/* Cards de causas */
.desmat-causas {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: .7rem; margin-bottom: 1.2rem;
}
.desmat-causa-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: .8rem 1rem;
  transition: border-color .2s, background .2s;
}
.desmat-causa-card:hover {
  border-color: rgba(231,76,60,.3); background: rgba(231,76,60,.04);
}
.desmat-causa-icon { font-size: 1.5rem; margin-bottom: .3rem; }
.desmat-causa-nome {
  font-family: 'Playfair Display', serif; font-size: .95rem;
  color: var(--text-light); margin-bottom: .2rem; font-weight: 700;
}
.desmat-causa-pct {
  font-family: 'Space Mono', monospace; font-size: .7rem;
  color: #e74c3c; margin-bottom: .3rem;
}
.desmat-causa-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }

/* Barra de progresso de destruição */
.desmat-progress-wrap { margin-bottom: 1.4rem; }
.desmat-progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .4rem;
}
.desmat-progress-label span {
  font-family: 'Space Mono', monospace; font-size: .6rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
}
.desmat-progress-label strong {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #e74c3c;
}
.desmat-track {
  height: 8px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden;
}
.desmat-fill {
  height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, #c0392b, #e74c3c, #e67e22);
  transition: width 1.4s cubic-bezier(.23,1,.32,1) .2s;
}
.desmat-fill.animate { width: var(--pct); }
.desmat-fill-verde {
  height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--page-accent,#5cb85c), #27ae60);
  transition: width 1.4s cubic-bezier(.23,1,.32,1) .4s;
}
.desmat-fill-verde.animate { width: var(--pct); }

/* Nota de rodapé */
.desmat-fonte {
  font-family: 'Space Mono', monospace; font-size: .55rem;
  letter-spacing: .06em; color: var(--text-muted); opacity: .5;
  text-align: right; margin-top: .8rem;
}

@media (max-width: 640px) {
  .desmat-header { flex-direction: column; }
  .desmat-big-number { width: 100%; }
  .desmat-causas { grid-template-columns: 1fr 1fr; }
}
/* ══════ FIM MÓDULO DESMATAMENTO ══════ */


/* ════════════════════════════════════════
   MÓDULO RECORDES CIENTÍFICOS DOS BIOMAS
   ════════════════════════════════════════ */

.recordes-section {
  padding: 4rem 2rem;
  background: #060e08;
  position: relative;
  overflow: hidden;
}
.recordes-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,150,42,.04) 0%, transparent 60%);
}

.recordes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card base */
.rec-card {
  position: relative;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 1.4rem 1.3rem 1.2rem;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .2s;
}
.rec-card::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 0% 0%, rgba(var(--rc,90,184,92),.08) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.rec-card:hover {
  border-color: rgba(var(--rc,90,184,92), .35);
  background: rgba(255,255,255,.045);
  transform: translateY(-3px);
}
.rec-card:hover::before { opacity: 1; }
.rec-card.open {
  border-color: rgba(var(--rc,90,184,92), .5);
  background: rgba(255,255,255,.04);
}
.rec-card.open::before { opacity: 1; }

/* Card featured — destaque, ocupa 2 colunas */
.rec-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg,
    rgba(var(--rc,90,184,92),.07) 0%,
    rgba(0,0,0,.2) 100%);
  border-color: rgba(var(--rc,90,184,92),.2);
}
@media(max-width:640px) { .rec-card.featured { grid-column: span 1; } }

/* Categoria badge */
.rec-cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: 'Space Mono', monospace;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(var(--rc,90,184,92));
  background: rgba(var(--rc,90,184,92),.1);
  border: 1px solid rgba(var(--rc,90,184,92),.2);
  border-radius: 20px; padding: .22rem .7rem;
  margin-bottom: .75rem;
}

/* Ícone grande */
.rec-icon {
  font-size: 2.4rem; line-height: 1;
  margin-bottom: .5rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
}
.rec-card.featured .rec-icon { font-size: 3.2rem; }

/* Número destaque */
.rec-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; line-height: 1;
  color: rgb(var(--rc,90,184,92));
  margin-bottom: .15rem;
  display: block;
}
.rec-card.featured .rec-number { font-size: 2.8rem; }

/* Título */
.rec-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-light); line-height: 1.25;
  margin-bottom: .4rem;
}
.rec-card.featured .rec-titulo { font-size: 1.25rem; }

/* Subtítulo científico */
.rec-sci {
  font-family: 'Space Mono', monospace;
  font-size: .62rem; letter-spacing: .06em;
  color: var(--text-muted); font-style: italic;
  margin-bottom: .5rem;
}

/* Corpo expandível */
.rec-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.23,1,.32,1), opacity .3s;
  opacity: 0;
}
.rec-body > * { overflow: hidden; }
.rec-card.open .rec-body { grid-template-rows: 1fr; opacity: 1; }

.rec-desc {
  font-size: .88rem; color: var(--text-muted);
  line-height: 1.7; padding-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: .4rem;
}
.rec-card.featured .rec-desc { font-size: .92rem; }

.rec-importa {
  margin-top: .7rem; padding: .5rem .8rem;
  background: rgba(var(--rc,90,184,92),.07);
  border-left: 2px solid rgba(var(--rc,90,184,92),.4);
  border-radius: 0 6px 6px 0;
  font-size: .8rem; color: var(--text-muted); line-height: 1.55;
}
.rec-importa::before {
  content: '✦ Por que importa: ';
  font-family: 'Space Mono', monospace;
  font-size: .6rem; letter-spacing: .08em;
  color: rgb(var(--rc,90,184,92)); text-transform: uppercase;
  display: block; margin-bottom: .25rem;
}

/* Seta de expansão */
.rec-arrow {
  position: absolute; top: 1.2rem; right: 1.2rem;
  color: rgba(var(--rc,90,184,92),.5);
  font-size: .7rem; transition: transform .3s, color .2s;
  font-family: 'Space Mono', monospace;
}
.rec-card:hover .rec-arrow { color: rgb(var(--rc,90,184,92)); }
.rec-card.open .rec-arrow { transform: rotate(45deg); }

/* Hint "clique para expandir" */
.recordes-hint {
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  opacity: .45; margin-top: .9rem;
}

/* ════════ FIM MÓDULO RECORDES ════════ */