:root {
  --bg: #0b0b0b;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --text: #f5f1e8;
  --muted: #c6bfaf;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f0542f;
  --accent-2: #f5c542;
  --success: #88e0a8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 84, 47, 0.18), transparent 28%),
    linear-gradient(180deg, #0b0b0b 0%, #121212 40%, #0c0c0c 100%);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img,
.footer-brand img {
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem;
}

.brand img {
  width: 68px;
  height: 68px;
}

.footer-brand img {
  width: 52px;
  height: 52px;
}

.site-nav {
  display: none;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.header-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.88rem;
}

.language-switcher span {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.language-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.language-flag {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.language-flag:hover,
.language-flag:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.language-flag.is-active {
  border-color: rgba(240, 84, 47, 0.82);
  box-shadow: 0 0 0 3px rgba(240, 84, 47, 0.18);
}

.flag-mx {
  background-image: linear-gradient(90deg, #006847 0 33.33%, #ffffff 33.33% 66.66%, #ce1126 66.66% 100%);
}

.flag-fr {
  background-image: linear-gradient(90deg, #0055a4 0 33.33%, #ffffff 33.33% 66.66%, #ef4135 66.66% 100%);
}

.flag-gn {
  background-image: linear-gradient(90deg, #ce1126 0 33.33%, #fcd116 33.33% 66.66%, #009460 66.66% 100%);
}

.flag-bd {
  background-image: radial-gradient(circle at 42% 50%, #f42a41 0 26%, transparent 27%), linear-gradient(180deg, #006a4e 0%, #006a4e 100%);
}

.flag-cn {
  background-image: radial-gradient(circle at 30% 32%, #ffde00 0 10%, transparent 11%), linear-gradient(180deg, #de2910 0%, #de2910 100%);
}

.flag-us {
  background-image: linear-gradient(180deg, #b22234 0 14.28%, #ffffff 14.28% 28.56%, #b22234 28.56% 42.84%, #ffffff 42.84% 57.12%, #b22234 57.12% 71.4%, #ffffff 71.4% 85.68%, #b22234 85.68% 100%), linear-gradient(180deg, #3c3b6e 0 55%, transparent 55% 100%);
  background-size: 100% 100%, 52% 58%;
  background-repeat: no-repeat;
  background-position: center, left top;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.section {
  padding: 4rem 0;
}

.hero {
  padding-top: 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-mark {
  position: relative;
}

.hero-copy h1,
.section-heading h2,
.impact h2,
.newsletter-card h2,
.community-copy h2 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(4rem, 13.2vw, 8rem);
  max-width: 9ch;
}

.hero-text,
.about-grid p,
.impact p,
.join-form,
.event-card p,
.newsletter-card,
.community-copy p,
.site-footer {
  color: var(--muted);
}

.hero-text {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

.hero-actions,
.community-points,
.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff744f 100%);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-mark {
  background:
    radial-gradient(circle at center, rgba(240, 84, 47, 0.4), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-mark img {
  width: min(100%, 540px);
  margin: 0 auto;
  object-fit: contain;
}

.hero-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-band span,
.community-points span {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.newsletter-card h2,
.community-copy h2,
.impact h2 {
  font-size: clamp(2.8rem, 9vw, 5rem);
}

.about-grid,
.join-grid,
.community-grid {
  display: grid;
  gap: 1.4rem;
}

.about-grid p,
.impact p,
.community-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about,
.activities,
.community {
  border-top: 1px solid var(--line);
}

.impact {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 6rem 1rem;
  background-image: url("assets/images/dsav8.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #050505;
  overflow: hidden;
}

.impact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.78));
}

.impact-content {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.impact p {
  max-width: 34rem;
  margin-top: 1rem;
}

.join-grid {
  align-items: start;
}

.join-form,
.aside-card,
.event-card,
.newsletter-card,
.community-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.join-form {
  padding: 1.4rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  color: var(--text);
  font-weight: 500;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input::placeholder {
  color: rgba(245, 241, 232, 0.45);
}

input:focus {
  border-color: rgba(245, 197, 66, 0.75);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.18);
}

.error-message {
  min-height: 1rem;
  color: #ff9a83;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  color: var(--success);
}

.join-aside {
  display: grid;
  gap: 1rem;
}

.aside-card {
  padding: 1.4rem;
}

.aside-card h3,
.event-card h3,
.community-panel strong {
  margin: 0 0 0.7rem;
  color: var(--text);
  font-size: 1.4rem;
}

.hubspot-placeholder {
  min-height: 220px;
  border-style: dashed;
}

.hubspot-placeholder span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.events-grid {
  display: grid;
  gap: 1rem;
}

.event-card {
  padding: 1.4rem;
}

.event-date,
.event-location {
  color: var(--accent-2);
  font-weight: 700;
}

.newsletter-card {
  padding: 1.5rem;
}

.newsletter-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.community-grid {
  align-items: stretch;
}

.community-visual {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.72)),
    url("assets/images/dsav8.png") center/contain no-repeat;
  background-color: #050505;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  align-items: end;
  padding: 1rem;
}

.community-panel {
  max-width: 18rem;
  padding: 1rem;
}

.site-footer {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
}

.footer-brand p {
  margin: 0;
}

.footer-links a,
.footer-social a {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .site-header {
    padding-top: 1.4rem;
  }

  .site-nav {
    display: flex;
  }

  .header-controls {
    flex-direction: row;
    align-items: center;
  }

  .hero-grid,
  .about-grid,
  .join-grid,
  .community-grid,
  .events-grid,
  .newsletter-form,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-band {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .newsletter-form {
    align-items: center;
  }

  .newsletter-form .btn {
    width: max-content;
  }

  .site-footer {
    align-items: center;
  }

  .footer-social {
    justify-content: end;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-grid,
  .join-grid,
  .community-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-form {
    padding: 1.8rem;
  }

  .newsletter-card {
    padding: 2rem;
  }
}
