:root {
  --bg: #101014;
  --bg-soft: #171720;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --text: #fff8ee;
  --muted: #c9c0b5;
  --line: rgba(255, 255, 255, 0.16);
  --hot: #ff4b3e;
  --sun: #ffb238;
  --mint: #39d6a3;
  --teal: #1bbbc7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 75, 62, 0.25), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(27, 187, 199, 0.18), transparent 26rem),
    linear-gradient(180deg, #101014 0%, #15131a 45%, #0f1014 100%);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--sun);
  color: #17120c;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(16, 16, 20, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--sun), var(--hot), var(--teal), var(--sun));
  color: #130f0c;
  font-size: 0.82rem;
  box-shadow: 0 12px 30px rgba(255, 75, 62, 0.28);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16, 16, 20, 0.98) 0%, rgba(16, 16, 20, 0.82) 38%, rgba(16, 16, 20, 0.32) 72%, rgba(16, 16, 20, 0.72) 100%),
    linear-gradient(180deg, rgba(16, 16, 20, 0.12) 0%, rgba(16, 16, 20, 0.74) 100%),
    url("../img/batukada-hero.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 44%;
  background:
    linear-gradient(90deg, transparent, rgba(255, 178, 56, 0.28), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 72px);
  transform: rotate(-3deg);
  opacity: 0.55;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(255, 178, 56, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 75, 62, 0.08) 0 18%, transparent 18% 36%, rgba(57, 214, 163, 0.06) 36% 54%, transparent 54%);
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--sun), var(--hot));
  color: #170f0a;
  box-shadow: 0 16px 38px rgba(255, 75, 62, 0.24);
}

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

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.player-card,
.shoutbox-form,
.messages-panel,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.player-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-weight: 800;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(57, 214, 163, 0.12);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(255, 178, 56, 0.14);
  color: var(--sun);
  font-weight: 800;
}

.feature-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.shoutbox-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.shoutbox-form,
.messages-panel {
  padding: 1.2rem;
}

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

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

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(8, 8, 12, 0.55);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--sun);
  outline: 3px solid rgba(255, 178, 56, 0.16);
}

.char-count,
.form-status {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.85rem 0 0;
}

.form-status.is-error {
  color: #ffb1a8;
}

.form-status.is-success {
  color: #a7f4d8;
}

.messages-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.messages-header h3 {
  margin: 0;
  font-size: 1rem;
}

.messages-header span {
  color: var(--muted);
  font-size: 0.85rem;
}

.message-list {
  display: grid;
  gap: 0.8rem;
  max-height: 480px;
  overflow: auto;
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
}

.message-item {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.message-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.message-name {
  font-weight: 800;
}

.message-time {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.message-text {
  margin: 0;
  color: #f1e8dd;
}

.empty-state {
  color: var(--muted);
  padding: 1rem 0;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--text);
  text-decoration-color: rgba(255, 178, 56, 0.55);
  text-underline-offset: 0.25rem;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(16, 16, 20, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

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

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 520px) {
  .nav,
  .section,
  .hero-inner,
  .site-footer {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero-inner {
    padding: 4rem 0 5rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .messages-header,
  .message-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-time {
    white-space: normal;
  }
}
