@font-face {
  font-family: "Inter";
  src: url("./assets/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/Inter-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg0: #07040f;
  --bg1: #0a0714;
  --panel: rgba(12, 9, 24, 0.82);
  --panel2: rgba(16, 12, 30, 0.72);
  --text: #eadcff;
  --muted: #eadcff;
  --faint: #eadcff;
  --border: rgba(255, 255, 255, 0.9);
  --border2: rgba(255, 255, 255, 0.25);
  --shadow: rgba(0, 0, 0, 0.55);
  --accent: #7c3aed;
  --accent2: #9b6bff;
  --focus: rgba(155, 107, 255, 0.55);

  --radius: 18px;
  --titlebarH: 46px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 900px at 25% 18%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(900px 700px at 78% 12%, rgba(155, 107, 255, 0.16), transparent 55%),
    radial-gradient(900px 900px at 70% 95%, rgba(124, 58, 237, 0.15), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.page {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 3.2vw, 48px);
  display: grid;
  place-items: center;
}

.artboard {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.bg {
  position: absolute;
  opacity: 0.95;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  transform-origin: center;
}

.bg--starsTopPeek {
  top: 0;
  left: 50%;
  width: clamp(160px, 18vw, 280px);
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.bg--starsBottomLeftPeek {
  bottom: 0;
  left: 0;
  width: clamp(160px, 18vw, 280px);
  transform: translateY(50%);
  opacity: 0.85;
}

.bg--fabricTopLeft {
  top: clamp(-40px, -2.4vw, -10px);
  left: clamp(-220px, -12vw, -70px);
  width: clamp(420px, 46vw, 780px);
  opacity: 0.55;
  transform: rotate(-6deg);
}

.bg--curlTopRight {
  top: clamp(-80px, -4.8vw, -24px);
  right: clamp(-240px, -14vw, -80px);
  width: clamp(260px, 30vw, 470px);
  opacity: 0.62;
  transform: rotate(10deg);
}

.bg--donutBottomRight {
  bottom: clamp(-180px, -12vw, -70px);
  right: clamp(-240px, -12vw, -80px);
  width: clamp(360px, 44vw, 720px);
  opacity: 0.5;
  transform: rotate(-8deg);
}

.panels {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
}

@media (max-width: 1099px) {
  .panels {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
  }

  .bg--fabricTopLeft {
    left: -300px;
    opacity: 0.42;
  }
  .bg--curlTopRight {
    right: -320px;
    opacity: 0.5;
  }
  .bg--donutBottomRight {
    right: -320px;
    opacity: 0.42;
  }
}

.panel {
  position: relative;
  min-width: 400px;
  border-radius: var(--radius);
  border: 4px solid #fff;
  background: #16121c;
  box-shadow: 0 10px 0px #fff;
  overflow: hidden;
}

@media (max-width: 1099px) {
  .panel {
    min-width: 0;
  }
}

.panel--streams {
  z-index: 2;
}

.panel--newsletter {
  z-index: 1;
}

.panel--pausepreamble {
  z-index: 0;
}

@media (min-width: 1100px) {
  /* Tuck panels 2 and 3 under the previous by 40px. */
  .panel--newsletter {
    margin-left: -40px;
  }

  .panel--pausepreamble {
    margin-left: -40px;
  }
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border2);
  pointer-events: none;
}

.panel__titlebar {
  height: var(--titlebarH);
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 4px solid rgba(255, 255, 255, 1);
  background: rgba(0, 0, 0, 0.18);
}

.titlebar__spacer {
  flex: 1;
}

.titlebar__controlsSvg {
  height: 18px;
  width: auto;
  opacity: 0.95;
}

.titlebar__controls {
  display: inline-flex;
  gap: 10px;
}

.titlebar__btn {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}

.titlebar__btn[data-variant="min"] {
  border-radius: 5px;
}

.titlebar__btn[data-variant="close"] {
  border-radius: 50%;
}

.panel__body {
  padding: 64px;
}

.panel__logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 32px;
}

.panel__logo--center {
  height: 48px;
}

.panel__lead {
  margin: 0 0 32px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.panel__meta {
  margin: 0 0 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.panel__metaSub {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 12px;
}

.panel__nav {
  margin-top: 0;
}

.socialList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.socialItem {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.socialItem__icon {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
}

.socialItem__handle {
  font-size: 13px;
  color: var(--text);
  opacity: 0.92;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socialItem__go {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.socialItem__go img {
  width: 18px;
  height: 18px;
  opacity: 0.92;
}

.socialItem__go:focus-visible,
.rowLink:focus-visible,
.newsletterForm__submit:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.socialItem__go:hover {
  transform: translateX(1px);
  border-color: rgba(155, 107, 255, 0.6);
  background: rgba(155, 107, 255, 0.12);
}

.newsletterForm {
  margin-top: 0;
}

.newsletterForm__label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #eadcff;
}

.newsletterForm__pill {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(155, 107, 255, 0.9);
  background: #7f29ff10;
  height: 36px;
}

.newsletterForm__pill:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.newsletterForm__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 0 40px 0 0;
  min-width: 0;
  height: 100%;
  line-height: 1;
}

.newsletterForm__input::placeholder {
  color: #eadcff;
}

.newsletterForm__submit {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: none;
  border-radius: 999px;
  background: #7f29ff;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.newsletterForm__submit:hover {
  background: #6f10fe;
}

.newsletterForm__submitIcon {
  width: 16px;
  height: 16px;
  opacity: 0.92;
}

.panel__muted {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.formStatus {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.formStatus[data-kind="error"] {
  color: #eadcff;
}

.formStatus[data-kind="success"] {
  color: #eadcff;
}

.panel__rule {
  margin: 22px 0 16px;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.rowLinks {
  display: grid;
  gap: 10px;
}

.rowLink {
  display: grid;
  grid-template-columns: 34px auto 1fr 44px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.rowLink:hover {
  border-color: rgba(155, 107, 255, 0.55);
  background: rgba(155, 107, 255, 0.08);
}

.rowLink__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0;
}

.rowLink__label {
  font-size: 13px;
  font-weight: 400;
}

.rowLink__go {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(0, 0, 0, 0.12);
}

.rowLink__go img {
  width: 18px;
  height: 18px;
  opacity: 0.92;
}

.isDisabled {
  opacity: 0.35;
  filter: grayscale(0.2);
}

.isDisabled .socialItem__go {
  pointer-events: none;
}

.srOnly {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hide Kit's alert list visually; we mirror it into .formStatus */
.formkit-alert {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .socialItem__go:hover,
  .newsletterForm__submit:hover {
    transform: none;
  }
}

