:root {
  --bg: #07090d;
  --panel: rgba(12, 15, 21, 0.86);
  --panel-strong: rgba(14, 18, 24, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fb;
  --muted: #97a4ba;
  --warm: #ff9e63;
  --warm-soft: #ffd57e;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.4);
  --joy: #ff9768;
  --calm: #74a7ff;
  --energy: #ffd05d;
  --connection: #ff73a0;
  --focus: #a482ff;
  --recovery: #58d2b0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 158, 99, 0.18), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(116, 167, 255, 0.16), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(164, 130, 255, 0.13), transparent 28%),
    linear-gradient(180deg, #06070a 0%, #090b10 44%, #06070a 100%);
}

button {
  font: inherit;
}

.space-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 140px 140px, 120px 120px, 120px 120px;
  background-position: 0 0, 0 0, 0 0;
}

.glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.2;
  pointer-events: none;
}

.glow-a {
  left: -12rem;
  top: -10rem;
  background: rgba(255, 151, 104, 0.55);
}

.glow-b {
  right: -12rem;
  bottom: -12rem;
  background: rgba(116, 167, 255, 0.45);
}

.layout-shell {
  position: relative;
  width: min(1380px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 38px;
}

.hero-card,
.orbit-panel,
.detail-panel,
.stat-card,
.ghost-button,
.content-card,
.step-item {
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-card,
.orbit-panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding: 28px;
}

.eyebrow,
.section-tag,
.stat-label {
  margin: 0 0 12px;
  color: #97a4ba;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
.planet-label,
.content-card strong,
.step-item strong,
.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  max-width: 12ch;
}

.hero-text,
.section-copy,
.panel-copy,
.orbit-hint,
.content-card p,
.step-item p,
.progress-meta span {
  color: var(--muted);
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  gap: 14px;
  align-content: start;
}

.stat-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.stat-card strong {
  display: block;
  font-size: 1.18rem;
}

.ghost-button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button:hover,
.planet:hover,
.content-card:hover,
.step-item:hover {
  transform: translateY(-2px);
}

.experience-grid {
  display: grid;
  grid-template-columns: 620px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.orbit-panel,
.detail-panel {
  padding: 26px;
}

.section-head,
.detail-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.section-head {
  display: block;
}

.section-head h2,
.detail-topbar h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.orbit-stage {
  position: relative;
  height: 760px;
  margin-top: 26px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 151, 104, 0.1), transparent 20%),
    radial-gradient(circle at 76% 28%, rgba(116, 167, 255, 0.1), transparent 24%),
    radial-gradient(circle at 54% 82%, rgba(164, 130, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.orbit-core {
  display: none;
}

.orbit-core span {
  display: none;
}

.orbit-ring {
  display: none;
}

.planet-field {
  position: absolute;
  inset: 0;
}

.planet {
  position: absolute;
  width: var(--planet-width, 170px);
  min-height: var(--planet-height, 130px);
  border-radius: var(--planet-radius, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  color: var(--text);
  padding: 0;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    opacity 220ms ease;
  transform: translate(-50%, -50%);
  animation: float-field var(--planet-duration, 7s) ease-in-out infinite;
  animation-delay: var(--planet-delay, 0s);
}

.planet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--planet-radius, 34px) - 8px);
  background:
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--planet-color) 90%, white 10%), color-mix(in srgb, var(--planet-color) 78%, black 22%));
  opacity: 0.95;
}

.planet.active {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 50px color-mix(in srgb, var(--planet-color) 26%, transparent);
}

.planet.dimmed {
  opacity: 0.54;
}

.planet-label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 22px;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
}

@keyframes float-field {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(var(--planet-tilt, 0deg));
  }
  50% {
    transform:
      translate(-50%, -50%)
      translate3d(var(--planet-dx, 0px), var(--planet-dy, -8px), 0)
      rotate(calc(var(--planet-tilt, 0deg) + 2deg));
  }
}

.orbit-footer {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.detail-topbar {
  margin-bottom: 12px;
}

.panel-copy {
  margin: 0 0 18px;
}

.progress-module {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--warm), var(--warm-soft));
  transition: width 220ms ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.progress-meta strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.content-area {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(12, 15, 21, 0.84);
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.content-card.recommended {
  border-color: rgba(255, 188, 128, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 188, 128, 0.1);
}

.content-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.15;
}

.content-card .count-line {
  display: block;
  margin-bottom: 10px;
  color: #dfe6f2;
  font-size: 0.92rem;
}

.content-card p {
  margin: 0;
}

.content-card .meta-line {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.meta-row .meta-line {
  margin-top: 0;
}

.meta-line.meta-quiet {
  color: rgba(223, 230, 242, 0.82);
  border-color: rgba(255, 255, 255, 0.1);
}

.step-list {
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.step-item.done {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 158, 99, 0.08));
  border-color: var(--line-strong);
}

.step-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: transparent;
  background: rgba(255, 255, 255, 0.03);
}

.step-item.done .step-mark {
  color: #141016;
  background: linear-gradient(135deg, var(--warm-soft), var(--warm));
  border-color: transparent;
}

.step-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.step-item p {
  margin: 0;
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.legend-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legend-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1180px) {
  .experience-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .layout-shell {
    width: min(100% - 16px, 1380px);
  }

  .hero-card,
  .orbit-panel,
  .detail-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .orbit-stage {
    height: auto;
    padding: 14px;
    display: grid;
    gap: 12px;
  }

  .planet-field {
    position: static;
    display: grid;
    gap: 12px;
    height: auto;
  }

  .planet {
    position: static;
    width: 100%;
    min-height: 88px;
    border-radius: 24px;
    transform: none;
    animation: none;
  }

  .planet::before {
    border-radius: 20px;
  }

  .planet-label {
    justify-items: start;
    text-align: left;
    font-size: 1.08rem;
  }

  .planet.active {
    transform: none;
  }

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

  .progress-meta,
  .detail-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

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