:root {
  color-scheme: dark;
  --bg: #10131b;
  --bg-soft: #181a25;
  --panel: rgba(36, 37, 50, 0.82);
  --line: rgba(218, 211, 232, 0.1);
  --text: #e8e0f1;
  --muted: #9f96ad;
  --text-strong: rgba(226, 218, 238, 0.86);
  --text-soft: rgba(206, 197, 220, 0.8);
  --text-dim: rgba(163, 156, 178, 0.82);
  --violet: #8f6ee8;
  --pink: #db73b4;
  --mint: #75d2ae;
  --amber: #dfb875;
  --blue: #78b8e8;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    radial-gradient(circle at 18% 14%, rgba(143, 110, 232, 0.18), transparent 28rem),
    radial-gradient(circle at 76% 18%, rgba(120, 184, 232, 0.12), transparent 24rem),
    radial-gradient(circle at 54% 92%, rgba(223, 184, 117, 0.08), transparent 32rem),
    linear-gradient(180deg, #11131d 0%, #171821 54%, #11131a 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto, auto;
  color: var(--text-soft);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid rgba(218, 211, 232, 0.055);
  background:
    radial-gradient(circle at 2% 48%, rgba(143, 110, 232, 0.16), transparent 12rem),
    linear-gradient(90deg, rgba(14, 15, 24, 0.44), rgba(14, 15, 24, 0.1) 64%, transparent);
  backdrop-filter: blur(10px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  min-height: 76px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: rgba(168, 162, 182, 0.78);
  font-size: 0.82rem;
  font-weight: 750;
}

.standalone-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.site-footer a:hover {
  color: rgba(218, 207, 235, 0.9);
}

.beian-police {
  gap: 7px;
}

.beian-police img {
  width: 18px;
  height: 20px;
  object-fit: contain;
}

.brand,
.brand-note {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  color: rgba(213, 205, 226, 0.88);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--violet), var(--pink), var(--blue), var(--violet));
  box-shadow: 0 0 28px rgba(154, 77, 244, 0.65);
}

.secondary-link,
.primary-link,
.fm-button {
  min-height: 42px;
  border-radius: var(--radius);
}

.brand-note {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.site-nav {
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav .account-nav-link.is-owner {
  border-color: rgba(223, 184, 117, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 76px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #c590ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: rgba(226, 218, 238, 0.84);
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 5.2vw, 4.45rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-text {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.9;
}

.agent-visual {
  position: relative;
  width: min(520px, 100%);
  min-height: 220px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 32% 45%, rgba(237, 73, 180, 0.2), transparent 8rem),
    radial-gradient(circle at 72% 38%, rgba(57, 183, 255, 0.16), transparent 9rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.agent-visual::before {
  position: absolute;
  content: "";
  inset: 18px;
  opacity: 0.42;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 42% 52%, black, transparent 70%);
}

.agent-visual::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(197, 144, 255, 0.12) 45%, transparent 62%);
  transform: translateX(-120%);
  animation: panelSweep 5.2s ease-in-out infinite;
}

.human-core,
.bot-core {
  position: absolute;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(197, 144, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 46px rgba(154, 77, 244, 0.42);
  animation: corePulse 3.6s ease-in-out infinite;
}

.human-core {
  top: 52px;
  left: 46px;
  background:
    radial-gradient(circle at 34% 28%, rgba(57, 183, 255, 0.72), transparent 2.8rem),
    linear-gradient(135deg, rgba(154, 77, 244, 0.94), rgba(237, 73, 180, 0.72));
}

.private-orb {
  cursor: default;
  outline: none;
  text-decoration: none;
}

.private-orb:hover {
  border-color: rgba(218, 207, 235, 0.58);
  box-shadow: 0 0 52px rgba(154, 77, 244, 0.5);
}

.private-orb:focus-visible {
  border-color: rgba(223, 184, 117, 0.68);
  box-shadow:
    0 0 0 4px rgba(223, 184, 117, 0.16),
    0 0 52px rgba(154, 77, 244, 0.5);
}

.bot-core {
  top: 52px;
  right: 46px;
  background:
    radial-gradient(circle at 70% 28%, rgba(37, 216, 121, 0.36), transparent 2.8rem),
    linear-gradient(135deg, rgba(16, 18, 30, 0.96), rgba(57, 183, 255, 0.34));
  animation-delay: 1.1s;
}

.human-core span,
.bot-core span {
  color: rgba(230, 222, 246, 0.94);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}

.human-core small,
.bot-core small {
  margin-bottom: 16px;
  color: rgba(218, 207, 235, 0.62);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bot-core span {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 900;
}

.signal-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(37, 216, 121, 0.78);
  animation: signalTravel 3.4s ease-in-out infinite;
}

.dot-a {
  top: 92px;
  left: 152px;
}

.dot-b {
  top: 124px;
  right: 152px;
  background: var(--blue);
  box-shadow: 0 0 18px rgba(57, 183, 255, 0.72);
  animation-name: signalTravelBack;
  animation-delay: 1.2s;
}

.agent-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(197, 144, 255, 0.82), rgba(57, 183, 255, 0.5), transparent);
  animation: lineScan 2.6s ease-in-out infinite;
}

.line-a {
  width: 250px;
  top: 98px;
  left: 136px;
  transform: rotate(0deg);
}

.line-b {
  width: 222px;
  top: 128px;
  left: 150px;
  transform: rotate(13deg);
  animation-delay: 1.2s;
}

.thought-card {
  position: absolute;
  max-width: 190px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(10, 11, 18, 0.58);
  backdrop-filter: blur(14px);
  color: rgba(218, 207, 235, 0.82);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.45;
  animation: thoughtFloat 4.6s ease-in-out infinite;
}

.card-human {
  left: 24px;
  bottom: 22px;
}

.card-bot {
  right: 24px;
  bottom: 22px;
  animation-delay: 1.3s;
}

.artifact-row {
  position: absolute;
  left: 50%;
  bottom: 72px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.artifact-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(197, 144, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(218, 207, 235, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  animation: artifactRise 4.2s ease-in-out infinite;
}

.artifact-row span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 0 18px rgba(154, 77, 244, 0.54);
}

.artifact-row span:nth-child(2) {
  animation-delay: 0.7s;
}

.artifact-row span:nth-child(3) {
  animation-delay: 1.4s;
}

.primary-link,
.secondary-link,
.fm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-link,
.fm-button {
  padding: 0 20px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(237, 73, 180, 0.24);
}

.secondary-link {
  padding: 0 18px;
  border-color: var(--line);
  color: var(--muted);
}

.hero-panel {
  min-height: 500px;
  display: grid;
  align-content: center;
  padding: 26px;
  border: 1px solid rgba(218, 211, 232, 0.105);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(226, 218, 238, 0.055), rgba(226, 218, 238, 0.015)),
    rgba(18, 19, 28, 0.76);
  box-shadow: var(--shadow);
}

.fm-meta {
  display: flex;
  align-items: center;
}

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

.room-card {
  position: relative;
  display: flex;
  min-height: 130px;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(218, 211, 232, 0.095);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(226, 218, 238, 0.065), rgba(226, 218, 238, 0.018)),
    rgba(226, 218, 238, 0.035);
  animation: cardDrift 7s ease-in-out infinite;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.room-card:nth-child(2) {
  animation-delay: 0.8s;
}

.room-card:nth-child(3) {
  animation-delay: 1.6s;
}

.room-card:nth-child(4) {
  animation-delay: 2.4s;
}

.room-card:nth-child(5) {
  animation-delay: 3.2s;
}

.room-card:nth-child(6) {
  animation-delay: 4s;
}

.room-card:hover {
  border-color: rgba(197, 144, 255, 0.56);
  transform: translateY(-2px);
  background:
    linear-gradient(145deg, rgba(154, 77, 244, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
}

.room-card.featured {
  grid-row: span 2;
  min-height: 272px;
  background:
    radial-gradient(circle at 24% 18%, rgba(237, 73, 180, 0.75), transparent 7rem),
    linear-gradient(145deg, rgba(154, 77, 244, 0.86), rgba(31, 11, 85, 0.5) 54%, rgba(9, 9, 18, 0.82));
  box-shadow: 0 18px 46px rgba(154, 77, 244, 0.26);
}

.contact-room {
  background:
    radial-gradient(circle at 74% 20%, rgba(117, 210, 174, 0.12), transparent 6.5rem),
    linear-gradient(145deg, rgba(223, 184, 117, 0.095), rgba(226, 218, 238, 0.018)),
    rgba(226, 218, 238, 0.035);
}

.contact-room::before {
  position: absolute;
  content: "";
  width: 76px;
  height: 22px;
  top: 34px;
  right: 20px;
  border-top: 1px solid rgba(117, 210, 174, 0.28);
  border-bottom: 1px solid rgba(223, 184, 117, 0.18);
  transform: rotate(-7deg);
}

.room-card.featured::before,
.room-card.featured::after {
  position: absolute;
  content: "";
  width: 150px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(57, 183, 255, 0.56), rgba(237, 73, 180, 0.2));
  transform: rotate(28deg) skew(-14deg);
}

.gallery-room {
  background:
    radial-gradient(circle at 72% 22%, rgba(240, 184, 95, 0.18), transparent 6rem),
    linear-gradient(145deg, rgba(154, 77, 244, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.045);
}

.gallery-room::before {
  position: absolute;
  content: "";
  width: 92px;
  height: 70px;
  top: 28px;
  right: 18px;
  border: 1px solid rgba(240, 184, 95, 0.22);
  background: linear-gradient(135deg, rgba(240, 184, 95, 0.16), rgba(237, 73, 180, 0.09));
  transform: rotate(-10deg);
}

.gallery-room::after {
  position: absolute;
  content: "";
  width: 54px;
  height: 54px;
  top: 50px;
  right: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 183, 255, 0.32), transparent 66%);
  animation: artifactRise 4.6s ease-in-out infinite;
}

.owner-room {
  background:
    radial-gradient(circle at 74% 22%, rgba(117, 210, 174, 0.18), transparent 6rem),
    linear-gradient(145deg, rgba(223, 184, 117, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.045);
}

.owner-room::before {
  position: absolute;
  content: "";
  width: 88px;
  height: 60px;
  top: 32px;
  right: 24px;
  border: 1px solid rgba(117, 210, 174, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    rgba(117, 210, 174, 0.09);
  background-size: 22px 22px;
  transform: rotate(7deg);
}

.owner-only-card {
  animation-delay: 0.4s;
}

.room-card.featured::before {
  top: 62px;
  left: 28px;
}

.room-card.featured::after {
  top: 112px;
  left: 76px;
  background: linear-gradient(135deg, rgba(240, 184, 95, 0.22), rgba(237, 73, 180, 0.58));
}

.room-card strong,
.room-card small,
.room-status {
  position: relative;
  z-index: 1;
}

.room-card strong {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 1.38rem;
  line-height: 1;
}

.room-card.featured strong {
  color: rgba(238, 231, 249, 0.9);
  font-size: 2.7rem;
}

.room-card small {
  color: var(--text-dim);
  font-weight: 750;
}

.room-card.featured small {
  color: rgba(218, 207, 235, 0.84);
}

.room-status {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.room-status.private {
  background: rgba(8, 9, 15, 0.56);
  color: rgba(238, 231, 249, 0.92);
}

.room-status.public {
  background: rgba(37, 216, 121, 0.12);
  color: #72efa9;
}

.room-status.owner-only {
  background: rgba(223, 184, 117, 0.13);
  color: rgba(248, 220, 170, 0.92);
}

.room-status.later {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.muted-room {
  opacity: 0.7;
}

.owner-home-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 0 0 36px;
  padding: 24px;
  border: 1px solid rgba(223, 184, 117, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 20%, rgba(117, 210, 174, 0.12), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02)),
    rgba(22, 23, 32, 0.78);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.owner-home-panel h2 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.14;
}

.owner-home-panel p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--text-dim);
  line-height: 1.78;
}

.owner-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 42px rgba(154, 77, 244, 0.5), 0 0 0 0 rgba(197, 144, 255, 0.18);
  }

  50% {
    transform: scale(1.09);
    box-shadow: 0 0 78px rgba(237, 73, 180, 0.58), 0 0 0 24px rgba(197, 144, 255, 0);
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.78;
  }

  50% {
    transform: translate3d(0, -18px, 0) scale(1.25);
    opacity: 1;
  }
}

@keyframes signalTravel {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(110px, 10px, 0) scale(1.28);
    opacity: 1;
  }
}

@keyframes signalTravelBack {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.34;
  }

  50% {
    transform: translate3d(-92px, -8px, 0) scale(1.24);
    opacity: 1;
  }
}

@keyframes thoughtFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }

  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

@keyframes artifactRise {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.58;
  }

  50% {
    transform: translateY(-9px);
    opacity: 1;
  }
}

@keyframes lineScan {
  0%,
  100% {
    opacity: 0.18;
    filter: blur(0);
  }

  50% {
    opacity: 1;
    filter: blur(0.3px);
  }
}

@keyframes panelSweep {
  0%,
  42% {
    transform: translateX(-120%);
    opacity: 0;
  }

  58% {
    opacity: 1;
  }

  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

@keyframes readoutPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.45);
    opacity: 1;
  }
}

@keyframes readoutScan {
  0%,
  100% {
    transform: scaleX(0.76);
    opacity: 0.44;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.95;
  }
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes cardDrift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes shardDrift {
  0%,
  100% {
    transform: rotate(24deg) skew(-12deg) translate3d(0, 0, 0);
  }

  50% {
    transform: rotate(29deg) skew(-12deg) translate3d(10px, -8px, 0);
  }
}

@keyframes barDance {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.62;
  }

  50% {
    transform: scaleY(1.1);
    opacity: 1;
  }
}

@keyframes articleGlow {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(0);
  }

  50% {
    border-color: rgba(197, 144, 255, 0.28);
    transform: translateY(-2px);
  }
}

@keyframes slowRotate {
  from {
    transform: translateY(-50%) rotate(18deg);
  }

  to {
    transform: translateY(-50%) rotate(378deg);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.fm-section,
.future-grid,
.about-strip {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 14px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
}

.section-heading p:not(.eyebrow),
.fm-content p,
.future-grid article p {
  color: var(--text-dim);
  line-height: 1.75;
}

.fm-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(154, 77, 244, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(33, 28, 58, 0.92), rgba(18, 19, 29, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.fm-card::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(105deg, transparent 12%, rgba(237, 73, 180, 0.08) 42%, transparent 68%);
  transform: translateX(-120%);
  animation: panelSweep 6.4s ease-in-out infinite;
}

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

.fm-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 18%, rgba(237, 73, 180, 0.98), transparent 8rem),
    linear-gradient(145deg, #21108d, #0d0620 54%, #281149);
  box-shadow: 0 18px 48px rgba(154, 77, 244, 0.34);
}

.fm-art-schedule {
  background:
    linear-gradient(180deg, rgba(8, 9, 15, 0.08), rgba(8, 9, 15, 0.72)),
    repeating-linear-gradient(90deg, rgba(197, 144, 255, 0.22) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(57, 183, 255, 0.14) 0 1px, transparent 1px 38px),
    radial-gradient(circle at 25% 30%, rgba(237, 73, 180, 0.58), transparent 7rem),
    linear-gradient(135deg, rgba(33, 16, 88, 0.94), rgba(7, 9, 20, 0.96));
}

.fm-art-schedule .art-shard {
  border-radius: 999px;
  transform: none;
}

.fm-art-schedule .shard-one {
  width: 170px;
  height: 12px;
  top: 96px;
  left: 54px;
}

.fm-art-schedule .shard-two {
  width: 120px;
  height: 12px;
  top: 142px;
  left: 96px;
}

.fm-art-schedule .shard-three {
  width: 64px;
  height: 64px;
  right: 42px;
  bottom: 58px;
  border-radius: 50%;
}

.fm-art-schedule .art-core {
  width: 92px;
  height: 92px;
  top: 76px;
  left: 36px;
  border-radius: 50%;
}

.fm-art-radio {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 76% 18%, rgba(57, 183, 255, 0.24), transparent 7rem),
    radial-gradient(circle at 22% 78%, rgba(237, 73, 180, 0.22), transparent 8rem),
    linear-gradient(135deg, rgba(16, 11, 44, 0.98), rgba(7, 9, 20, 0.96));
}

.fm-art-radio::before {
  position: absolute;
  content: "";
  inset: 18px;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(197, 144, 255, 0.12) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(0deg, rgba(57, 183, 255, 0.08) 0 1px, transparent 1px 34px);
  opacity: 0.7;
}

.radio-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 230px);
  padding: 14px;
  border: 1px solid rgba(197, 144, 255, 0.24);
  border-radius: 20px;
  background: rgba(8, 9, 15, 0.66);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  animation: thoughtFloat 5.6s ease-in-out infinite;
}

.radio-topline,
.radio-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.radio-topline {
  margin-bottom: 14px;
  color: rgba(218, 207, 235, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
}

.radio-bubble {
  width: fit-content;
  max-width: 92%;
  margin-bottom: 9px;
  padding: 9px 11px;
  border-radius: 14px;
  color: rgba(218, 207, 235, 0.82);
  font-size: 0.72rem;
  line-height: 1.55;
}

.user-bubble {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(154, 77, 244, 0.8), rgba(237, 73, 180, 0.74));
}

.ai-bubble {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-track {
  margin: 14px 0;
  justify-content: flex-start;
  padding: 10px;
  border: 1px solid rgba(197, 144, 255, 0.18);
  border-radius: 14px;
  background: rgba(28, 25, 48, 0.72);
}

.track-cover {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(57, 183, 255, 0.72), rgba(237, 73, 180, 0.7)),
    radial-gradient(circle at 32% 28%, rgba(240, 184, 95, 0.75), transparent 2rem);
  animation: corePulse 2.6s ease-in-out infinite;
}

.radio-track strong,
.radio-track small {
  display: block;
}

.radio-track strong {
  color: rgba(218, 207, 235, 0.86);
  font-size: 0.78rem;
}

.radio-track small {
  color: rgba(168, 162, 182, 0.8);
  font-size: 0.65rem;
}

.radio-wave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  height: 40px;
}

.radio-wave i {
  width: 5px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue), var(--pink));
  animation: barDance 1.15s ease-in-out infinite;
}

.radio-wave i:nth-child(2),
.radio-wave i:nth-child(5) {
  animation-delay: 0.15s;
}

.radio-wave i:nth-child(3),
.radio-wave i:nth-child(6) {
  animation-delay: 0.28s;
}

.schedule-orbit {
  position: absolute;
  z-index: 1;
  inset: 34px;
  border: 1px solid rgba(57, 183, 255, 0.16);
  border-radius: 50%;
  animation: slowSpin 14s linear infinite;
}

.schedule-orbit span {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid rgba(197, 144, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.58);
  color: rgba(218, 207, 235, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
}

.schedule-orbit span:nth-child(1) {
  top: 18px;
  left: 26px;
}

.schedule-orbit span:nth-child(2) {
  top: 88px;
  right: 2px;
}

.schedule-orbit span:nth-child(3) {
  left: 56px;
  bottom: 12px;
}

.weather-chip {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(37, 216, 121, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.6);
  color: rgba(176, 232, 202, 0.8);
  font-size: 0.68rem;
  font-weight: 850;
}

.fm-art-daykeeper {
  background:
    radial-gradient(circle at 28% 26%, rgba(237, 73, 180, 0.66), transparent 5rem),
    conic-gradient(from 80deg at 68% 50%, rgba(57, 183, 255, 0.44), rgba(154, 77, 244, 0.12), rgba(240, 184, 95, 0.22), rgba(57, 183, 255, 0.44)),
    linear-gradient(135deg, rgba(20, 9, 68, 0.92), rgba(7, 9, 20, 0.96));
}

.fm-art-daykeeper .art-shard {
  border-radius: 50%;
  transform: none;
}

.fm-art-daykeeper .shard-one {
  width: 118px;
  height: 118px;
  top: 30px;
  left: 58px;
  background: conic-gradient(from 180deg, rgba(57, 183, 255, 0.62), rgba(237, 73, 180, 0.38), transparent);
}

.fm-art-daykeeper .shard-two {
  width: 210px;
  height: 2px;
  top: 98px;
  left: 190px;
  background: linear-gradient(90deg, rgba(197, 144, 255, 0.7), transparent);
}

.fm-art-daykeeper .shard-three {
  width: 18px;
  height: 18px;
  right: 72px;
  bottom: 82px;
  background: var(--mint);
}

.fm-art-daykeeper .art-core {
  width: 74px;
  height: 74px;
  top: 52px;
  left: 82px;
  border-radius: 50%;
}

.art-shard,
.art-core {
  position: absolute;
  transform: rotate(24deg) skew(-12deg);
}

.art-shard {
  background: linear-gradient(135deg, rgba(57, 183, 255, 0.8), rgba(237, 73, 180, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.shard-one {
  width: 160px;
  height: 58px;
  top: 78px;
  left: 48px;
  animation: shardDrift 5.2s ease-in-out infinite;
}

.shard-two {
  width: 220px;
  height: 70px;
  top: 148px;
  left: 20px;
  background: linear-gradient(135deg, rgba(154, 77, 244, 0.95), rgba(240, 184, 95, 0.34));
  animation: shardDrift 5.8s ease-in-out infinite reverse;
}

.shard-three {
  width: 130px;
  height: 170px;
  right: 28px;
  bottom: 34px;
  background: linear-gradient(135deg, rgba(237, 73, 180, 0.8), rgba(10, 8, 28, 0.5));
  animation: shardDrift 6.2s ease-in-out infinite;
}

.art-core {
  width: 120px;
  height: 120px;
  top: 92px;
  left: 92px;
  border: 12px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  animation: corePulse 4.4s ease-in-out infinite;
}

.fm-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px 24px 18px 0;
}

.fm-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(154, 77, 244, 0.48);
  border-radius: 999px;
  background: rgba(154, 77, 244, 0.16);
  color: #dec8ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.pill.ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.fm-content h3 {
  max-width: 600px;
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.fm-content p {
  max-width: 580px;
  margin-bottom: 22px;
}

.fm-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-bottom: 28px;
}

.fm-features span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(197, 144, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(154, 77, 244, 0.14), rgba(57, 183, 255, 0.05)),
    rgba(255, 255, 255, 0.035);
  color: rgba(218, 207, 235, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
}

.fm-button {
  width: fit-content;
  min-width: 152px;
  border: 0;
}

.mini-player {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
}

.bar {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--violet));
}

.bar.small {
  height: 16px;
  animation: barDance 1.4s ease-in-out infinite;
}

.bar.medium {
  height: 27px;
  animation: barDance 1.2s ease-in-out infinite;
}

.bar.tall {
  height: 40px;
  animation: barDance 1s ease-in-out infinite;
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.future-grid .section-heading {
  grid-column: span 2;
}

.future-grid .section-heading h2 {
  color: rgba(218, 207, 235, 0.86);
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
}

.future-grid .section-heading p:not(.eyebrow) {
  color: rgba(168, 162, 182, 0.88);
}

.knowledge-visual {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(154, 77, 244, 0.2), transparent 7rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
}

.knowledge-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(197, 144, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 11, 18, 0.54);
  color: rgba(218, 207, 235, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  animation: thoughtFloat 5s ease-in-out infinite;
}

.node-note {
  top: 42px;
  left: 24px;
}

.node-ai {
  top: 90px;
  right: 34px;
  animation-delay: 1s;
}

.node-web {
  left: 92px;
  bottom: 36px;
  animation-delay: 1.8s;
}

.knowledge-path {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(197, 144, 255, 0.6), rgba(57, 183, 255, 0.3), transparent);
  animation: lineScan 3s ease-in-out infinite;
}

.path-one {
  width: 230px;
  top: 78px;
  left: 82px;
  transform: rotate(14deg);
}

.path-two {
  width: 190px;
  top: 142px;
  left: 108px;
  transform: rotate(-18deg);
  animation-delay: 1.2s;
}

.future-card {
  display: block;
}

.future-grid article,
.future-card {
  position: relative;
  overflow: hidden;
  min-height: 184px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  animation: articleGlow 7.5s ease-in-out infinite;
}

.future-grid article::before,
.future-card::before {
  position: absolute;
  content: "";
  inset: 0;
  background: radial-gradient(circle at 24% 18%, rgba(57, 183, 255, 0.1), transparent 8rem);
  opacity: 0;
  transition: opacity 180ms ease;
}

.future-card {
  border-color: rgba(197, 144, 255, 0.2);
  background:
    radial-gradient(circle at 84% 16%, rgba(57, 183, 255, 0.1), transparent 7rem),
    rgba(255, 255, 255, 0.045);
}

.future-grid article:nth-of-type(1),
.future-card {
  animation-delay: 1s;
}

.future-grid article:nth-of-type(2) {
  animation-delay: 2s;
}

.future-grid article:hover::before,
.future-card:hover::before {
  opacity: 1;
}

.future-grid article > *,
.future-card > * {
  position: relative;
  z-index: 1;
}

.card-index {
  color: rgba(240, 184, 95, 0.78);
  font-weight: 900;
}

.future-grid article h3,
.future-card h3 {
  margin: 56px 0 12px;
  color: rgba(218, 207, 235, 0.82);
  font-size: 1.55rem;
}

.future-grid article p,
.future-card p {
  color: rgba(168, 162, 182, 0.86);
}

.about-strip {
  position: relative;
  overflow: hidden;
  color: var(--muted);
}

.about-strip::before {
  position: absolute;
  content: "";
  width: 220px;
  height: 220px;
  right: 4%;
  top: 50%;
  border: 1px solid rgba(197, 144, 255, 0.22);
  background: radial-gradient(circle, rgba(154, 77, 244, 0.16), transparent 68%);
  transform: translateY(-50%) rotate(18deg);
  animation: slowRotate 16s linear infinite;
}

.about-strip h2,
.about-strip p {
  position: relative;
  z-index: 1;
}

.about-strip h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: rgba(232, 225, 246, 0.9);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.about-strip p:not(.eyebrow) {
  max-width: 760px;
  font-size: 1.08rem;
  line-height: 1.9;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 28% 30%, rgba(237, 73, 180, 0.2), transparent 24rem),
    radial-gradient(circle at 72% 18%, rgba(154, 77, 244, 0.26), transparent 26rem),
    #08090f;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.login-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: color 160ms ease, background 160ms ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.login-stage {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 500px);
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 32px 0 48px;
}

.fm-entry-stage {
  align-items: stretch;
}

.login-preview {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.fm-login-radio {
  min-height: 318px;
  margin-bottom: 18px;
}

.fm-art.large {
  min-height: 420px;
}

.fm-art.compact {
  min-height: 132px;
  margin-bottom: 16px;
}

.fm-intro-panel {
  overflow: hidden;
}

.fm-intro-panel::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(105deg, transparent 14%, rgba(197, 144, 255, 0.08) 48%, transparent 70%);
  transform: translateX(-120%);
  animation: panelSweep 6.8s ease-in-out infinite;
}

.fm-intro-panel > * {
  position: relative;
  z-index: 1;
}

.fm-intro-copy h2 {
  max-width: 620px;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.fm-intro-copy p:not(.eyebrow) {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.56;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.login-feature-grid article {
  min-height: 88px;
  padding: 11px 12px;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 11, 18, 0.32);
  animation: articleGlow 8s ease-in-out infinite;
}

.login-feature-grid article:nth-child(2) {
  animation-delay: 0.7s;
}

.login-feature-grid article:nth-child(3) {
  animation-delay: 1.4s;
}

.login-feature-grid article:nth-child(4) {
  animation-delay: 2.1s;
}

.login-feature-grid article:nth-child(5) {
  grid-column: 1 / -1;
  animation-delay: 2.8s;
}

.login-feature-grid span {
  display: block;
  margin-bottom: 7px;
  color: rgba(240, 184, 95, 0.78);
  font-size: 0.8rem;
  font-weight: 900;
}

.login-feature-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.login-feature-grid p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.46;
}

.fm-cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fm-cta-stack .fm-button {
  flex: 1 1 100%;
}

.fm-cta-stack .secondary-link {
  flex: 1 1 150px;
}

.fm-public-section {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid rgba(154, 77, 244, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(57, 183, 255, 0.09), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 24, 0.74);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.fm-public-section h2 {
  max-width: 820px;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
}

.fm-public-section p:not(.eyebrow) {
  max-width: 760px;
  color: var(--text-dim);
  line-height: 1.78;
}

.fm-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fm-public-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 11, 18, 0.34);
}

.fm-public-grid span {
  display: block;
  margin-bottom: 28px;
  color: rgba(240, 184, 95, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.fm-public-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
}

.fm-public-grid p {
  margin: 0;
  font-size: 0.86rem;
}

.public-page-stage {
  display: grid;
  gap: 16px;
  width: min(980px, calc(100% - 40px));
  min-height: calc(100vh - 148px);
  margin: 0 auto;
  padding: 34px 0 58px;
}

.apply-stage {
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1fr);
  align-items: start;
  width: min(1180px, calc(100% - 40px));
}

.public-page-hero {
  grid-column: auto;
}

.public-page-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1;
}

.demo-video-shell {
  margin: 26px 0 4px;
  padding: 18px;
  border: 1px solid rgba(197, 144, 255, 0.16);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(197, 144, 255, 0.1) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(57, 183, 255, 0.08) 0 1px, transparent 1px 38px),
    rgba(8, 9, 15, 0.46);
}

.demo-video-card {
  display: grid;
  min-height: 300px;
  place-content: center;
  gap: 10px;
  padding: 26px;
  border: 1px solid rgba(85, 206, 216, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 24% 22%, rgba(237, 73, 180, 0.18), transparent 12rem),
    radial-gradient(circle at 76% 76%, rgba(85, 206, 216, 0.16), transparent 12rem),
    rgba(14, 15, 24, 0.7);
  text-align: center;
}

.demo-video-card span {
  color: rgba(240, 184, 95, 0.86);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-video-card strong {
  color: var(--text-strong);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.demo-video-card small {
  color: var(--text-dim);
  font-weight: 800;
}

.public-page-grid {
  margin-top: 0;
}

.apply-card {
  padding: 28px;
  border: 1px solid rgba(154, 77, 244, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 18%, rgba(57, 183, 255, 0.1), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 24, 0.78);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.28);
}

.apply-card h2 {
  margin-bottom: 10px;
  color: var(--text-strong);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.apply-card p {
  color: var(--text-dim);
  line-height: 1.7;
}

.apply-flow {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.apply-flow span {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(10, 11, 18, 0.34);
  color: var(--text-soft);
  font-weight: 850;
}

.beta-apply-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.beta-apply-form label {
  display: grid;
  gap: 8px;
}

.beta-apply-form label span {
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 900;
}

.beta-apply-form input,
.beta-apply-form textarea {
  width: 100%;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  outline: none;
}

.beta-apply-form input {
  min-height: 48px;
  padding: 0 14px;
}

.beta-apply-form textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.beta-apply-form input:focus,
.beta-apply-form textarea:focus {
  border-color: rgba(197, 144, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(154, 77, 244, 0.14);
}

.beta-apply-form button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-weight: 900;
}

.apply-note {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.86rem;
}

.chat-preview {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(360px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(20, 20, 29, 0.84);
  backdrop-filter: blur(14px);
}

.chat-preview span {
  color: #c590ff;
  font-size: 0.84rem;
  font-weight: 900;
}

.chat-preview p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 1.4rem;
  font-weight: 850;
}

.login-dialog {
  position: relative;
  width: min(480px, 100%);
  overflow: hidden;
  padding: 32px;
  border: 1px solid rgba(154, 77, 244, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 29, 43, 0.96), rgba(13, 14, 21, 0.98));
  box-shadow: var(--shadow);
}

.page-dialog {
  width: 100%;
}

.login-orb {
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--violet), var(--pink), var(--blue), var(--violet));
  box-shadow: 0 0 44px rgba(237, 73, 180, 0.38);
}

.login-dialog h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 8vw, 3.3rem);
  line-height: 1;
}

.login-dialog h1 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.94;
}

.login-copy {
  color: var(--text-dim);
  line-height: 1.7;
}

.login-form {
  margin-top: 28px;
}

.login-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 800;
}

.login-form > input {
  width: 100%;
  min-height: 50px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  padding: 0 14px;
  outline: none;
}

.login-form > input:focus {
  border-color: rgba(197, 144, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(154, 77, 244, 0.18);
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.password-row input,
.password-row button {
  min-height: 50px;
  border-radius: var(--radius);
}

.password-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  padding: 0 14px;
  outline: none;
}

.password-row input:focus {
  border-color: rgba(197, 144, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(154, 77, 244, 0.18);
}

.password-row button {
  border: 0;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-weight: 900;
}

.form-message {
  min-height: 28px;
  margin: 12px 0 0;
  color: var(--muted);
}

.form-message.success {
  color: var(--mint);
}

.form-message.error {
  color: #ff7a9e;
}

.gallery-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    radial-gradient(circle at 22% 18%, rgba(240, 184, 95, 0.12), transparent 22rem),
    radial-gradient(circle at 70% 24%, rgba(154, 77, 244, 0.22), transparent 24rem),
    #08090f;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.notes-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(57, 183, 255, 0.13), transparent 23rem),
    radial-gradient(circle at 78% 22%, rgba(154, 77, 244, 0.2), transparent 25rem),
    #08090f;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

.notes-stage {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.notes-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 320px;
  gap: 44px;
  align-items: center;
  min-height: 480px;
}

.notes-hero h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: rgba(218, 207, 235, 0.86);
  font-size: clamp(2rem, 4.1vw, 3.75rem);
  line-height: 1.12;
}

.notes-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(168, 162, 182, 0.9);
  font-size: 1.05rem;
  line-height: 1.85;
}

.notes-orbit {
  position: relative;
  min-height: 320px;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(154, 77, 244, 0.16), transparent 7rem),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

.orbit-core,
.orbit-dot,
.orbit-ring {
  position: absolute;
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(237, 73, 180, 0.34);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(237, 73, 180, 0.6), rgba(30, 19, 64, 0.86));
  color: rgba(245, 235, 255, 0.88);
  font-family: var(--font-serif);
  font-size: 2.1rem;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 34px rgba(154, 77, 244, 0.32);
}

.orbit-ring {
  inset: 38px;
  border: 1px solid rgba(57, 183, 255, 0.14);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.ring-two {
  inset: 82px;
  border-color: rgba(240, 184, 95, 0.16);
  animation-duration: 12s;
  animation-direction: reverse;
}

.orbit-dot {
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(197, 144, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.68);
  color: rgba(218, 207, 235, 0.76);
  font-size: 0.74rem;
  font-weight: 850;
  animation: thoughtFloat 5s ease-in-out infinite;
}

.dot-one {
  top: 54px;
  left: 44px;
}

.dot-two {
  top: 134px;
  right: 26px;
  animation-delay: 0.9s;
}

.dot-three {
  left: 72px;
  bottom: 58px;
  animation-delay: 1.7s;
}

.notes-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  margin: 24px 0 18px;
}

.note-map,
.note-card,
.note-reader article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.note-map {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 22px;
}

.note-map ol {
  margin: 0;
  padding-left: 20px;
  color: rgba(168, 162, 182, 0.88);
  line-height: 1.85;
}

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

.note-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.note-card::before {
  position: absolute;
  content: "";
  width: 190px;
  height: 190px;
  right: -82px;
  top: -92px;
  border: 1px solid rgba(57, 183, 255, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 183, 255, 0.13), transparent 72%);
}

.note-card:hover {
  border-color: rgba(197, 144, 255, 0.3);
  transform: translateY(-3px);
}

.featured-note {
  grid-column: 1 / -1;
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(154, 77, 244, 0.18), rgba(57, 183, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.note-tag,
.note-index {
  color: rgba(240, 184, 95, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.note-card h2,
.note-reader h2 {
  color: rgba(218, 207, 235, 0.86);
  line-height: 1.16;
}

.note-card h2 {
  max-width: 620px;
  margin: 54px 0 14px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.note-card p,
.note-reader p,
.note-reader li {
  color: rgba(168, 162, 182, 0.9);
  line-height: 1.78;
}

.note-reader {
  display: grid;
  gap: 14px;
}

.note-reader article {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.note-reader article::after {
  position: absolute;
  content: "";
  width: 160px;
  height: 160px;
  right: -60px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 73, 180, 0.1), transparent 72%);
}

.note-reader h2 {
  max-width: 760px;
  margin: 12px 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.note-reader ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.notes-app {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.notes-library,
.article-viewer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.notes-library {
  position: sticky;
  top: 24px;
  padding: 16px;
}

.library-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(8, 9, 15, 0.28);
  color: rgba(199, 188, 218, 0.82);
  cursor: pointer;
  text-align: left;
}

.library-item span {
  grid-row: span 2;
  color: rgba(240, 184, 95, 0.78);
  font-weight: 900;
}

.library-item strong,
.library-item small {
  display: block;
}

.library-item strong {
  grid-column: 2;
  color: rgba(218, 207, 235, 0.86);
  font-size: 0.94rem;
}

.library-item small {
  grid-column: 2;
  margin-top: 4px;
  color: rgba(168, 162, 182, 0.78);
  font-size: 0.78rem;
}

.library-item.is-active {
  border-color: rgba(197, 144, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(154, 77, 244, 0.2), rgba(57, 183, 255, 0.07)),
    rgba(255, 255, 255, 0.045);
}

.article-viewer {
  min-height: 720px;
  overflow: hidden;
}

.note-article {
  display: none;
  padding: clamp(24px, 4vw, 48px);
}

.note-article.is-active {
  display: block;
}

.note-article h2 {
  max-width: 820px;
  margin-bottom: 18px;
  color: rgba(218, 207, 235, 0.88);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.note-article h3 {
  margin: 32px 0 10px;
  color: rgba(218, 207, 235, 0.82);
  font-size: 1.22rem;
}

.note-article p,
.note-article li {
  color: rgba(168, 162, 182, 0.94);
  line-height: 1.86;
}

.article-lead {
  max-width: 820px;
  font-size: 1.08rem;
}

.article-callout {
  margin: 24px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 184, 95, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 96% 20%, rgba(240, 184, 95, 0.12), transparent 8rem),
    rgba(10, 11, 18, 0.38);
  color: rgba(218, 207, 235, 0.84);
  line-height: 1.7;
}

.article-callout strong {
  color: rgba(240, 184, 95, 0.82);
}

.note-article ol {
  padding-left: 22px;
}

.note-article ul {
  padding-left: 22px;
}

.note-article table {
  width: 100%;
  margin: 22px 0 30px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(197, 144, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(168, 162, 182, 0.94);
  font-size: 0.92rem;
}

.note-article th,
.note-article td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.note-article th {
  color: rgba(218, 207, 235, 0.88);
  background: rgba(154, 77, 244, 0.12);
  font-weight: 900;
}

.note-article tr:last-child td {
  border-bottom: 0;
}

.gallery-stage {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.gallery-hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.gallery-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.gallery-hero p:not(.eyebrow) {
  color: var(--text-dim);
  font-size: 1.06rem;
  line-height: 1.85;
}

.gallery-panel {
  padding: 22px;
  border: 1px solid rgba(240, 184, 95, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.gallery-lock {
  max-width: 560px;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(154, 77, 244, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 29, 43, 0.86), rgba(13, 14, 21, 0.92));
}

.gallery-lock h2 {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.gallery-panel.is-locked {
  display: none;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.gallery-toolbar h2 {
  margin: 0;
  color: rgba(218, 207, 235, 0.86);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-tour-button,
.gallery-logout,
.upload-action {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
}

.upload-action {
  border: 1px solid rgba(240, 184, 95, 0.3);
  background: rgba(240, 184, 95, 0.11);
  color: rgba(239, 214, 176, 0.88);
}

.gallery-tour-button {
  border: 1px solid rgba(197, 144, 255, 0.3);
  background: linear-gradient(135deg, rgba(154, 77, 244, 0.74), rgba(237, 73, 180, 0.68));
  color: rgba(255, 255, 255, 0.92);
}

.gallery-logout {
  border: 1px solid rgba(218, 207, 235, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(218, 207, 235, 0.78);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-grid figure:hover {
  border-color: rgba(240, 184, 95, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  transform: translateY(-4px);
}

.gallery-item.featured-piece {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 28px;
  border: 1px dashed rgba(240, 184, 95, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 10%, rgba(240, 184, 95, 0.1), transparent 12rem),
    rgba(10, 11, 18, 0.32);
  text-align: center;
}

.gallery-empty span {
  display: block;
  margin-bottom: 8px;
  color: rgba(218, 207, 235, 0.84);
  font-size: 1.25rem;
  font-weight: 900;
}

.gallery-empty p {
  max-width: 420px;
  margin: 0;
  color: rgba(168, 162, 182, 0.86);
  line-height: 1.7;
}

.sample-art {
  display: grid;
  place-items: end start;
  padding: 16px;
}

.sample-art span {
  color: rgba(218, 207, 235, 0.72);
  font-weight: 850;
}

.sample-one {
  background:
    radial-gradient(circle at 30% 30%, rgba(240, 184, 95, 0.32), transparent 6rem),
    linear-gradient(135deg, rgba(237, 73, 180, 0.15), rgba(255, 255, 255, 0.03));
}

.sample-two {
  background:
    linear-gradient(135deg, rgba(57, 183, 255, 0.18), rgba(154, 77, 244, 0.18)),
    rgba(255, 255, 255, 0.04);
}

.sample-three {
  background:
    radial-gradient(circle at 66% 28%, rgba(37, 216, 121, 0.22), transparent 6rem),
    linear-gradient(135deg, rgba(240, 184, 95, 0.14), rgba(237, 73, 180, 0.1));
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(8, 9, 15, 0.48);
}

.media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(237, 73, 180, 0.12), transparent 12rem),
    rgba(8, 9, 15, 0.5);
  color: rgba(218, 207, 235, 0.76);
  text-align: center;
  font-weight: 850;
}

.media-fallback.large {
  min-height: 48vh;
  border: 1px solid rgba(197, 144, 255, 0.18);
  border-radius: var(--radius);
}

.gallery-item figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.64);
  color: rgba(218, 207, 235, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
}

.remove-media {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 9, 15, 0.68);
  color: rgba(218, 207, 235, 0.76);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
}

.remove-media:hover {
  border-color: rgba(237, 73, 180, 0.3);
  color: rgba(245, 218, 239, 0.9);
}

.open-media {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 9, 15, 0.42));
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 78px minmax(0, 1fr) 78px;
  grid-template-rows: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 56px 28px 28px;
  background:
    radial-gradient(circle at 50% 10%, rgba(154, 77, 244, 0.22), transparent 30rem),
    radial-gradient(circle at 50% 95%, rgba(240, 184, 95, 0.08), transparent 24rem),
    rgba(5, 6, 10, 0.94);
  backdrop-filter: blur(18px);
}

.gallery-lightbox.is-open {
  display: grid;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  height: calc(100vh - 150px);
  perspective: 1200px;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  background: rgba(8, 9, 15, 0.7);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotateX(1deg);
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
  color: rgba(218, 207, 235, 0.84);
  cursor: pointer;
  font-weight: 900;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.lightbox-nav {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 2.2rem;
}

.lightbox-caption {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(168, 162, 182, 0.88);
  text-align: center;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 64px;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .fm-card,
  .future-grid,
  .login-stage,
  .apply-stage,
  .notes-hero,
  .notes-layout,
  .notes-app {
    grid-template-columns: 1fr;
  }

  .future-grid .section-heading,
  .knowledge-visual,
  .future-grid article,
  .future-card {
    grid-column: 1 / -1;
  }

  .hero {
    gap: 26px;
    min-height: auto;
    padding: 54px 0 76px;
  }

  .hero-panel {
    min-height: 360px;
  }

  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-home-panel {
    grid-template-columns: 1fr;
  }

  .owner-home-actions {
    width: 100%;
  }

  .agent-visual {
    min-height: 210px;
  }

  .human-core {
    left: 28px;
  }

  .bot-core {
    right: 28px;
  }

  .line-a {
    width: 200px;
    left: 116px;
  }

  .line-b {
    width: 176px;
    left: 122px;
  }

  .thought-card {
    max-width: 168px;
    font-size: 0.72rem;
  }

  .artifact-row {
    bottom: 66px;
  }

  .fm-card {
    padding: 18px;
  }

  .fm-content {
    padding: 0 0 54px;
  }

  .fm-art {
    min-height: 260px;
  }

  .login-stage {
    width: min(100% - 28px, 680px);
    gap: 18px;
  }

  .public-page-stage {
    width: min(100% - 28px, 680px);
  }

  .fm-public-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stage {
    width: min(100% - 28px, 680px);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item.featured-piece {
    grid-column: 1 / -1;
    min-height: 460px;
  }

  .notes-stage {
    width: min(100% - 28px, 680px);
  }

  .notes-hero {
    gap: 18px;
    min-height: auto;
  }

  .notes-hero h1 {
    max-width: 11em;
    font-size: clamp(2.1rem, 8.6vw, 3.1rem);
    line-height: 1.16;
  }

  .notes-hero p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .notes-orbit {
    min-height: 280px;
  }

  .note-map {
    position: relative;
    top: auto;
  }

  .notes-library {
    position: relative;
    top: auto;
  }

  .login-header {
    width: min(100% - 28px, 680px);
  }

  .login-preview {
    min-height: auto;
  }

  .page-dialog {
    order: -1;
  }

  .fm-art.large {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .brand-note {
    font-size: 0.76rem;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

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

  .room-card.featured {
    grid-row: auto;
    min-height: 220px;
  }

  .agent-visual {
    min-height: 270px;
  }

  .human-core,
  .bot-core {
    top: 38px;
    width: 82px;
    height: 82px;
  }

  .human-core {
    left: 24px;
  }

  .bot-core {
    right: 24px;
  }

  .line-a {
    width: 164px;
    top: 78px;
    left: 92px;
  }

  .line-b {
    width: 150px;
    top: 106px;
    left: 102px;
  }

  .dot-a {
    top: 74px;
    left: 100px;
  }

  .dot-b {
    top: 104px;
    right: 100px;
  }

  .card-human,
  .card-bot {
    left: 18px;
    right: 18px;
    max-width: none;
  }

  .card-human {
    bottom: 76px;
  }

  .card-bot {
    bottom: 22px;
  }

  .artifact-row {
    bottom: 132px;
  }

  .primary-link,
  .secondary-link,
  .fm-button {
    width: 100%;
  }

  .password-row {
    grid-template-columns: 1fr;
  }

  .fm-art.compact {
    min-height: 108px;
  }

  .fm-login-radio {
    min-height: 280px;
  }

  .fm-intro-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .login-feature-grid {
    grid-template-columns: 1fr;
  }

  .login-feature-grid article,
  .login-feature-grid article:nth-child(5) {
    grid-column: auto;
    min-height: auto;
  }

  .login-feature-grid p {
    font-size: 0.82rem;
  }

  .fm-public-section {
    padding: 20px;
  }

  .knowledge-visual {
    min-height: 180px;
  }

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

  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-actions,
  .upload-action,
  .gallery-tour-button,
  .gallery-logout {
    width: 100%;
  }

  .gallery-item.featured-piece,
  .gallery-grid figure {
    min-height: 360px;
  }

  .gallery-lightbox {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 6px;
    padding: 58px 10px 18px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .note-list {
    grid-template-columns: 1fr;
  }

  .notes-orbit {
    min-height: 240px;
  }

  .notes-hero h1 {
    max-width: 9.8em;
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.owner-dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(85, 206, 216, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 2%, rgba(238, 184, 95, 0.12), transparent 22rem),
    var(--bg);
}

.dashboard-shell {
  max-width: 1280px;
}

.dashboard-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-private-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(85, 206, 216, 0.24);
  border-radius: 999px;
  color: rgba(188, 244, 240, 0.9);
  background: rgba(85, 206, 216, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.owner-dashboard {
  display: grid;
  gap: 24px;
  padding: 42px 0 60px;
}

.dashboard-hero {
  max-width: 840px;
}

.dashboard-hero h1 {
  margin-bottom: 18px;
  color: var(--text-strong);
  font-size: clamp(2.3rem, 5.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--text-dim);
  line-height: 1.78;
}

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

.dashboard-panel {
  min-height: 248px;
  padding: 22px;
  border: 1px solid rgba(138, 220, 214, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 24, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.dashboard-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.dashboard-panel-heading strong {
  color: var(--text-soft);
}

.dashboard-metric-row,
.dashboard-list,
.dashboard-cost-summary,
.dashboard-ledger,
.dashboard-system-grid {
  display: grid;
  gap: 10px;
}

.dashboard-metric-row,
.dashboard-cost-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-system-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-system-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-fixed-cost-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.dashboard-metric-row > div,
.dashboard-list > div,
.dashboard-cost-summary > div,
.dashboard-ledger > div,
.dashboard-system-grid > a,
.dashboard-system-grid > div {
  min-height: 82px;
  padding: 16px;
  border: 1px solid rgba(197, 144, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-system-grid > a,
.dashboard-system-grid > div {
  display: grid;
  align-content: start;
  min-height: 132px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dashboard-system-grid > a:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 210, 174, 0.34);
  background: rgba(117, 210, 174, 0.06);
}

.dashboard-metric-row span,
.dashboard-list span,
.dashboard-cost-summary span,
.dashboard-ledger span,
.dashboard-system-grid span,
.dashboard-cost-bars span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.dashboard-metric-row strong,
.dashboard-list strong,
.dashboard-cost-summary strong,
.dashboard-ledger strong,
.dashboard-system-grid strong {
  color: var(--text-strong);
  font-size: 1.02rem;
  line-height: 1.35;
}

.dashboard-application-item {
  display: grid;
  gap: 8px;
}

.dashboard-application-item small {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

.dashboard-application-item button {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(223, 184, 117, 0.28);
  border-radius: 999px;
  background: rgba(223, 184, 117, 0.1);
  color: var(--text-soft);
  font-weight: 900;
}

.dashboard-application-item button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.dashboard-cost-summary small,
.dashboard-system-grid small {
  display: block;
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.dashboard-cost-summary-primary > div {
  min-height: 124px;
}

.dashboard-cost-summary-primary strong {
  font-size: clamp(1.32rem, 2.5vw, 2rem);
}

.dashboard-ledger {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 12px;
  margin-bottom: 14px;
}

.dashboard-ledger > div {
  min-height: 96px;
}

.dashboard-muted {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.72;
}

.dashboard-cost-bars {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dashboard-cost-bars div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 14px;
}

.dashboard-cost-bars span {
  margin: 0;
}

.dashboard-cost-bars i {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.075);
}

.dashboard-cost-bars i::after {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55ced8, #eeb85f);
}

.dashboard-cost-bars strong {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.dashboard-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-actions button {
  min-height: 42px;
  border: 1px solid rgba(238, 184, 95, 0.24);
  border-radius: 14px;
  background: rgba(238, 184, 95, 0.08);
  color: var(--text-soft);
  font-weight: 900;
}

.dashboard-actions button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.dashboard-user-table {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-user-table-head,
.dashboard-user-table-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr 1fr 0.9fr 0.9fr 0.9fr 0.65fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(197, 144, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-user-table-head {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.dashboard-user-table-row {
  color: var(--text-soft);
  font-weight: 800;
}

.dashboard-user-table-row button {
  min-height: 38px;
  border: 1px solid rgba(238, 184, 95, 0.24);
  border-radius: 12px;
  background: rgba(238, 184, 95, 0.08);
  color: var(--text-soft);
  font-weight: 900;
}

.dashboard-user-table-row button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .dashboard-grid,
  .dashboard-metric-row,
  .dashboard-cost-summary,
  .dashboard-fixed-cost-list,
  .dashboard-ledger,
  .dashboard-system-grid,
  .dashboard-system-grid-three {
    grid-template-columns: 1fr;
  }

  .dashboard-user-table-head {
    display: none;
  }

  .dashboard-user-table-row {
    grid-template-columns: 1fr;
  }

  .dashboard-cost-bars div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.is-hidden {
  display: none !important;
}

.account-stage {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
}

.account-preview h1 {
  max-width: 11em;
  font-size: clamp(2.15rem, 5.6vw, 4.1rem);
}

.account-route-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.account-route-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(232, 225, 241, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-weight: 850;
}

.account-session-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(117, 210, 174, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(117, 210, 174, 0.1), rgba(143, 110, 232, 0.06)),
    rgba(255, 255, 255, 0.03);
}

.account-session-panel p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 850;
  line-height: 1.55;
}

.account-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-session-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(223, 184, 117, 0.24);
  border-radius: var(--radius);
  background: rgba(223, 184, 117, 0.08);
  color: var(--text-soft);
  font-weight: 900;
}

.account-session-actions button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.account-login-form {
  display: grid;
  gap: 14px;
}

.account-login-form label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 850;
}

.account-login-form input,
.account-login-form textarea {
  min-height: 48px;
  border: 1px solid rgba(232, 225, 241, 0.14);
  border-radius: var(--radius);
  background: rgba(15, 16, 26, 0.7);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.account-login-form input:focus {
  border-color: rgba(143, 110, 232, 0.42);
  box-shadow: 0 0 0 4px rgba(143, 110, 232, 0.12);
}

.dashboard-header {
  border-bottom-color: rgba(232, 225, 241, 0.08);
}

.dashboard-private-pill {
  border-color: rgba(117, 210, 174, 0.24);
  background: rgba(117, 210, 174, 0.08);
  color: rgba(196, 245, 231, 0.9);
}

.dashboard-hero h1 {
  color: var(--text-strong);
  font-size: clamp(2.05rem, 5.1vw, 3.95rem);
}

.dashboard-guard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(117, 210, 174, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 24, 0.72);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.dashboard-guard-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(143, 110, 232, 0.82), rgba(117, 210, 174, 0.62));
}

.dashboard-guard h2 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 1.06rem;
}

.dashboard-guard p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.68;
}

.dashboard-guard-action {
  margin-top: 14px;
}

.dashboard-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(14, 15, 24, 0.72);
}

.dashboard-metric-row > div,
.dashboard-list > div,
.dashboard-cost-summary > div,
.dashboard-ledger > div,
.dashboard-system-grid > a,
.dashboard-system-grid > div,
.dashboard-user-table-head,
.dashboard-user-table-row {
  border-color: rgba(197, 144, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-cost-bars i {
  background: rgba(255, 255, 255, 0.075);
}

.dashboard-cost-bars i::after {
  background: linear-gradient(90deg, var(--violet), var(--mint));
}

.dashboard-actions button,
.dashboard-user-table-row button {
  border-color: rgba(223, 184, 117, 0.24);
  background: rgba(223, 184, 117, 0.08);
  color: var(--text-soft);
}

@media (max-width: 820px) {
  .account-stage {
    grid-template-columns: 1fr;
  }

  .account-preview h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
