:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --body: #1d1d1f;
  --body-on-dark: #ffffff;
  --body-muted: #cccccc;
  --ink-muted-80: #333333;
  --ink-muted-48: #7a7a7a;
  --divider-soft: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --canvas-parchment: #f5f5f7;
  --surface-pearl: #fafafc;
  --surface-tile-1: #272729;
  --surface-tile-2: #2a2a2c;
  --surface-tile-3: #252527;
  --surface-black: #000000;
  --shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--canvas);
  font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.global-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 44px;
  background: var(--surface-black);
  color: var(--body-on-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 12px;
  line-height: 1;
}

.nav-mark,
.nav-links,
.sub-actions,
.cta-row,
.hero-specs,
.source-list {
  display: flex;
  align-items: center;
}

.nav-mark {
  gap: 9px;
  min-height: 44px;
}

.nav-mark img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.nav-links a:hover,
.nav-mark:hover {
  opacity: 1;
}

.sub-nav {
  position: sticky;
  top: 44px;
  z-index: 29;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  color: var(--ink);
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sub-title {
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
}

.sub-actions {
  gap: 20px;
  font-size: 14px;
  line-height: 1.29;
}

.sub-actions a:not(.pill) {
  color: var(--ink-muted-80);
}

.tile {
  min-height: 720px;
  padding: 80px 32px;
  overflow: hidden;
}

.light {
  background: var(--canvas);
  color: var(--ink);
}

.parchment {
  background: var(--canvas-parchment);
  color: var(--ink);
}

.dark {
  background: var(--surface-tile-1);
  color: var(--body-on-dark);
}

.dark.alt {
  background: var(--surface-tile-2);
}

.hero-tile {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: 46px;
  min-height: 612px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-copy,
.section-head,
.split,
.process-grid,
.format-grid,
.use-grid,
.final-copy,
.legal-copy,
.footer-grid {
  width: min(100%, 1180px);
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.43;
  font-weight: 600;
}

.eyebrow.on-dark {
  color: var(--primary-on-dark);
}

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

h1 {
  margin-bottom: 18px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 28px;
  line-height: 1.14;
  color: var(--ink-muted-80);
}

.cta-row {
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--body-on-dark);
  font-size: 17px;
  line-height: 1.47;
  transition: transform 180ms ease, background-color 180ms ease;
}

.pill:active {
  transform: scale(0.95);
}

.pill:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
}

.pill-small {
  min-height: 32px;
  padding: 7px 14px;
  font-size: 14px;
}

.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.ghost-on-dark {
  background: transparent;
  color: var(--primary-on-dark);
  border: 1px solid var(--primary-on-dark);
}

.hero-stage {
  position: relative;
  justify-self: center;
  width: min(340px, 100%);
  padding-bottom: 32px;
}

.device {
  width: min(300px, 88vw);
  height: 480px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 46px;
  background: var(--surface-black);
  box-shadow: var(--shadow-product);
  animation: productFloat 7s ease-in-out infinite;
  overflow: hidden;
}

.device img {
  border-radius: 36px;
  width: 100%;
}

.product-shadow {
  box-shadow: var(--shadow-product);
}

.hero-specs {
  position: absolute;
  right: 0;
  bottom: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-specs span {
  padding: 8px 14px;
  border-radius: 11px;
  background: var(--surface-pearl);
  color: var(--ink-muted-80);
  border: 3px solid var(--divider-soft);
  font-size: 14px;
}

.section-head {
  max-width: 820px;
  text-align: center;
  margin-bottom: 48px;
}

.section-head.left {
  text-align: left;
  margin: 0;
}

.section-head h2,
.final-copy h2,
.legal-hero h1 {
  margin-bottom: 14px;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.final-copy p,
.legal-hero p {
  color: inherit;
  opacity: 0.78;
}

.dark .section-head p:not(.eyebrow),
.dark .final-copy p {
  color: var(--body-muted);
  opacity: 1;
}

.process-grid,
.format-grid,
.use-grid {
  display: grid;
  gap: 20px;
}

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

.process-step {
  min-height: 250px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.step-index {
  display: block;
  margin-bottom: 72px;
  color: var(--primary-on-dark);
  font-size: 14px;
  font-weight: 600;
}

.process-step h3,
.format-card h3,
.use-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
}

.process-step p,
.format-card p,
.use-card p {
  margin-bottom: 0;
  color: var(--body-muted);
}

.markdown-showcase {
  width: min(100%, 980px);
  margin: 48px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: var(--surface-tile-3);
}

.source-list {
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.source {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  color: var(--body-muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.source.active {
  color: var(--body-on-dark);
  background: var(--primary);
}

.code-window {
  margin: 0;
  max-height: 360px;
  overflow: hidden;
  padding: 28px;
  color: var(--body-on-dark);
  font-size: 15px;
  line-height: 1.62;
}

.code-window code {
  display: block;
  animation: codeDrift 12s ease-in-out infinite;
}

.format-grid {
  width: min(100%, 1180px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.format-card,
.use-card {
  min-height: 245px;
  padding: 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
}

.format-card p,
.use-card p {
  color: var(--ink-muted-80);
}

.format-card span {
  display: inline-flex;
  margin-top: 24px;
  min-height: 32px;
  align-items: center;
  padding: 7px 13px;
  border-radius: 9999px;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 60px;
}

.privacy-board {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.privacy-row {
  display: grid;
  grid-template-columns: 0.7fr 1.1fr;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-row:last-child {
  border-bottom: 0;
}

.privacy-row span {
  color: var(--body-muted);
}

.privacy-row strong {
  font-weight: 600;
}

.utility {
  min-height: 660px;
}

.use-grid {
  width: min(100%, 1180px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.final-tile {
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--surface-tile-3);
}

.final-copy img {
  margin: 0 auto 28px;
  border-radius: 20px;
  box-shadow: var(--shadow-product);
}

.final-copy .cta-row {
  justify-content: center;
  margin-top: 24px;
}

.site-footer {
  padding: 64px 32px;
  background: var(--canvas-parchment);
  color: var(--ink-muted-80);
}

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

.footer-grid h2 {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.29;
  font-weight: 600;
}

.footer-grid a {
  display: block;
  color: var(--ink-muted-80);
  font-size: 17px;
  line-height: 2.41;
}

.fine-print {
  width: min(100%, 1180px);
  margin: 36px auto 0;
  color: var(--ink-muted-48);
  font-size: 12px;
  line-height: 1.4;
}

.legal-hero {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
}

.legal-body {
  min-height: auto;
}

.legal-copy {
  max-width: 860px;
  padding: 24px 0;
}

.legal-copy h2 {
  margin: 36px 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--ink-muted-80);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes codeDrift {
  0%,
  28% {
    transform: translateY(0);
  }
  60%,
  100% {
    transform: translateY(-44px);
  }
}

@media (max-width: 1068px) {
  .hero-tile {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
  }

  .hero-copy {
    justify-self: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-copy .cta-row {
    justify-content: center;
  }

  .device {
    height: auto;
  }

  h1 {
    font-size: 40px;
  }

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

@media (max-width: 833px) {
  .global-nav {
    padding: 0 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .sub-nav {
    padding: 0 18px;
  }

  .sub-actions a:not(.pill) {
    display: none;
  }

  .tile {
    min-height: auto;
    padding: 64px 20px;
  }

  .hero-tile {
    min-height: auto;
    padding-top: 56px;
    gap: 40px;
  }

  .process-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: 210px;
  }

  .step-index {
    margin-bottom: 40px;
  }

  .privacy-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero-tile {
    padding-top: 48px;
    padding-bottom: 36px;
  }

  h1,
  .section-head h2,
  .final-copy h2,
  .legal-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 22px;
    line-height: 1.28;
  }

  .format-grid,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .format-card,
  .use-card {
    min-height: 190px;
  }

  .hero-specs {
    position: static;
    justify-content: center;
    margin-top: 12px;
  }

  .hero-specs span {
    padding: 7px 11px;
  }

  .device {
    width: min(330px, 88vw);
    height: 260px;
    border-radius: 38px;
    overflow: hidden;
  }

  .device img {
    border-radius: 29px;
  }

  .code-window {
    font-size: 13px;
    padding: 20px;
  }

  .hero-stage {
    padding-bottom: 0;
  }
}

@media (max-width: 419px) {
  h1,
  .section-head h2,
  .final-copy h2,
  .legal-hero h1 {
    font-size: 28px;
  }

  .sub-title {
    font-size: 18px;
  }

  .device {
    height: 240px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
