.home {
  --paper: #080b0f;
  --ink: #f2f5fa;
  --muted: #a8b4c4;
  --accent: #9bd8ff;
  --line: #27303b;
  --night: #050608;
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}
.home [id] { scroll-margin-top: 5rem; }
.home .skip { color: #102e48; }
.home .product-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #090c10ed;
  backdrop-filter: blur(18px);
}
.home .nav { min-height: 58px; }
.home .nav nav { align-items: center; gap: clamp(.7rem, 3vw, 1.7rem); }
.home .nav .docs-link {
  padding: .42rem .82rem;
  border-radius: 999px;
  background: #d6eeff;
  color: #0e2738;
  font-weight: 650;
}
.home .nav .docs-link:hover { background: white; }
.product-hero {
  background: var(--night);
  border-bottom: 1px solid #ffffff10;
}
.product-hero .hero-copy { padding-top: clamp(3.4rem, 7vw, 6.4rem); }
.product-name {
  margin-bottom: .85rem;
  font-size: clamp(1.17rem, 2.4vw, 1.8rem);
  font-weight: 650;
  letter-spacing: -.025em;
}
.product-hero h1 { font-size: clamp(2.85rem, 8.5vw, 7.65rem); line-height: .98; }
.product-hero .hero-summary { max-width: 33rem; margin-top: 1.25rem; }
.product-hero .hero-actions { margin-top: 1.45rem; }
.product-hero .signal {
  width: min(100%, 1560px);
  margin-top: clamp(-4.1rem, -4vw, -1rem);
  mask-image: linear-gradient(transparent, #000 15%, #000 87%, transparent);
}
.chapter { padding-block: clamp(3.75rem, 8vw, 7.4rem); }
.chapter-header { margin-bottom: clamp(1.6rem, 4vw, 2.85rem); }
.chapter-header h2 {
  max-width: 17ch;
  color: var(--ink);
  font-size: clamp(2.45rem, 6.1vw, 5.5rem);
  letter-spacing: -.062em;
  line-height: .99;
}
.chapter-header p:not(.chapter-label) {
  max-width: 42rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.24rem);
  line-height: 1.6;
}
.chapter-label {
  margin-bottom: .75rem;
  color: var(--accent);
  font-size: .92rem;
  font-weight: 650;
}
.text-link, .resource-links a { font-weight: 650; text-underline-offset: .24em; }
.demo-chapter { background: #0c1015; }
.demo-chapter .demo-heading {
  margin-bottom: 1.75rem;
  justify-content: space-between;
}
.demo-chapter .demo-heading h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
.demo-chapter iframe {
  display: block;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: clamp(.65rem, 2vw, 1.4rem);
  background: var(--night);
}
.mechanism { background: #080b0f; }
.lock-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 22rem;
  padding: clamp(1.5rem, 5vw, 4.1rem);
  border: 1px solid #263e4d;
  border-radius: 1.4rem;
  background: radial-gradient(ellipse at 80% 42%, #1a3547, #0d1822 40%, #0a1118 78%);
}
.lock-copy h3 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -.05em; }
.lock-copy p { max-width: 29rem; margin-top: .85rem; color: #b9c8d6; line-height: 1.6; }
.lock-copy p code { color: #e6f1fa; }
.file-change { display: grid; gap: .75rem; justify-items: center; }
.file-change code {
  display: block;
  width: min(100%, 22rem);
  padding: .9rem clamp(.7rem, 3vw, 1.5rem);
  border: 1px solid #b5ddff42;
  border-radius: .85rem;
  background: #0b151dda;
  box-shadow: inset 0 1px #e0f4ff24, 0 10px 22px #03080e5e;
  color: #d4e4f3;
  font-size: clamp(.85rem, 2.4vw, 1.4rem);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.file-change span { color: #9ed9ff; font-size: 1.25rem; }
.file-change strong { color: #ffbb77; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.8rem; margin: 2.65rem 0 0; }
.feature-list div { border-top: 1px solid var(--line); padding: 1.25rem 0 1.35rem; }
.feature-list dt { color: var(--ink); font-size: 1.24rem; font-weight: 680; }
.feature-list dd { max-width: 32rem; margin: .5rem 0 0; color: var(--muted); line-height: 1.58; }
.results { border-block: 1px solid var(--line); background: linear-gradient(143deg, #0f2030, #0a1017 57%, #0a0e14); }
.results .chapter-header h2 { max-width: 18ch; }
.lab-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(2rem, 6vw, 4.6rem) 0 0;
}
.lab-metrics div { padding: 1.3rem 0; border-top: 1px solid #38566b; }
.lab-metrics dt {
  color: #a0deff;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  font-weight: 690;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.065em;
  line-height: .95;
}
.lab-metrics dd { max-width: 17rem; margin: .8rem 0 0; color: #d4dfeb; line-height: 1.5; }
.result-note { max-width: 44rem; margin-top: 1.5rem; color: var(--muted); line-height: 1.6; }
.setup { background: #f5f7fa; color: var(--ink); color-scheme: light; --ink: #141c26; --muted: #465567; --accent: #06558c; --line: #ccd7e1; }
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 3rem);
}
.setup-step { min-width: 0; border-top: 1px solid var(--line); padding-top: 1.35rem; }
.setup-step h3, .integration-config h3, .built-with h3 { font-size: 1.37rem; }
.setup-step p { margin-top: .85rem; color: var(--muted); line-height: 1.6; }
.setup-step pre {
  overflow: auto;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: .7rem;
  background: #101a26;
  color: #e1effb;
  font-size: .88rem;
  line-height: 1.55;
}
.setup-step p code { overflow-wrap: anywhere; }
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.55rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.integrations { background: #101721; }
.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: 2rem 3.5rem;
}
.integration-grid .chapter-header { margin: 0; }
.integration-grid .text-link { display: inline-block; margin-top: 1.2rem; }
.integration-config {
  align-self: center;
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #0a111a;
}
.integration-config ul { padding: 0; margin: 1rem 0 0; list-style: none; color: #b3dcfb; }
.integration-config li + li { margin-top: .5rem; }
.integration-config li code { overflow-wrap: anywhere; }
.built-with { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.35rem; }
.built-with p { max-width: 55rem; margin-top: .6rem; color: var(--muted); line-height: 1.6; }
.boundaries .chapter-header h2, .team .chapter-header h2 { font-size: clamp(2.2rem, 5vw, 4.35rem); }
.limits-list { border-bottom: 1px solid var(--line); }
.limits-list details { border-top: 1px solid var(--line); padding-inline: .15rem; }
.limits-list summary { cursor: pointer; padding-block: 1.2rem; font-weight: 680; font-size: 1.085rem; }
.limits-list summary::marker { color: var(--accent); }
.limits-list summary:focus-visible { outline: 2px solid #1589dd; outline-offset: 2px; }
.limits-list p { max-width: 47rem; padding-bottom: 1.25rem; color: var(--muted); line-height: 1.65; }
.team { background: #0f141c; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.team-list li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.team-list h3 { font-size: 1.25rem; }
.team-list p { margin-top: .65rem; color: var(--muted); }
.acknowledgments { margin-top: 2.35rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.home .product-footer { background: #080b0f; }
.product-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
.product-footer .footer-brand { color: var(--ink); font-weight: 680; }

@media (max-width: 720px) {
  .product-hero .signal { width: 110%; margin-left: -5%; margin-top: -.35rem; }
  .lock-panel, .setup-grid, .integration-grid { grid-template-columns: minmax(0, 1fr); }
  .lock-panel { min-height: 0; }
  .file-change { justify-items: start; }
  .file-change span { margin-inline-start: 1rem; }
  .lab-metrics { gap: .92rem; }
  .lab-metrics dd { font-size: .9rem; }
}
@media (max-width: 500px) {
  .home .nav { width: calc(100% - 1.5rem); gap: .55rem; }
  .home .nav .brand { font-size: .95rem; }
  .home .nav nav { gap: .66rem; font-size: .77rem; }
  .home .nav .docs-link { padding: .36rem .58rem; }
  .feature-list, .team-list { grid-template-columns: 1fr; }
  .lab-metrics { grid-template-columns: 1fr 1fr; }
  .lab-metrics div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
  .home .nav nav a[href="#how-it-works"] { display: none; }
}
