:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --elevated: #212121;
  --border: #2a2a2a;
  --gold: #e3b23c;
  --gold-dim: #b88f2e;
  --text: #f2f2f2;
  --text-muted: #9a9a9a;
  --success: #3ecf6e;
  --danger: #e2574c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.cage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      135deg,
      rgba(227, 178, 60, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(45deg, rgba(227, 178, 60, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
}

.wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 120%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 32px 36px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(227, 178, 60, 0.05);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    rgba(227, 178, 60, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: min(200px, 48vw);
  height: auto;
  display: block;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 36px rgba(227, 178, 60, 0.25));
}

.headline {
  position: relative;
  font-size: clamp(26px, 5.6vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  color: #cfcfcf;
}

.headline-accent {
  display: block;
  margin-top: 4px;
  font-size: 1.2em;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(227, 178, 60, 0.45);
}

.subcopy {
  position: relative;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 0 20px;
}

.subcopy-mobile {
  display: none;
}

.subcopy-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 32px;
}

.signup-form {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

.signup-form > .field-label:first-of-type {
  margin-top: 0;
}

.optional-tag {
  text-transform: none;
  font-weight: 500;
  letter-spacing: normal;
  color: #6b6b6b;
}

.about-field {
  display: flex;
  flex-direction: column;
}

.about-input {
  resize: vertical;
  min-height: 72px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  outline: none;
}

.about-input::placeholder {
  color: #6b6b6b;
}

.about-input:focus {
  border-color: var(--gold-dim);
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.email-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  padding: 13px 14px;
}

.email-input::placeholder {
  color: #6b6b6b;
}

.email-input:focus {
  border-color: var(--gold-dim);
}

.email-input:disabled {
  opacity: 0.6;
}

.cta-button {
  margin-top: 20px;
  width: 100%;
  background: linear-gradient(180deg, #f0c15a, var(--gold));
  color: #1a1304;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 8px 28px -8px rgba(227, 178, 60, 0.55);
  transition: box-shadow 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.cta-button:hover:not(:disabled) {
  box-shadow: 0 10px 34px -6px rgba(227, 178, 60, 0.7);
}

.cta-button:active:not(:disabled) {
  transform: scale(0.98);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.cta-button.is-loading .cta-label {
  opacity: 0.6;
}

.cta-label-mobile {
  display: none;
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.form-message.is-success {
  color: var(--success);
}

.form-message.is-error {
  color: var(--danger);
}

.fine-print {
  font-size: 13px;
  color: #6b6b6b;
  margin: 16px 0 0;
}

.fine-print-mobile {
  display: none;
}

.discord-card {
  width: 100%;
  margin-top: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 120%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  text-align: left;
}

.discord-intro {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.discord-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.discord-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--elevated) center / cover no-repeat;
  background-image: url("/images/logo-flat.webp");
  box-shadow: 0 0 0 1px var(--border);
}

.discord-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.status-online {
  background: var(--success);
}

.status-total {
  background: #747f8d;
}

.discord-join {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #f0c15a, var(--gold));
  color: #1a1304;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 6px 20px -6px rgba(227, 178, 60, 0.5);
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.discord-row:hover .discord-join {
  box-shadow: 0 8px 24px -4px rgba(227, 178, 60, 0.65);
}

.discord-row:active .discord-join {
  transform: scale(0.97);
}

.footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a5a5a;
  font-size: 13px;
  padding-top: 16px;
}

@media (max-width: 480px) {
  .wrap {
    justify-content: safe center;
    padding: 20px 16px;
  }

  .hero {
    align-items: flex-start;
    text-align: left;
    padding: 32px 20px 24px;
  }

  .logo-wrap {
    align-self: center;
  }

  .hero-logo {
    width: min(140px, 38vw);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 18px rgba(227, 178, 60, 0.15));
  }

  .headline {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .headline-accent {
    font-size: 1em;
    margin-top: 2px;
  }

  .subcopy-desktop,
  .subcopy-cta {
    display: none;
  }

  .subcopy-mobile {
    display: block;
    margin-bottom: 20px;
  }

  .about-input {
    min-height: 56px;
  }

  .cta-label-desktop {
    display: none;
  }

  .cta-label-mobile {
    display: inline;
  }

  .fine-print-desktop {
    display: none;
  }

  .fine-print-mobile {
    display: block;
    margin-top: 18px;
  }

  .discord-card {
    margin-top: 16px;
    padding: 16px 18px;
  }
}

