:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #09090b;
  --surface-raised: #101014;
  --text: #f7f7f8;
  --muted: #aaaab3;
  --subtle: #7e7e88;
  --line: #25252b;
  --line-strong: #3a3a42;
  --accent: #ff3195;
  --accent-hover: #ff5aab;
  --accent-soft: #2b0719;
  --success: #60e3aa;
  --max: 1180px;
  --reading: 72ch;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  background: #000000;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) #000000;
}
body {
  min-height: 100vh;
  margin: 0;
  background: #000000;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #ffffff; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #000000;
  font-weight: 750;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 3rem), var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: #000000;
}
.topbar .wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 112px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
}
.brand-label {
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.navlinks a {
  position: relative;
  padding: 0.6rem 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.navlinks a::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.25rem;
  left: 0.75rem;
  height: 1px;
  background: transparent;
}
.navlinks a:hover,
.navlinks a[aria-current="page"] { color: #ffffff; }
.navlinks a[aria-current="page"]::after { background: var(--accent); }

main { padding-bottom: 6rem; }
.breadcrumb {
  padding-top: 1.35rem;
  color: var(--subtle);
  font-size: 0.84rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #ffffff; }

.hero {
  border-bottom: 1px solid var(--line);
}
.hero > .wrap {
  min-height: min(660px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(18rem, 0.58fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 7rem);
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}
.hero-copy { max-width: 800px; }
h1,
h2,
h3 {
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 760;
}
h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 730;
}
h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 720;
}
.hero-copy > p {
  max-width: 66ch;
  margin: 1.7rem 0 0;
  color: #c5c5cc;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--subtle);
  font-size: 0.8rem;
}
.doc-meta span,
.doc-meta time { display: inline-flex; align-items: center; }
.doc-meta span:not(:first-child)::before,
.doc-meta time::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 1.25rem;
  border-radius: 50%;
  background: var(--line-strong);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: transparent;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, color 180ms ease-out;
}
.btn.primary { border-color: var(--accent); background: var(--accent); color: #000000; }
.btn:hover { border-color: #ffffff; background: #ffffff; color: #000000; }
.btn.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.signal-card {
  align-self: end;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.signal-title {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.signal-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.signal-row:last-child { border-bottom: 0; }
.signal-row dt,
.signal-row dd { margin: 0; }
.signal-row dt { color: var(--subtle); }
.signal-row dd { color: #dddde2; font-weight: 680; overflow-wrap: anywhere; text-align: right; }
.signal-row .online { color: var(--success); }

.section {
  padding: clamp(4.25rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.section > .wrap {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.section > .wrap > :not(h2) { grid-column: 2; }
.section p,
.section li,
.section dd { color: #c7c7ce; }
.section p { max-width: var(--reading); margin: 0; }
.section p + p { margin-top: 1rem; }
.section a:not(.btn) { color: #ff94c7; }
.section a:not(.btn):hover { color: #ffffff; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.feature {
  min-width: 0;
  padding: 1.5rem 1.3rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(even) {
  padding-right: 0;
  padding-left: 1.3rem;
  border-left: 1px solid var(--line);
}
.feature p { color: var(--muted); font-size: 0.95rem; }

.answer-panel {
  padding: 1.4rem 1.5rem;
  border: 1px solid #5a1536;
  border-radius: 0.75rem;
  background: var(--accent-soft);
}
.answer-panel strong { color: #ffffff; }
.answer-panel p { color: #e9c8d8; }
.contact-action { margin-top: 1.25rem !important; }

.definition-list,
.process-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.definition-list > div,
.process-list > li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1.58fr);
  gap: 1.25rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.definition-list dt,
.definition-list dd { margin: 0; }
.definition-list dt,
.process-list strong { color: #ffffff; font-weight: 720; }
.process-list { padding: 0; list-style: none; counter-reset: process; }
.process-list > li { counter-increment: process; }
.process-list > li::before {
  content: counter(process, decimal-leading-zero);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.process-list > li > div { grid-column: 2; }
.process-list p { margin-top: 0.3rem; color: var(--muted); }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
table { width: 100%; min-width: 600px; border-collapse: collapse; }
caption { padding: 0 0 0.75rem; color: var(--subtle); font-size: 0.82rem; text-align: left; caption-side: top; }
th,
td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface); color: #ffffff; font-size: 0.8rem; letter-spacing: 0.03em; }
td { color: #c7c7ce; }
tr:last-child td { border-bottom: 0; }

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  top: 1rem;
  right: 0;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2.5rem 1.2rem 0; color: var(--muted); }

.related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.related a {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 1rem 2.25rem 1rem 0;
  border-bottom: 1px solid var(--line);
  color: #d8d8df !important;
  font-weight: 680;
  text-decoration: none;
}
.related a:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.related a::after { content: "→"; position: absolute; right: 0.75rem; color: var(--accent); }
.related a:hover { color: #ffffff !important; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 3.5rem;
  background: #000000;
  color: var(--subtle);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 90px; height: auto; }
.footer-links { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 960px) {
  .hero > .wrap { grid-template-columns: 1fr; min-height: auto; align-items: start; gap: 3.5rem; }
  .section > .wrap { grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr); gap: 3rem; }
  .navlinks { max-width: 62vw; overflow-x: auto; }
}

@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 2rem), var(--max)); }
  .topbar .wrap { min-height: auto; align-items: flex-start; flex-direction: column; gap: 0.75rem; padding: 0.9rem 0 0.65rem; }
  .brand-logo { width: 96px; max-height: 32px; }
  .brand-label { font-size: 0.68rem; }
  .navlinks { width: 100%; max-width: none; padding-bottom: 0.15rem; }
  .navlinks a { padding: 0.5rem 0.65rem; }
  .navlinks a:first-child { padding-left: 0; }
  .navlinks a:first-child::after { left: 0; }
  .breadcrumb { padding-top: 1rem; }
  .hero > .wrap { padding-top: 4.25rem; padding-bottom: 3.75rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .doc-meta { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .doc-meta span:not(:first-child)::before,
  .doc-meta time::before { display: none; }
  .cta { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .section { padding: 4rem 0; }
  .section > .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .section > .wrap > :not(h2) { grid-column: 1; }
  h2 { max-width: 20ch; }
  .features,
  .related { grid-template-columns: 1fr; }
  .feature,
  .feature:nth-child(even),
  .related a,
  .related a:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
  .related a { padding-right: 2.25rem; }
  .definition-list > div,
  .process-list > li { grid-template-columns: 1fr; gap: 0.35rem; }
  .process-list > li > div { grid-column: 1; }
  .signal-row { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
