:root {
  --bg-deep: #07111f;
  --bg-mid: #13294a;
  --text-main: #f6faff;
  --text-soft: rgba(232, 241, 255, 0.8);
  --line-soft: rgba(255, 255, 255, 0.12);
  --blue: #79cfff;
  --indigo: #6f84ff;
  --gold: #ffd476;
  --coral: #ff9f78;
  --leaf: #9de39d;
  --shadow-soft: 0 28px 80px rgba(4, 9, 22, 0.34);
  --radius-lg: 34px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    radial-gradient(circle at 14% 14%, rgba(121, 207, 255, 0.17), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(255, 212, 118, 0.14), transparent 18%),
    radial-gradient(circle at 50% 62%, rgba(111, 132, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #07101c 0%, #0d1b32 46%, #122545 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 64%, rgba(255, 255, 255, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 46% 24%, rgba(255, 255, 255, 0.86) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 76%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px);
  pointer-events: none;
  opacity: 0.5;
}

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

.portal-shell {
  width: calc(100% - 1.25rem);
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.4rem 0 2.2rem;
}

.portal-hero,
.future-note {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.portal-hero {
  padding: 1.35rem 1.2rem 1.55rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(121, 207, 255, 0.14), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255, 212, 118, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(10, 20, 38, 0.97), rgba(15, 30, 55, 0.93));
  text-align: center;
}

.portal-preorder {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0 auto 1rem;
  padding: 0.78rem 1.05rem;
  color: #11192a;
  border: 1px solid rgba(255, 220, 142, 0.54);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1bd 0%, #ffd476 45%, #ff9f78 100%);
  box-shadow: 0 16px 38px rgba(255, 165, 96, 0.24);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.portal-preorder:hover,
.portal-preorder:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 238, 190, 0.86);
  box-shadow: 0 20px 48px rgba(255, 165, 96, 0.34);
}

.portal-preorder:focus-visible {
  outline: 3px solid rgba(121, 207, 255, 0.45);
  outline-offset: 4px;
}

.portal-brandmark {
  position: relative;
  z-index: 1;
  display: block;
  width: 4.8rem;
  height: 4.8rem;
  margin: 0 auto 0.8rem;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.24));
}

.portal-hero::before,
.portal-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
}

.portal-hero::before {
  inset: -3rem auto auto -3rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(121, 207, 255, 0.18), transparent 72%);
}

.portal-hero::after {
  inset: auto -3rem -4rem auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 212, 118, 0.14), transparent 72%);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.72rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.75rem, 12vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.portal-copy {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.portal-selector {
  display: grid;
  margin: 1.8rem 0 1.25rem;
}

.division-orb,
.orb-grid {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
}

.orb-grid {
  gap: 1rem;
  align-items: stretch;
}

.division-orb {
  min-height: 15.25rem;
}

.orb-shell {
  position: absolute;
}

.division-orb {
  gap: 0.25rem;
  padding: 1.35rem 1.15rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.division-orb:hover,
.division-orb:focus-visible {
  transform: translateY(-4px) scale(1.01);
}

.orb-shell {
  inset: 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
}

.division-orb .orb-state {
  justify-self: center;
  margin-bottom: 0.45rem;
  color: rgba(244, 248, 255, 0.94);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.orb-mark,
.division-orb strong,
.division-orb small {
  position: relative;
  z-index: 1;
}

.orb-mark {
  display: grid;
  place-items: center;
  width: 5.7rem;
  height: 5.7rem;
  margin: 0 0 0.72rem;
  overflow: visible;
}

.division-orb strong {
  display: block;
  max-width: 14ch;
  font-family: "Fraunces", serif;
  font-size: 1.82rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.division-orb small {
  display: block;
  margin-top: 0.58rem;
  max-width: 13.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  opacity: 1;
}

.orb-dev {
  background:
    radial-gradient(circle at 26% 24%, rgba(121, 207, 255, 0.24), transparent 20%),
    linear-gradient(180deg, rgba(9, 19, 36, 0.98), rgba(14, 28, 52, 0.95));
}

.orb-dev .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-dev small,
.orb-gamer small,
.orb-lab small {
  color: rgba(235, 242, 255, 0.92);
}

.orb-dev:hover,
.orb-dev:focus-visible {
  border-color: rgba(121, 207, 255, 0.36);
  box-shadow: 0 32px 90px rgba(60, 96, 199, 0.34);
}

.orb-kids {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 212, 118, 0.26), transparent 18%),
    radial-gradient(circle at 26% 76%, rgba(157, 227, 157, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.98), rgba(249, 225, 194, 0.96));
  color: #563d33;
}

.orb-kids .orb-shell {
  border-color: rgba(110, 85, 65, 0.18);
}

.orb-kids .orb-state,
.orb-psych .orb-state {
  color: rgba(52, 64, 76, 0.78);
  border-color: rgba(74, 92, 110, 0.14);
  background: rgba(255, 255, 255, 0.45);
}

.orb-kids .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-kids strong {
  color: rgba(47, 34, 28, 0.92);
}

.orb-kids small {
  color: rgba(84, 58, 44, 0.9);
}

.orb-kids:hover,
.orb-kids:focus-visible {
  border-color: rgba(255, 185, 123, 0.4);
  box-shadow: 0 32px 90px rgba(210, 139, 89, 0.24);
}

.orb-gamer {
  background:
    radial-gradient(circle at 18% 22%, rgba(121, 207, 255, 0.2), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(157, 227, 157, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(11, 18, 33, 0.98), rgba(14, 27, 48, 0.96));
}

.orb-gamer .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-gamer:hover,
.orb-gamer:focus-visible {
  border-color: rgba(157, 227, 157, 0.32);
  box-shadow: 0 32px 90px rgba(71, 132, 100, 0.24);
}

.orb-psych {
  background:
    radial-gradient(circle at 18% 22%, rgba(126, 192, 181, 0.2), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(109, 169, 196, 0.16), transparent 16%),
    linear-gradient(180deg, rgba(242, 247, 249, 0.98), rgba(227, 236, 240, 0.96));
  color: #35505d;
}

.orb-psych .orb-shell {
  border-color: rgba(76, 114, 128, 0.18);
}

.orb-psych .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-psych strong {
  color: rgba(39, 72, 86, 0.94);
}

.orb-psych small {
  color: rgba(62, 89, 101, 0.9);
}

.orb-psych:hover,
.orb-psych:focus-visible {
  border-color: rgba(109, 169, 196, 0.3);
  box-shadow: 0 32px 90px rgba(88, 132, 148, 0.18);
}

.orb-lab {
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 255, 214, 0.22), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(159, 141, 255, 0.22), transparent 16%),
    radial-gradient(circle at 52% 14%, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(180deg, rgba(11, 16, 30, 0.98), rgba(15, 18, 35, 0.96));
}

.orb-lab .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(6, 12, 25, 0.18));
}

.orb-lab:hover,
.orb-lab:focus-visible {
  border-color: rgba(143, 255, 214, 0.28);
  box-shadow: 0 32px 90px rgba(77, 126, 110, 0.22);
}

.orb-course {
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 223, 255, 0.22), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(141, 103, 255, 0.2), transparent 16%),
    radial-gradient(circle at 52% 76%, rgba(255, 224, 138, 0.1), transparent 18%),
    linear-gradient(180deg, rgba(7, 15, 30, 0.98), rgba(10, 23, 46, 0.96));
}

.orb-course .orb-mark {
  background: none;
  box-shadow: none;
}

.orb-course small {
  color: rgba(235, 242, 255, 0.92);
}

.orb-course .orb-title-long {
  font-size: 1.82rem;
  line-height: 0.94;
  max-width: 10ch;
}

.orb-course:hover,
.orb-course:focus-visible {
  border-color: rgba(33, 223, 255, 0.34);
  box-shadow: 0 32px 90px rgba(33, 92, 164, 0.28);
}

.future-note {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.future-note p {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.65;
}

.book-shell {
  width: calc(100% - 1.25rem);
  max-width: 940px;
  margin: 0 auto;
  padding: 1.2rem 0 2.6rem;
}

.book-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.72rem 1rem;
  color: rgba(246, 250, 255, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
  font-weight: 800;
}

.book-hero,
.book-form-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.book-hero {
  padding: 1.55rem 1.25rem 1.7rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 212, 118, 0.18), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(121, 207, 255, 0.14), transparent 20%),
    linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(15, 30, 55, 0.94));
  text-align: center;
}

.book-hero h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(1.85rem, 8.9vw, 2.7rem);
  line-height: 1.02;
}

.book-hero p:not(.eyebrow) {
  max-width: 39rem;
  margin: 1rem auto 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.book-form-section {
  margin-top: 1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 14% 12%, rgba(121, 207, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.book-form {
  display: grid;
  gap: 0.95rem;
}

.book-form label {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  color: rgba(246, 250, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-form input,
.book-form select,
.book-form textarea {
  width: 100%;
  min-width: 0;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(5, 13, 25, 0.74);
  font: inherit;
  font-size: 16px;
}

.book-form input,
.book-form select {
  min-height: 3.2rem;
  padding: 0 0.95rem;
}

.book-form textarea {
  min-height: 8.5rem;
  padding: 0.9rem 0.95rem;
  resize: vertical;
}

.book-form input:focus,
.book-form select:focus,
.book-form textarea:focus {
  border-color: rgba(255, 212, 118, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 212, 118, 0.12);
  outline: none;
}

.book-form button {
  min-height: 3.35rem;
  color: #11192a;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1bd 0%, #ffd476 48%, #ff9f78 100%);
  box-shadow: 0 18px 42px rgba(255, 165, 96, 0.22);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.book-form button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.72;
}

.book-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.35rem;
  margin: 0;
  color: rgba(232, 241, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  color: #bdf2bf;
}

.form-status[data-state="error"] {
  color: #ffb9a4;
}

.form-status[data-state="loading"] {
  color: var(--gold);
}

.form-note {
  margin: 0;
  color: rgba(232, 241, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .portal-shell {
    width: calc(100% - 2rem);
    padding-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .portal-hero {
    padding: 1.8rem 2rem 2rem;
  }

  .portal-preorder {
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    margin: 0;
  }

  .portal-brandmark {
    width: 5.4rem;
    height: 5.4rem;
  }

  h1 {
    font-size: 5rem;
  }

  .portal-selector {
    justify-items: center;
    margin: 2.1rem 0 1.7rem;
  }

  .orb-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.3rem;
  }

  .division-orb {
    min-height: 19.5rem;
    padding: 1.6rem 1.45rem 1.65rem;
  }

  .orb-mark {
    width: 5.9rem;
    height: 5.9rem;
    margin-bottom: 0.9rem;
  }

  .orb-grid > .division-orb:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .book-shell {
    width: calc(100% - 2rem);
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .book-hero {
    padding: 2rem 2rem 2.2rem;
  }

  .book-hero h1 {
    max-width: 14ch;
    font-size: clamp(3.2rem, 8vw, 5.4rem);
  }

  .book-form-section {
    margin-top: 1.2rem;
    padding: 1.35rem;
  }

  .book-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .book-form-wide,
  .book-form button,
  .form-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1080px) {
  .portal-hero {
    padding: 2rem 3rem 2.2rem;
  }

  .portal-copy {
    font-size: 1.08rem;
  }

  h1 {
    font-size: 6rem;
  }

  .orb-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.55rem;
  }

  .orb-grid > .division-orb {
    flex: 0 1 calc((100% - 3.1rem) / 3);
    width: calc((100% - 3.1rem) / 3);
    max-width: none;
    min-width: 0;
  }

  .division-orb {
    min-height: 20.75rem;
    padding: 1.7rem 1.6rem 1.75rem;
  }

  .division-orb small {
    font-size: 0.94rem;
  }

  .division-orb strong {
    font-size: 2.05rem;
  }

  .orb-course .orb-title-long {
    font-size: 1.72rem;
    max-width: 100%;
  }

  .orb-mark {
    width: 6.25rem;
    height: 6.25rem;
  }
}

@media (max-width: 759px) {
  .portal-shell {
    width: calc(100% - 1rem);
    padding-top: 0.85rem;
  }

  .portal-hero {
    padding: 1rem 0.95rem 1.15rem;
    border-radius: 26px;
  }

  .portal-preorder {
    width: 100%;
    min-height: 3rem;
    margin-bottom: 0.85rem;
    font-size: 0.74rem;
  }

  .portal-brandmark {
    width: 4.1rem;
    height: 4.1rem;
    margin-bottom: 0.65rem;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  h1 {
    font-size: clamp(2.45rem, 16vw, 3.05rem);
  }

  .portal-copy {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.58;
  }

  .portal-selector {
    margin: 1rem 0;
  }

  .orb-grid {
    gap: 0.78rem;
  }

  .division-orb {
    grid-template-columns: 4.35rem minmax(0, 1fr);
    grid-template-areas:
      "mark title"
      "mark text";
    align-items: center;
    justify-items: start;
    align-content: center;
    min-height: 8.55rem;
    padding: 1.35rem 1rem 1.05rem;
    border-radius: 30px;
    gap: 0.12rem 0.9rem;
  }

  .division-orb:hover,
  .division-orb:focus-visible {
    transform: translateY(-2px);
  }

  .orb-shell {
    inset: 0.7rem;
    border-radius: 24px;
  }

  .division-orb .orb-state {
    position: absolute;
    top: 0.62rem;
    right: 0.74rem;
    margin: 0;
    min-height: 1.45rem;
    padding: 0.25rem 0.48rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
  }

  .orb-mark {
    grid-area: mark;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0;
  }

  .division-orb strong {
    grid-area: title;
    max-width: 100%;
    margin-top: 0.3rem;
    font-size: 1.58rem;
    text-align: left;
  }

  .orb-course .orb-title-long {
    font-size: 1.46rem;
    line-height: 0.96;
  }

  .division-orb small {
    grid-area: text;
    max-width: 100%;
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.42;
    text-align: left;
  }

  .orb-kids {
    min-height: 9.1rem;
  }

  .future-note {
    padding: 0.9rem 0.95rem;
    border-radius: 24px;
  }

  .future-note p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .book-shell {
    width: calc(100% - 1rem);
    padding-top: 0.85rem;
  }

  .book-back {
    width: 100%;
    min-height: 2.9rem;
    margin-bottom: 0.8rem;
  }

  .book-hero,
  .book-form-section {
    border-radius: 26px;
  }

  .book-hero {
    padding: 1.25rem 1rem 1.35rem;
  }

  .book-hero h1 {
    font-size: clamp(2rem, 11.5vw, 2.75rem);
    line-height: 1;
  }

  .book-hero p:not(.eyebrow) {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .book-form-section {
    padding: 0.9rem;
  }

  .book-form {
    gap: 0.82rem;
  }

  .book-form input,
  .book-form select {
    min-height: 3.35rem;
  }

  .book-form textarea {
    min-height: 7.8rem;
  }

  .book-form button {
    min-height: 3.45rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 390px) {
  .portal-shell,
  .book-shell {
    width: calc(100% - 0.75rem);
  }

  .division-orb {
    grid-template-columns: 3.8rem minmax(0, 1fr);
    min-height: 8.25rem;
    padding-inline: 0.82rem;
    gap: 0.1rem 0.72rem;
  }

  .orb-mark {
    width: 3.75rem;
    height: 3.75rem;
  }

  .division-orb strong {
    font-size: 1.42rem;
  }

  .orb-course .orb-title-long {
    font-size: 1.3rem;
  }

  .division-orb small {
    font-size: 0.8rem;
  }
}
