/* Home composition. Shared theme and navigation are in theme.css. */
.home-document { scroll-snap-type: none; scroll-padding-top: 94px; }
.home-page {
  --home-gutter: clamp(22px, 6.25vw, 160px);
  --home-width: var(--content-width);
  background: #030912;
  overflow-x: clip;
  scroll-snap-type: none;
}
.home-page main { scroll-snap-type: none; }
.home-page .home-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-page .page-loader { display: none; }

.home-page .hero {
  min-height: clamp(620px, 78svh, 1040px); padding: 70px var(--home-gutter) 112px;
  display: flex; align-items: center; scroll-snap-align: none; scroll-snap-stop: normal;
  background: #040b12 url('/assets/home-favela-hero.webp') 65% center / cover no-repeat;
}
.home-page .hero::before { background: linear-gradient(90deg, rgba(3,9,18,.92), rgba(3,9,18,.65) 35%, rgba(3,9,18,.1) 72%), linear-gradient(0deg, #030912, transparent 32%); }
.home-page .hero-video { object-position: 65% center; }
.home-page .hero-panel { width: min(100%, var(--content-width)); margin-inline: auto; }
.home-page .hero-panel > * { max-width: 650px; }
.home-page .eyebrow { font-size: .67rem; letter-spacing: .19em; font-weight: 800; color: var(--green); margin-bottom: 16px; }
.home-page .hero .eyebrow { letter-spacing: .52em; color: #b4cbd2; font-size: .74rem; margin-bottom: 22px; }
.home-page h1 { font-size: clamp(3rem, 3.9vw, 6rem); font-weight: 900; line-height: .99; letter-spacing: -.045em; margin-bottom: 22px; }
.home-page h1 span { background: linear-gradient(100deg, #00e676, #5de684 45%, #ffd21f 94%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.home-page .hero-copy { max-width: 540px; font-size: clamp(.95rem, 1.05vw, 1.18rem); line-height: 1.65; margin-bottom: 28px; }
.home-page .hero-actions { gap: 12px; max-width: 650px; }
.home-page .button svg { width: 18px; height: 18px; }
.home-page .hero-note { display: flex; gap: 8px; align-items: center; margin: 21px 0 0; color: #8293a5; font-size: .7rem; }
.home-page .hero-note span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero-motion-control { position: absolute; z-index: 2; right: var(--home-gutter); bottom: 85px; padding: 8px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); color: #d6e2eb; background: rgba(3,9,18,.6); font: inherit; font-size: .64rem; }
.home-page .hero.is-paused .hero-video { opacity: 0; }

.home-highlights { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; max-width: var(--home-width); margin: -54px max(var(--home-gutter), calc((100% - var(--home-width)) / 2)) 0; }
.highlight-card { display: flex; align-items: center; gap: 20px; min-height: 90px; padding: 19px 23px; background: linear-gradient(110deg, rgba(0,230,118,.055), transparent), rgba(6,15,25,.96); border: 1px solid #283b47; border-radius: 6px; }
.highlight-card .site-icon { width: 34px; height: 34px; color: var(--green); }
.highlight-card:nth-child(2) .site-icon { color: var(--blue); }
.highlight-card:nth-child(4) .site-icon { color: var(--yellow); }
.home-page .highlight-card h2 { font-size: .94rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -.025em; }
.highlight-card p { margin: 7px 0 0; font-size: .6rem; color: var(--muted); text-transform: uppercase; }
.home-page .section { padding: 54px max(var(--home-gutter), calc((100% - var(--home-width)) / 2)); scroll-snap-align: none; scroll-snap-stop: normal; }
.home-page .section-heading { margin-bottom: 26px; max-width: none; }
.home-page .section-heading .eyebrow { margin-bottom: 9px; }
.home-page h2 { font-size: clamp(1.65rem, 2.4vw, 2.9rem); line-height: 1.12; letter-spacing: -.035em; }
.home-page .section-description { font-size: .87rem; color: var(--muted); margin: 13px 0 0; line-height: 1.6; }

.home-page .maps-section { background: transparent; padding-top: 50px; padding-bottom: 25px; }
.home-page .maps-section h2 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .035em; }
.home-page .maps-section .eyebrow { font-size: .58rem; }
.home-page .map-carousel { perspective: none; }
.home-page .map-track { grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; padding: 6px 0 15px; scrollbar-color: #21523e transparent; }
.home-page .map-card { min-height: 190px; aspect-ratio: 1.4; box-shadow: none; transform: none; border-radius: 5px; }
.home-page .map-card:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 6px 22px rgba(0,230,118,.08); }
.home-page .map-card::after { background: linear-gradient(0deg, rgba(3,9,18,.96), rgba(3,9,18,.07) 85%); }
.home-page .map-card:hover .map-media { transform: scale(1.035); filter: saturate(1.08); }
.home-page .map-overlay { padding: 18px; gap: 6px; transform: none; }
.home-page .map-overlay h3 { font-size: clamp(1rem, 1.25vw, 1.3rem); line-height: 1.06; max-width: 155px; }
.home-page .map-overlay small { color: var(--green); font-size: .6rem; }
.home-page .map-card:nth-child(n+3) .map-overlay small { color: var(--yellow); }
.home-page .map-card-building .map-media { padding: 20px; align-items: start; font-size: .65rem; color: #8696a7; text-align: center; }
.home-page .map-arrow { width: 36px; height: 36px; border: 1px solid #30414d; background: #07121e; box-shadow: none; font-size: 1.6rem; }
.home-page .map-arrow-left { left: -45px; }
.home-page .map-arrow-right { right: -45px; }
.home-page .map-viewer-dialog { border-color: #294532; }
.home-page .map-viewer-content { grid-template-columns: auto minmax(0, 1fr) auto; }
.home-page .map-viewer-controls { gap: 8px; }
.home-page .map-viewer-image-wrap { min-height: 0; max-height: 65svh; }

.home-page .feature-section { padding-top: 25px; background: transparent; padding-bottom: 60px; }
.home-page .feature-section .section-heading { margin-bottom: 22px; }
.home-page .feature-section h2 { font-size: 1.25rem; }
.home-page .feature-section .section-heading .eyebrow { display: none; }
.home-page .feature-grid { gap: 18px; }
.home-page .feature-card { position: relative; min-height: 164px; padding: 28px; border-radius: 5px; border-color: rgba(0,230,118,.3); background: linear-gradient(100deg, rgba(0,45,32,.97), rgba(3,9,18,.74)), url('/assets/login-favela-squad.webp') center / cover; transition: border-color 200ms, transform 200ms; }
.home-page .feature-card:nth-child(2) { border-color: rgba(21,151,255,.3); background: linear-gradient(100deg, rgba(4,28,54,.97), rgba(3,9,18,.72)), url('/assets/profile-community-favela.webp') center / cover; }
.home-page .feature-card:nth-child(3) { border-color: rgba(255,210,31,.25); background: linear-gradient(100deg, rgba(42,33,4,.94), rgba(3,9,18,.65)), url('/assets/home-favela-hero.webp') center / cover; }
.home-page .feature-card:hover { transform: translateY(-3px); border-color: var(--green); }
.home-page .card-index { margin-bottom: 10px; font-size: .57rem; letter-spacing: .16em; }
.home-page .feature-card:nth-child(2) .card-index { color: var(--blue); }
.home-page .feature-card:nth-child(3) .card-index { color: var(--yellow); }
.home-page .feature-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.2; letter-spacing: -.025em; }
.home-page .feature-card p { font-size: .8rem; line-height: 1.55; max-width: 360px; margin: 0; }

.home-page .media-section { grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 90px); padding-block: 70px; background: linear-gradient(110deg, #061220, #030912); border-block: 1px solid rgba(255,255,255,.055); }
.home-page .media-copy h2 { font-size: clamp(2.4rem, 3.5vw, 4rem); font-weight: 900; }
.home-page .media-copy h2 span { color: var(--green); }
.home-page .media-copy p { font-size: .92rem; color: var(--muted); line-height: 1.8; max-width: 400px; margin: 20px 0 24px; }
.home-page .media-frame { border-radius: 6px; border-color: #1c3947; box-shadow: 0 16px 60px #010407; aspect-ratio: 16 / 9; }
.home-page .media-frame:hover { transform: translateY(-2px); }
.home-page .media-frame .media-video { height: 100%; }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-weight: 800; font-size: .73rem; }
.home-text-link .site-icon { width: 17px; height: 17px; }
.home-page .video-audio-badge { width: 44px; height: 44px; padding: 8px; border-color: rgba(255,255,255,.25); }
.home-page .video-audio-badge .badge-icon { font-size: 1.1rem; }

.home-page .rules-section { background: #040c16; padding-block: 70px; }
.home-page .rules-tabs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
.home-page .tabs-nav { flex-direction: column; gap: 9px; margin: 0; }
.home-page .tab-button { min-height: 60px; width: 100%; text-align: left; font-size: .71rem; font-weight: 800; line-height: 1.55; padding: 17px 18px; color: var(--muted); background: #091421; border-color: var(--line); border-radius: 5px; }
.home-page .tab-button[aria-selected="true"] { color: var(--green); border-color: rgba(0,230,118,.38); background: rgba(0,230,118,.06); box-shadow: inset 3px 0 var(--green); }
.home-page .tabs-panels { background: #08131f; border-radius: 6px; border-color: var(--line); padding: 30px; min-width: 0; }
.home-page .tab-panel p { font-size: .86rem; color: #aebdcb; line-height: 1.85; margin-bottom: 18px; }
.home-page .tab-panel p:first-child { padding-bottom: 17px; margin-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.home-page .tab-panel p:last-child { margin-bottom: 0; }
.home-page .tab-panel strong { color: #e7eef5; }

.home-page .social-section { background: #030912; padding-block: 64px; }
.home-page .social-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-page .social-button { display: flex; justify-content: flex-start; align-items: center; gap: 20px; min-height: 96px; padding: 22px 28px; background: #09131f; border: 1px solid var(--line); border-radius: 6px; font-size: 1.05rem; box-shadow: none; }
.home-page .social-button::after { content: '↗'; color: #8191a4; margin-left: auto; }
.home-page .social-button span { width: 44px; height: 44px; padding: 10px; background: rgba(255,255,255,.035); border-radius: 8px; }
.home-page .social-button img { width: 25px; height: 25px; }
.home-page .social-button.discord:hover { border-color: #777fff; }
.home-page .social-button.youtube:hover { border-color: #ff5252; }
.home-page .social-button.instagram:hover { border-color: #e767a3; }
.home-page .join-section { margin: 0 max(var(--home-gutter), calc((100% - var(--home-width)) / 2)) 65px; padding: 42px; gap: 30px; grid-template-columns: 110px 1fr auto; border: 1px solid rgba(0,230,118,.22); border-radius: 8px; background: radial-gradient(ellipse at right, rgba(0,100,53,.28), transparent 70%), linear-gradient(110deg, #092038, #061910); }
.home-page .join-logo { width: 110px; height: 85px; }
.home-page .join-section h2 { max-width: 540px; font-size: clamp(1.65rem, 2.3vw, 2.6rem); }
.home-page .join-actions { flex-direction: column; align-items: stretch; }
.home-page .join-section .eyebrow { margin-bottom: 12px; }

@media (min-width: 2200px) {
  .home-page .hero-panel > * { max-width: 770px; }
  .home-page .hero-copy { max-width: 620px; }
}
@media (max-width: 1250px) {
  .highlight-card { padding: 18px 15px; gap: 12px; }
  .highlight-card .site-icon { width: 29px; height: 29px; }
  .home-page .highlight-card h2 { font-size: .8rem; }
  .home-page .map-track { grid-auto-columns: calc((100% - 54px) / 4); }
  .home-page .join-section { grid-template-columns: 80px 1fr auto; padding: 30px; }
  .home-page .join-logo { width: 80px; }
}
@media (max-width: 1080px) {
  .home-page .hero { min-height: 690px; }
  .home-page .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .feature-card { padding: 20px; }
  .home-page .feature-card h3 { font-size: .9rem; }
  .home-page .join-section { grid-template-columns: 80px 1fr; }
  .home-page .join-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .home-page { --home-gutter: 24px; }
  .home-page .hero { min-height: 680px; padding-top: 64px; padding-bottom: 115px; align-items: center; }
  .home-page .hero::before { background: linear-gradient(90deg, rgba(3,9,18,.92), rgba(3,9,18,.32)), linear-gradient(0deg, #030912, transparent 50%); }
  .home-page h1 { font-size: clamp(2.8rem, 7.6vw, 4rem); }
  .home-page .hero-copy { font-size: .97rem; max-width: 450px; }
  .home-page .hero-motion-control { bottom: 71px; }
  .home-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -42px; }
  .highlight-card { min-height: 92px; }
  .highlight-card p { font-size: .56rem; }
  .home-page .section { padding-top: 44px; padding-bottom: 44px; }
  .home-page .maps-section { padding-bottom: 16px; }
  .home-page .map-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .home-page .map-card { min-height: 205px; }
  .home-page .map-arrow { position: static; transform: none; width: 42px; height: 42px; }
  .home-page .map-carousel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-page .map-track { grid-column: 1 / -1; grid-row: 1; }
  .home-page .map-arrow-right { justify-self: end; }
  .home-page .map-arrow:hover { transform: none; }
  .home-page .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-page .feature-card { min-height: 145px; padding: 24px; }
  .home-page .feature-card h3 { font-size: 1.05rem; }
  .home-page .feature-card p { max-width: 80%; }
  .home-page .media-section { grid-template-columns: 1fr; gap: 28px; }
  .home-page .media-copy p { max-width: 500px; }
  .home-page .rules-tabs { grid-template-columns: 1fr; gap: 18px; }
  .home-page .tabs-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .tab-button { min-height: 66px; font-size: .62rem; padding: 12px; }
  .home-page .tabs-panels { padding: 22px; }
  .home-page .social-actions { grid-template-columns: 1fr; gap: 10px; }
  .home-page .social-button { min-height: 78px; padding: 16px 20px; }
  .home-page .join-section { padding: 28px; gap: 20px; margin-bottom: 40px; }
  .home-page .join-section .button { flex: 1; }
  .home-page .map-viewer-modal { padding: 10px; }
  .home-page .map-viewer-dialog { padding: 14px; width: 100%; border-radius: 8px; }
  .home-page .map-viewer-content { grid-template-columns: 1fr 1fr; }
  .home-page .map-viewer-image-wrap { grid-column: 1 / -1; grid-row: 1; }
  .home-page .map-viewer-arrow { width: 40px; height: 40px; }
  .home-page .map-viewer-arrow-right { justify-self: end; }
  .home-page .map-viewer-control, .home-page #map-viewer-open-full { font-size: .7rem; padding: 9px 11px; }
}
@media (max-width: 440px) {
  .home-page { --home-gutter: 20px; }
  .home-page .hero { min-height: 700px; padding-top: 46px; }
  .home-page h1 { font-size: clamp(2.35rem, 9.8vw, 3.3rem); }
  .home-page .hero .eyebrow { font-size: .62rem; }
  .home-page .hero-copy { font-size: .91rem; }
  .home-page .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; }
  .home-page .hero-actions .button { width: 100%; }
  .home-page .hero-note { font-size: .6rem; }
  .highlight-card { flex-direction: column; align-items: flex-start; gap: 11px; min-height: 125px; padding: 17px 14px; }
  .home-page .highlight-card h2 { font-size: .74rem; }
  .home-page .map-track { grid-auto-columns: 78%; }
  .home-page .map-card { min-height: 225px; }
  .home-page .map-overlay h3 { font-size: 1.2rem; }
  .home-page .maps-section h2 { font-size: 1.15rem; line-height: 1.25; }
  .home-page .feature-card p { max-width: 100%; }
  .home-page .join-section { grid-template-columns: 1fr; padding: 26px; }
  .home-page .join-logo { width: 100px; }
  .home-page .join-actions { flex-direction: column; }
  .home-page .join-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-document { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .home-page .hero-video { display: none; }
  .home-page .map-card:hover, .home-page .feature-card:hover, .home-page .button:hover, .home-page .media-frame:hover, .home-page .media-video:hover { transform: none; }
}
