:root {
  --bg: #f5f5f7;
  --bg-alt: #eef3ff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --blue: #0071e3;
  --blue-strong: #0066cc;
  --green: #14805e;
  --orange: #c7790b;
  --red: #d64c45;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius-2xl: 32px;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.apple-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #ffffff 0%, #ffffff 18%, #edf3ff 46%, #f5f5f7 100%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-strong);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.topbar .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.page {
  padding: 32px 0 72px;
}

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

.hero.hero-single {
  grid-template-columns: 1fr;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.headline {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  margin: 14px 0 0;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
}

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

.small {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 26px;
}

.panel.tight {
  padding: 20px;
}

.panel.prose {
  max-width: 900px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.metric {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.metric strong {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.metric .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.button-row,
.toolbar,
.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.button,
button.button {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.button:hover,
button.button:hover {
  background: var(--blue-strong);
  color: #ffffff;
}

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

.button.secondary:hover {
  background: #ffffff;
  color: var(--text);
}

.button.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(0, 113, 227, 0.2);
  box-shadow: none;
}

.button.ghost:hover {
  background: rgba(0, 113, 227, 0.08);
}

.button.danger {
  background: var(--red);
  box-shadow: 0 10px 24px rgba(214, 76, 69, 0.22);
}

.button.small,
button.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.status {
  font-size: 14px;
  font-weight: 600;
}

.status.good {
  color: var(--green);
}

.status.warn {
  color: var(--orange);
}

.status.bad {
  color: var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.list,
.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li,
.steps li {
  margin-bottom: 8px;
}

.input,
input[type="text"],
input[type="search"],
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.code,
code,
.mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

code,
.pill-code {
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  word-break: break-all;
}

.note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.section-head h2,
.panel h2,
.panel h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

.table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

.table td.mono a {
  word-break: break-all;
}

.table .compact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table .compact-actions .button {
  white-space: nowrap;
}

.pre {
  white-space: pre-wrap;
  overflow: auto;
  min-height: 120px;
  max-height: 260px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text);
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card,
.soft-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.download-card h3,
.soft-card h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.download-card p,
.soft-card p,
.panel p {
  color: var(--muted);
  line-height: 1.6;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.shot {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.shot img,
.shot video {
  width: 100%;
  display: block;
  height: auto;
  background: #e5e7eb;
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.callout {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-links {
  margin-top: 18px;
}

.center-card {
  max-width: 760px;
  margin: 0 auto;
}

.prose h1,
.prose h2,
.prose h3 {
  letter-spacing: -0.04em;
  color: var(--text);
}

.prose h1 {
  font-size: 42px;
  margin: 0 0 12px;
}

.prose h2 {
  font-size: 24px;
  margin: 28px 0 10px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.hide-desktop {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .grid.two,
  .download-grid,
  .grid.three {
    grid-template-columns: 1fr;
  }

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

  .topbar .shell {
    padding: 12px 0;
  }

  .panel {
    padding: 22px;
  }

  .headline {
    font-size: clamp(34px, 10vw, 52px);
  }

  .metric strong {
    font-size: 26px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 620px;
  }
}

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

  .shell {
    width: min(calc(100vw - 24px), 1180px);
  }

  .page {
    padding: 22px 0 56px;
  }

  .nav-links {
    display: none;
  }

  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .section-head h2,
  .panel h2,
  .panel h3 {
    font-size: 24px;
  }

  .download-card h3,
  .soft-card h3,
  .prose h1 {
    font-size: 30px;
  }

  .button,
  button.button {
    width: 100%;
  }

  .button.small {
    width: auto;
  }

  .hide-desktop {
    display: block;
  }
}
