* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--cream-100);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grad-aurora);
  color: var(--navy-950);
  box-shadow: var(--shadow-tight);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(46, 111, 242, 0.55);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(246, 240, 221, 0.24);
  color: var(--cream-100);
}

.btn-ghost:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid rgba(246, 240, 221, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-tight);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-family: var(--font-mono);
}

.field input,
.field select {
  background: rgba(6, 11, 24, 0.55);
  border: 1px solid rgba(246, 240, 221, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  color: var(--cream-100);
  font-size: 0.96rem;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(255, 202, 44, 0.15);
}

.field-error {
  color: var(--danger);
  font-size: 0.78rem;
  min-height: 1em;
}

.toast-stack {
  position: fixed;
  top: 1.4rem;
  right: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 999;
}

.toast {
  background: var(--navy-800);
  border: 1px solid rgba(246, 240, 221, 0.16);
  border-left: 4px solid var(--gold-400);
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  box-shadow: var(--shadow-tight);
  animation: toast-in 0.25s ease;
  max-width: 320px;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

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

::selection {
  background: var(--gold-400);
  color: var(--navy-950);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--navy-950);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 999px;
}

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