:root {
  color-scheme: dark;
  --canvas: #0c0e12;
  --surface: #10151c;
  --surface-raised: #141b24;
  --border: #263241;
  --border-strong: #3a4a5e;
  --ink: #e8edf2;
  --body: #a8b7c5;
  --muted: #718399;
  --accent: #20d780;
  --accent-ink: #07130d;
  --accent-soft: #123527;
  --warning: #e8a020;
  --danger: #e85555;
  --nav-bg: rgb(12 14 18 / 92%);
  --focus: #7af0b2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --page: min(1180px, calc(100% - 40px));
  --text-width: 70ch;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f4f7f6;
    --surface: #ffffff;
    --surface-raised: #edf3f0;
    --border: #cbd7d1;
    --border-strong: #8fa39a;
    --ink: #122019;
    --body: #43564d;
    --muted: #65776e;
    --accent: #087e49;
    --accent-ink: #ffffff;
    --accent-soft: #d9f1e4;
    --warning: #936313;
    --danger: #b33131;
    --nav-bg: rgb(244 247 246 / 94%);
    --focus: #087e49;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--body);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgb(32 215 128 / 18%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

button,
a,
summary {
  touch-action: manipulation;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.55rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.87em;
  overflow-wrap: anywhere;
  padding: 0.18em 0.42em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 14px;
  transition: transform 140ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-shell {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
}

.desktop-nav a {
  color: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.desktop-nav .nav-action {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  cursor: pointer;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  padding: 8px 12px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(280px, calc(100vw - 40px));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 42px rgb(3 10 7 / 28%);
  padding: 8px;
}

.mobile-menu nav a {
  display: block;
  border-radius: var(--radius-sm);
  color: var(--body);
  font-weight: 650;
  text-decoration: none;
  padding: 11px 12px;
}

.mobile-menu nav a:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.page-shell {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
  padding: 64px 0;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 50ch;
  margin-top: 24px;
  color: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: 0 17px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: var(--surface-raised);
  color: var(--ink);
}

.button:active {
  transform: translateY(1px);
}

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

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

.product-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 80px rgb(3 10 7 / 26%);
}

.product-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

.product-frame img {
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  object-position: top;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-item {
  min-width: 0;
  padding: 26px clamp(14px, 3vw, 32px);
}

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

.proof-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.proof-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-heading p {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 1.05rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: start;
}

.decision-list {
  border-top: 1px solid var(--border-strong);
}

.decision-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.decision-item h3 {
  color: var(--accent);
}

.decision-item p {
  max-width: 55ch;
}

.principle-panel {
  position: sticky;
  top: 104px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px;
}

.principle-panel h3 {
  font-size: 1.55rem;
}

.principle-panel p {
  margin-top: 16px;
}

.principle-panel strong {
  color: var(--ink);
}

.integration-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.integration-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.integration-copy {
  position: sticky;
  top: 104px;
}

.integration-copy p:not(.eyebrow) {
  margin-top: 18px;
}

.scope-list {
  border-top: 1px solid var(--border-strong);
}

.scope-row {
  border-bottom: 1px solid var(--border);
  padding: 21px 0;
}

.scope-row h3 {
  margin-bottom: 8px;
}

.scope-row p {
  max-width: 62ch;
}

.scope-row code {
  display: inline-block;
  margin-bottom: 10px;
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.control-copy h2 {
  max-width: 14ch;
}

.control-copy > p {
  max-width: 58ch;
  margin-top: 20px;
}

.control-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 36px;
}

.control-point {
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
}

.control-point p {
  margin-top: 7px;
  font-size: 0.93rem;
}

.phone-frame {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 70px rgb(3 10 7 / 24%);
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 390 / 720;
  object-fit: cover;
  object-position: top;
}

.review-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  padding: clamp(28px, 5vw, 54px);
}

.review-callout h2 {
  max-width: 16ch;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
}

.review-callout p {
  max-width: 62ch;
  margin-top: 16px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--border);
  padding: 38px 0 48px;
}

.footer-grid {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: start;
}

.footer-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.footer-copy p {
  max-width: 48ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.footer-links a {
  color: var(--body);
  font-size: 0.88rem;
  font-weight: 650;
}

.legal-hero {
  max-width: 850px;
  padding: 84px 0 52px;
}

.legal-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.legal-meta {
  margin-top: 24px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 780px);
  gap: clamp(40px, 8vw, 96px);
  align-items: start;
  padding-bottom: 100px;
}

.legal-toc {
  position: sticky;
  top: 104px;
  border-top: 1px solid var(--border-strong);
  padding-top: 16px;
}

.legal-toc strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.legal-toc a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-content {
  min-width: 0;
}

.legal-content > p:first-child {
  color: var(--ink);
  font-size: 1.12rem;
}

.legal-content section {
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
  padding: 36px 0 8px;
}

.legal-content section:first-of-type {
  margin-top: 36px;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.legal-content h3 {
  margin: 24px 0 10px;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-content ul {
  margin: 16px 0 0;
  padding-left: 1.25rem;
}

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

.legal-contact {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
}

.legal-contact p + p {
  margin-top: 7px;
}

.deletion-layout {
  max-width: 820px;
  padding: 84px 0 120px;
}

.deletion-layout h1 {
  max-width: 13ch;
}

.deletion-layout > p {
  max-width: 64ch;
  margin-top: 24px;
  font-size: 1.08rem;
}

.deletion-panel {
  margin-top: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(24px, 5vw, 42px);
}

.deletion-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.deletion-panel ol {
  margin: 24px 0 0;
  padding-left: 1.3rem;
}

.deletion-panel li + li {
  margin-top: 12px;
}

.notice {
  margin-top: 28px;
  border-left: 3px solid var(--warning);
  background: var(--surface-raised);
  color: var(--body);
  padding: 16px 18px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 70px 0 82px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .product-frame img {
    aspect-ratio: 16 / 10;
  }

  .decision-grid,
  .integration-layout,
  .control-layout {
    grid-template-columns: 1fr;
  }

  .principle-panel,
  .integration-copy {
    position: static;
  }

  .control-layout {
    align-items: start;
  }

  .phone-frame {
    width: min(390px, 100%);
  }

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

  .legal-toc {
    position: static;
    columns: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 64px;
  }

  .hero {
    padding: 52px 0 64px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

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

  .proof-item + .proof-item {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

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

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

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

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding-top: 60px;
  }

  .legal-toc {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--canvas);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
