:root {
  --bg: #eef2f6;
  --bg-deep: #dbe5ef;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.84);
  --panel-soft: rgba(248, 250, 252, 0.74);
  --ink: #0f172a;
  --muted: #5f6b7a;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.34);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --success: #0f9f6e;
  --warn: #b7791f;
  --danger: #b42318;
  --shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.34), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.9), transparent 22%),
    radial-gradient(circle at 70% 100%, rgba(148, 163, 184, 0.22), transparent 30%),
    linear-gradient(180deg, #f6f8fb 0%, var(--bg) 48%, var(--bg-deep) 100%);
  overflow-x: hidden;
  perspective: 1400px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
}

body::before {
  width: 32rem;
  height: 32rem;
  top: -10rem;
  left: -8rem;
  background: rgba(125, 211, 252, 0.2);
}

body::after {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  bottom: -6rem;
  background: rgba(191, 219, 254, 0.38);
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)),
    radial-gradient(rgba(15, 23, 42, 0.08) 0.6px, transparent 0.6px);
  background-size: auto, 14px 14px;
  mix-blend-mode: soft-light;
}

.app-shell {
  position: relative;
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob,
.ambient-line {
  position: absolute;
  display: block;
}

.ambient-blob {
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.blob-one {
  top: 8%;
  left: -2%;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.32), rgba(96, 165, 250, 0));
  animation: blobDriftOne 16s ease-in-out infinite alternate;
}

.blob-two {
  top: 32%;
  right: 8%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
  animation: blobDriftTwo 20s ease-in-out infinite alternate;
}

.blob-three {
  bottom: -2%;
  left: 28%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0));
  animation: blobDriftThree 18s ease-in-out infinite alternate;
}

.ambient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  opacity: 0.34;
}

.line-one {
  top: 22%;
  left: 12%;
  width: 34vw;
  --line-angle: -8deg;
  transform: rotate(-8deg);
  animation: lineSweep 12s ease-in-out infinite;
}

.line-two {
  right: 4%;
  bottom: 20%;
  width: 28vw;
  --line-angle: 12deg;
  transform: rotate(12deg);
  animation: lineSweep 14s ease-in-out infinite reverse;
}

.topbar {
  display: flex;
  position: sticky;
  top: 14px;
  z-index: 10;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  isolation: isolate;
  transform: translateY(0);
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth),
    background 0.45s var(--ease-smooth);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.56) 50%, transparent 78%);
  transform: translateX(-120%);
  opacity: 0.72;
  pointer-events: none;
  animation: sheenPass 11s linear infinite;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
}

.logo {
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(15, 23, 42, 0.08);
  animation: logoFloat 5.8s ease-in-out infinite;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip,
select,
.ghost.small {
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
}

.chip {
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth),
    background 0.35s var(--ease-smooth);
}

.chip.primary {
  color: #0b2c66;
  background: rgba(191, 219, 254, 0.88);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.35);
  animation: livePulse 2.8s ease-in-out infinite;
}

.chip.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(148, 163, 184, 0.26);
}

.chip.warn {
  color: #7c4700;
  background: rgba(255, 237, 213, 0.92);
  border-color: rgba(245, 158, 11, 0.22);
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.24);
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}

select {
  padding: 8px 14px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  border-color: rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.dashboard {
  display: grid;
  gap: 18px;
  transform-style: preserve-3d;
}

.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: var(--panel);
  backdrop-filter: blur(24px) saturate(135%);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  isolation: isolate;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 18px;
  padding: 34px;
  border-radius: 34px;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.7s var(--ease-apple),
    opacity 0.7s var(--ease-apple),
    box-shadow 0.45s var(--ease-smooth);
}

.hero-panel[data-parallax] {
  --hero-rotate-x: 0deg;
  --hero-rotate-y: 0deg;
  --hero-glow-x: 50%;
  --hero-glow-y: 28%;
  --hero-shift-y: 0px;
  transform:
    perspective(1400px)
    rotateX(var(--hero-rotate-x))
    rotateY(var(--hero-rotate-y))
    translateY(calc(18px + var(--hero-shift-y)));
}

.hero-panel::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 26%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 26%);
}

.hero-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--hero-glow-x, 78%) var(--hero-glow-y, 18%), rgba(255, 255, 255, 0.64), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(59, 130, 246, 0.08) 76%, transparent 100%);
  opacity: 0.7;
  mix-blend-mode: screen;
}

.hero-copy,
.hero-summary,
.panel > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  transform: translateZ(28px);
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(37, 99, 235, 0.84);
}

.eyebrow::before,
.panel-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.hero-copy h1 {
  margin: 16px 0 12px;
  max-width: 11ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero-text {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #13325d;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 24px rgba(15, 23, 42, 0.08);
  animation: chipFloat 7.2s ease-in-out infinite;
}

.hero-chip:nth-child(2) {
  animation-delay: 1.1s;
}

.hero-chip:nth-child(3) {
  animation-delay: 2s;
}

.hero-chip i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32);
  animation: dotPulse 2.2s ease-in-out infinite;
}

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

.hero-note,
.summary-item,
.alert,
.reco-card {
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: var(--panel-soft);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-note {
  padding: 16px 18px;
  border-radius: 22px;
  transition:
    transform 0.55s var(--ease-smooth),
    box-shadow 0.55s var(--ease-smooth),
    border-color 0.55s var(--ease-smooth);
}

.hero-note:nth-child(1) {
  animation: noteBob 7s ease-in-out infinite;
}

.hero-note:nth-child(2) {
  animation: noteBob 7.5s ease-in-out infinite reverse;
}

.hero-note:nth-child(3) {
  animation: noteBob 8s ease-in-out infinite;
  animation-delay: 0.8s;
}

.hero-note span,
.summary-label,
.summary-item span,
.reco-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-note strong {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.hero-note small {
  display: block;
  margin-top: 6px;
  color: rgba(95, 107, 122, 0.86);
  font-size: 0.8rem;
}

.hero-summary {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateZ(48px);
  transition:
    transform 0.6s var(--ease-smooth),
    box-shadow 0.6s var(--ease-smooth),
    border-color 0.6s var(--ease-smooth);
}

.hero-summary::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 68%);
  pointer-events: none;
}

.summary-total {
  display: block;
  margin-top: 10px;
  font-size: clamp(2.4rem, 3.8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.summary-delta {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
}

.summary-delta.positive {
  color: var(--danger);
}

.summary-delta.negative {
  color: var(--success);
}

.summary-delta.neutral {
  color: var(--muted);
}

.summary-grid {
  display: grid;
  gap: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth);
}

.summary-item strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

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

.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 250px;
  padding: 24px;
  border-radius: 30px;
  transform: translateY(18px);
  opacity: 0;
  transition:
    transform 0.7s var(--ease-apple),
    opacity 0.7s var(--ease-apple),
    box-shadow 0.45s var(--ease-smooth),
    border-color 0.45s var(--ease-smooth);
}

.panel:hover,
.hero-panel:hover {
  box-shadow: 0 34px 100px rgba(15, 23, 42, 0.16);
  border-color: rgba(255, 255, 255, 0.86);
}

.panel[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform:
    perspective(1400px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(18px);
}

.panel:nth-child(1) { grid-column: span 12; }
.panel:nth-child(2) { grid-column: span 6; }
.panel:nth-child(3) { grid-column: span 6; }
.panel:nth-child(4) { grid-column: span 4; }
.panel:nth-child(5) { grid-column: span 4; }
.panel:nth-child(6) { grid-column: span 4; }
.panel:nth-child(7) { grid-column: span 12; }

.feature-panel {
  padding-bottom: 14px;
}

.wide {
  grid-column: span 12;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.45s var(--ease-smooth);
}

.panel-header h2 {
  margin: 10px 0 6px;
  font-size: 1.38rem;
  letter-spacing: -0.05em;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.18);
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}

.pill.warn {
  color: #8a5400;
  background: rgba(255, 237, 213, 0.9);
  border-color: rgba(245, 158, 11, 0.18);
}

.panel-chart {
  min-height: 220px;
  height: 240px;
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.55s var(--ease-smooth);
}

.panel-chart::before {
  content: "";
  position: absolute;
  inset: -18% auto auto -10%;
  width: 52%;
  height: 52%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
  animation: chartAura 8s ease-in-out infinite alternate;
}

.panel-chart::after {
  content: "";
  position: absolute;
  inset: auto 8% -30% 8%;
  height: 44%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  opacity: 0.85;
  animation: chartGlow 6s ease-in-out infinite alternate;
}

.panel-chart.tall {
  height: 320px;
}

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

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

.metric-chip {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth);
}

.metric-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.metric-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

.alerts {
  display: grid;
  gap: 12px;
}

.alert {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth),
    border-color 0.45s var(--ease-smooth);
}

.alert-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 700;
  color: #9a5c00;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 237, 213, 0.88));
}

.alert-copy strong {
  display: block;
  letter-spacing: -0.03em;
}

.alert-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ghost.small {
  padding: 9px 12px;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(148, 163, 184, 0.18);
  transition:
    transform 0.35s var(--ease-smooth),
    box-shadow 0.35s var(--ease-smooth);
}

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

.reco-card {
  padding: 18px;
  border-radius: 24px;
  cursor: pointer;
  transition:
    transform 0.45s var(--ease-smooth),
    box-shadow 0.45s var(--ease-smooth),
    border-color 0.45s var(--ease-smooth);
}

.reco-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.reco-card .muted {
  max-height: 56px;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.reco-card.expanded .muted {
  max-height: 220px;
}

.reco-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.reco-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
}

.reco-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.reco-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  letter-spacing: -0.04em;
}

.reco-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reco-meta strong {
  font-size: 0.86rem;
}

.hero-stage {
  position: relative;
  min-height: clamp(300px, 34vw, 360px);
  margin-top: 24px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 26%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.06), rgba(37, 99, 235, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 24px 60px rgba(15, 23, 42, 0.08);
}

.stage-ring,
.stage-glow,
.stage-viewport,
.stage-progress,
.stage-dots {
  position: absolute;
}

.stage-ring {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.ring-one {
  inset: 26px auto auto 10%;
  width: 280px;
  height: 280px;
  animation: orbitDrift 16s linear infinite;
}

.ring-two {
  right: 8%;
  bottom: -36%;
  width: 210px;
  height: 210px;
  border-color: rgba(96, 165, 250, 0.28);
  animation: orbitDrift 12s linear infinite reverse;
}

.stage-glow {
  inset: auto auto 18px 14%;
  width: 58%;
  height: 46%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0));
  filter: blur(28px);
  animation: chartGlow 8s ease-in-out infinite alternate;
}

.stage-viewport {
  inset: 18px 18px 34px;
  display: grid;
  isolation: isolate;
}

.stage-viewport::before {
  content: "";
  position: absolute;
  inset: 12% 10% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.12), rgba(59, 130, 246, 0.18));
  filter: blur(2px);
  transform: rotate(16deg);
  opacity: 0.85;
  animation: stagePanelFloat 10s ease-in-out infinite;
}

.stage-viewport::after {
  content: "";
  position: absolute;
  inset: auto auto 12% 12%;
  width: 180px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(148, 163, 184, 0.08));
  filter: blur(10px);
  opacity: 0.75;
  animation: stageTrailFloat 8.5s ease-in-out infinite;
}

.stage-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 14px);
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.56)),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 32%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 20px 38px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translate3d(12%, 0, 0) scale(0.96);
  transition:
    opacity 0.85s var(--ease-apple),
    transform 0.85s var(--ease-apple),
    filter 0.85s var(--ease-apple);
  filter: blur(8px);
}

.stage-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(125deg, transparent 22%, rgba(59, 130, 246, 0.08) 100%);
  pointer-events: none;
}

.stage-slide.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
  animation: stageSlideFloat 7s ease-in-out infinite;
}

.stage-slide.is-exit {
  opacity: 0;
  transform: translate3d(-12%, 0, 0) scale(0.96);
  filter: blur(10px);
}

.stage-badge,
.stage-slide strong,
.stage-slide p,
.stage-metrics {
  position: relative;
  z-index: 1;
}

.stage-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stage-slide strong {
  display: block;
  max-width: 12ch;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.stage-slide p {
  max-width: 40ch;
  margin: 0;
  color: rgba(71, 85, 105, 0.92);
  line-height: 1.52;
}

.stage-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-metrics span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #13325d;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.stage-progress {
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.stage-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #93c5fd, #2563eb 55%, #0f172a);
  transform-origin: left center;
  transform: scaleX(0.34);
  transition: transform 0.55s var(--ease-smooth);
}

.stage-dots {
  right: 18px;
  top: 18px;
  display: inline-flex;
  gap: 8px;
  z-index: 2;
}

.stage-dot {
  width: 10px;
  height: 10px;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition:
    transform 0.35s var(--ease-smooth),
    background 0.35s var(--ease-smooth),
    width 0.35s var(--ease-smooth);
}

.stage-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(37, 99, 235, 0.88));
  transform: translateY(-1px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.8s var(--ease-apple),
    transform 0.8s var(--ease-apple);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-panel:hover .hero-summary,
.panel:hover .panel-chart,
.panel:hover .panel-header,
.hero-note:hover,
.summary-item:hover,
.metric-chip:hover,
.alert:hover,
.ghost.small:hover,
.pill:hover,
.select-wrap:hover,
.chip:hover {
  transform: translateY(-3px);
}

.hero-note:hover,
.summary-item:hover,
.metric-chip:hover,
.alert:hover {
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.animate-in .hero-panel,
.animate-in .panel {
  opacity: 1;
  transform: translateY(0);
}

.animate-in .hero-panel[data-parallax] {
  transform:
    perspective(1400px)
    rotateX(var(--hero-rotate-x))
    rotateY(var(--hero-rotate-y))
    translateY(var(--hero-shift-y));
}

.animate-in .panel[data-tilt] {
  transform:
    perspective(1400px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(0);
}

.animate-in .hero-panel {
  animation: floatIn 0.8s ease both;
}

.animate-in .panel {
  animation: floatIn 0.85s ease both;
}

.animate-in .panel:nth-child(1) { animation-delay: 0.08s; }
.animate-in .panel:nth-child(2) { animation-delay: 0.14s; }
.animate-in .panel:nth-child(3) { animation-delay: 0.2s; }
.animate-in .panel:nth-child(4) { animation-delay: 0.26s; }
.animate-in .panel:nth-child(5) { animation-delay: 0.32s; }
.animate-in .panel:nth-child(6) { animation-delay: 0.38s; }
.animate-in .panel:nth-child(7) { animation-delay: 0.44s; }

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chartAura {
  0% {
    transform: translate3d(-6%, 0, 0) scale(0.96);
    opacity: 0.42;
  }

  100% {
    transform: translate3d(18%, 10%, 0) scale(1.08);
    opacity: 0.78;
  }
}

@keyframes chartGlow {
  0% {
    transform: translateY(6px) scaleX(0.96);
    opacity: 0.4;
  }

  100% {
    transform: translateY(-10px) scaleX(1.04);
    opacity: 0.92;
  }
}

@keyframes blobDriftOne {
  0% {
    transform: translate3d(0, 0, 0) scale(0.96);
  }

  100% {
    transform: translate3d(60px, 32px, 0) scale(1.08);
  }
}

@keyframes blobDriftTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(-48px, 40px, 0) scale(1.08);
  }
}

@keyframes blobDriftThree {
  0% {
    transform: translate3d(0, 0, 0) scale(0.94);
  }

  100% {
    transform: translate3d(28px, -34px, 0) scale(1.06);
  }
}

@keyframes lineSweep {
  0%,
  100% {
    opacity: 0.16;
    transform: translateX(0) rotate(var(--line-angle, 0deg));
  }

  50% {
    opacity: 0.44;
    transform: translateX(18px) rotate(var(--line-angle, 0deg));
  }
}

@keyframes sheenPass {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(140%);
  }
}

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

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

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

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

@keyframes stageFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(-1deg);
  }
}

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

  50% {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }
}

@keyframes stagePanelFloat {
  0%,
  100% {
    transform: rotate(16deg) translate3d(0, 0, 0);
  }

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

@keyframes stageTrailFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(1);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(18px, -6px, 0) scaleX(1.08);
    opacity: 0.9;
  }
}

@keyframes orbitDrift {
  0% {
    transform: rotate(0deg) scale(0.98);
  }

  100% {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.1);
    opacity: 0.8;
  }

  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    opacity: 1;
  }
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
  }

  55% {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
}

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

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

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

  .hero-panel,
  .panel,
  .topbar,
  .ambient-blob,
  .ambient-line,
  .hero-chip,
  .hero-note,
  .logo,
  .stage-ring,
  .stage-glow,
  .stage-slide,
  .stage-viewport::before,
  .stage-viewport::after,
  .stage-progress-bar,
  .stage-dot,
  .reveal-item,
  .reco-card,
  .reco-card .muted,
  .app-shell::after,
  .panel-chart::before,
  .panel-chart::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1160px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .hero-stage {
    min-height: 300px;
  }

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

  .chart-metrics {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel:nth-child(1),
  .panel:nth-child(2),
  .panel:nth-child(3),
  .panel:nth-child(4),
  .panel:nth-child(5),
  .panel:nth-child(6),
  .panel:nth-child(7),
  .wide {
    grid-column: span 2;
  }

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

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero-panel,
  .panel {
    padding: 20px;
    border-radius: 26px;
  }

  .hero-stage {
    min-height: 320px;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

  .grid,
  .reco-grid,
  .chart-metrics,
  .chart-metrics.compact {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel:nth-child(1),
  .panel:nth-child(2),
  .panel:nth-child(3),
  .panel:nth-child(4),
  .panel:nth-child(5),
  .panel:nth-child(6),
  .panel:nth-child(7),
  .wide {
    grid-column: auto;
  }

  .alert {
    grid-template-columns: 44px 1fr;
  }

  .ghost.small {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .stage-viewport {
    inset: 14px 14px 34px;
  }

  .stage-slide {
    padding: 18px;
  }

  .stage-slide strong {
    max-width: 14ch;
  }

  .stage-dots {
    top: 14px;
    right: 14px;
    bottom: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .select-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .summary-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-chips {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stage {
    min-height: 340px;
  }

  .stage-slide strong {
    max-width: none;
    font-size: 1.56rem;
  }

  .stage-slide p {
    font-size: 0.92rem;
  }

  .stage-metrics {
    gap: 8px;
  }

  .panel-chart,
  .panel-chart.tall {
    height: 250px;
    min-height: 250px;
  }
}
