:root {
  color-scheme: dark;
  --bg: #020b16;
  --surface: #071525;
  --surface-strong: #0b1d33;
  --border: #1b344d;
  --border-bright: #2e5e9e;
  --text: #f7f9fc;
  --muted: #b7c2d0;
  --blue: #1e88ff;
  --blue-soft: #4faeff;
  --green: #4cd964;
  --amber: #f5a623;
  --red: #ff5252;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--blue-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: #80c4ff;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 11, 22, 0.92);
  border-bottom: 1px solid rgba(46, 94, 158, 0.42);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--content));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-soft);
}

.hero {
  position: relative;
  min-height: calc(100svh - 108px);
  display: grid;
  align-items: end;
  background-image: url("/genos-auth-background.jpg");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(2, 11, 22, 0.58);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #d5deea;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.button-secondary {
  background: rgba(7, 21, 37, 0.76);
}

.button:hover,
.button:focus-visible {
  color: #fff;
  border-color: var(--blue-soft);
  filter: brightness(1.08);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: #04101d;
  border-block: 1px solid rgba(27, 52, 77, 0.7);
}

.shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

.link-card {
  min-height: 185px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--surface-strong);
  border-color: var(--border-bright);
  color: var(--text);
}

.link-card span {
  display: block;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-card h3 {
  margin: 10px 0 8px;
  font-size: 23px;
}

.link-card p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 76px 0 58px;
  background: #04101d;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.updated {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
}

.legal-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 54px 0 80px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 98px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--blue-soft);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: 100px;
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(27, 52, 77, 0.72);
}

.legal-content section:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 14px;
  font-size: 27px;
  line-height: 1.25;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 19px;
}

.legal-content p,
.legal-content li {
  color: #d2dae5;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.notice {
  padding: 18px 20px;
  background: rgba(30, 136, 255, 0.08);
  border: 1px solid rgba(79, 174, 255, 0.45);
  border-radius: 7px;
  color: #dcecff;
}

.notice-warning {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.52);
}

.form-shell {
  max-width: 760px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

label,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  background: #03101d;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(30, 136, 255, 0.55);
  outline-offset: 1px;
  border-color: var(--blue);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.submit-button {
  min-height: 48px;
  padding: 0 20px;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 7px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: #0f78e8;
}

.site-footer {
  padding: 36px 0;
  background: #010812;
  border-top: 1px solid var(--border);
}

.footer-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.footer-shell p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue-soft);
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 62px;
    align-items: flex-start;
    padding: 11px 0;
  }

  .nav-links {
    max-width: 65vw;
    gap: 15px;
    overflow-x: auto;
    padding: 8px 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: calc(100svh - 92px);
    background-position: 58% center;
  }

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

  .field-full {
    grid-column: auto;
  }

  .legal-shell {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-toc {
    position: static;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 7px;
    columns: 2;
  }

  .legal-toc strong {
    column-span: all;
  }

  .footer-shell {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    max-width: calc(100vw - 88px);
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 54px 0 42px;
  }

  .legal-shell {
    padding-top: 34px;
  }

  .legal-toc {
    columns: 1;
  }

  .form-shell {
    padding: 18px;
  }
}

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