:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-deep: #08080a;
  --surface: rgba(19, 20, 23, 0.92);
  --surface-strong: #18191d;
  --ink: #f3f3f0;
  --muted: #a8abb4;
  --faint: #6d707a;
  --line: rgba(243, 243, 240, 0.16);
  --line-strong: rgba(243, 243, 240, 0.38);
  --accent: #ff3da6;
  --accent-2: #ffd6eb;
  --ok: #86f5c6;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max-width: 1180px;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 61, 166, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: var(--font-body);
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 94%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.7%, rgba(255, 61, 166, 0.18) 49.7% 50.3%, transparent 50.3% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%);
  opacity: 0.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

video {
  background: #050506;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 12px;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

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

.site-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  margin-bottom: 18px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(255, 61, 166, 0.18), transparent 34%),
    rgba(14, 14, 16, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-transform: uppercase;
}

.brand-copy strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a,
.specimen-links a,
.text-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.site-nav a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.specimen-links a:hover,
.text-link:hover {
  color: var(--accent-2);
  border-color: rgba(255, 61, 166, 0.5);
  background: rgba(255, 61, 166, 0.09);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.language-option,
.header-contact,
.button,
.contact-close {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-mono);
  font-weight: 700;
}

.language-option {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
}

.language-option.is-active {
  color: var(--bg);
  background: var(--accent);
}

.header-contact,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.74rem;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-contact:hover,
.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.button-secondary:hover,
.header-contact:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(255, 61, 166, 0.1);
}

.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 38%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 44px;
  opacity: 0.62;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 18px;
  align-items: stretch;
  min-height: 560px;
}

.hero-copy,
.page-hero,
.policy-document {
  padding: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
}

.archive-meta,
.frame-label,
.section-heading,
.specimen-index,
.tag-row,
.panel-code,
.mail-line span,
.contact-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.archive-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-2);
  font-size: 0.78rem;
}

.archive-meta span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.hero-copy h1,
.page-hero h1,
.policy-head h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 5.65rem;
  line-height: 0.92;
  text-transform: uppercase;
}

.page-hero h1,
.policy-head h1 {
  max-width: 13ch;
  font-size: 4.8rem;
}

.identity-line {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-lead,
.page-hero p,
.detail-panel p,
.record-panel span,
.policy-head p,
.policy-section p,
.policy-section li,
.faq-item p,
.feature-item p {
  color: var(--muted);
  max-width: 68ch;
}

.hero-lead,
.page-hero p,
.policy-head p {
  font-size: 1.08rem;
}

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

.media-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  padding: 14px;
}

.frame-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.72rem;
}

.media-card video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) - 2px);
  filter: contrast(1.08) saturate(1.02);
}

.section-block {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

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

.specimen-card {
  display: grid;
  grid-template-columns: 190px 1fr 210px;
  gap: 24px;
  align-items: stretch;
  padding: 18px;
}

.specimen-card:hover {
  border-color: rgba(255, 61, 166, 0.58);
}

.specimen-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent);
  font-size: 0.76rem;
}

.status-chip,
.tag-row span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--bg);
  background: var(--ok);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.specimen-main h2 {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.specimen-main p {
  margin-bottom: 18px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  color: var(--accent-2);
  background: rgba(255, 61, 166, 0.12);
  border-color: rgba(255, 61, 166, 0.4);
}

.specimen-links {
  display: grid;
  align-content: center;
  gap: 10px;
}

.specimen-links a,
.text-link {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.record-panel {
  margin-top: 18px;
  padding: 24px;
}

.record-panel p,
.panel-code {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
}

.record-panel h2,
.detail-panel h2,
.policy-section h2,
.faq-item h2,
.feature-item h2 {
  font-family: var(--font-mono);
  line-height: 1.16;
}

.record-panel h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.page-hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

.feature-item {
  min-height: 220px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-item:nth-child(3n) {
  border-right: 0;
}

.feature-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.feature-item > span {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 800;
}

.feature-item h2 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  text-transform: uppercase;
}

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

.detail-panel {
  padding: 22px;
}

.detail-panel h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.accent-panel {
  border-color: rgba(255, 61, 166, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 61, 166, 0.16), transparent 48%),
    var(--surface);
}

.support-layout {
  margin-bottom: 18px;
}

.mail-line {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
}

.mail-line span {
  color: var(--accent);
  font-size: 0.72rem;
}

.mail-line a,
.site-footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.mail-line a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.faq-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h2 {
  margin: 0;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
}

.policy-document {
  padding: 0;
}

.policy-head,
.policy-section {
  position: relative;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

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

.policy-section h2 {
  color: var(--ink);
  font-size: 1.28rem;
}

.policy-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.2rem;
}

.policy-section li::marker {
  color: var(--accent);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  color: var(--muted);
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer > div:last-child {
  justify-items: end;
  text-align: right;
}

.site-footer strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.filing-list {
  justify-items: center;
  text-align: center;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.contact-dialog {
  position: relative;
  width: min(100%, 460px);
  padding: 24px;
  color: var(--ink);
  background: #111216;
  border: 1px solid rgba(255, 61, 166, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--muted);
}

.contact-close:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.contact-kicker {
  color: var(--accent);
  font-size: 0.78rem;
}

.contact-dialog h2 {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 1.65rem;
}

.contact-value {
  color: var(--accent-2);
  font-family: var(--font-mono);
}

.contact-copy {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: space-between;
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .hero-copy,
  .media-card {
    min-height: auto;
  }

  .media-card video {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .feature-item:nth-child(2n) {
    border-right: 0;
  }

  .feature-item:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .feature-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .site-footer > div,
  .site-footer > div:last-child,
  .filing-list {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 10px;
  }

  .site-header {
    position: static;
  }

  .hero-copy,
  .page-hero,
  .policy-head,
  .policy-section {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 3.55rem;
  }

  .page-hero h1,
  .policy-head h1 {
    font-size: 3rem;
  }

  .archive-meta,
  .section-heading,
  .frame-label {
    flex-direction: column;
  }

  .hero-actions,
  .header-actions {
    align-items: stretch;
  }

  .header-actions,
  .language-switcher,
  .header-contact,
  .button {
    width: 100%;
  }

  .language-option {
    flex: 1;
  }

  .button {
    min-height: 46px;
  }

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

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

  .feature-item,
  .feature-item:nth-child(2n),
  .feature-item:nth-child(3n),
  .feature-item:nth-last-child(-n + 2),
  .feature-item:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 3rem;
  }

  .page-hero h1,
  .policy-head h1 {
    font-size: 2.45rem;
  }

  .specimen-main h2 {
    font-size: 1.8rem;
  }
}

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