:root {
  --ink: #180a24;
  --plum: #2d103f;
  --violet: #522168;
  --purple: #753790;
  --orchid: #b589ca;
  --gold: #d9b66f;
  --gold-bright: #f1d89d;
  --cream: #f8f1e6;
  --paper: #fffaf2;
  --muted: #cabed0;
  --white: #fffdf9;
  --line: rgba(217, 182, 111, 0.28);
  --shadow: 0 30px 80px rgba(7, 2, 12, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 14%, rgba(117, 55, 144, 0.27), transparent 28rem),
    radial-gradient(circle at 9% 60%, rgba(217, 182, 111, 0.08), transparent 32rem),
    linear-gradient(145deg, #100617 0%, #200c2d 52%, #13071c 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  z-index: 20;
}

button,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.17;
}

.page-glow-one {
  width: 27rem;
  height: 27rem;
  background: #8f45ac;
  right: -8rem;
  top: 20%;
}

.page-glow-two {
  width: 20rem;
  height: 20rem;
  background: #d3a94d;
  left: -11rem;
  bottom: 10%;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--cream);
}

.brand-star {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(217, 182, 111, 0.18);
}

.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.brand-name sup {
  color: var(--gold);
  font-size: 0.52em;
}

.brand-line {
  display: block;
  color: var(--gold);
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.header-progress {
  width: 185px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: right;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-track {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  margin-top: 9px;
}

.mini-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.5s ease;
}

.hero {
  min-height: calc(100svh - 92px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  position: relative;
  padding: 90px 0 120px;
}

.hero-copy {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2,
h3,
blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.91;
  letter-spacing: -0.05em;
}

h1 em {
  display: block;
  margin-top: 16px;
  color: transparent;
  background: linear-gradient(120deg, #b58b43 0%, #f2dda7 45%, #c99d51 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 400;
}

.hero-intro {
  max-width: 680px;
  margin: 34px auto 32px;
  color: #d7ccdc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.button {
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  min-height: 55px;
  padding: 0 29px;
  color: #281431;
  background: linear-gradient(120deg, #cda656, #f1d99e 50%, #c59b48);
  box-shadow: 0 16px 40px rgba(217, 182, 111, 0.2);
}

.button-primary span,
.button-next span {
  margin-left: 10px;
}

.author-line {
  margin: 26px 0 0;
  color: #a992af;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-orbit {
  width: min(760px, 78vw);
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  opacity: 0.62;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(217, 182, 111, 0.17);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px rgba(241, 216, 157, 0.85);
}

.orbit::before {
  top: 14%;
  left: 14%;
}

.orbit::after {
  right: 5%;
  bottom: 28%;
}

.orbit-two {
  inset: 10%;
  transform: rotate(42deg);
  border-color: rgba(181, 137, 202, 0.14);
}

.orbit-three {
  inset: 22%;
  transform: rotate(92deg);
}

.hero-star {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: rgba(241, 216, 157, 0.12);
  font-size: 20rem;
  text-shadow: 0 0 100px rgba(217, 182, 111, 0.15);
}

.hero-manifesto {
  width: 100%;
  position: absolute;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #806f87;
  font-size: 0.6rem;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero-manifesto i {
  display: block;
  height: 1px;
  flex: 1;
  background: rgba(217, 182, 111, 0.14);
}

.journey {
  position: relative;
  padding: 110px max(20px, calc((100% - 1180px) / 2)) 120px;
  background:
    linear-gradient(rgba(249, 243, 233, 0.98), rgba(249, 243, 233, 0.98)),
    radial-gradient(circle at 20% 20%, #ffffff, transparent 30%);
  color: #281432;
}

.journey-heading {
  max-width: 710px;
  margin-bottom: 54px;
}

.journey-heading .eyebrow {
  margin-bottom: 14px;
  color: #9b702d;
}

.journey-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.journey-heading > p:last-child {
  max-width: 630px;
  color: #6c5a71;
  line-height: 1.7;
}

.journey-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.principle-rail {
  position: sticky;
  top: 24px;
  padding: 22px;
  background: #2a1039;
  border: 1px solid rgba(217, 182, 111, 0.25);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.progress-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.progress-ring {
  width: 70px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.1) 0);
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #2a1039;
}

.progress-ring div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
  line-height: 1;
}

.progress-ring strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.progress-ring span,
.progress-card > div > span {
  color: #a999b0;
  font-size: 0.62rem;
}

.progress-card > div > p {
  margin: 0 0 6px;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.progress-card > div > span {
  line-height: 1.5;
}

.principle-nav {
  display: grid;
  gap: 3px;
  margin-top: 14px;
}

.nav-principle {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: grid;
  grid-template-columns: 28px 1fr 16px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  color: #c6b7cb;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-principle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.nav-principle.active {
  color: var(--gold-bright);
  background: rgba(217, 182, 111, 0.1);
}

.nav-number {
  color: #7f6a85;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
}

.nav-principle.active .nav-number {
  color: var(--gold);
}

.nav-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.93rem;
}

.nav-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: transparent;
  font-size: 0.55rem;
}

.nav-principle.explored .nav-check {
  color: #261332;
  border-color: var(--gold);
  background: var(--gold);
}

.reset-button {
  margin: 16px 0 0 10px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: none;
  color: #8f7d94;
  cursor: pointer;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-stage {
  background: var(--paper);
  border: 1px solid rgba(119, 76, 130, 0.13);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(48, 18, 61, 0.14);
  overflow: hidden;
}

.stage-topline {
  min-height: 60px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(84, 38, 96, 0.1);
  color: #8c728f;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-theme {
  color: #a77d33;
}

.principle-content {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  padding: 46px 48px 40px;
}

.principle-symbol {
  width: 136px;
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  color: #734a7d;
  background:
    radial-gradient(circle, rgba(217, 182, 111, 0.3) 0 2px, transparent 3px),
    linear-gradient(150deg, rgba(82, 33, 104, 0.08), rgba(217, 182, 111, 0.09));
  background-size: 18px 18px, auto;
  border: 1px solid rgba(190, 150, 74, 0.34);
  border-radius: 68px 68px 18px 18px;
}

.principle-symbol::before,
.principle-symbol::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(160, 115, 44, 0.35);
  border-radius: 50%;
}

.principle-symbol::before {
  width: 72px;
  height: 72px;
}

.principle-symbol::after {
  width: 44px;
  height: 44px;
  transform: rotate(45deg);
  border-radius: 8px;
}

.principle-symbol span {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.principle-kicker {
  margin: 0 0 8px;
  color: #9b712e;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.principle-copy h3 {
  margin: 0;
  color: #3a1846;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

blockquote {
  margin: 26px 0 20px;
  max-width: 670px;
  color: #633c6d;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.45;
}

.principle-body {
  max-width: 670px;
  margin: 0;
  color: #635268;
  font-size: 0.98rem;
  line-height: 1.8;
}

.golden-move {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 670px;
  margin-top: 28px;
  padding: 18px 20px;
  background: linear-gradient(100deg, rgba(217, 182, 111, 0.16), rgba(217, 182, 111, 0.05));
  border-left: 2px solid var(--gold);
}

.golden-move > span {
  color: #a97727;
  margin-top: 2px;
}

.golden-move p {
  margin: 0 0 5px;
  color: #9b712e;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.golden-move strong {
  color: #49324f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.reflection-box {
  max-width: 670px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid rgba(82, 33, 104, 0.13);
}

.reflection-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.reflection-heading p {
  margin: 0 0 4px;
  color: #452152;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
}

.reflection-heading > div > span,
.saved-status,
.privacy-note {
  color: #8a7b8e;
  font-size: 0.72rem;
}

.saved-status {
  color: #96712d;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.prompts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.prompt-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(82, 33, 104, 0.1);
  border-radius: 16px;
  color: #5f4a65;
  background: rgba(255, 255, 255, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.prompt-card span {
  display: block;
  margin-bottom: 8px;
  color: #ae8337;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-label {
  display: block;
  margin-bottom: 8px;
  color: #715977;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

textarea {
  width: 100%;
  resize: vertical;
  padding: 15px 17px;
  color: #39283e;
  background: #fffdf8;
  border: 1px solid rgba(82, 33, 104, 0.16);
  border-radius: 14px;
  line-height: 1.6;
}

textarea::placeholder {
  color: #ad9daf;
}

.privacy-note {
  margin: 6px 0 0;
}

.stage-actions {
  min-height: 84px;
  padding: 16px 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  background: #2a1039;
}

.button-quiet {
  margin-right: auto;
  padding-left: 0;
  color: #ad9bb2;
  background: transparent;
}

.button-quiet:disabled {
  opacity: 0.25;
  cursor: default;
  transform: none;
}

.button-complete {
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid rgba(217, 182, 111, 0.35);
}

.button-complete.is-complete {
  color: #24112e;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.complete-icon {
  margin-right: 6px;
}

.button-next {
  color: #2a1233;
  background: var(--cream);
}

.closing {
  min-height: 580px;
  padding: 130px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: "";
  width: 390px;
  height: 390px;
  position: absolute;
  top: 48%;
  left: 50%;
  border: 1px solid rgba(217, 182, 111, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 70px rgba(217, 182, 111, 0.025), 0 0 0 140px rgba(217, 182, 111, 0.018);
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing h2 {
  max-width: 840px;
  color: var(--gold-bright);
}

.closing > p:not(.eyebrow):not(.copyright) {
  margin: 22px 0 26px;
  color: #b8a7bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.text-button {
  border: 0;
  border-bottom: 1px solid rgba(217, 182, 111, 0.45);
  padding: 0 0 7px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.closing-mark {
  margin-top: 95px;
  color: var(--gold);
}

.copyright {
  margin: 18px 0 0;
  color: #75657a;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translate(-50%, 20px);
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(31, 12, 42, 0.94);
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.principle-stage.switching .principle-content {
  animation: stageIn 0.45s ease both;
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .journey-shell {
    grid-template-columns: 1fr;
  }

  .principle-rail {
    position: static;
  }

  .principle-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-principle {
    grid-template-columns: 22px 1fr 14px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    min-height: 76px;
  }

  .brand-star,
  .brand-line {
    display: none;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .header-progress {
    width: 110px;
    font-size: 0.58rem;
  }

  .hero {
    width: min(100% - 30px, 1180px);
    min-height: calc(100svh - 76px);
    padding: 74px 0 100px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .hero-manifesto {
    gap: 7px;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }

  .journey {
    padding: 82px 14px 90px;
  }

  .journey-heading {
    padding: 0 7px;
  }

  .principle-rail {
    padding: 16px;
    border-radius: 22px;
  }

  .principle-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-principle {
    min-height: 46px;
    padding: 0 7px;
  }

  .nav-title {
    font-size: 0.78rem;
  }

  .principle-stage {
    border-radius: 22px;
  }

  .stage-topline {
    min-height: 52px;
    padding: 0 18px;
    font-size: 0.54rem;
  }

  .principle-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px 30px;
  }

  .principle-symbol {
    width: 78px;
    height: 78px;
    border-radius: 50%;
  }

  .principle-symbol::before {
    width: 48px;
    height: 48px;
  }

  .principle-symbol::after {
    width: 29px;
    height: 29px;
  }

  .principle-copy h3 {
    font-size: clamp(3.3rem, 17vw, 5rem);
  }

  .prompts {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    min-height: auto;
  }

  .stage-actions {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button-quiet {
    display: none;
  }

  .button-complete,
  .button-next {
    min-height: 50px;
    padding: 0 12px;
    font-size: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
