:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --silver: #e8e8ed;
  --graphite: #161617;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #ffffff 0 16%, #9fd0ff 17% 28%, #0071e3 29% 72%, #1d1d1f 73%);
  box-shadow: 0 3px 12px rgba(0, 113, 227, 0.25);
}

.nav-links {
  gap: 24px;
  color: #333336;
  font-size: 13px;
}

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

.nav-links a:hover {
  color: var(--blue);
}

.nav-button {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
}

.section {
  min-height: 100vh;
  padding: 110px max(24px, calc((100vw - 1120px) / 2));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: center;
  gap: 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 113, 227, 0.16), transparent 30%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 78%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 0.95;
  font-weight: 800;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.08;
}

.lead,
.center-copy p,
.split p,
.final-copy p {
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.32;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

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

.secondary-button {
  color: var(--blue);
  border: 1px solid rgba(0, 113, 227, 0.35);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.tagger-demo {
  --wipe: 0%;
  width: min(100%, 460px);
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f7f7fa, #b7b8be 48%, #ffffff);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.23);
  transition: opacity 420ms ease, transform 420ms ease;
}

.tagger-demo.is-fading {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.photo-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #111113;
}

.photo-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tagged {
  clip-path: inset(0 0 calc(100% - var(--wipe)) 0);
}

.photo-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--wipe);
  height: 3px;
  opacity: 0;
  background: #34c759;
  box-shadow: 0 0 18px rgba(52, 199, 89, 0.92), 0 0 42px rgba(52, 199, 89, 0.35);
  transform: translateY(-1px);
}

.tagger-demo.is-scanning .photo-scan-line {
  opacity: 1;
}

.demo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.demo-caption div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.demo-caption small {
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

.feature-band {
  background: #ffffff;
}

.intro-image {
  width: min(100%, 980px);
  margin: 0 auto 56px;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.center-copy {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.large-tile,
.tile,
.step {
  border-radius: 8px;
  background: var(--page);
}

.large-tile {
  padding: 24px;
}

.tile {
  min-height: 280px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.large-tile p,
.tile p,
.step p,
.output-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.tile-visual {
  min-height: 520px;
  margin-bottom: 28px;
  border-radius: 8px;
}

.upload-preview {
  min-height: auto;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.upload-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait-slot {
  display: grid;
  place-items: center;
  color: #86868b;
  font-size: 18px;
  font-weight: 700;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent),
    repeating-linear-gradient(135deg, #e8e8ed 0 16px, #f5f5f7 16px 32px);
  border: 1px dashed #b8b8bf;
}

.metric {
  margin-bottom: 34px;
  font-size: 72px;
  line-height: 0.9;
  font-weight: 800;
  color: var(--blue);
}

.dark-section {
  display: flex;
  align-items: center;
  background: var(--graphite);
  color: #f5f5f7;
}

.dark-section .eyebrow {
  color: #9fd0ff;
}

.split {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: center;
  gap: 80px;
}

.privacy-panel {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.output-section {
  background: #f5f5f7;
}

.output-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 38px;
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
}

.output-preview {
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.output-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.output-copy h2 {
  font-size: clamp(36px, 4.4vw, 58px);
}

.repo-preview {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.repo-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.privacy-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-panel li {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.prerequisites {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.prerequisites h3 {
  margin-bottom: 14px;
  color: #f5f5f7;
  font-size: 24px;
}

.prerequisites ol {
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.84);
}

.prerequisites li {
  padding: 10px 0;
  border-top: 0;
}

.prerequisites span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-family: "SF Mono", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
}

.workflow-section {
  background: linear-gradient(180deg, #ffffff, #f5f5f7);
}

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

.step {
  min-height: 340px;
  padding: 32px;
}

.step span {
  display: block;
  margin-bottom: 100px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.final-section {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 113, 227, 0.15), transparent 32%),
    #f5f5f7;
}

.final-copy {
  max-width: 820px;
}

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

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

@media (max-width: 860px) {
  .nav {
    width: min(100% - 24px, 1120px);
  }

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

  .section {
    min-height: auto;
    padding: 82px 22px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero {
    padding-top: 68px;
  }

  h1 {
    font-size: clamp(46px, 14vw, 70px);
  }

  h2 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .gallery-grid,
  .steps,
  .output-card {
    grid-template-columns: 1fr;
  }

  .tile-visual {
    min-height: 340px;
  }

  .step {
    min-height: 260px;
  }

  .step span {
    margin-bottom: 56px;
  }
}
