:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #0b0f19;
  --panel: rgba(16, 22, 35, 0.82);
  --panel-solid: #101623;
  --panel-high: #151d2d;
  --line: rgba(154, 174, 211, 0.16);
  --line-strong: rgba(91, 231, 255, 0.35);
  --text: #f3f7ff;
  --muted: #9aa9c1;
  --muted-high: #c8d2e3;
  --cyan: #5be7ff;
  --cyan-soft: rgba(91, 231, 255, 0.12);
  --violet: #9d7bff;
  --violet-soft: rgba(157, 123, 255, 0.13);
  --lime: #b9f66d;
  --danger: #ff8f9c;
  --max: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: var(--font-primary);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 2%, rgba(91, 231, 255, 0.11), transparent 26rem),
    radial-gradient(circle at 95% 14%, rgba(157, 123, 255, 0.11), transparent 32rem),
    var(--bg);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

::selection {
  color: #061015;
  background: var(--cyan);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--cyan);
}

img {
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #061015;
  background: var(--cyan);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 9, 15, 0.72);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 9, 15, 0.92);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(91, 231, 255, 0.12), rgba(157, 123, 255, 0.16));
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(91, 231, 255, 0.06);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 11px;
  color: var(--muted-high);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a[aria-current="page"]::after {
  display: block;
  width: 16px;
  height: 2px;
  margin: 5px auto -5px;
  background: var(--cyan);
  border-radius: 999px;
  content: "";
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 4px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  padding: 92px 0 58px;
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: 45px;
  left: 50%;
  width: min(760px, 80vw);
  height: 350px;
  border: 1px solid rgba(91, 231, 255, 0.08);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  transform: translateX(-50%) perspective(500px) rotateX(67deg);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 64px;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
}

.eyebrow,
.section-kicker,
.mini-label {
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  background: var(--cyan-soft);
  border-radius: 999px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(185, 246, 109, 0.8);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(105deg, var(--cyan) 5%, #a9f5ff 48%, var(--violet) 95%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted-high);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  color: #061015;
  background: var(--cyan);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(91, 231, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  color: #061015;
  box-shadow: 0 15px 40px rgba(91, 231, 255, 0.24);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.arrow {
  font-family: var(--font-primary);
  transition: transform 160ms ease;
}

.button:hover .arrow { transform: translateX(3px); }

.hero-note {
  display: flex;
  max-width: 650px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-note::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 0.53em;
  background: var(--violet);
  border-radius: 50%;
  content: "";
}

.system-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(18, 27, 43, 0.96), rgba(10, 14, 23, 0.96));
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.system-panel::before {
  position: absolute;
  top: -60px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: var(--violet);
  border-radius: 50%;
  content: "";
  filter: blur(90px);
  opacity: 0.2;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 7px;
  height: 7px;
  background: #3c485d;
  border-radius: 50%;
}

.panel-dots span:first-child { background: var(--danger); }
.panel-dots span:nth-child(2) { background: #ffd166; }
.panel-dots span:nth-child(3) { background: var(--lime); }

.panel-title {
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.youtube-attribution {
  position: relative;
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.72);
  grid-template-columns: minmax(118px, 145px) minmax(0, 1fr);
}

.youtube-brand-link {
  display: block;
  padding: 2px 5px;
  border-radius: 8px;
}

.youtube-brand-link:hover,
.youtube-brand-link:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.youtube-brand-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.youtube-brand-link img {
  display: block;
  width: 100%;
  height: auto;
}

.youtube-attribution-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.youtube-attribution-copy p + p {
  margin-top: 2px;
}

.youtube-attribution-copy strong {
  color: var(--text);
  font-size: 0.72rem;
}

.youtube-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin-top: 5px;
}

.youtube-policy-links a {
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.58rem;
  text-decoration: none;
}

.youtube-policy-links a:hover {
  text-decoration: underline;
}

.panel-body {
  padding: 22px;
}

.panel-stats {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.panel-stat {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 13px;
}

.panel-stat small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.62rem;
}

.panel-stat strong {
  font-family: var(--font-primary);
  font-size: 1.05rem;
}

.panel-stat strong.cyan { color: var(--cyan); }
.panel-stat strong.violet { color: #b89fff; }
.panel-stat strong.lime { color: var(--lime); }

.signal-map {
  position: relative;
  display: grid;
  min-height: 235px;
  margin-top: 16px;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(91, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 231, 255, 0.035) 1px, transparent 1px),
    rgba(4, 8, 14, 0.55);
  background-size: 24px 24px;
  border-radius: 16px;
}

.orbit {
  position: absolute;
  width: 155px;
  height: 155px;
  border: 1px solid rgba(91, 231, 255, 0.2);
  border-radius: 50%;
}

.orbit::after {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--cyan);
  content: "";
}

.orbit-two {
  width: 92px;
  height: 92px;
  border-color: rgba(157, 123, 255, 0.28);
}

.orbit-two::after {
  top: auto;
  right: 1px;
  bottom: 16px;
  left: auto;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.signal-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #101b27;
  border-radius: 18px;
  box-shadow: 0 0 34px rgba(91, 231, 255, 0.12);
  font-family: var(--font-primary);
  font-weight: 800;
}

.signal-label {
  position: absolute;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted-high);
  background: rgba(12, 17, 27, 0.9);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.58rem;
}

.signal-label.one { top: 24px; left: 20px; }
.signal-label.two { top: 58px; right: 17px; }
.signal-label.three { right: 30px; bottom: 25px; }
.signal-label.four { bottom: 45px; left: 18px; }

.status-strip {
  padding-bottom: 90px;
}

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

.status-item {
  min-width: 0;
  padding: 19px 20px;
}

.status-item + .status-item {
  border-left: 1px solid var(--line);
}

.status-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-item strong {
  font-size: 0.88rem;
}

.section {
  padding: 96px 0;
}

.section-alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 21, 33, 0.68), rgba(10, 13, 21, 0.5));
}

.section-heading {
  display: grid;
  margin-bottom: 46px;
  gap: 22px;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  justify-content: space-between;
}

.section-kicker {
  display: block;
  margin-bottom: 12px;
}

.section-heading h2,
.content-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.section-heading > p {
  align-self: end;
  margin-bottom: 3px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.info-card,
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
}

.feature-card::after {
  position: absolute;
  right: -25px;
  bottom: -45px;
  width: 100px;
  height: 100px;
  background: var(--cyan);
  border-radius: 50%;
  content: "";
  filter: blur(65px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.feature-card:hover::after { opacity: 0.12; }

.card-index {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.66rem;
}

.feature-card h3,
.info-card h3,
.contact-card h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.info-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.workflow {
  display: grid;
  align-items: stretch;
  gap: 9px;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
}

.workflow-step {
  position: relative;
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(21, 29, 45, 0.95), rgba(12, 16, 26, 0.92));
  border-radius: 13px;
}

.workflow-step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -10px;
  width: 10px;
  color: var(--cyan);
  content: "›";
  font-family: var(--font-primary);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.workflow-step span {
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.62rem;
}

.workflow-step strong {
  font-size: 0.78rem;
  line-height: 1.35;
}

.workflow-notes {
  display: grid;
  margin-top: 26px;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.check-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 13px;
  color: var(--muted-high);
  font-size: 0.87rem;
}

.check-note span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #061015;
  background: var(--lime);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.api-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 0.95fr;
}

.api-copy,
.api-principles {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}

.api-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.api-copy > p {
  color: var(--muted-high);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted-high);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.65rem;
}

.principle-list {
  display: grid;
  gap: 0;
}

.principle {
  display: grid;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 28px 1fr;
}

.principle:last-child { border-bottom: 0; }

.principle span {
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.65rem;
}

.principle strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.9rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.official-links {
  display: grid;
  margin-top: 22px;
  gap: 8px;
}

.official-links a,
.inline-link {
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
}

.screenshot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.screenshot-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-sm);
}

.shot-media {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 231, 255, 0.08), transparent 32%),
    linear-gradient(rgba(91, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 231, 255, 0.035) 1px, transparent 1px),
    #090d16;
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.shot-link {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.shot-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.shot-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
}

.shot-media.has-image img { opacity: 1; }
.shot-media.has-image .shot-placeholder { display: none; }

.shot-placeholder {
  display: grid;
  width: min(78%, 340px);
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(91, 231, 255, 0.32);
  color: var(--muted);
  background: rgba(11, 15, 25, 0.74);
  border-radius: 14px;
  text-align: center;
}

.shot-placeholder span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.screenshot-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
}

.screenshot-card figcaption strong { font-size: 0.9rem; }
.screenshot-card figcaption code { color: var(--muted); font-size: 0.68rem; }

.cta-band {
  padding: 40px 0 100px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 90% 0%, rgba(157, 123, 255, 0.17), transparent 37%),
    linear-gradient(135deg, rgba(91, 231, 255, 0.075), rgba(18, 24, 38, 0.92));
  border-radius: var(--radius);
}

.cta-panel h2 {
  max-width: 640px;
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

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

.content-hero {
  padding: 82px 0 52px;
  border-bottom: 1px solid var(--line);
}

.content-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
}

.content-hero p {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--muted-high);
  font-size: 1.04rem;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.content-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  font-family: var(--font-primary);
  font-size: 0.65rem;
}

.language-switcher {
  display: inline-flex;
  gap: 5px;
  margin: 30px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
}

.language-switcher button {
  padding: 8px 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--text);
  background: var(--panel-high);
}

.legal-layout,
.audit-layout {
  display: grid;
  align-items: start;
  gap: 48px;
  padding: 64px 0 110px;
  grid-template-columns: 220px minmax(0, 780px);
}

.legal-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(12, 16, 26, 0.66);
  border-radius: 14px;
}

.legal-nav span {
  margin: 0 8px 9px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 7px 8px;
  color: var(--muted-high);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.prose {
  min-width: 0;
}

.prose section {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

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

.prose h2 {
  margin-bottom: 15px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: var(--muted-high);
}

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

.prose code {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.9em;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li { margin-top: 7px; }

.prose a { color: var(--cyan); }

.callout {
  padding: 20px 22px;
  margin: 24px 0;
  border: 1px solid var(--line-strong);
  color: var(--muted-high);
  background: var(--cyan-soft);
  border-radius: var(--radius-sm);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
}

.callout-warning {
  border-color: rgba(255, 209, 102, 0.36);
  background: rgba(255, 209, 102, 0.075);
}

.callout-warning strong { color: #ffd166; }

.placeholder {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(255, 143, 156, 0.5);
  color: #ffd2d7;
  background: rgba(255, 143, 156, 0.09);
  border-radius: 6px;
  font-family: var(--font-primary);
  font-size: 0.88em;
  font-weight: 800;
}

blockquote.disclosure {
  padding: 20px 22px;
  margin: 22px 0;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--cyan);
  color: var(--text);
  background: rgba(91, 231, 255, 0.065);
  border-radius: 0 13px 13px 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--cyan);
  background: rgba(91, 231, 255, 0.055);
  font-family: var(--font-primary);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:last-child td { border-bottom: 0; }
.data-table td { color: var(--muted-high); }

.audit-facts {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
  grid-template-columns: 1fr 1fr;
}

.audit-fact {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 13px;
}

.audit-fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-fact strong { font-size: 0.9rem; }

.audit-flow {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.audit-flow div {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 10px;
  grid-template-columns: 28px 1fr;
}

.audit-flow span {
  color: var(--cyan);
  font-family: var(--font-primary);
  font-size: 0.65rem;
}

.audit-flow strong { font-size: 0.86rem; }

.contact-section {
  padding: 72px 0 110px;
}

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.85fr;
}

.contact-card {
  padding: clamp(25px, 4vw, 38px);
  border-radius: var(--radius);
}

.contact-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.contact-email {
  display: inline-block;
  margin: 20px 0 8px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: clamp(0.85rem, 2vw, 1.04rem);
  font-weight: 800;
}

.project-card {
  background:
    radial-gradient(circle at 95% 0%, rgba(157, 123, 255, 0.2), transparent 45%),
    var(--panel);
}

.project-label {
  display: inline-block;
  margin-bottom: 60px;
  padding: 7px 9px;
  border: 1px solid rgba(157, 123, 255, 0.32);
  color: #cdbfff;
  background: var(--violet-soft);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.62rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #080b12;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 0 34px;
}

.footer-brand p {
  max-width: 370px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
}

.footer-links a {
  color: var(--muted-high);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-primary);
  font-size: 0.61rem;
}

[hidden] { display: none !important; }

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .system-panel {
    width: min(100%, 620px);
  }

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

  .workflow {
    grid-template-columns: repeat(4, 1fr);
  }

  .workflow-step:nth-child(4)::after { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(10, 14, 23, 0.98);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .site-nav a[aria-current="page"]::after { display: none; }

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

  .section-heading > p { max-width: 680px; }

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

  .status-item:nth-child(3) { border-left: 0; }
  .status-item:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .api-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout,
  .audit-layout {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  .legal-nav span { display: none; }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-copy small { display: none; }
  .hero { padding-top: 64px; }
  .hero-grid { gap: 42px; }
  h1 { font-size: clamp(2.75rem, 16vw, 4.4rem); }
  .panel-body { padding: 15px; }
  .youtube-attribution { grid-template-columns: 1fr; }
  .youtube-brand-link { width: min(170px, 100%); }
  .panel-stats { grid-template-columns: 1fr; }
  .signal-map { min-height: 215px; }
  .status-strip { padding-bottom: 64px; }
  .status-grid { grid-template-columns: 1fr; }
  .status-item + .status-item { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 32px; }
  .feature-grid,
  .workflow-notes,
  .screenshot-grid,
  .audit-facts {
    grid-template-columns: 1fr;
  }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(even)::after { display: none; }
  .shot-media { min-height: 0; }
  .screenshot-card figcaption { align-items: flex-start; flex-direction: column; }
  .content-hero { padding-top: 56px; }
  .legal-layout,
  .audit-layout { padding: 44px 0 80px; }
  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-links { justify-content: flex-start; }
}

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

/* Final chalkboard overrides */
:root {
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --panel: rgba(17,17,17,.86);
  --panel-solid: #111;
  --panel-high: #171717;
  --line: rgba(216,213,202,.2);
  --line-strong: rgba(242,240,232,.38);
  --text: #f2f0e8;
  --muted: #9b9990;
  --muted-high: #d8d5ca;
  --cyan: #d8d5ca;
  --cyan-soft: rgba(216,213,202,.08);
  --violet: #9b9990;
  --violet-soft: rgba(155,153,144,.08);
  --lime: #d8d5ca;
  --radius: 2px;
  --radius-sm: 2px;
  --font-hand: var(--font-primary);
  --font-sans: "Segoe UI",Arial,sans-serif;
}
body {
  background:
    radial-gradient(ellipse at 14% 9%,rgba(255,255,255,.025),transparent 28%),
    radial-gradient(ellipse at 86% 42%,rgba(255,255,255,.016),transparent 32%),
    repeating-linear-gradient(4deg,rgba(255,255,255,.006) 0 1px,transparent 1px 8px),
    #0a0a0a;
  font-family: var(--font-primary);
}
body::before { opacity: .2; background-image: repeating-radial-gradient(circle at 30% 20%,rgba(242,240,232,.08) 0 1px,transparent 1px 5px); background-size: 19px 17px; mask-image: none; }
.site-header { background: rgba(10,10,10,.9); backdrop-filter: blur(10px); }
.site-header.is-scrolled { background: rgba(10,10,10,.96); }
.brand-mark { border: 1px dashed rgba(242,240,232,.38); border-radius: 2px; background: transparent; box-shadow: none; font-family: var(--font-primary); transform: rotate(-2deg); }
.brand-copy strong,
.nav-links a,
h1,h2,h3,
.section-kicker,
.content-hero h1,
.legal-nav span { font-family: var(--font-primary); }
.brand-copy strong { letter-spacing: .035em; }
.nav-links a { font-size: .86rem; letter-spacing: .015em; text-transform: none; }
.nav-links a::after { height: 5px; background: none; border-top: 2px solid currentColor; border-radius: 50%; transform: scaleX(0) rotate(-2deg); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1) rotate(-2deg); }
h1,h2,h3 { letter-spacing: -.025em; }
.content-hero h1,
.section-heading h2 { font-weight: 600; }
.content-hero h1 { font-size: clamp(2.6rem,5vw,5.2rem); }
.button { position: relative; min-height: 40px; padding-inline: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--text); font-family: var(--font-primary); letter-spacing: .03em; }
.button::after { content: ""; position: absolute; right: 3px; bottom: 1px; left: 3px; height: 6px; border-top: 2px solid rgba(242,240,232,.62); border-radius: 50%; transform: scaleX(.84) rotate(-1deg); transition: transform 180ms ease; }
.button:hover { color: var(--text); background: transparent; box-shadow: none; transform: none; }
.button:hover::after { transform: scaleX(1) rotate(1deg); }
.button-secondary { border: 1px solid rgba(242,240,232,.36); padding-inline: 16px; transform: rotate(-.3deg); }
.button-secondary::after { display: none; }
.hero::after { opacity: .1; filter: grayscale(1); }
.gradient-text { color: #d8d5ca; background: none; -webkit-text-fill-color: currentColor; }
.hero-note,
.dashboard-panel,
.cta-panel,
.feature-card,
.policy-card,
.contact-card,
.audit-card,
.legal-nav,
.notice,
.language-switcher { border-color: rgba(216,213,202,.2); border-radius: 2px; background: rgba(255,255,255,.012); box-shadow: none; }
.feature-card,
.policy-card,
.contact-card,
.audit-card { position: relative; }
.feature-card::after,
.policy-card::after,
.contact-card::after,
.audit-card::after { content: ""; position: absolute; right: 5%; bottom: -3px; left: 4%; height: 5px; border-top: 1px solid rgba(216,213,202,.2); border-radius: 50%; transform: rotate(-.2deg); }
.section { position: relative; }
.section::after { content: ""; position: absolute; right: 3%; bottom: 0; left: 3%; height: 7px; border-top: 2px solid rgba(216,213,202,.18); border-radius: 50%; transform: rotate(-.1deg); }
.section-alt { background: rgba(255,255,255,.008); }
.content-hero { border-bottom-color: rgba(216,213,202,.16); background: transparent; }
.content-meta span,
.language-switcher button,
.legal-nav a { border-radius: 2px; }
.language-switcher button[aria-pressed="true"] { background: #d8d5ca; color: #101010; }
.legal-layout,
.legal-content,
.legal-content p,
.legal-content li,
.legal-content table { font-family: var(--font-primary); }
.legal-content h2,
.legal-content h3 { font-family: var(--font-primary); }
.site-footer { background: rgba(8,8,8,.82); border-top-color: rgba(216,213,202,.16); }
a:hover { color: #f2f0e8; }
::selection { color: #101010; background: #d8d5ca; }

/* Creator Finder legal pages within the XOTOX sketchbook system */
:root {
  --paper: #ded8c9;
  --paper-light: #ece7da;
  --paper-ink: #1c1b19;
  --paper-muted: #615e57;
  --tape: rgba(178,158,124,.64);
}
.section-kicker {
  display: inline-block;
  width: fit-content;
  padding: 7px 14px 6px;
  background: var(--paper-light);
  color: var(--paper-ink);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  clip-path: polygon(1% 5%,99% 0,97% 96%,2% 100%);
  transform: rotate(-.65deg);
}
.content-hero .container { position: relative; }
.content-hero .container::after {
  content: "↘";
  position: absolute;
  right: 5%;
  bottom: 4%;
  color: rgba(242,240,232,.5);
  font-family: var(--font-primary);
  font-size: 3rem;
  transform: rotate(-8deg);
}
.legal-layout { grid-template-columns: 220px minmax(0,860px); }
.legal-nav {
  background: var(--paper);
  color: var(--paper-ink);
  border: 0;
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
  clip-path: polygon(.5% 0,99% 1%,100% 98%,0 100%);
  transform: rotate(-.35deg);
}
.legal-nav::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 82px;
  height: 22px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-2deg);
}
.legal-nav span,
.legal-nav a { color: var(--paper-ink); }
.legal-nav a { opacity: .72; }
.legal-nav a:hover { color: var(--paper-ink); background: rgba(28,27,25,.07); opacity: 1; }
.prose {
  position: relative;
  padding: clamp(38px,5vw,68px);
  background:
    repeating-linear-gradient(0deg,transparent 0 31px,rgba(60,81,110,.075) 32px 33px),
    var(--paper-light);
  color: var(--paper-ink);
  box-shadow: 0 24px 62px rgba(0,0,0,.4);
  clip-path: polygon(.3% .15%,99.7% 0,100% 99.8%,0 100%);
}
.prose::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 126px;
  height: 27px;
  background: var(--tape);
  transform: translateX(-50%) rotate(2deg);
}
.prose section { border-color: rgba(28,27,25,.18); }
.prose h2,
.prose h3,
.prose p,
.prose li,
.prose strong,
.prose code,
.prose a { color: var(--paper-ink); }
.prose p,
.prose li { opacity: .79; }
.prose a { text-decoration-color: rgba(28,27,25,.45); }
.prose .callout,
.prose .notice,
.prose blockquote.disclosure { color: var(--paper-ink); background: rgba(28,27,25,.06); border-color: rgba(28,27,25,.3); }
.prose .data-table-wrap { border-color: rgba(28,27,25,.25); }
.prose .data-table th { color: var(--paper-ink); background: rgba(28,27,25,.07); }
.prose .data-table td { color: rgba(28,27,25,.78); border-color: rgba(28,27,25,.18); }

@media (max-width: 860px) {
  .content-hero .container::after { display: none; }
  .legal-nav { transform: none; }
  .legal-nav::before { display: none; }
}
@media (max-width: 640px) {
  .prose { padding: 34px 22px; }
}

/* Single-font, English-only visual normalization */
:root {
  --font-primary: "Inter", Arial, Helvetica, sans-serif;
  --text-primary: #f0ede5;
  --text-secondary: #c7cac5;
  --text-muted: #969c98;
  --accent: #a4bc67;
}
html,body,body * { font-family: var(--font-primary); }
body { color: var(--text-primary); }
h1,h2,h3,h4,strong,
.brand,.brand-copy strong,.brand-copy small,
.site-nav a,.footer-links a,
.section-kicker,.content-meta span,
.legal-nav a,.legal-nav span,
.project-label {
  color: var(--text-primary);
}
p,li,td,th,.footer-bottom,.footer-brand p { color: var(--text-secondary); }
.gradient-text {
  background: none;
  color: var(--text-primary);
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}
a { color: var(--text-primary); }
a:hover { color: var(--text-primary); }
.site-nav a[aria-current="page"] { color: var(--text-primary); }
.site-nav a::after { background: var(--accent); }
.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #11150d;
}
.button-primary:hover { color: #11150d; }
.panel-stat strong.cyan,
.panel-stat strong.violet,
.panel-stat strong.lime,
.callout strong,
.callout-warning strong,
.placeholder,
.project-label { color: var(--text-secondary); }
