@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

html.home,
body.home {
  background: #05070c;
  color: #eef3f8;
  font-family: "Bricolage Grotesque", var(--sans);
}
body.home {
  min-height: 100vh;
  overflow-x: hidden;
}
body.home ::selection {
  background: #7dd3fc;
  color: #05070c;
}

.home-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  margin: -21vw 0 0 -21vw;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.28) 0%, rgba(125, 211, 252, 0.08) 38%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.home-cursor.is-on { opacity: 1; }

.home-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.home-sky .constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.home-shell { position: relative; z-index: 1; }

.home-nav {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
}
.home-nav .brand-mark { color: #fff; letter-spacing: 0.18em; }
.home-nav .brand-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.home-nav .brand-links a { color: rgba(255, 255, 255, 0.86); }
.home-nav .brand-links a:hover,
.home-nav .brand-links a[aria-current="page"] { color: #fff; }
.home-nav .brand-links a.home-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #7dd3fc;
  color: #05070c;
  text-decoration: none;
  font: 800 0.88rem/1 "Bricolage Grotesque", var(--sans);
}
.home-nav .brand-links a.home-nav-cta:hover {
  background: #fff;
  color: #05070c;
  transform: translateY(-1px);
}
.home-nav-cta:focus-visible,
.home-btn:focus-visible,
.home-pill:focus-visible,
.home-run:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.home-hero {
  min-height: calc(100svh - 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10vh 0 12vh;
}
.home-kicker {
  margin: 0 0 14px;
  color: #7dd3fc;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.home-lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: rgba(238, 243, 248, 0.78);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.5;
}
.home-lede code {
  font-family: "IBM Plex Mono", var(--mono);
  color: #7dd3fc;
  font-size: 0.92em;
}
.home-words {
  margin: 18px 0 0;
  color: rgba(238, 243, 248, 0.42);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 0.95rem/1 "Bricolage Grotesque", var(--sans);
  border: 1px solid transparent;
}
.home-btn-p { background: #7dd3fc; color: #05070c; }
.home-btn-p:hover { background: #fff; transform: translateY(-2px); }
.home-btn-g {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.home-btn-g:hover { background: rgba(255, 255, 255, 0.12); }

.home-studio {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 12vh;
  scroll-margin-top: 96px;
}
.home-studio-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 1px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.home-code,
.home-side {
  background: rgba(5, 7, 12, 0.72);
  min-height: 420px;
}
.home-code { padding: 22px 22px 18px; display: flex; flex-direction: column; }
.home-label {
  margin: 0 0 14px;
  color: rgba(238, 243, 248, 0.42);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}
.home-code textarea {
  flex: 1;
  width: 100%;
  min-height: 220px;
  border: 0;
  resize: none;
  background: transparent;
  color: #f4f4f0;
  font: 15px/1.65 "IBM Plex Mono", var(--mono);
  outline: none;
}
.home-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.home-hint { color: rgba(238, 243, 248, 0.38); font-size: 0.75rem; }
.home-run {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #05070c;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.home-run:hover { transform: translateY(-2px); }
.home-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-pill {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(238, 243, 248, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 0.78rem "Bricolage Grotesque", var(--sans);
  cursor: pointer;
}
.home-pill:hover,
.home-pill.is-on { color: #fff; border-color: rgba(125, 211, 252, 0.45); }

.home-side { padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.home-out {
  color: #b8c8d8;
  font: 14px/1.65 "IBM Plex Mono", var(--mono);
  white-space: pre-wrap;
  min-height: 4.5em;
}
.home-out .err { color: #f0a8a0; }
.home-mem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-chip {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.16);
  font: 500 0.78rem/1.2 "IBM Plex Mono", var(--mono);
}
.home-chip b { color: #7dd3fc; font-weight: 500; }
.home-chip span { color: #eef3f8; }

.home-proof {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 18vh;
  display: grid;
  gap: 0;
}
.home-proof article {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.home-proof article:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.home-proof .n {
  color: #7dd3fc;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.home-proof h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.home-proof p {
  margin: 0;
  max-width: 36em;
  color: rgba(238, 243, 248, 0.72);
  font-size: 1.05rem;
}
.home-proof code {
  font-family: "IBM Plex Mono", var(--mono);
  color: #9ad8f5;
}

.home .sparkles {
  margin-top: 0;
  min-height: 86vh;
  background: transparent;
}
.home .sparkles-fade { background: #05070c; opacity: 0.55; }
.home .sparkles-title {
  font-family: "Bricolage Grotesque", var(--sans);
  letter-spacing: 0.14em;
}
.home .sparkles .brand-foot { color: rgba(238, 243, 248, 0.42); }

.home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.home-reveal.is-in { opacity: 1; transform: none; }

@keyframes home-rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .home-nav { width: calc(100% - 20px); }
  .home-nav-hide { display: none; }
  .home-studio-frame { grid-template-columns: 1fr; }
  .home-code, .home-side { min-height: 0; }
  .home-code textarea { min-height: 148px; }
  .home-proof article { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-kicker,
  .home-hero h1,
  .home-lede,
  .home-words,
  .home-cta,
  .home-reveal {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .home-cursor { display: none; }
}
