:root {
  --cream: #f7f2e9;
  --ink: #1f2428;
  --muted: #4d5a5e;
  --teal: #1d7f6e;
  --teal-dark: #15584e;
  --orange: #f28c28;
  --rose: #ef6f61;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(28, 38, 41, 0.12);
  --shadow: 0 24px 50px rgba(20, 24, 24, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(circle at 12% 18%, #fff8e6 0%, transparent 55%),
    radial-gradient(circle at 78% 22%, rgba(29, 127, 110, 0.18) 0%, transparent 50%),
    linear-gradient(120deg, rgba(242, 140, 40, 0.12), transparent 60%);
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.halo,
.mesh {
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

.halo {
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.35), transparent 70%);
  animation: float 14s ease-in-out infinite;
}

.mesh {
  bottom: -160px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(29, 127, 110, 0.28), transparent 70%);
  animation: float 12s ease-in-out infinite reverse;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.session-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.session-picker label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.session-picker select {
  border: none;
  background: transparent;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--teal-dark);
}

.subhead {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  border: none;
  background: linear-gradient(135deg, var(--teal), #1b9b89);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(27, 155, 137, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(27, 155, 137, 0.28);
}

.status {
  background: rgba(29, 127, 110, 0.1);
  border: 1px solid rgba(29, 127, 110, 0.2);
  color: var(--teal-dark);
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  width: fit-content;
}

.stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  animation: riseIn 0.6s ease forwards;
}

.label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.subvalue {
  font-size: 0.95rem;
  color: var(--muted);
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: riseIn 0.7s ease forwards;
}

.card-header h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--teal-dark);
}

.card-header p {
  margin: 0;
  color: var(--muted);
}

.chart-wrap {
  position: relative;
  height: clamp(260px, 40vh, 420px);
}

.footer {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

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

@media (max-width: 760px) {
  .app {
    padding: 36px 20px 48px;
  }

  .hero-actions {
    width: 100%;
  }

  .session-picker {
    width: 100%;
    justify-content: space-between;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}
