:root {
  --bg: #111310;
  --panel: #171916;
  --panel-soft: #1c1e1a;
  --text: #e8e1d4;
  --muted: #8b8478;
  --dim: #625d52;
  --line: #292b27;
  --line-soft: #332f29;
  --red: #8f2925;
  --red-bright: #9b302b;
  --gold: #a28f70;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 0%, rgba(143,41,37,.06), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  min-height: 100vh;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: Arial, sans-serif;
}

.brand {
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-decoration: none;
}

.header-record {
  color: var(--dim);
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .2em;
}

.beta-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(45px, 7vw, 100px);
  align-items: start;
}

.beta-intro {
  position: sticky;
  top: 35px;
}

.kicker,
.section-number,
.status-row,
.notice,
.submission-note,
.success-grid span,
footer {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 20px;
  color: var(--red-bright);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.beta-intro h1 {
  margin: 0;
  max-width: 540px;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.035em;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.status-line {
  display: inline-block;
  width: 42px;
  height: 1px;
  background: var(--red);
}

.intro-copy {
  max-width: 520px;
  margin: 0 0 20px;
  color: #bdb4a6;
  font-size: 1.03rem;
  line-height: 1.78;
}

.notice {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: .49rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .16em;
}

.application-panel {
  min-width: 0;
}

.form-section {
  margin-bottom: 58px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  margin-bottom: 0;
}

.section-number {
  margin-bottom: 13px;
  color: var(--red-bright);
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.form-section h2,
.success-record h2 {
  margin: 0 0 30px;
  color: var(--text);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 22px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 9px;
  color: #a9a195;
  font-family: Arial, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.field label span {
  color: var(--red-bright);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 0;
  outline: none;
  background: #131512;
  color: var(--text);
  font: inherit;
  transition:
    border-color .18s ease,
    background .18s ease;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
}

textarea {
  min-height: 165px;
  padding: 14px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: #161815;
}

select {
  cursor: pointer;
}

textarea::placeholder {
  color: #59554d;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  align-items: start;
  color: #aaa296;
  font-family: Arial, sans-serif;
  font-size: .73rem;
  line-height: 1.7;
  cursor: pointer;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  min-height: 0;
  margin: 3px 0 0;
  accent-color: var(--red);
}

.submit-button {
  width: 100%;
  min-height: 58px;
  margin-top: 32px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .18em;
  transition:
    background .18s ease,
    color .18s ease;
}

.submit-button:hover {
  background: var(--red);
  color: #fff;
}

.submit-button:disabled {
  cursor: wait;
  opacity: .55;
}

.submission-note {
  margin-top: 14px;
  color: var(--dim);
  font-size: .48rem;
  line-height: 1.7;
  letter-spacing: .15em;
}

.message {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  font-family: Arial, sans-serif;
  font-size: .7rem;
  line-height: 1.6;
}

.error-message.visible {
  display: block;
  border-left: 2px solid var(--red);
  background: rgba(143,41,37,.07);
  color: #c9aaa4;
}

.success-record {
  animation: recordIn .35s ease both;
}

.success-record[hidden] {
  display: none;
}

.success-record p {
  color: #bdb4a6;
  font-size: 1rem;
  line-height: 1.75;
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.success-grid > div {
  padding: 20px 18px 20px 0;
}

.success-grid > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.success-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.success-grid strong {
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: .65rem;
  letter-spacing: .09em;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  color: #4f4b44;
  font-size: .47rem;
  letter-spacing: .18em;
}

@keyframes recordIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 22px;
  }

  .header-record {
    display: none;
  }

  .beta-shell {
    padding-top: 48px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .beta-intro {
    position: static;
  }

  .beta-intro h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }
}

@media (max-width: 600px) {
  .site-header,
  .beta-shell,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .beta-shell {
    padding-top: 38px;
    padding-bottom: 65px;
  }

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

  .field.full {
    grid-column: auto;
  }

  input,
  select {
    min-height: 56px;
  }

  textarea {
    min-height: 180px;
  }

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

  .success-grid > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}
