:root {
  color-scheme: dark;
  --bg: #071014;
  --panel: #111a22;
  --panel-soft: #162330;
  --line: #263847;
  --text: #f5f8fb;
  --muted: #b8c7d5;
  --accent: #e11d2e;
  --blue: #60a5fa;
  --green: #22c55e;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 34%), var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
.site-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 18px; }
.brand img { display: block; width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.brand strong { letter-spacing: 0.04em; }
nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #334155; border-radius: 10px; background: rgba(17, 26, 34, 0.84); color: #fff; font-weight: 800; text-decoration: none; }
nav a:hover, .button:hover { border-color: var(--blue); background: #172638; }
.flag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; overflow: hidden; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.flag-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3CclipPath id='c'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='%23fff' d='M0 0h60v60H0z'/%3E%3Cpath fill='%23b22234' d='M0 0h60v4.62H0zm0 9.23h60v4.62H0zm0 9.23h60v4.62H0zm0 9.23h60v4.62H0zm0 9.23h60v4.62H0zm0 9.23h60v4.62H0zm0 9.23h60V60H0z'/%3E%3Cpath fill='%233c3b6e' d='M0 0h28v32.3H0z'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='5' cy='5' r='1.25'/%3E%3Ccircle cx='14' cy='5' r='1.25'/%3E%3Ccircle cx='23' cy='5' r='1.25'/%3E%3Ccircle cx='9.5' cy='11' r='1.25'/%3E%3Ccircle cx='18.5' cy='11' r='1.25'/%3E%3Ccircle cx='5' cy='17' r='1.25'/%3E%3Ccircle cx='14' cy='17' r='1.25'/%3E%3Ccircle cx='23' cy='17' r='1.25'/%3E%3Ccircle cx='9.5' cy='23' r='1.25'/%3E%3Ccircle cx='18.5' cy='23' r='1.25'/%3E%3Ccircle cx='5' cy='29' r='1.25'/%3E%3Ccircle cx='14' cy='29' r='1.25'/%3E%3Ccircle cx='23' cy='29' r='1.25'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.flag-br { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3CclipPath id='c'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23c)'%3E%3Cpath fill='%23009639' d='M0 0h60v60H0z'/%3E%3Cpath fill='%23ffdf00' d='M30 10 53 30 30 50 7 30z'/%3E%3Ccircle cx='30' cy='30' r='12' fill='%23002776'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='M17 27c8-3 18-2 27 4'/%3E%3C/g%3E%3C/svg%3E"); }
nav .lang { gap: 7px; min-width: 42px; padding: 10px; color: #dbeafe; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 28px; align-items: center; min-height: 560px; padding: 54px 0; }
.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 14px; color: #93c5fd; font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 820px; font-size: clamp(44px, 7vw, 86px); line-height: 0.96; letter-spacing: -0.06em; }
h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.02em; }
p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero-copy > p:not(.eyebrow) { margin-top: 24px; max-width: 620px; font-size: 21px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button.primary { border-color: rgba(225, 29, 46, 0.72); background: linear-gradient(135deg, #e11d2e, #9f1239); }
.hero-card { position: relative; min-height: 380px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(22, 35, 48, 0.92), rgba(8, 16, 22, 0.92)); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 30px; border: 1px solid rgba(96, 165, 250, 0.20); border-radius: 20px; background: linear-gradient(180deg, transparent 0 24%, rgba(96, 165, 250, 0.08) 24% 25%, transparent 25% 49%, rgba(96, 165, 250, 0.08) 49% 50%, transparent 50% 74%, rgba(96, 165, 250, 0.08) 74% 75%, transparent 75%); }
.chart-line { position: absolute; left: 54px; right: 54px; bottom: 92px; height: 160px; background: linear-gradient(140deg, transparent 0 14%, var(--green) 14% 16%, transparent 16% 28%, var(--green) 28% 31%, transparent 31% 44%, var(--blue) 44% 47%, transparent 47% 62%, var(--blue) 62% 65%, transparent 65% 80%, var(--green) 80% 83%, transparent 83%); filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.34)); transform: skewY(-12deg); }
.metric { position: absolute; left: 42px; right: 42px; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid #2d3a45; border-radius: 14px; background: rgba(15, 23, 32, 0.88); }
.metric:nth-child(2) { top: 44px; }
.metric:nth-child(3) { bottom: 34px; }
.metric span { color: #93c5fd; font-size: 13px; font-weight: 800; }
.metric strong { font-size: 24px; }
.grid-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px 0; }
.grid-section.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 58px; }
.feature-card, .join { border: 1px solid var(--line); border-radius: 18px; background: rgba(17, 26, 34, 0.82); padding: 24px; }
.feature-card h2 { text-transform: uppercase; }
.feature-card p { font-size: 16px; }
.join { margin: 34px 0 8px; padding: 44px; text-align: center; }
.volunteer { margin: 16px 0 10px; padding: 26px 30px; border: 1px solid rgba(34, 197, 94, 0.36); border-radius: 18px; background: linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(96, 165, 250, 0.08)); }
.volunteer h2 { margin-bottom: 8px; font-size: 24px; }
.volunteer p { max-width: 860px; }
.join h2 { margin-bottom: 14px; font-size: clamp(30px, 5vw, 54px); }
.join p { max-width: 760px; margin: 0 auto; }
footer { display: flex; justify-content: space-between; gap: 14px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 36px; color: #7d8b9a; font-size: 13px; }
@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 36px 0; }
  .hero-card { min-height: 300px; }
  .grid-section, .grid-section.compact { grid-template-columns: 1fr; }
  .join { padding: 28px 22px; }
  .volunteer { padding: 22px; }
  footer { flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header, main, footer { width: min(calc(100vw - 24px), 342px); max-width: min(calc(100vw - 24px), 342px); }
  body { overflow-x: hidden; }
  .site-header { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; }
  nav { justify-content: flex-start; }
  nav a, .button { width: 100%; min-height: 40px; padding: 9px 12px; }
  h1 { font-size: 40px; line-height: 1; }
  h1, h2, p, .eyebrow, .metric strong { overflow-wrap: anywhere; }
  p { font-size: 16px; }
  .eyebrow { line-height: 1.4; }
  .hero { padding: 28px 0; }
  .hero, .hero-copy, .hero-card, .feature-card, .join, .volunteer { min-width: 0; max-width: 100%; }
  .hero-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 22px; }
  .hero-card { min-height: 240px; border-radius: 18px; }
  .hero-card::before { inset: 18px; }
  .chart-line { left: 30px; right: 30px; bottom: 72px; height: 118px; }
  .metric { left: 24px; right: 24px; padding: 11px 12px; }
  .metric:nth-child(2) { top: 30px; }
  .metric strong { min-width: 0; font-size: 18px; text-align: right; }
  .feature-card, .join, .volunteer { padding: 20px; border-radius: 12px; }
  .join h2 { font-size: 32px; }
}
