:root {
  color-scheme: dark;
  --background: #201b39;
  --surface: #2b2549;
  --ink: #fff8f2;
  --muted: #d3cae4;
  --coral: #ffb09c;
  --lilac: #e4d8ff;
  --rule: #675a82;
  font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 5px; }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-header { min-height: 5.25rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 750; text-decoration: none; }
.brand img { flex: none; }
.header-link, .site-footer nav { font-size: .9rem; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.25rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 6rem);
}
.hero h1, .document h1 { margin: 0; font-weight: 800; line-height: .96; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3.75rem, 7.3vw, 7.35rem); }
.hero-copy > p { max-width: 32ch; margin: 1.5rem 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.action {
  display: inline-block;
  padding: .9rem 1.25rem;
  border-radius: .75rem;
  background: var(--coral);
  color: var(--background);
  font-weight: 750;
  text-decoration: none;
}
.action:hover { background: #ffc0b0; }
.hero-copy > .access-note { max-width: 39ch; margin: .8rem 0 0; font-size: .875rem; }

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid var(--rule);
  border-radius: 2rem;
  background: #342853;
}
.orbit { position: absolute; z-index: -1; aspect-ratio: 1; border: 1px solid #796790; border-radius: 50%; }
.orbit-wide { width: 110%; left: -21%; top: -30%; }
.orbit-small { width: 84%; left: -8%; top: -11%; }
.conversation {
  position: absolute;
  top: 16%;
  left: 10%;
  width: min(78%, 22rem);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background: var(--background);
  box-shadow: 0 1.25rem 3rem #180d3670;
  transform: rotate(-6deg);
}
.chat-header { display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid var(--rule); padding: .7rem .95rem; font-weight: 700; }
.avatar { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: var(--lilac); color: var(--background); }
.chat-body { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; padding: .7rem .95rem 1.15rem; }
.chat-note { align-self: center; color: var(--muted); font-size: .75rem; }
.bubble { padding: .5rem .75rem; border-radius: .9rem; font-size: clamp(.85rem, 1.4vw, 1rem); }
.incoming { background: #403460; border-bottom-left-radius: .25rem; }
.outgoing { align-self: flex-end; background: var(--lilac); color: var(--background); border-bottom-right-radius: .25rem; }
.event {
  position: absolute;
  right: 7%;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.15rem .85rem .85rem;
  border-radius: 1rem;
  background: var(--coral);
  color: var(--background);
  box-shadow: 0 1rem 2rem #180d3655;
  transform: rotate(7deg);
}
.event-icon { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .65rem; background: #ffdbcf; }
.event-icon span { width: 1rem; height: 1rem; border: 2px solid currentColor; border-top-width: 5px; border-radius: .2rem; }
.event small { display: block; }

.features { background: var(--surface); border-block: 1px solid var(--rule); }
.features-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding-block: 1.5rem; }
.features-list > div { padding: .45rem clamp(1rem, 3vw, 2rem); border-left: 1px solid var(--rule); }
.features-list > div:first-child { padding-left: 0; border-left: 0; }
.features-list dt { font-weight: 750; font-size: 1.18rem; }
.features-list dd { margin: .25rem 0 0; color: var(--muted); }
.site-footer { padding-block: 1.7rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; }

.document { max-width: 46rem; min-height: 65vh; margin-inline: auto; padding-block: 3rem; }
.document h1 { font-size: clamp(2.35rem, 6vw, 4.65rem); overflow-wrap: anywhere; }
.document h2 { margin: 2rem 0 .45rem; font-size: 1.22rem; }
.document p, .document li { color: var(--muted); }
.document aside { margin-top: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--coral); }

@media (max-width: 45rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.35rem, 10.5vw, 5.9rem); }
  .scene { min-height: 21rem; }
  .conversation { top: 12%; }
  .event { bottom: 8%; }
  .features-list { grid-template-columns: 1fr; padding-block: .65rem; }
  .features-list > div, .features-list > div:first-child { padding: .85rem 0; border: 0; }
  .features-list > div + div { border-top: 1px solid var(--rule); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
