@font-face {
  font-family: "Anime Mono";
  src: url("./examples/assets/fonts/IoskeleyMono-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: #131313;
  --line: #2a2a2a;
  --muted: #929292;
  --text: #f7f7f2;
  --red: #ff4b4b;
  --green: #00ff5d;
  --cyan: #4bfffd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Anime Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(14px);
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 22px rgba(255,75,75,.6); }
nav { display: flex; gap: 28px; }
nav a { color: #c8c8c3; font-size: .875rem; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--green); }

main { overflow: hidden; }

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: center;
  padding: clamp(64px, 10vh, 112px) 6vw;
}

.eyebrow { margin: 0 0 18px; color: var(--red); font-size: .78rem; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-family: Arial, Helvetica, sans-serif; font-size: clamp(4.1rem, 8vw, 9rem); line-height: .82; letter-spacing: -.075em; }
h1 span { color: var(--green); }
.intro { max-width: 650px; color: #b8b8b2; font-size: clamp(1rem, 1.35vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); font-size: .9rem; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #080808; border-color: var(--green); background: var(--green); }
.button-secondary:hover { border-color: #717171; }
.install { width: min(100%, 390px); display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 13px 14px 13px 17px; border: 1px solid var(--line); background: #0e0e0e; }
.install code { color: #cecec8; font-family: inherit; font-size: .84rem; }
.install button { border: 0; color: var(--cyan); background: none; font: inherit; font-size: .8rem; cursor: pointer; }

.stage { position: relative; aspect-ratio: 1 / 1; max-height: 630px; border: 1px solid var(--line); background: #101010; overflow: hidden; }
.stage-grid { position: absolute; inset: 0; opacity: .32; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 52px 52px; }
.orbital { position: absolute; inset: 50%; width: 64%; height: 64%; border: 1px solid #3b3b3b; border-radius: 50%; transform: translate(-50%, -50%); }
.orbital-b { width: 38%; height: 38%; border-style: dashed; }
.motion-dot { position: absolute; width: 22px; height: 22px; background: var(--red); }
.dot-a { top: calc(50% - 11px); left: calc(18% - 11px); border-radius: 50%; }
.dot-b { top: calc(31% - 8px); left: calc(50% - 8px); width: 16px; height: 16px; background: var(--cyan); }
.dot-c { top: calc(50% - 8px); left: calc(69% - 8px); width: 16px; height: 16px; background: var(--green); }
.stage-label { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .09em; }
.stage-label span { color: var(--green); }

.examples { padding: 100px 4vw 120px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 0; font-family: Arial, Helvetica, sans-serif; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.06em; line-height: .95; }
.section-heading > p { max-width: 410px; margin-bottom: 6px; color: var(--muted); font-size: .9rem; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.example-card { position: relative; min-height: 340px; display: flex; flex-direction: column; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: background .25s ease; }
.example-card:hover, .example-card:focus-visible { background: #191919; outline: none; }
.card-index { color: #666; font-size: .74rem; }
.card-art { position: relative; min-height: 185px; display: grid; place-items: center; flex: 1; color: var(--green); }
.card-copy { display: flex; flex-direction: column; gap: 5px; padding-right: 34px; }
.card-copy strong { font-size: 1rem; }
.card-copy small { color: var(--muted); font-size: .72rem; }
.arrow { position: absolute; right: 20px; bottom: 20px; color: var(--green); font-size: 1.2rem; transition: transform .2s ease; }
.example-card:hover .arrow { transform: translate(3px, -3px); }
.featured { grid-column: span 2; }
.logo-art { display: flex; align-items: center; justify-content: center; gap: 14px; }
.logo-art i { width: 20%; height: 20%; background: white; }
.logo-art i:first-child { background: var(--red); transform: skew(-12deg); }
.logo-art i:last-child { background: var(--green); border-radius: 50%; }
.drag-art i { width: 105px; height: 105px; border-radius: 22px; background: var(--red); box-shadow: 34px 28px 0 rgba(255,75,75,.14); transform: rotate(13deg); }
.firefly-art { display: block; }
.firefly-art i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
.firefly-art i:nth-child(1) { left: 27%; top: 28%; }.firefly-art i:nth-child(2) { left: 62%; top: 40%; }.firefly-art i:nth-child(3) { left: 43%; top: 67%; }.firefly-art i:nth-child(4) { left: 73%; top: 75%; }
.line-art svg { width: 80%; overflow: visible; }.line-art path { fill: none; stroke: var(--cyan); stroke-width: 3; }
.loop-art { display: flex; justify-content: center; align-items: center; gap: 8px; }.loop-art i { width: 24px; height: 24px; border-radius: 50%; background: var(--red); opacity: calc(.2 + var(--n)); }.loop-art i:nth-child(2) { transform: translateY(-18px); }.loop-art i:nth-child(4) { transform: translateY(18px); }.loop-art i:nth-child(3) { background: var(--green); }
.cursor-art i:first-child { width: 100px; height: 100px; border: 1px solid #555; border-radius: 50%; }.cursor-art i:last-child { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--red); transform: translate(42px, -35px); box-shadow: -45px 30px 0 var(--cyan); }
.grid-art { white-space: pre; color: var(--red); font-size: 1.7rem; line-height: 1.25; letter-spacing: .2em; }
.clock-art i:first-child { width: 110px; height: 110px; border: 2px solid var(--text); border-radius: 50%; }.clock-art i:last-child { position: absolute; width: 2px; height: 45px; background: var(--green); transform-origin: 50% 100%; transform: translateY(-22px) rotate(35deg); }
.canvas-art i { position: absolute; width: 58px; height: 58px; border: 1px solid var(--green); transform: rotate(45deg); }.canvas-art i:nth-child(2) { width: 92px; height: 92px; border-color: var(--cyan); }.canvas-art i:nth-child(3) { width: 124px; height: 124px; border-color: var(--red); }
.scroll-art { display: flex; gap: 8px; align-items: center; justify-content: center; }.scroll-art i { width: 20%; height: 85px; background: #252525; border-top: 3px solid var(--red); }.scroll-art i:nth-child(2) { height: 125px; border-color: var(--green); }
.type-art { color: var(--text); font-size: 3rem; letter-spacing: -.08em; }.type-art::after { content: ""; width: 3px; height: 44px; margin-left: 5px; background: var(--green); }
.carousel-art { display: flex; gap: 10px; align-items: center; justify-content: center; }.carousel-art i { width: 70px; height: 100px; border-radius: 7px; background: var(--red); }.carousel-art i:first-child, .carousel-art i:last-child { opacity: .22; transform: scale(.78); }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px 4vw; border-top: 1px solid var(--line); color: #727272; font-size: .75rem; }
footer p { margin: 0; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stage { width: min(100%, 580px); }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  nav { gap: 15px; }
  nav a:first-child { display: none; }
  .hero { padding-inline: 5vw; }
  h1 { font-size: clamp(3.6rem, 20vw, 5.7rem); }
  .stage { min-height: 340px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .example-grid { grid-template-columns: 1fr; }
  .featured { grid-column: auto; }
  .example-card { min-height: 300px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
