.home-page {
  --home-page: oklch(0.985 0.004 130);
  --home-ink: oklch(0.19 0.01 130);
  --home-muted: oklch(0.47 0.012 130);
  --home-soft: oklch(0.95 0.012 130);
  --home-lilac: oklch(0.84 0.085 285);
  --home-blue: oklch(0.86 0.07 245);
  --home-green: oklch(0.9 0.12 130);
  --home-frame-height: 620px;
  --home-media-height: 560px;
  --home-copy-width: 420px;
  --home-section-space: clamp(108px, 12vw, 172px);
  background: var(--home-page);
  color: var(--home-ink);
}

.home-page .site-header {
  border-bottom-color: oklch(0.2 0.01 130 / 0.08);
  background: oklch(0.99 0.004 130 / 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
}

.home-page .site-nav {
  min-height: 64px;
}

.home-page .brand {
  font-size: 17px;
}

.home-page .nav-links {
  gap: 32px;
}

.home-page .nav-download,
.home-page .button-primary {
  background: var(--home-ink);
  color: var(--surface);
}

.home-page .nav-download:hover,
.home-page .button-primary:hover {
  background: oklch(0.27 0.012 130);
}

.home-page .hero {
  position: relative;
  isolation: isolate;
  padding: 0;
  background:
    radial-gradient(
      circle at 12% 28%,
      oklch(0.92 0.055 225 / 0.94),
      transparent 38%
    ),
    radial-gradient(
      circle at 82% 14%,
      oklch(0.79 0.12 286 / 0.82),
      transparent 43%
    ),
    radial-gradient(
      circle at 52% 58%,
      oklch(0.92 0.105 132 / 0.74),
      transparent 34%
    ),
    linear-gradient(
      150deg,
      oklch(0.98 0.012 220),
      oklch(0.92 0.045 286) 55%,
      oklch(0.97 0.035 135)
    );
}

.home-page .hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 38% 12%, white, transparent 24%),
    radial-gradient(circle at 68% 46%, white, transparent 20%);
  content: '';
  opacity: 0.4;
}

.home-page .hero-copy {
  min-height: 560px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: clamp(86px, 9vw, 126px) 0 72px;
}

.home-page .hero-app-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 34px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px oklch(0.22 0.03 130 / 0.16);
}

.home-page .hero h1 {
  max-width: none;
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  animation: hero-enter 620ms var(--ease-out-expo) both;
}

.home-page .hero-slogan {
  max-width: 650px;
  margin: 0 0 34px;
  color: var(--home-ink);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.24;
  text-align: center;
  text-wrap: balance;
  animation: hero-enter 720ms 60ms var(--ease-out-expo) both;
}

.home-page .hero-actions {
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.home-page .button {
  min-height: 48px;
  padding-inline: 22px;
}

.home-page .release-note {
  color: oklch(0.38 0.012 130 / 0.72);
  font-size: 12px;
  letter-spacing: 0.035em;
  text-transform: none;
}

.home-page .demo-wrap {
  margin-top: 0;
  padding-bottom: 70px;
}

.home-page .system-demo {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 54px oklch(0.22 0.03 275 / 0.22);
}

.home-page .demo-bar {
  height: 46px;
}

.home-page .demo-stage {
  min-height: var(--home-frame-height);
}

.home-page .demo-timeline {
  padding-bottom: 18px;
}

.home-page .everywhere-section {
  padding-block: var(--home-section-space);
  background: var(--surface);
}

.home-page .section-label {
  margin-bottom: 24px;
  color: var(--home-muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}

.home-page .everywhere-section h2 {
  max-width: 1060px;
  margin: 0 auto 30px;
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.home-page .section-lead {
  color: var(--home-muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.home-page .feature-section {
  padding-block: clamp(82px, 9vw, 132px);
  background: var(--surface);
  color: var(--home-ink);
}

.home-page .feature-layout,
.home-page .select-feature .feature-layout {
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(60px, 8vw, 118px);
}

.home-page .feature-layout-reversed {
  grid-template-columns: minmax(0, 1.38fr) minmax(260px, 0.62fr);
}

.home-page .feature-copy {
  max-width: var(--home-copy-width);
}

.home-page .feature-number {
  display: none;
}

.home-page .feature-copy h2,
.home-page .select-feature .feature-copy h2 {
  margin-bottom: 24px;
  color: var(--home-ink);
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.home-page .feature-copy p,
.home-page .select-feature .feature-copy p,
.home-page .ocr-feature .feature-copy p {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.home-page .select-visual {
  min-height: var(--home-media-height);
  gap: clamp(42px, 5vw, 72px);
  padding: clamp(48px, 6vw, 82px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 88% 18%,
      oklch(0.83 0.1 286 / 0.9),
      transparent 42%
    ),
    radial-gradient(
      circle at 12% 88%,
      oklch(0.9 0.12 130 / 0.82),
      transparent 38%
    ),
    linear-gradient(145deg, oklch(0.96 0.028 250), oklch(0.92 0.045 285));
}

.home-page .select-visual p {
  max-width: 660px;
  color: var(--home-ink);
  font-family: var(--font-ui);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.home-page .select-visual img {
  width: min(526px, 100%);
  height: auto;
  max-width: 100%;
  align-self: flex-end;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px oklch(0.18 0.02 130 / 0.2));
}

.home-page .ocr-visual {
  min-height: var(--home-media-height);
}

.home-page .ocr-capture {
  min-height: var(--home-media-height);
  align-items: center;
  justify-content: center;
  padding: clamp(44px, 5vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 15% 12%,
      oklch(0.9 0.12 130 / 0.78),
      transparent 38%
    ),
    radial-gradient(
      circle at 85% 80%,
      oklch(0.82 0.095 285 / 0.86),
      transparent 44%
    ),
    linear-gradient(145deg, oklch(0.96 0.02 160), oklch(0.92 0.04 260));
}

.home-page .ocr-capture > span,
.home-page .ocr-capture-target {
  display: none;
}

.home-page .ocr-panel {
  width: min(900px, 100%);
  height: auto;
  margin-top: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px oklch(0.18 0.025 130 / 0.24));
}

.home-page .how-section {
  padding-block: var(--home-section-space);
  background: oklch(0.955 0.026 285);
}

.home-page .how-layout {
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(70px, 9vw, 136px);
}

.home-page .how-heading h2 {
  color: var(--home-ink);
  font-size: clamp(40px, 4.4vw, 62px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.home-page .how-list {
  border-top-color: oklch(0.2 0.01 130 / 0.18);
}

.home-page .how-list li {
  padding-block: 26px;
  border-bottom-color: oklch(0.2 0.01 130 / 0.12);
}

.home-page .how-list li > span {
  color: var(--home-muted);
}

.home-page .how-list strong {
  color: var(--home-ink);
  font-size: 17px;
}

.home-page .how-list p {
  color: var(--home-muted);
  font-size: 15px;
}

.home-page .download-section {
  background:
    radial-gradient(
      circle at 18% 28%,
      oklch(0.88 0.1 130 / 0.82),
      transparent 40%
    ),
    radial-gradient(
      circle at 82% 70%,
      oklch(0.82 0.1 285 / 0.86),
      transparent 42%
    ),
    linear-gradient(145deg, oklch(0.95 0.025 235), oklch(0.93 0.04 285));
  color: var(--home-ink);
}

.home-page .download-callout {
  min-height: min(76svh, 760px);
}

.home-page .download-callout .section-label,
.home-page .download-callout .release-note {
  color: var(--home-muted);
}

.home-page .download-callout h2 {
  margin-bottom: 38px;
  color: var(--home-ink);
  font-size: clamp(48px, 6vw, 78px);
  letter-spacing: -0.035em;
  line-height: 1;
}

.home-page .download-callout .button-primary {
  background: var(--home-ink);
  color: var(--surface);
}

.home-page .download-callout .button-primary:hover {
  background: oklch(0.27 0.012 130);
}

.home-page .site-footer {
  background: var(--surface);
  color: var(--home-muted);
}

@media (max-width: 1000px) {
  .home-page {
    --home-frame-height: 580px;
    --home-media-height: 500px;
  }

  .home-page .feature-layout,
  .home-page .select-feature .feature-layout,
  .home-page .feature-layout-reversed,
  .home-page .how-layout {
    grid-template-columns: 1fr;
  }

  .home-page .feature-layout-reversed .feature-copy {
    order: 1;
  }

  .home-page .feature-layout-reversed .ocr-visual {
    order: 2;
  }

  .home-page .feature-copy {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .home-page {
    --home-frame-height: 500px;
    --home-media-height: 360px;
    --home-section-space: 96px;
  }

  .home-page .site-nav {
    min-height: 58px;
  }

  .home-page .nav-links {
    gap: 14px;
  }

  .home-page .hero {
    padding-top: 0;
  }

  .home-page .hero-copy {
    min-height: 530px;
    padding: 70px 0 54px;
  }

  .home-page .hero-app-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  .home-page .hero h1 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1;
  }

  .home-page .hero-slogan {
    margin-bottom: 30px;
    font-size: 23px;
    line-height: 1.25;
  }

  .home-page .demo-wrap {
    width: min(calc(100% - 36px), var(--content-width));
    padding-bottom: 54px;
  }

  .home-page .system-demo {
    border-radius: var(--radius-lg);
  }

  .home-page .everywhere-section h2 {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.04;
  }

  .home-page .feature-section {
    padding-block: 78px;
  }

  .home-page .feature-layout,
  .home-page .feature-layout-reversed {
    gap: 42px;
  }

  .home-page .feature-copy h2,
  .home-page .select-feature .feature-copy h2 {
    font-size: 34px;
  }

  .home-page .select-visual,
  .home-page .ocr-capture {
    min-height: var(--home-media-height);
    padding: 30px 24px;
  }

  .home-page .select-visual {
    gap: 34px;
  }

  .home-page .select-visual p {
    font-size: 25px;
  }

  .home-page .ocr-visual {
    min-height: var(--home-media-height);
  }

  .home-page .how-layout {
    gap: 52px;
  }

  .home-page .how-heading h2 {
    font-size: 40px;
  }

  .home-page .download-callout {
    min-height: 68svh;
  }

  .home-page .download-callout h2 {
    font-size: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero h1,
  .home-page .hero-slogan {
    animation: none;
  }
}
