:root {
  color-scheme: dark;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: #15112e;
  color: #fff4ef;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #efd2ff; outline-offset: 5px; }

.top, main {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 18px;
  border-bottom: 1px solid #423348;
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.dashboard { color: #dfcfe2; font-size: .9rem; text-underline-offset: .25em; }
.dashboard span { margin-left: .25em; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 510px;
  margin-block: 34px 24px;
  overflow: hidden;
  border: 1px solid #4b3852;
  border-radius: 32px;
  background: #f7f5ff;
}

.hero-copy { align-self: center; padding: clamp(28px, 5.2vw, 68px); }
.eyebrow { color: #5933ce; font-weight: 650; margin: 0 0 15px; }
h1 { margin: 0; }
h1 img { display: block; width: min(100%, 460px); height: auto; }
.intro { color: #4c4568; font-size: 1.12rem; line-height: 1.55; max-width: 29ch; margin: 20px 0 28px; }

.download {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1.1rem;
  border-radius: .75rem;
  background: #6039e8;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.download:hover { background: #4c29c9; }
.download:focus, .hero:target .download { outline: 2px solid #6039e8; outline-offset: 5px; }
.download span { font-size: 1.2rem; }
.requirements { color: #4c4568; margin: 12px 0 0; font-size: .9rem; }

.art {
  display: grid;
  isolation: isolate;
  place-items: center;
  position: relative;
  min-height: 270px;
  background: radial-gradient(ellipse at 53% 50%, #deccff 0%, transparent 72%);
}

.orbit, .art img { grid-area: 1 / 1; }
.orbit {
  width: min(86%, 410px);
  aspect-ratio: 1;
  border: 1px solid #9a6ef25c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px #9a6ef211, inset 0 0 0 29px #9a6ef233;
}

.art img {
  width: min(45%, 228px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 16px 36px #653aa74a;
  transform: rotate(-8deg);
}

.setup { display: flex; align-items: baseline; gap: 20px; padding: 0 2px 32px; }
.setup strong { flex: none; }
.setup p { margin: 0; color: #dfcfe2; line-height: 1.55; max-width: 72ch; }

.companions { padding-block: 18px 60px; }
.companions-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.companions-header h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.025em; }
.carousel-controls { display: flex; align-items: center; gap: 12px; color: #dfcfe2; font-variant-numeric: tabular-nums; }
.carousel-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #56476f;
  border-radius: 50%;
  background: #25203b;
  color: #fff4ef;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.carousel-controls button:hover { background: #3a2d55; }
.carousel-controls button:focus-visible { outline: 2px solid #efd2ff; outline-offset: 4px; }
.companion-card {
  display: grid;
  grid-template-columns: minmax(190px, 29%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(14px, 3vw, 28px);
  border: 1px solid #403252;
  border-radius: 26px;
  background: linear-gradient(120deg, #1e192d, #21172f);
}
.companion-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 17px;
  background: #302440;
}
.companion-copy { padding-block: 8px; }
.companion-type {
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #3a2b51;
  color: #f1deff;
  font-size: .86rem;
  font-weight: 650;
}
.companion-copy h3 { margin: .5rem 0; font-size: clamp(2rem, 6vw, 3rem); letter-spacing: -.045em; }
.companion-copy blockquote {
  max-width: 36ch;
  min-height: 3em;
  margin: .5rem 0 1.4rem;
  color: #dfcfe2;
  font-size: clamp(1rem, 2.9vw, 1.25rem);
  font-style: italic;
  line-height: 1.5;
}
.companion-chat {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(105deg, #fa86bd, #d2a2ff);
  color: #211331;
  font-weight: 750;
  text-decoration: none;
}
.companion-chat:hover { background: #e5b4ff; }

@media (max-width: 700px) {
  .top, main { width: calc(100% - 32px); }
  .top { min-height: 64px; }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 24px; margin-top: 20px; }
  .hero-copy { padding-bottom: 0; }
  .orbit { width: min(66%, 235px); }
  .art img { width: min(37%, 135px); }
  .setup { display: block; }
  .setup p { margin-top: 6px; }
}

@media (max-width: 520px) {
  .companion-card { grid-template-columns: 1fr; gap: 12px; }
  .companion-portrait { aspect-ratio: 1; }
  .companion-copy { padding: 6px 5px 10px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
