:root {
  color-scheme: dark;
  --ink: #fff8ef;
  --muted: #c9c0b5;
  --dim: #8e8177;
  --paper: #100d12;
  --surface: #1b151d;
  --line: rgba(255, 255, 255, 0.14);
  --carrot: #ff7a1a;
  --pink: #ff3d8b;
  --cyan: #25f4ee;
  --lime: #a7ff4f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 122, 26, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(37, 244, 238, 0.2), transparent 26%),
    linear-gradient(160deg, #100d12 0%, #18111b 54%, #09080b 100%);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 13, 18, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.stats,
.footer {
  display: flex;
  align-items: center;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-switcher label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-switcher select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.language-switcher option {
  background: #171219;
  color: var(--ink);
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--carrot);
  color: #1d0d05;
}

.nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a:hover {
  color: #fff;
}

.hero,
.section,
.contact {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 82px);
  min-height: calc(100vh - 73px);
  align-items: center;
  padding: 56px 0 74px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  display: block;
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(37, 244, 238, 0.55);
  border-radius: 8px;
  content: "";
}

.signal-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(240px, 70%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(27, 21, 29, 0.9);
  box-shadow: var(--shadow);
}

.signal-card span,
.lesson-panel span,
.eyebrow {
  color: var(--carrot);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.signal-card strong,
.lesson-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.eyebrow {
  margin-bottom: 14px;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 94px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.72;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
}

.button.primary {
  background: linear-gradient(135deg, var(--carrot), var(--pink));
  color: #16090d;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.stats {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stats div {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.stats dt {
  font-size: 28px;
  font-weight: 900;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 6vw, 74px);
}

.intro p:last-child,
.feature-card p,
.lesson-copy p,
.contact p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.section-heading {
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--dim);
  font-weight: 900;
}

.feature-card.dance {
  border-top: 5px solid var(--pink);
}

.feature-card.game {
  border-top: 5px solid var(--cyan);
}

.feature-card.sing {
  border-top: 5px solid var(--lime);
}

.lessons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
}

.lesson-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lesson-panel div {
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  border: 1px solid rgba(255, 122, 26, 0.38);
  border-radius: 8px;
  padding: clamp(26px, 5vw, 46px);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.16), rgba(37, 244, 238, 0.1));
}

.contact .button {
  flex-shrink: 0;
}

.contact h2 {
  margin-bottom: 14px;
}

.donate-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(28px, 6vw, 82px);
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 122px);
  align-items: center;
  margin: 0 auto;
  padding: 64px 0;
}

.community-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 78px;
}

.community-hero {
  max-width: 820px;
  margin-bottom: 28px;
}

.community-hero p:last-child {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.76;
}

.community-form,
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.community-form {
  display: grid;
  gap: 18px;
  margin-bottom: 72px;
  padding: clamp(18px, 4vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 16px;
}

.community-form label,
.comment-form {
  display: grid;
  gap: 8px;
}

.community-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.community-form input,
.community-form textarea,
.comment-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.community-form textarea {
  min-height: 128px;
  resize: vertical;
}

.community-form input:focus,
.community-form textarea:focus,
.comment-form input:focus {
  border-color: rgba(255, 122, 26, 0.78);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#community-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

#community-status[data-state="error"] {
  color: #ff9aa8;
}

.compact-heading {
  margin-bottom: 22px;
}

.posts-list {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 4vw, 26px);
}

.post-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-card h3 {
  margin-bottom: 4px;
}

.post-time,
.comment-meta {
  color: var(--dim);
  font-size: 13px;
}

.post-body,
.comment p:last-child,
.empty-state {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.post-image {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.comments {
  display: grid;
  gap: 10px;
}

.comment {
  border-left: 3px solid rgba(255, 122, 26, 0.55);
  padding: 8px 0 8px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.comment p {
  margin: 0;
}

.comment-form {
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr) auto;
  align-items: center;
}

.comment-form .button {
  min-height: 44px;
}

.donate-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.78;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  text-align: center;
}

.qr-card img {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

.qr-card h2 {
  margin-top: 20px;
  font-size: 28px;
}

.qr-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    margin-left: 0;
  }

  .language-switcher select {
    flex: 1;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .intro,
  .lessons,
  .donate-page,
  .form-grid,
  .comment-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .contact,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero,
  .section,
  .contact,
  .donate-page,
  .community-page {
    width: min(100% - 28px, 1140px);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: 44px;
  }

  .signal-card {
    position: static;
    width: auto;
    margin-top: 12px;
  }
}
