:root {
  --color-sand: #c8c2b7;
}

html {
  scroll-padding-top: 88px;
}

body {
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid rgba(212, 175, 55, 0.65);
  border-radius: 999px;
  background: #0b0d11;
  color: #f7f4eb;
  padding: 10px 18px;
  font: 600 0.75rem/1 "JetBrains Mono Variable", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

header {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
}

header nav a {
  position: relative;
}

header nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 1px;
  content: "";
  background: #d4af37;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms ease;
}

header nav a:hover::after,
header nav a[data-active="true"]::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 999px;
  color: #e5c378;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.mobile-menu-button:hover,
.mobile-menu-button:focus-visible {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.1);
  outline: none;
}

.mobile-menu-button svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: fixed;
  z-index: 49;
  inset: 72px 0 auto;
  visibility: hidden;
  opacity: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(circle at 88% 0%, rgba(212, 175, 55, 0.12), transparent 42%),
    rgba(11, 13, 17, 0.97);
  padding: 18px 24px 26px;
  transform: translateY(-12px);
  backdrop-filter: blur(24px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
}

.mobile-menu[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-menu__link {
  border: 1px solid rgba(247, 244, 235, 0.09);
  border-radius: 14px;
  padding: 14px;
  color: #d5d0c6;
  font: 500 0.72rem/1.25 "JetBrains Mono Variable", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: #e5c378;
  outline: none;
}

.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border-radius: 999px;
  background: #d4af37;
  padding: 14px 18px;
  color: #0b0d11;
  font: 600 0.72rem/1 "JetBrains Mono Variable", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#beranda::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 28%;
  content: "";
  pointer-events: none;
  background: linear-gradient(to top, #0b0d11, transparent);
}

#membership [data-testid="membership-card"] {
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 175, 55, 0.15), transparent 40%),
    #181c25;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

#membership [data-testid^="membership-benefit-"] {
  transition: transform 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

#membership [data-testid^="membership-benefit-"]:hover {
  transform: translateY(-3px);
  background: rgba(24, 28, 37, 0.88);
}

input,
textarea,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  #membership > div > div:nth-child(2) > div:first-child {
    position: sticky;
    top: 110px;
  }
}

@media (max-width: 1023px) {
  .mobile-menu-button {
    display: inline-flex;
  }

  header [data-testid="nav-register-btn"] {
    margin-left: auto;
    margin-right: 10px;
  }
}

@media (max-width: 560px) {
  header > div:first-child {
    height: 68px;
    padding-inline: 20px;
  }

  header [data-testid="nav-logo"] {
    min-width: 0;
  }

  header [data-testid="nav-logo"] span {
    max-width: 112px;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  header [data-testid="nav-register-btn"] {
    display: none;
  }

  .mobile-menu {
    inset-block-start: 68px;
  }

  #beranda {
    min-height: auto;
  }

  #beranda > div:nth-child(2) {
    padding-top: 112px;
    padding-bottom: 64px;
  }

  #beranda h1 {
    margin-top: 2rem;
    font-size: clamp(2.4rem, 11vw, 3rem);
    line-height: 1.04;
  }

  #beranda h1 + p {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.68;
  }

  #beranda h1 + p + div {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #beranda h1 + p + div a {
    width: 100%;
    min-height: 50px;
    justify-content: center;
  }

  #beranda [data-testid="hero-countdown"] {
    margin-top: 2.5rem;
  }

  #beranda [data-testid="hero-countdown"] > p {
    max-width: 280px;
    font-size: 0.68rem;
    line-height: 1.7;
  }

  #beranda [data-testid="hero-countdown"] > div {
    gap: 8px;
  }

  #beranda [data-testid^="countdown-"] {
    padding: 12px 5px;
  }

  #beranda > div:last-child {
    display: none;
  }

  section[id]:not(#beranda) {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  section[id] h2 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  #membership [data-testid^="membership-benefit-"] {
    gap: 16px;
    padding: 22px;
  }
}

@media (max-width: 400px) {
  #beranda h1 {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
