:root {
  color-scheme: dark;
  --background: #07101e;
  --background-raised: #0b1728;
  --surface: #0f1e35;
  --surface-elevated: #19263e;
  --surface-selected: #203a61;
  --primary: #4b84e6;
  --primary-light: #80a9f0;
  --text: #f7f9fc;
  --text-secondary: #cfd3db;
  --text-muted: #929daf;
  --border: rgba(255, 255, 255, 0.1);
  --success: #55cfa1;
  --danger: #ff667a;
  --warning: #ffb65c;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(75, 132, 230, 0.22), transparent 34rem),
    radial-gradient(circle at 100% 30%, rgba(255, 116, 72, 0.08), transparent 28rem),
    var(--background);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #b7cef8;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(128, 169, 240, 0.58);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 2px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: linear-gradient(145deg, #5c96f2, #376bc4);
  box-shadow: 0 10px 28px rgba(75, 132, 230, 0.3);
  color: white;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 22px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-elevated);
  color: var(--text);
}

.card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(25, 38, 62, 0.94), rgba(15, 30, 53, 0.96));
  box-shadow: var(--shadow);
}

.document {
  padding: clamp(26px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: 16px;
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 820;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 4vw, 28px);
  font-weight: 760;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 720;
}

p,
li {
  color: var(--text-secondary);
}

.lede {
  max-width: 680px;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(18px, 3vw, 21px);
  line-height: 1.55;
}

.meta {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.document-section {
  padding-top: 38px;
  margin-top: 38px;
  border-top: 1px solid var(--border);
}

.document-section p:last-child,
.document-section ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.3em;
}

li + li {
  margin-top: 9px;
}

.callout {
  padding: 20px 22px;
  margin: 28px 0 0;
  border: 1px solid rgba(75, 132, 230, 0.32);
  border-radius: 20px;
  background: rgba(75, 132, 230, 0.1);
}

.callout p {
  margin: 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.link-card {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(7, 16, 30, 0.4);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover {
  border-color: rgba(128, 169, 240, 0.52);
  background: var(--surface-selected);
  color: var(--text);
  transform: translateY(-2px);
}

.link-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.link-card span {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.link-arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-light);
  font-size: 22px;
}

.form-intro {
  max-width: 650px;
}

.form-grid {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.form-section {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(7, 16, 30, 0.34);
}

.form-section-heading p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.optional {
  color: var(--text-muted);
  font-weight: 520;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: var(--surface-elevated);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 14px) 23px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}

input::placeholder,
textarea::placeholder {
  color: #8f9aab;
}

.field-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 28px;
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(75, 132, 230, 0.28);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 760;
  transition: filter 180ms ease, transform 180ms ease, opacity 180ms ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.status {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
}

.status.is-visible {
  display: block;
}

.status.success {
  border: 1px solid rgba(85, 207, 161, 0.34);
  background: rgba(85, 207, 161, 0.11);
  color: #b9f1dc;
}

.status.error {
  border: 1px solid rgba(255, 102, 122, 0.35);
  background: rgba(255, 102, 122, 0.1);
  color: #ffc3cb;
}

.privacy-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 4px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    padding-right: 9px;
    padding-left: 9px;
    text-align: center;
  }

  .document {
    padding: 26px 20px;
    border-radius: 24px;
  }

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

  .link-card {
    min-height: 150px;
  }

  .form-section {
    padding: 20px 16px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
