/* /welcome + /register — AI Arena onboarding. East-Minimal-Red palette. */

:root {
  --wa-bg:           #0A0A0C;
  --wa-surface:      #16161A;
  --wa-raised:       #1F1F24;
  --wa-divider:      #2A2A30;
  --wa-text:         #E8E8EE;
  --wa-text-muted:   #8B8B95;
  --wa-text-faint:   #525258;
  --wa-red:          #E63946;
  --wa-red-deep:     #C92F3E;
  --wa-red-soft:     rgba(230, 57, 70, 0.15);
  --wa-red-glow:     rgba(230, 57, 70, 0.45);
  --wa-team-a:       #4A9EFF;
}

.wa-page {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(800px 600px at 50% -200px, rgba(230, 57, 70, 0.10), transparent 70%),
    var(--wa-bg);
  color: var(--wa-text);
  font-family: 'Inter Tight', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wa-toolbar {
  padding: 16px 24px;
  background: rgba(22, 22, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wa-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.wa-toolbar__brand {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wa-text-muted);
}
.wa-toolbar__brand em {
  font-style: normal;
  color: var(--wa-red);
}
.wa-toolbar__nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.wa-toolbar__nav a {
  color: var(--wa-text-muted);
  text-decoration: none;
}
.wa-toolbar__nav a:hover { color: var(--wa-red); }

.wa-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 64px 24px 96px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ===== Hero ===== */
.wa-hero { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.wa-hero__eyebrow {
  display: inline-block;
  padding: 5px 14px;
  background: var(--wa-red-soft);
  color: var(--wa-red);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--wa-red);
}
.wa-hero__title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--wa-text);
}
.wa-hero__title em {
  font-style: italic;
  color: var(--wa-red);
}
.wa-hero__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--wa-text-muted);
  max-width: 540px;
}

/* ===== Sections ===== */
.wa-section { display: flex; flex-direction: column; gap: 14px; }
.wa-section__num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--wa-red);
}
.wa-section__title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--wa-text);
}
.wa-section__hint {
  margin: 0;
  font-size: 14px;
  color: var(--wa-text-muted);
  line-height: 1.5;
}
.wa-section__hint code {
  background: var(--wa-raised);
  padding: 2px 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--wa-red);
}

/* ===== Steps list ===== */
.wa-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: wa-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-steps li {
  counter-increment: wa-step;
  padding: 14px 18px 14px 56px;
  background: var(--wa-surface);
  border-left: 3px solid var(--wa-red);
  position: relative;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wa-text-muted);
}
.wa-steps li::before {
  content: counter(wa-step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--wa-red);
}
.wa-steps li strong { color: var(--wa-text); }
.wa-steps li a { color: var(--wa-team-a); text-decoration: none; }
.wa-steps li a:hover { text-decoration: underline; }

/* ===== Invite form ===== */
.wa-invite {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.wa-invite--form { flex-direction: column; gap: 12px; }

.wa-invite__input {
  flex: 1;
  padding: 16px 18px;
  background: var(--wa-raised);
  border: 1px solid var(--wa-divider);
  color: var(--wa-text);
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wa-invite__input::placeholder { color: var(--wa-text-faint); }
.wa-invite__input:focus { border-color: var(--wa-red); background: var(--wa-bg); }

.wa-invite__btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: var(--wa-red);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--wa-red-deep);
  transition: background 0.15s ease, transform 0.05s ease;
}
.wa-invite__btn:hover { background: #FF4D5C; }
.wa-invite__btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--wa-red-deep); }

.wa-invite__error {
  margin: 6px 0 0;
  padding: 10px 14px;
  background: var(--wa-red-soft);
  border-left: 2px solid var(--wa-red);
  color: var(--wa-red);
  font-size: 13px;
}
.wa-invite__error--hidden { display: none; }

.wa-invite__sub {
  margin: 0;
  font-size: 12px;
  color: var(--wa-text-faint);
  line-height: 1.6;
}
.wa-invite__sub code {
  background: var(--wa-raised);
  padding: 2px 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  color: var(--wa-red);
}

/* ===== Footer ===== */
.wa-footer {
  padding: 24px;
  border-top: 1px solid var(--wa-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--wa-text-faint);
}
.wa-footer a { color: var(--wa-text-muted); text-decoration: none; margin: 0 4px; }
.wa-footer a:hover { color: var(--wa-red); }

@media (max-width: 560px) {
  .wa-hero__title { font-size: 36px; }
  .wa-invite { flex-direction: column; }
  .wa-footer { flex-direction: column; gap: 8px; text-align: center; }
}
