:root {
  color-scheme: dark;
  --bg: #030716;
  --surface: rgba(16, 25, 55, 0.76);
  --surface-strong: #111a37;
  --border: rgba(176, 198, 255, 0.18);
  --text: #f7f8ff;
  --muted: #b9c3dd;
  --blue: #39bfff;
  --violet: #a67cff;
  --warning: #ffd58a;
  --max: 72rem;
  --reading: 48rem;
  --radius: 1.4rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(42, 92, 255, 0.26), transparent 36rem),
    radial-gradient(circle at 90% 12%, rgba(133, 71, 255, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #78d5ff;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #b6eaff;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 0.35rem;
  outline: 0.2rem solid #ffffff;
  outline-offset: 0.25rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  border-radius: 0.65rem;
  background: #ffffff;
  color: #071127;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 7, 22, 0.74);
  backdrop-filter: blur(22px);
}

.nav {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 4.8rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  box-shadow: 0 0 1.5rem rgba(57, 191, 255, 0.3);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: 31rem;
  padding: 5rem 0 4rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(14rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.6rem, 8vw, 5.7rem);
  letter-spacing: -0.055em;
}

.page-title h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
}

p,
ul,
ol {
  margin-top: 0;
}

.lede {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(120deg, #1baeea, #7255f7);
  box-shadow: 0 0.7rem 2.6rem rgba(50, 136, 255, 0.25);
}

.button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-art {
  width: min(100%, 21rem);
  margin: 0 auto;
  border: 1px solid rgba(146, 184, 255, 0.22);
  border-radius: 24%;
  box-shadow: 0 2rem 5rem rgba(0, 70, 255, 0.28), 0 0 4rem rgba(157, 80, 255, 0.16);
}

.grid {
  display: grid;
  padding: 0 0 5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 33, 72, 0.84), rgba(10, 17, 41, 0.84));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.card {
  display: block;
  min-height: 12rem;
  padding: 1.35rem;
  color: var(--text);
  text-decoration: none;
}

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

.card:hover {
  border-color: rgba(120, 213, 255, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-title {
  max-width: var(--reading);
  padding: 5rem 0 2.5rem;
}

.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.prose {
  max-width: var(--reading);
  padding-bottom: 5rem;
}

.prose section {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}

.prose section:first-child {
  border-top: 0;
}

.prose p,
.prose li {
  color: #d3daf0;
}

.prose strong {
  color: var(--text);
}

.prose li + li {
  margin-top: 0.4rem;
}

.notice {
  margin: 1.2rem 0;
  padding: 1.15rem 1.25rem;
  border-color: rgba(255, 213, 138, 0.35);
  background: rgba(86, 61, 18, 0.28);
}

.notice p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  padding: 1.4rem;
}

.contact-panel address {
  color: #d3daf0;
  font-style: normal;
}

.contact-panel p:last-child,
.contact-panel address:last-child {
  margin-bottom: 0;
}

details {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 750;
}

details > *:not(summary) {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 5, 16, 0.65);
}

.footer-inner {
  display: flex;
  width: min(calc(100% - 2rem), var(--max));
  min-height: 7rem;
  margin: 0 auto;
  padding: 1.5rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.error-page {
  display: grid;
  min-height: calc(100vh - 12rem);
  padding: 5rem 0;
  place-items: center;
  text-align: center;
}

.error-page .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-code {
  margin: 0;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  background-clip: text;
  color: transparent;
  font-size: clamp(5rem, 20vw, 11rem);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

@media (max-width: 48rem) {
  .nav {
    padding: 0.8rem 0;
    align-items: flex-start;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 0.45rem 0.55rem;
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0;
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(70vw, 17rem);
  }

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

  .card {
    min-height: 0;
  }

  .page-title {
    padding-top: 3.5rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button,
  .card {
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
  }
}

@media (min-width: 90rem) {
  body {
    font-size: 1.12rem;
  }

  .nav,
  .footer-inner {
    min-height: 5.8rem;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header,
  .site-footer,
  .actions {
    display: none;
  }

  main,
  .prose {
    width: 100%;
    max-width: none;
  }

  .prose p,
  .prose li,
  .meta {
    color: #222222;
  }

  a {
    color: #111111;
  }
}

