.tone-rose { --liquid-rgb: 243, 109, 169; }
.tone-violet { --liquid-rgb: 125, 107, 231; }
.tone-mint { --liquid-rgb: 112, 192, 164; }
.tone-blue { --liquid-rgb: 71, 125, 230; }
.tone-amber { --liquid-rgb: 235, 166, 94; }

.liquid-fill {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--liquid-level);
  overflow: visible;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(var(--liquid-rgb), 0.17), rgba(var(--liquid-rgb), 0.44));
  transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.hero-liquid {
  opacity: 0.68;
  filter: saturate(0.92);
}

.card-liquid { opacity: 0.58; }

.liquid-wave {
  position: absolute;
  top: -17px;
  left: -32%;
  width: 164%;
  height: 34px;
  border-radius: 44% 52% 48% 46%;
  background: rgba(var(--liquid-rgb), 0.31);
  box-shadow: 0 -4px 18px rgba(var(--liquid-rgb), 0.12);
}

.liquid-wave.wave-one {
  animation: tide-wave 7s ease-in-out infinite alternate;
}

.liquid-wave.wave-two {
  top: -12px;
  left: -37%;
  opacity: 0.46;
  background: rgba(255, 255, 255, 0.24);
  animation: tide-wave-reverse 9s ease-in-out infinite alternate;
}

@keyframes tide-wave {
  from { transform: translate3d(-7%, 2px, 0) rotate(-1.8deg); }
  to { transform: translate3d(8%, -3px, 0) rotate(1.8deg); }
}

@keyframes tide-wave-reverse {
  from { transform: translate3d(8%, -1px, 0) rotate(1.2deg); }
  to { transform: translate3d(-8%, 3px, 0) rotate(-1.2deg); }
}

.tide-readout {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-size: 9px;
}

.journey-rings {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -70px;
  right: -86px;
  opacity: 0.33;
  pointer-events: none;
}

.journey-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 184, 250, 0.2);
  border-radius: 50%;
  animation: orbit-breathe 5s ease-in-out infinite;
}

.journey-rings i:nth-child(2) {
  inset: 28px;
  animation-delay: -1.4s;
}

.journey-rings i:nth-child(3) {
  inset: 56px;
  animation-delay: -2.8s;
}

@keyframes orbit-breathe {
  50% {
    opacity: 0.38;
    transform: scale(1.04);
  }
}

.journey-orbit {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: conic-gradient(
    from -90deg,
    rgba(238, 157, 206, 0.94) 0 var(--orbit-progress),
    rgba(255, 255, 255, 0.08) var(--orbit-progress) 100%
  );
  box-shadow:
    0 0 24px rgba(194, 133, 231, 0.13),
    inset 0 0 30px rgba(217, 115, 170, 0.09);
}

.journey-orbit::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #1f1823 0%, #111116 72%);
}

.orbit-symbol {
  position: relative;
  z-index: 2;
}

.journey-orbit > .orbit-star,
.memory-rings > .orbit-star {
  position: absolute;
  z-index: 3;
  inset: -4px;
  transform: rotate(var(--orbit-angle));
  animation: star-pulse 2.8s ease-in-out infinite;
}

.journey-orbit > .orbit-star::after,
.memory-rings > .orbit-star::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff3df;
  box-shadow: 0 0 8px #ffd9ef, 0 0 18px rgba(216, 163, 255, 0.84);
}

@keyframes star-pulse {
  50% { filter: brightness(1.35); }
}

.journey-seasons {
  display: block;
  margin-top: 12px;
  max-width: 175px;
  color: rgba(230, 209, 244, 0.56);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.moment-card > *:not(.liquid-fill, .memory-rings, .card-glow) {
  position: relative;
  z-index: 2;
}

.tide-moment {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025)),
    #121116;
}

.journey-moment {
  background:
    radial-gradient(circle at 78% 70%, rgba(132, 94, 190, 0.14), transparent 37%),
    linear-gradient(150deg, #16131a, #0e0e12);
}

.memory-rings {
  position: absolute;
  z-index: 0;
  right: -48px;
  bottom: -43px;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    rgba(var(--liquid-rgb), 0.42) 0 var(--orbit-progress),
    rgba(255, 255, 255, 0.04) var(--orbit-progress) 100%
  );
  box-shadow: 0 0 45px rgba(var(--liquid-rgb), 0.12);
}

.memory-rings::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #111015;
}

.memory-rings > i {
  position: absolute;
  border: 1px solid rgba(var(--liquid-rgb), 0.16);
  border-radius: 50%;
}

.memory-rings > i:nth-child(1) { inset: 29px; }
.memory-rings > i:nth-child(2) { inset: 57px; }
.memory-rings > i:nth-child(3) { inset: 82px; }

.memory-rings b {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  font-weight: 390;
}

.memory-rings b small {
  color: rgba(255, 255, 255, 0.34);
  font-size: 8px;
  font-weight: 500;
}

.memory-rings > .orbit-star { inset: -2px; }

.progress-caption {
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.43);
  letter-spacing: 0.06em;
  font-size: 9px;
}

/* Vivid glass theme: keep color visible even before a user has added moments. */
.site-shell {
  background:
    radial-gradient(circle at 46% -12%, rgba(162, 125, 210, 0.13), transparent 31rem),
    linear-gradient(180deg, #0a0a0c 0%, #111014 52%, #09090b 100%);
}

.site-shell::after {
  display: none;
  content: "";
  position: absolute;
  z-index: 0;
  top: 180px;
  right: -18vw;
  width: 62vw;
  height: 62vw;
  border-radius: 50%;
  opacity: 0.22;
  pointer-events: none;
  background: conic-gradient(
    from 120deg,
    #5b8cff,
    #e657a6,
    #ec9b67,
    #6ed2b3,
    #5b8cff
  );
  filter: blur(120px);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  to { transform: translate3d(-8vw, 10vw, 0) rotate(16deg) scale(1.08); }
}

.ambient {
  opacity: 0.16;
  filter: blur(90px);
}

.topbar {
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.25);
}

:root {
  --font-ui:
    "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial:
    "Bodoni 72", Didot, "Songti SC", STSong, "Noto Serif CJK SC",
    "Source Han Serif SC", Georgia, serif;
}

body {
  font-family: var(--font-ui);
}

.hero {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr);
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 68px 0 82px;
}

.brand,
.footer-brand,
.section-heading h2,
.moment-title,
.modal-head h2 {
  font-family: var(--font-editorial);
  font-weight: 500;
}

.brand {
  font-size: 17px;
  letter-spacing: 0.22em;
}

.large-number strong,
.journey-copy strong,
.moment-metric strong,
.journey-orbit,
.moment-symbol,
.section-index {
  font-family: var(--font-editorial);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "kern", "liga", "tnum";
}

.large-number strong,
.journey-copy strong,
.moment-metric strong {
  font-weight: 400;
  letter-spacing: -0.045em;
}

.section-heading h2 {
  letter-spacing: 0.015em;
}

.hero-copy h1 {
  text-shadow: 0 18px 70px rgba(143, 94, 225, 0.2);
}

.hero-copy h1 span {
  background-image: linear-gradient(
    105deg,
    #fff 2%,
    #ff9fd3 38%,
    #b0a5ff 68%,
    #89d9ff 100%
  );
  filter: drop-shadow(0 10px 24px rgba(224, 105, 178, 0.2));
}

.hero-dashboard {
  position: relative;
}

.hero-dashboard::before {
  content: "";
  position: absolute;
  inset: -35px -42px;
  z-index: -1;
  border-radius: 62px;
  pointer-events: none;
  background:
    radial-gradient(circle at 26% 28%, rgba(242, 91, 169, 0.27), transparent 42%),
    radial-gradient(circle at 76% 68%, rgba(100, 117, 248, 0.3), transparent 45%);
  filter: blur(28px);
}

.next-card {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(var(--liquid-rgb), 0.72), transparent 42%),
    linear-gradient(
      145deg,
      rgba(var(--liquid-rgb), 0.58) 0%,
      #4d274b 46%,
      #181524 100%
    );
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 34px 90px rgba(5, 4, 12, 0.62),
    0 0 70px rgba(var(--liquid-rgb), 0.16),
    inset 0 1px rgba(255, 255, 255, 0.24);
}

.next-card.tone-mint {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(142, 222, 194, 0.62), transparent 43%),
    linear-gradient(145deg, #477c6d 0%, #285449 48%, #101f1c 100%);
  border-color: rgba(178, 237, 217, 0.3);
  box-shadow:
    0 34px 90px rgba(4, 13, 11, 0.62),
    0 0 70px rgba(112, 192, 164, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.22);
}

.next-card.tone-mint::before {
  background: radial-gradient(circle, rgba(178, 239, 218, 0.38), transparent 66%);
}

.hero-dashboard:has(.next-card.tone-mint)::before {
  background:
    radial-gradient(circle at 26% 28%, rgba(91, 184, 155, 0.24), transparent 42%),
    radial-gradient(circle at 76% 68%, rgba(91, 131, 187, 0.24), transparent 45%);
}

.journey-card {
  background:
    radial-gradient(circle at 18% 12%, rgba(241, 113, 179, 0.34), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(93, 105, 239, 0.55), transparent 48%),
    linear-gradient(150deg, #28213d 0%, #131223 52%, #0d111c 100%);
  border-color: rgba(196, 180, 255, 0.25);
  box-shadow:
    0 30px 80px rgba(5, 4, 12, 0.58),
    0 0 55px rgba(111, 90, 226, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

.empty-hero::before {
  content: "";
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.52), transparent 12%),
    radial-gradient(circle at 64% 66%, rgba(108, 133, 255, 0.88), transparent 34%),
    linear-gradient(145deg, #f38cbc, #6e5dda 64%, #1a203a);
  box-shadow:
    0 0 0 14px rgba(255, 255, 255, 0.04),
    0 0 0 29px rgba(255, 255, 255, 0.025),
    0 22px 50px rgba(58, 35, 114, 0.42);
}

.tide-moment {
  background:
    radial-gradient(circle at 92% 12%, rgba(var(--liquid-rgb), 0.38), transparent 39%),
    linear-gradient(155deg, rgba(var(--liquid-rgb), 0.16), rgba(17, 16, 25, 0.92) 58%),
    #121116;
}

.journey-moment {
  background:
    radial-gradient(circle at 82% 70%, rgba(var(--liquid-rgb), 0.38), transparent 42%),
    radial-gradient(circle at 10% 10%, rgba(233, 115, 183, 0.13), transparent 34%),
    linear-gradient(150deg, #21192b, #0e1019 72%);
}

.moment-card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 55px rgba(2, 3, 10, 0.32),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.moment-card:hover {
  border-color: rgba(var(--liquid-rgb), 0.52);
  box-shadow:
    0 30px 70px rgba(2, 3, 10, 0.46),
    0 0 42px rgba(var(--liquid-rgb), 0.16),
    inset 0 1px rgba(255, 255, 255, 0.14);
}

.moment-symbol {
  border-color: rgba(var(--liquid-rgb), 0.42);
  background: rgba(var(--liquid-rgb), 0.18);
  box-shadow: 0 0 24px rgba(var(--liquid-rgb), 0.18);
}

.create-card,
.empty-card {
  border-color: rgba(190, 164, 255, 0.24);
  background:
    radial-gradient(circle at 18% 20%, rgba(238, 101, 171, 0.32), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(83, 127, 238, 0.28), transparent 38%),
    linear-gradient(145deg, rgba(49, 34, 63, 0.72), rgba(15, 17, 28, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

@media (max-width: 720px) {
  .tide-readout { display: none; }
  .hero {
    min-height: 0;
    padding: 56px 0 72px;
  }
  .hero-dashboard { margin-top: 0; }

  .journey-rings {
    width: 210px;
    height: 210px;
    top: -70px;
    right: -70px;
  }

  .journey-seasons {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-wave,
  .journey-rings i,
  .journey-orbit > .orbit-star,
  .memory-rings > .orbit-star {
    animation: none !important;
  }
}
