:root {
  color-scheme: dark;
  --canvas: #070a12;
  --canvas-raised: #0b1020;
  --surface: rgba(20, 28, 48, 0.82);
  --surface-strong: #151d30;
  --line: rgba(148, 163, 184, 0.2);
  --text: #f5f7ff;
  --muted: #aeb8ce;
  --accent: #4f7cff;
  --accent-bright: #72a0ff;
  --mint: #16d3b3;
  --danger: #ff7a90;
  --success: #61e3b4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -10%, rgba(79, 124, 255, 0.28), transparent 38rem),
    radial-gradient(circle at 92% 20%, rgba(22, 211, 179, 0.12), transparent 30rem),
    var(--canvas);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(114, 160, 255, 0.72);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner,
.page,
.footer-inner {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 8px 28px rgba(52, 93, 225, 0.38);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

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

.page {
  padding-block: 72px 88px;
}

.hero {
  max-width: 760px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
}

.lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 21px);
}

.effective-date {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
}

.document,
.support-layout {
  display: grid;
  gap: 18px;
}

.section-card,
.link-card,
.support-card,
.notice {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-card,
.support-card {
  padding: clamp(22px, 5vw, 34px);
}

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

.section-card p,
.section-card li,
.support-card p {
  color: var(--muted);
}

.section-card strong,
.support-card strong {
  color: var(--text);
}

ul {
  padding-left: 1.25em;
}

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

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover {
  border-color: rgba(114, 160, 255, 0.54);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.link-card span {
  color: var(--muted);
  font-size: 15px;
}

.link-arrow {
  color: var(--mint);
  font-size: 24px;
}

.notice {
  padding: 20px 22px;
  border-color: rgba(22, 211, 179, 0.26);
  background: rgba(22, 211, 179, 0.07);
}

.notice p {
  margin: 0;
  color: #c9f8e9;
}

.support-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  align-items: start;
}

.support-aside {
  position: sticky;
  top: 92px;
}

.form-group + .form-group {
  margin-top: 22px;
}

.form-group label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

select,
textarea,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  background: #0b1120;
  font: inherit;
}

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

select:hover,
textarea:hover,
input:hover {
  border-color: rgba(114, 160, 255, 0.55);
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, #456fe7, #2f60e7 62%, #1aa99b);
  box-shadow: 0 14px 34px rgba(44, 91, 220, 0.32);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary-button:hover {
  filter: brightness(1.08);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.35);
  opacity: 0.68;
}

.form-status {
  min-height: 52px;
  margin: 16px 0 0;
  padding: 13px 15px;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.form-status[data-state="success"] {
  color: var(--success);
  background: rgba(97, 227, 180, 0.08);
}

.form-status[data-state="error"] {
  color: var(--danger);
  background: rgba(255, 122, 144, 0.08);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: 12px 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
  }

  .page {
    padding-block: 48px 64px;
  }

  .link-grid,
  .support-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .support-aside {
    position: static;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 24px;
  }
}

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

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