@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-medium.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-semibold.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-bold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-regular.woff2") format("woff2");
}

:root {
  --ink: #0b1730;
  --ink-2: #142548;
  --paper: #f5f8fb;
  --white: #fff;
  --cyan: #72e0d1;
  --cyan-dark: #0b766d;
  --muted: #4a5568;
  --line: #c5d0dc;
  --focus: #0b5fff;
  --pass-ink: #0a534c;
  --pending-ink: #5c4308;
  --shadow: 0 12px 28px rgba(11, 23, 48, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}
button, a { font: inherit; }
code, pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code {
  background: #e8eef4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { letter-spacing: -0.05em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; margin: 0; }
h3 { font-size: 1.1rem; margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.7rem 1rem;
  z-index: 30;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.topbar {
  min-height: 68px;
  padding: 0.7rem max(24px, calc((100vw - 800px) / 2));
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(245, 248, 251, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 44px;
}
.wordmark {
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark .ez,
.wordmark .academy { color: var(--ink); }
.wordmark .ai { color: var(--cyan-dark); }
.topbar nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.topbar nav a:hover { text-decoration: underline; }

.repo-link {
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}
.repo-link:hover { background: var(--ink-2); }

.ghost-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.overview {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(16.5rem, 22rem) minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem 3rem;
  padding: 48px max(24px, calc((100vw - 1120px) / 2)) 44px;
}
.overview-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.3rem 1.1rem;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 14% 6% 10%;
  background: radial-gradient(ellipse at 50% 55%, rgba(114, 224, 209, 0.14), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.device {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}
.device-laptop .device-lid {
  background: #161d2c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 12px 12px 6px 6px;
  padding: 9px 9px 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.device-camera {
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3d4a63, #0a101c 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.device-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  background: #05080f;
  line-height: 0;
}
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: scale(0.97);
  filter: blur(8px);
  clip-path: inset(5% 7% round 8px);
  animation: hero-morph 30s ease-in-out infinite;
  animation-fill-mode: backwards;
}
.hero-slide:first-child {
  opacity: 1;
  transform: scale(1);
  filter: none;
  clip-path: inset(0);
  animation-name: hero-morph-first;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
.hero-slide:nth-child(6) {
  animation-name: hero-morph-last;
  animation-delay: 25s;
}
.device-laptop .device-base {
  position: relative;
  height: 11px;
  margin: 0 -2.4%;
  background: linear-gradient(180deg, #3a4558 0%, #252d3c 55%, #1a2130 100%);
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}
.device-laptop .device-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 18%;
  height: 5px;
  transform: translateX(-50%);
  background: #121826;
  border-radius: 0 0 4px 4px;
}
.hero-pause {
  border: 1.5px solid rgba(114, 224, 209, 0.55);
  background: transparent;
  color: var(--cyan);
  border-radius: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.hero-pause:hover,
.hero-pause[aria-pressed="true"] {
  background: rgba(114, 224, 209, 0.14);
}
.overview.hero-paused .hero-slide {
  animation-play-state: paused;
}
@keyframes hero-morph {
  0% {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
    clip-path: inset(6% 8% round 22px);
  }
  3.33% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    clip-path: inset(0);
  }
  13.33% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    clip-path: inset(0);
  }
  20%, 100% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(8px);
    clip-path: inset(5% 7% round 18px);
  }
}
@keyframes hero-morph-first {
  0%, 13.33% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    clip-path: inset(0);
  }
  20%, 96.67% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(8px);
    clip-path: inset(5% 7% round 18px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    clip-path: inset(0);
  }
}
@keyframes hero-morph-last {
  0% {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
    clip-path: inset(6% 8% round 22px);
  }
  3.33%, 13.33% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    clip-path: inset(0);
  }
  16.67%, 100% {
    opacity: 0;
    transform: scale(0.97);
    filter: blur(8px);
    clip-path: inset(5% 7% round 18px);
  }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  margin: 0 0 0.7rem;
  color: var(--cyan-dark);
}
.overview .eyebrow { color: var(--cyan); }
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 0.7rem;
}
.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.pillars span {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}
.pillars span + span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  align-items: center;
  margin-top: 1.35rem;
}
.overview .info-btn {
  color: var(--cyan);
  border-color: var(--cyan);
}
.overview .info-btn:hover {
  background: rgba(114, 224, 209, 0.14);
}

.info {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.info-btn {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: var(--cyan-dark);
  padding: 0;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}
.info-btn:hover { background: rgba(11, 118, 109, 0.08); }
.info-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 20;
  width: min(260px, 72vw);
  padding: 0.65rem 0.8rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.4;
}
.info-tip-up {
  top: auto;
  bottom: calc(100% + 0.45rem);
}
h2 .info {
  margin-left: 0.35rem;
  vertical-align: 0.15em;
}

.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-heading { margin-bottom: 1.1rem; }
.section-heading > p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.harness-list {
  display: grid;
  gap: 0.65rem;
}
.harness {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.harness-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.harness-toggle:hover { background: #eef3f8; }
.harness-name { font-weight: 700; font-size: 1.05rem; }
.harness-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  justify-self: end;
  transition: transform 0.15s ease;
}
.harness-toggle[aria-expanded="true"] .chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}
.harness-panel {
  padding: 0 1.15rem 1.15rem;
  border-top: 1px solid var(--line);
}
.harness-panel[hidden] { display: none; }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.85rem 0 0;
}
.link-row a { color: var(--cyan-dark); font-weight: 700; }
.os-note { color: var(--muted); font-size: 0.9rem; margin: 0.55rem 0 0; }

.code-block {
  position: relative;
  background: var(--ink);
  color: #e8eef6;
  border-radius: 10px;
  padding: 0.75rem 4.2rem 0.75rem 0.9rem;
  margin: 0.45rem 0 0;
}
.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-block code { background: transparent; color: inherit; padding: 0; }
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--ink-2);
  color: var(--white);
  border-radius: 8px;
  padding: 0.26rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--cyan); }
.copy-btn.copied { background: var(--cyan-dark); border-color: var(--cyan-dark); }

.plain-steps {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
}
.plain-steps li { margin: 0.4rem 0; }
.plain-steps a { color: var(--cyan-dark); font-weight: 700; }

.more {
  margin-top: 0.75rem;
}
.more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-2);
  font-size: 0.88rem;
}
.more summary:hover { color: var(--cyan-dark); }

.scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.scope-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, auto);
  gap: 0.6rem 1rem;
  align-items: baseline;
}
.scope-kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pass-ink);
  margin: 0;
}
.scope-kicker.held { color: var(--cyan-dark); }
.scope-kicker.roadmap { color: var(--muted); }
.scope-list strong { font-size: 0.98rem; }
.scope-list span:last-child { color: var(--muted); font-size: 0.9rem; }
.scope-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  max-width: 800px;
  margin: auto;
  padding: 1.4rem 24px 2.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
}
footer p { margin: 0.2rem 0 0; color: var(--muted); }
footer a {
  color: var(--ink);
  font-weight: 700;
}
footer a:first-of-type { margin-left: auto; }

@media (max-width: 860px) {
  .overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 36px;
    padding-bottom: 32px;
  }
  .hero-stage {
    max-width: min(100%, 36rem);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .topbar nav { display: none; }
  .scope-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 580px) {
  .overview { padding-top: 32px; padding-bottom: 28px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .hero-actions .repo-link { width: 100%; text-align: center; }
  .hero-stage { max-width: 100%; }
  .harness-toggle {
    grid-template-columns: minmax(0, 1fr) 1.25rem;
    grid-template-rows: auto auto;
  }
  .harness-hint { grid-column: 1; }
  .chevron { grid-column: 2; grid-row: 1 / span 2; }
  footer { align-items: flex-start; }
  footer a:first-of-type { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-slide {
    animation: none !important;
    opacity: 0 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  .hero-slide:first-child { opacity: 1 !important; }
  .hero-pause { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #2b3344;
    --line: #7d8a99;
  }
}
