.home-page {
  --home-width: 1240px;
}

.home-page .site-navigation {
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 35%, transparent);
}

.home-skip-link {
  position: fixed;
  top: -80px;
  left: 24px;
  z-index: 30;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--accent);
  border-radius: 8px;
}

.home-skip-link:focus { top: 80px; }
.home-page [hidden] { display: none !important; }
.home-page :is(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
.home-page :is(.primary-link, .primary-button):active { transform: scale(.97); }

.home-hero {
  padding: 56px 28px 110px;
  overflow: clip;
}

.home-hero-copy { position: relative; z-index: 2; text-align: center; }
.home-hero h1 {
  font-size: clamp(64px, 7.1vw, 100px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 500;
}
.home-intro {
  margin: 27px auto 24px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
}
.home-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}
.home-hero-actions .button-group { margin: 0; max-width: none; }
.home-hero-actions .primary-link { margin-top: 0; }
.home-page .primary-link { width: auto; min-height: 50px; padding-inline: 27px; }
.home-tour-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 15px;
  text-decoration: none;
}
.home-tour-link span { color: var(--accent); font-size: 20px; transition: transform 180ms ease; }
.home-tour-link:hover span { transform: translateY(4px); }
.home-hero .status-message { max-width: 520px; margin: 18px auto 0; }

.home-workspace {
  position: relative;
  width: min(100%, 1080px);
  margin: 52px auto 0;
  perspective: 1600px;
}
.home-app-preview {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 18px;
  overflow: hidden;
  background: var(--background);
  box-shadow: 0 30px 70px var(--screenshot-shadow);
  transform-origin: center bottom;
}
.home-app-preview img { display: block; width: 100%; height: auto; }
.home-paper {
  position: absolute;
  z-index: 2;
  width: 265px;
  padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 40px var(--screenshot-shadow);
  pointer-events: none;
}
.home-paper-note { left: -42px; top: 32%; transform: rotate(-6deg); }
.home-paper-source { right: -40px; bottom: 12%; transform: rotate(5deg); }
.home-paper-label { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; }
.home-paper-label svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.home-paper p { margin: 15px 0; font-size: 18px; line-height: 1.4; }
.home-paper-foot { font-size: 11px; color: var(--text-secondary); }

.home-story {
  padding: 92px 28px 0;
  background: var(--story-background);
  scroll-margin-top: 68px;
}
.home-story-heading { max-width: var(--home-width); margin: 0 auto 60px; }
.home-page h2 {
  font-family: "Avenir-Medium", "Avenir Next", Avenir, sans-serif;
  font-size: clamp(36px, 4.25vw, 60px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 0;
}
.home-story-heading p { margin: 23px 0 0; font-size: 19px; color: var(--text-secondary); }
.home-story-track { max-width: var(--home-width); margin: 0 auto; }
.home-story-panels { display: grid; gap: 90px; padding-bottom: 80px; }
.home-story-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 60px;
}
.home-story-copy h3 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.14; font-weight: 500; letter-spacing: -.035em; margin: 0; }
.home-story-copy p { max-width: 340px; margin: 23px 0; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
.home-detail-list { margin: 25px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; }
.home-detail-list li { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.home-detail-list li::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; background: var(--accent); border-radius: 50%; }
.home-story-image { margin: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 24px 50px var(--screenshot-shadow); }
.home-story-image img { display: block; width: 100%; height: auto; }
.home-story-controls { gap: 30px; margin-bottom: 42px; }
.home-story-controls button {
  position: relative;
  padding: 10px 0 15px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.home-story-controls button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 250ms ease; }
.home-story-controls button[aria-pressed="true"] { color: var(--text-primary); }
.home-story-controls button[aria-pressed="true"]::after { transform: scaleX(1); }
.home-story-controls button:hover { color: var(--accent); }

.home-find {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 75px;
  width: min(calc(100% - 56px), var(--home-width));
  margin: 130px auto;
}
.home-find-image { margin: 0; overflow: hidden; border-radius: 24px; }
.home-find-image img { display: block; width: 100%; height: auto; }
.home-find-copy h2 { font-size: clamp(34px, 3.5vw, 48px); }
.home-find-copy p { max-width: 370px; margin: 24px 0 30px; font-size: 18px; line-height: 1.65; color: var(--text-secondary); }
.home-shortcut { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); }
.home-shortcut kbd { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 7px; font-family: inherit; font-size: 16px; }
.home-shortcut span { margin-left: 8px; font-size: 13px; }
.home-closing { padding: 85px 24px 95px; background: var(--story-background); text-align: center; }
.home-closing img { display: block; margin: 0 auto 28px; }
.home-closing .primary-link { margin: 32px auto 0; }
.home-back-top { display: block; width: fit-content; margin: 24px auto 0; color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.home-back-top:hover { color: var(--accent); }

@media (min-width: 901px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
  .scroll-ready .home-story-track { height: 300svh; }
  .scroll-ready .home-story-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
  .scroll-ready .home-story-controls { display: flex; }
  .scroll-ready .home-story-panels { display: grid; gap: 0; padding: 0; }
  .scroll-ready .home-story-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 350ms ease, transform 500ms ease, visibility 350ms; }
  .scroll-ready .home-story-panel.is-active { opacity: 1; visibility: visible; transform: none; }
}

@media (max-width: 1100px) {
  .home-paper-note { left: -8px; }
  .home-paper-source { right: -8px; }
  .home-story-panel { gap: 35px; }
  .home-story-copy p { font-size: 16px; }
}
@media (max-width: 900px) {
  .home-hero { padding: 60px 24px 70px; }
  .home-workspace { margin-top: 50px; }
  .home-paper { width: 220px; padding: 15px 17px; }
  .home-paper p { font-size: 15px; }
  .home-paper-note { top: 18%; left: -7px; }
  .home-paper-source { bottom: 5%; right: -7px; }
  .home-story { padding: 68px 24px 0; }
  .home-story-heading { margin-bottom: 62px; }
  .home-story-panel { grid-template-columns: 1fr; gap: 28px; }
  .home-story-copy p { max-width: 540px; }
  .home-detail-list { display: none; }
  .home-story-panels { gap: 68px; padding-bottom: 70px; }
  .home-find { width: calc(100% - 48px); margin: 80px auto; gap: 35px; }
  .home-find-copy h2 { font-size: 32px; }
  .home-find-copy p { font-size: 16px; }
}
@media (max-width: 600px) {
  .home-page .site-navigation { padding-inline: 16px; column-gap: 6px; }
  .home-page .site-navigation-brand { gap: 5px; font-size: 14px; }
  .home-page .site-navigation-brand img { width: 28px; height: 28px; }
  .home-page .site-navigation-tabs a { padding: 7px 10px; font-size: 12px; }
  .home-page .header-sign-in { font-size: 12px; padding-inline: 5px; }
  .home-hero { padding-top: 45px; }
  .home-hero h1 { font-size: clamp(57px, 13vw, 78px); }
  .home-intro { font-size: 17px; margin-top: 22px; }
  .home-hero-actions { flex-direction: column; gap: 19px; }
  .home-workspace { margin-top: 34px; }
  .home-app-preview { border-radius: 9px; }
  .home-paper { display: none; }
  .home-story-heading p { font-size: 16px; }
  .home-page h2 { font-size: 36px; }
  .home-story-copy h3 { font-size: 30px; }
  .home-story-image { border-radius: 8px; }
  .home-find { grid-template-columns: 1fr; gap: 30px; margin-block: 65px; }
  .home-find-image { order: 2; border-radius: 14px; }
  .home-closing { padding-block: 64px; }
  .home-closing h2 { font-size: 34px; }
  .home-page .site-footer { flex-direction: column; align-items: flex-start; padding: 25px 24px; }
  .home-page .site-footer nav { flex-wrap: wrap; gap: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page *, .home-page *::before, .home-page *::after { animation: none !important; transition: none !important; }
}
