:root {
  color-scheme: dark;
  --fs-navy-950: #061123;
  --fs-navy-900: #0a1930;
  --fs-navy-800: #102748;
  --fs-blue-500: #4ba4ff;
  --fs-blue-600: #238af4;
  --fs-green-500: #39d98a;
  --fs-red-400: #ff8492;
  --fs-text: #f7f9fd;
  --fs-muted: #aebbd0;
  --fs-subtle: #7f90aa;
  --fs-border: rgba(164, 188, 224, 0.18);
  --fs-surface: rgba(15, 31, 56, 0.78);
  --fs-surface-solid: #0f203b;
  --fs-radius-sm: 10px;
  --fs-radius-md: 16px;
  --fs-radius-lg: 24px;
  --fs-shadow: 0 28px 80px rgba(0, 7, 20, 0.3);
  --fs-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--fs-navy-950); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--fs-text);
  background:
    radial-gradient(circle at 88% 8%, rgba(35, 138, 244, 0.2), transparent 31rem),
    radial-gradient(circle at 7% 91%, rgba(75, 164, 255, 0.1), transparent 25rem),
    linear-gradient(135deg, var(--fs-navy-950), var(--fs-navy-900) 56%, #0e2242);
  font-family: var(--fs-font);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--fs-border);
}

.site-logo { display: block; width: min(228px, 58vw); height: auto; }
.site-header-action { color: var(--fs-muted); font-size: 0.9rem; }
.site-header-action button { margin-left: 8px; }

.fs-eyebrow {
  margin: 0 0 10px;
  color: var(--fs-blue-500);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fs-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--fs-radius-sm);
  padding: 11px 18px;
  color: white;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}
.fs-button:disabled { cursor: wait; opacity: 0.58; }
.fs-button-primary {
  background: linear-gradient(180deg, #3398fc, #197cde);
  box-shadow: 0 12px 28px rgba(23, 118, 216, 0.22);
}
.fs-button-secondary { border-color: var(--fs-border); background: rgba(17, 37, 68, 0.78); }
.fs-button-quiet { min-height: 38px; padding: 7px 11px; color: var(--fs-muted); background: transparent; }

.fs-field { display: grid; gap: 8px; }
.fs-field label, .fs-field legend { font-size: 0.87rem; font-weight: 760; }
.fs-field label span { margin-left: 5px; color: var(--fs-blue-500); font-size: 0.66rem; text-transform: uppercase; }
.fs-field input, .fs-field select {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--fs-border);
  border-radius: 11px;
  outline: none;
  padding: 11px 13px;
  color: var(--fs-text);
  background: rgba(6, 17, 35, 0.74);
}
.fs-field input:focus, .fs-field select:focus {
  border-color: var(--fs-blue-500);
  box-shadow: 0 0 0 3px rgba(75, 164, 255, 0.12);
}
.fs-field-help { margin: 0; color: var(--fs-subtle); font-size: 0.78rem; line-height: 1.45; }
.fs-field-help.success { color: var(--fs-green-500); }
.fs-field-help.error { color: var(--fs-red-400); }

.fs-notice {
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  padding: 13px 15px;
  color: var(--fs-muted);
  background: rgba(10, 25, 48, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}
.fs-notice.error { border-color: rgba(255, 132, 146, 0.35); color: #ffc5cc; background: rgba(255, 132, 146, 0.08); }
.fs-notice.success { border-color: rgba(57, 217, 138, 0.3); color: #b9f5d7; background: rgba(57, 217, 138, 0.08); }

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 76px; }
  .site-header-action > span { display: none; }
}
