:root {
  --ink: #24343b;
  --ink-soft: #607278;
  --paper: #f7faf8;
  --white: #ffffff;
  --line: rgba(36, 52, 59, .14);
  --mint: #d8eee2;
  --mint-deep: #6b9b80;
  --blue: #e3edf4;
  --peach: #f7e5dc;
  --lavender: #e8e7f2;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --brand: "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --mono: "SF Mono", "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 12%, rgba(216, 238, 226, .55), transparent 27%),
    radial-gradient(circle at 95% 22%, rgba(227, 237, 244, .58), transparent 29%),
    radial-gradient(circle at 51% 92%, rgba(247, 229, 220, .48), transparent 30%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.page-width { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }

.site-header {
  width: min(1120px, calc(100% - 64px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--brand); font-size: 20px; font-weight: 650; letter-spacing: -.035em; }
.brand-mark { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.github-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(36, 52, 59, .16); border-radius: 999px; color: var(--ink-soft); font-size: 14px; font-weight: 650; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.github-cta:hover { border-color: rgba(36, 52, 59, .24); background: rgba(255, 255, 255, .7); color: var(--ink); }
.github-cta:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; }
.github-cta svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
.github-cta-arrow { font-size: 15px; }
.header-cta-mobile { display: none; }
.donate-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 14px; border: 1px solid #171717; border-radius: 12px; background: #ffdd00; color: #171717; font-size: 13px; font-weight: 750; line-height: 1; box-shadow: 0 2px 0 rgba(23, 23, 23, .16); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.donate-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 0 rgba(23, 23, 23, .16); background: #ffe52e; }
.donate-cta:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 3px; }
.donate-icon { font-size: 17px; font-weight: 800; }
.donate-cta-arrow { font-size: 15px; }
.text-link { transition: color .2s ease; }
.text-link:hover { color: var(--mint-deep); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(36, 52, 59, .22);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.header-cta:hover { background: var(--mint); transform: translateY(-1px); }
.header-cta span, .button span { font-size: 17px; line-height: 0; }

.hero {
  padding: clamp(32px, 3.2vw, 46px) 0 72px;
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--mint-deep);
  font: 12px/1.2 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 5px rgba(107, 155, 128, .13); }
.hero .eyebrow { justify-content: center; font: 500 13px/1.4 var(--sans); letter-spacing: .01em; text-transform: none; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: clamp(36px, 7.4vw, 96px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 600;
}
.hero h1 span, .hero h1 em { white-space: nowrap; }
h1 em, h2 em { color: var(--mint-deep); font-style: italic; }
.hero-lede { margin: 0 auto; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 26px 0 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 18px; border-radius: 8px; font-size: 14px; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(36, 52, 59, .13); }
.button-primary { background: var(--mint); color: var(--ink); }
.button-primary:hover { background: #cce7d8; }
.hero-actions .button { min-height: 50px; padding: 13px 21px; border: 1px solid transparent; font-weight: 650; white-space: nowrap; }
.hero-actions .button-primary { background: var(--ink); color: var(--paper); }
.hero-actions .button-primary:hover { background: #38564b; }
.hero-actions .button-secondary { border-color: var(--line); background: rgba(255, 255, 255, .55); }
.hero-actions .button-secondary:hover { background: var(--white); }
.hero-actions a:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 4px; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #38505a; }
.text-link { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.text-link span { color: var(--mint-deep); margin-left: 6px; font-size: 18px; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; color: #718287; font: 12px/1.5 var(--sans); }
.proof-row span { padding-right: 16px; border-right: 1px solid var(--line); white-space: nowrap; }
.proof-row span:last-child { padding-right: 0; border-right: 0; }

.hero-visual { position: relative; margin-top: 40px; isolation: isolate; }
.hero-glow { position: absolute; inset: -40px 0 8%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(185, 216, 201, .42), rgba(216, 238, 226, 0) 70%); pointer-events: none; }
.hero-player { position: relative; aspect-ratio: 2; filter: drop-shadow(0 24px 32px rgba(36, 52, 59, .14)) drop-shadow(0 4px 10px rgba(36, 52, 59, .06)); }
.hero-shot { display: block; width: 100%; height: auto; border-radius: 1.667% / 3.334%; }
.hero-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 1.667% / 3.334%; opacity: 0; pointer-events: none; }
.hero-player.has-video .hero-video { opacity: 1; }
.hero-player.has-video .hero-poster { opacity: 0; }
.hero-playback-row { display: flex; justify-content: flex-end; min-height: 44px; margin-top: 10px; }
.hero-playback { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font: 500 12px/1.4 var(--sans); cursor: pointer; }
.hero-playback:hover { background: var(--mint); color: var(--ink); }
.hero-playback:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 2px; }
.hero-playback[hidden], .hero-playback .playback-pause { display: none; }
.hero-playback.is-playing .playback-pause { display: block; }
.hero-playback.is-playing .playback-play { display: none; }

.keyword-strip { overflow: hidden; }
.keyword-track { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0 0; color: #718287; font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.keyword-track i { color: var(--mint-deep); font-style: normal; }

.use-cases { padding: 104px 0 136px; }
.section-intro { max-width: 860px; margin: 0 auto; text-align: center; }
.section-heading { max-width: none; }
.section-intro h2, .how-copy h2, .download-card h2 { margin: 0 0 18px; font-family: var(--display); font-size: clamp(45px, 5.6vw, 70px); line-height: .97; letter-spacing: -.065em; font-weight: 600; }
.section-intro h2 { text-wrap: balance; }
.section-intro > p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); font-size: 17px; text-wrap: balance; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.case-card { display: grid; grid-template-rows: auto minmax(230px, 1fr); overflow: hidden; border: 1px solid rgba(121, 142, 146, .22); border-radius: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 17px 30px rgba(36, 52, 59, .11), 0 4px 9px rgba(36, 52, 59, .06); transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; will-change: transform; }
.case-card:hover, .case-card:focus-within { transform: translate3d(0, -6px, 0) scale(1.006); box-shadow: 0 1px 0 rgba(255, 255, 255, .76) inset, 0 28px 46px rgba(36, 52, 59, .16), 0 8px 15px rgba(36, 52, 59, .08); }
.case-day { background: var(--blue); }
.case-interview { background: var(--peach); }
.case-focus { background: var(--lavender); }
.case-image { display: flex; align-items: flex-start; width: 100%; height: auto; min-height: 0; aspect-ratio: 2 / 1; overflow: hidden; padding: 0; }
.case-image-shot img { display: block; width: 100%; height: auto; max-width: none; margin: 0; align-self: flex-start; }
.case-body { min-height: 248px; padding: 28px 28px 31px; }
.case-kicker { color: var(--ink-soft); font: 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.case-body h3 { margin: 16px 0 13px; font-family: var(--display); font-size: 29px; line-height: 1.04; letter-spacing: -.055em; }
.case-body p { max-width: 285px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.56; }

.how-section { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(48px, 8vw, 108px); padding: 8px 0 116px; }
.how-copy { padding-top: 0; }
.how-copy h2 { max-width: 430px; margin-bottom: 24px; }
.how-lede { max-width: 390px; margin: 0 0 26px; color: var(--ink-soft); font-size: 17px; }
.how-copy .text-link { display: inline-block; margin-top: 4px; color: var(--ink); }
.how-list { display: grid; gap: 40px; padding-top: 4px; }
.how-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 0; }
.how-item > span { display: block; padding-top: 5px; color: var(--mint-deep); font: 12px/1 var(--mono); }
.how-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.how-item p { max-width: 500px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

.download-section { padding-bottom: 72px; }
.download-card { min-height: 330px; position: relative; display: flex; align-items: center; overflow: hidden; padding: 54px 62px; border-radius: 20px; background: var(--mint); }
.download-card h2 { margin-bottom: 17px; }
.download-card h2 em { color: #5f8f74; }
.download-card > div:first-child > p:not(.eyebrow) { max-width: 430px; margin-bottom: 0; color: rgba(36, 52, 59, .72); font-size: 17px; }
.download-actions { display: flex; align-items: center; gap: 17px; margin-top: 25px; }
.download-actions > span { color: rgba(36, 52, 59, .62); font: 11px var(--mono); }
.download-mark { position: absolute; right: 72px; bottom: 48px; opacity: .38; transform: rotate(-9deg); }
.download-mark .brand-mark { width: 132px; height: 132px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 31px; color: #78898d; font-size: 13px; }
.site-footer p { margin: 0; }
.footer-meta { display: flex; align-items: center; gap: 18px; }
.footer-github { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 13px; font-weight: 650; transition: color .2s ease; }
.footer-github:hover { color: var(--mint-deep); }
.footer-github:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 2px; }
.footer-github span { font-size: 15px; }
.footer-meta > span { font: 11px var(--mono); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease, box-shadow .3s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .case-card { opacity: 1; transform: none; transition: none; }
  .case-card:hover, .case-card:focus-within { transform: none; }
}

@media (max-width: 930px) {
  .page-width, .site-header { width: min(100% - 44px, 700px); }
  .hero-visual { width: calc(100% - 44px); }
  .how-section { grid-template-columns: 1fr; gap: 42px; }
  .case-grid { grid-template-columns: 1fr; gap: 22px; }
  .case-card { grid-template-columns: 1fr; grid-template-rows: auto minmax(220px, auto); align-items: stretch; }
  .case-image { height: auto; min-height: 0; aspect-ratio: 2 / 1; padding: 0; }
  .case-body { padding: 30px 28px 32px; }
  .download-card { padding: 48px 42px; }
  .download-mark { right: 40px; }
}

@media (max-width: 600px) {
  .page-width, .site-header { width: calc(100% - 32px); }
  .site-header { height: 70px; }
  .header-cta { padding: 9px 11px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .github-cta { width: 38px; height: 38px; justify-content: center; padding: 0; border-radius: 50%; }
  .github-cta-label, .github-cta-arrow { display: none; }
  .header-cta-desktop { display: none; }
  .header-cta-mobile { display: inline; }
  .donate-cta { width: 38px; min-height: 38px; height: 38px; justify-content: center; padding: 0; border-radius: 50%; }
  .donate-cta-label, .donate-cta-arrow { display: none; }
  .hero { padding: 38px 0 48px; }
  .hero .eyebrow { font-size: 11px; }
  .hero h1 { font-size: clamp(32px, 9vw, 54px); margin: 16px 0 14px; }
  .hero-lede { max-width: 360px; font-size: 16px; }
  .hero-actions { gap: 10px; margin-top: 22px; }
  .hero-actions .button { min-height: 46px; padding: 11px 14px; font-size: 13px; gap: 9px; }
  .proof-row { gap: 8px 10px; font-size: 11px; }
  .proof-row span { padding-right: 10px; }
  .hero-visual { width: calc(100% - 32px); margin-top: 30px; }
  .hero-glow { inset: -24px 0 0; }
  .keyword-track { width: max-content; justify-content: flex-start; gap: 15px; overflow: hidden; }
  .use-cases { padding: 76px 0 96px; }
  .section-intro h2, .how-copy h2, .download-card h2 { font-size: 49px; }
  .case-grid { gap: 24px; margin-top: 45px; }
  .case-card { display: block; }
  .case-image { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
  .how-section { padding-bottom: 95px; }
  .how-item { grid-template-columns: 37px 1fr; gap: 11px; }
  .download-card { min-height: 445px; padding: 38px 25px; align-items: flex-start; }
  .download-actions { align-items: flex-start; flex-direction: column; gap: 13px; }
  .download-mark { right: 20px; bottom: 26px; transform: rotate(-9deg) scale(.76); transform-origin: bottom right; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 11px; padding-bottom: 24px; }
}

@media (max-width: 380px) {
  .site-header { width: calc(100% - 24px); }
  .header-cta { gap: 5px; padding: 8px; font-size: 11px; }
  .github-cta { width: 34px; height: 34px; }
  .donate-cta { width: 34px; height: 34px; min-height: 34px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
}
