:root {
  --bg: #07040f;
  --text: #f6f2fb;
  --muted: #c9bddc;
  --line: rgba(214, 196, 255, 0.2);
  --amber: #f5a524;
  --violet: #c084fc;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Unbounded", "Segoe UI", sans-serif;
  --mono: "Cascadia Code", Consolas, ui-monospace, monospace;
  --nav: 72px;
  --wrap: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

button,
summary {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: #efe7ff;
}

::selection {
  background: #7c3aed;
  color: white;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 30;
  background: white;
  color: #07040f;
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 28px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav.is-stuck {
  background: rgba(7, 4, 15, 0.82);
  border-bottom: 1px solid rgba(214, 196, 255, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #efe7ff;
  text-decoration: none;
}

.brand svg {
  filter: drop-shadow(0 0 8px rgba(192, 38, 255, 0.75));
}

.brand-name {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #fff 0%, #efe6ff 42%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a,
.nav-panel a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-panel a:hover {
  color: white;
}

.nav-menu {
  display: none;
}

.btn {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  color: white;
  background: linear-gradient(180deg, #e879f9 0%, #7c3aed 58%, #5b21b6 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-solid:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(214, 196, 255, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(245, 165, 36, 0.85);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: calc(var(--nav) + 8px) 0 36px;
  overflow: clip;
}

.hero-photo,
.chapter-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: center 60%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 4, 15, 0.92) 0%, rgba(7, 4, 15, 0.35) 42%, rgba(7, 4, 15, 0.45) 100%),
    linear-gradient(to right, rgba(7, 4, 15, 0.55), transparent 55%);
}

.hero-copy,
.hero-dock {
  position: relative;
  z-index: 1;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--violet);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #c026ff;
  transform: rotate(45deg);
  box-shadow: 0 0 10px #c026ff;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.2rem, 13vw, 9rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-line {
  margin-top: 16px;
  max-width: 28rem;
  color: #efe8ff;
  font-size: 1.15rem;
}

.hero-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-modes li {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-modes li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: -8px;
  background: #c026ff;
  transform: rotate(45deg);
  box-shadow: 0 0 8px #c026ff;
}

.dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  background: rgba(8, 4, 16, 0.72);
  border: 1px solid rgba(214, 196, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.dock-edition,
.dock-ip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-edition {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.gem {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #fff, #c026ff);
  transform: rotate(45deg);
  box-shadow: 0 0 10px #c026ff;
}

.dock-ip span,
.plaque-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dock-ip strong {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
}

.dock-actions {
  display: flex;
  gap: 8px;
}

.chapter {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.chapter-photo {
  object-position: center 40%;
}

.chapter-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 4, 15, 0.9) 0%, rgba(7, 4, 15, 0.72) 38%, rgba(7, 4, 15, 0.15) 70%),
    linear-gradient(to top, rgba(7, 4, 15, 0.55), transparent 30%);
}

.chapter-flip .chapter-shade {
  background:
    linear-gradient(270deg, rgba(7, 4, 15, 0.9) 0%, rgba(7, 4, 15, 0.72) 38%, rgba(7, 4, 15, 0.15) 70%),
    linear-gradient(to top, rgba(7, 4, 15, 0.55), transparent 30%);
}

.chapter-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 80px));
  margin: 12vh 0 10vh max(40px, calc((100% - var(--wrap)) / 2));
}

.chapter-flip .chapter-copy {
  margin-left: auto;
  margin-right: max(40px, calc((100% - var(--wrap)) / 2));
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  max-width: 38rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

.facts {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.facts li {
  padding-left: 16px;
  border-left: 2px solid rgba(192, 38, 255, 0.7);
  color: #efe8ff;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}

.split h3,
.steps h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.split p {
  color: var(--muted);
}

.block {
  padding: 92px 0;
}

.join {
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(124, 58, 237, 0.22), transparent 70%),
    radial-gradient(520px 280px at 100% 100%, rgba(245, 165, 36, 0.12), transparent 70%);
}

.join-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 16px 16px 16px 18px;
  background:
    linear-gradient(90deg, rgba(124, 58, 237, 0.32), rgba(12, 8, 18, 0.15) 46%, rgba(245, 165, 36, 0.18)),
    #100818;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ip {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(214, 196, 255, 0.12);
}

.steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 0.95rem;
  color: #e9d5ff;
  padding-top: 4px;
}

.steps p {
  color: var(--muted);
}

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(214, 196, 255, 0.14);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.footer .brand {
  margin-right: 8px;
}

.footer-row p {
  color: var(--muted);
}

.footer-ip {
  margin-left: auto;
  font-family: var(--mono);
  color: white !important;
}

.copy-status {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 12px 16px;
  text-align: center;
  background: #1a1028;
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-status.is-on {
  opacity: 1;
  transform: translateX(-50%);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .join-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .chapter,
  .chapter-flip {
    align-items: flex-end;
  }

  .chapter-shade,
  .chapter-flip .chapter-shade {
    background: linear-gradient(to top, rgba(7, 4, 15, 0.94) 0%, rgba(7, 4, 15, 0.62) 48%, rgba(7, 4, 15, 0.2) 100%);
  }

  .chapter-copy,
  .chapter-flip .chapter-copy {
    width: min(640px, calc(100% - 40px));
    margin: 0 auto 8vh;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu {
    display: block;
    position: relative;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    gap: 6px;
    place-content: center;
    cursor: pointer;
    list-style: none;
  }

  .nav-toggle::-webkit-details-marker {
    display: none;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    transition: transform 0.2s ease;
  }

  .nav-menu[open] .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-menu[open] .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(260px, 72vw);
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgba(10, 6, 18, 0.96);
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .nav-panel a {
    padding: 10px 12px;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .dock,
  .plaque {
    flex-direction: column;
    align-items: stretch;
  }

  .dock-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dock-actions .btn,
  .plaque .btn {
    width: 100%;
  }

  .footer-ip {
    margin-left: 0;
  }

  .hero-title {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .btn,
  .nav-toggle span {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07040f;
}

::-webkit-scrollbar-thumb {
  background: #3a2458;
}
