:root {
  color-scheme: dark;
  --color-background: #0B0B0D;
  --color-background-warm: #23181A;
  --color-surface: #161618;
  --color-surface-raised: #1B1B1E;
  --color-border: #2A2A2E;
  --color-text: #F5F5F7;
  --color-muted: rgba(245, 245, 247, 0.64);
  --color-subtle: rgba(245, 245, 247, 0.42);
  --color-red: #E0323F;
  --color-gold: #D8B25E;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Songti SC", STSong, SimSun, serif;
  font-family: var(--font-sans);
}

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

html {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  height: auto;
  margin: 0;
  background:
    radial-gradient(120% 90% at 76% 42%, var(--color-background-warm) 0%, var(--color-background) 56%);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-gold);
  text-underline-offset: 0.16em;
  text-decoration-color: rgba(216, 178, 94, 0.5);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.site-header,
.page-shell,
.site-footer {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 32px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding-block: 18px;
  border-bottom: 1px solid var(--color-border);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.brand {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.page-shell {
  flex: 1;
  padding-block: 48px 72px;
}

.content-page article,
.legal-page {
  max-width: 780px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  column-gap: clamp(36px, 5vw, 84px);
  align-items: center;
  min-height: min(720px, calc(100vh - 190px));
  padding-block: 38px 64px;
}

.hero-copy-block {
  grid-column: 1;
}

.content-page article {
  padding-block: clamp(32px, 8vw, 92px);
}

.legal-page h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.35;
}

.status-panel {
  margin-top: 36px;
  padding: 26px 28px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.status-panel p {
  margin: 8px 0 0;
}

.legal-support {
  margin-top: 32px;
  color: var(--color-muted);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 16px rgba(224, 50, 63, 0.78);
  content: "";
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.75rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 60px rgba(224, 50, 63, 0.22);
}

.hero h1 {
  font-size: clamp(6rem, 12vw, 10.5rem);
}

.hero-copy {
  max-width: 36rem;
  margin: 26px 0 28px;
  color: rgba(245, 245, 247, 0.9);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.5;
}

.primary-link,
.email-link {
  font-weight: 600;
}

.primary-link {
  justify-self: start;
  padding-inline: 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(22, 22, 24, 0.78);
  color: var(--color-text);
  text-decoration: none;
}

.primary-link:hover {
  border-color: rgba(216, 178, 94, 0.7);
  background: var(--color-surface-raised);
}

.hero-visual {
  position: relative;
  grid-column: 2;
  width: 100%;
  height: min(620px, 68vw);
  min-height: 520px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(460px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 50, 63, 0.28), rgba(224, 50, 63, 0) 68%);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-device {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(190px, 20vw, 250px);
  height: auto;
  border: 2px solid var(--color-border);
  border-radius: clamp(30px, 3.5vw, 46px);
  background: #000000;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.68);
}

.hero-device-reader {
  z-index: 1;
  transform: translate(-104%, -48%) rotate(-9deg);
}

.hero-device-feed {
  z-index: 3;
  width: clamp(215px, 23vw, 284px);
  box-shadow: 0 38px 110px rgba(224, 50, 63, 0.25), 0 30px 72px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -53%) rotate(3deg);
}

.hero-device-profile {
  z-index: 2;
  transform: translate(4%, -42%) rotate(9deg);
}

.content-page article > p:not(.eyebrow):not(.legal-support) {
  max-width: 44rem;
  color: var(--color-muted);
  font-size: 1.125rem;
}

.site-footer {
  padding-block: 24px 32px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer .filing-record {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-bottom: 12px;
}

.filing-record a {
  color: inherit;
}

.filing-record .police-filing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.police-filing img {
  flex: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  z-index: 1;
  padding-inline: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  transform: translateY(-160%);
}

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

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    column-gap: 24px;
  }

  .hero h1 {
    font-size: clamp(5.5rem, 15vw, 8rem);
  }

  .hero-visual {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-shell,
  .site-footer {
    padding-inline: 20px;
  }

  .site-nav {
    gap: 8px 18px;
  }

  .page-shell {
    padding-block: 28px 44px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    padding-block: 28px 22px;
  }

  .hero-copy-block,
  .hero-visual {
    grid-column: 1;
    grid-row: auto;
  }

  .hero .eyebrow {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: clamp(5.25rem, 27vw, 8.5rem);
  }

  .hero-copy {
    margin-block: 20px 24px;
    font-size: 1.25rem;
  }

  .hero-visual {
    width: calc(100% + 20px);
    height: min(112vw, 520px);
    min-height: 390px;
    margin-top: 28px;
    margin-left: -10px;
  }

  .hero-device {
    width: clamp(138px, 42vw, 210px);
    border-radius: clamp(24px, 8vw, 38px);
  }

  .hero-device-feed {
    width: clamp(154px, 47vw, 232px);
  }

  .content-page article {
    padding-block: 34px 64px;
  }

  .content-page h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .status-panel {
    padding: 22px;
  }
}

@media (max-width: 390px) {
  .hero-visual {
    min-height: 360px;
  }

  .hero-device-reader {
    transform: translate(-99%, -48%) rotate(-8deg);
  }

  .hero-device-profile {
    transform: translate(-1%, -42%) rotate(8deg);
  }
}

/* Standalone legal reading pages; homepage and support keep their own theme. */
.legal-document-page {
  color-scheme: light;
  --color-background: #FFFFFF;
  --color-surface: #F7F7F8;
  --color-border: #E5E5E7;
  --color-text: #1C1C1E;
  --color-muted: #626266;
  --color-gold: #175CD3;
  background: var(--color-background);
  font-size: 1.125rem;
  line-height: 1.8;
}

.legal-document-page a {
  color: #175CD3;
  text-decoration-color: currentColor;
}

.legal-document-page .site-header,
.legal-document-page .page-shell,
.legal-document-page .site-footer {
  max-width: 824px;
}

.legal-document-page .site-header {
  padding-block: 8px;
  font-size: 1rem;
}

.legal-document-page .legal-back {
  color: var(--color-text);
  text-decoration: none;
}

.legal-document-page .page-shell {
  padding-block: 28px 48px;
}

.legal-document-page .legal-page {
  max-width: none;
  padding: 0;
}

.legal-document-page .eyebrow {
  margin: 0 0 8px;
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: normal;
}

.legal-document-page .eyebrow::before {
  display: none;
}

.legal-document-page h1 {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.4;
  letter-spacing: normal;
  text-shadow: none;
}

.legal-document-page h2 {
  margin: 32px 0 12px;
  font-family: var(--font-sans);
  font-size: 1.375rem;
  line-height: 1.5;
}

.legal-document-page h3 {
  margin: 24px 0 8px;
  font-size: 1.1875rem;
  line-height: 1.6;
}

.legal-document-page .legal-page > p:not(.eyebrow):not(.legal-support) {
  max-width: none;
  margin-block: 0 16px;
  color: var(--color-text);
  font-size: inherit;
}

.legal-document-page .legal-page a {
  display: inline;
  min-height: 0;
}

.legal-document-page code {
  font-family: inherit;
  font-size: inherit;
}

.legal-document-page ul,
.legal-document-page ol {
  margin-block: 12px 20px;
  padding-inline-start: 1.5em;
}

.legal-document-page li + li {
  margin-top: 8px;
}

.legal-document-page .table-scroll {
  margin-block: 16px 24px;
}

.legal-document-page table {
  min-width: 720px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-document-page th {
  background: var(--color-surface);
}

@media (max-width: 420px) {
  .site-footer .filing-record {
    column-gap: 12px;
    font-size: 0.75rem;
  }
}

.legal-document-page .site-footer .site-nav {
  justify-content: flex-start;
}

.legal-document-page .skip-link {
  z-index: 20;
}

@media (max-width: 720px) {
  .legal-document-page .site-header {
    display: none;
  }
}
