:root {
  color-scheme: light;
  --bg: #f6f6f5;
  --ink: #111214;
  --muted: #5b616b;
  --card: rgba(255, 255, 255, 0.7);
  --stroke: rgba(12, 16, 20, 0.08);
  --glow: rgba(255, 255, 255, 0.9);
  --accent: #0f63ff;
  --accent-soft: rgba(15, 99, 255, 0.18);
  --ring-track: rgba(12, 16, 20, 0.08);
  --shadow: 0 30px 80px rgba(12, 16, 20, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}

.glow {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  background: radial-gradient(circle, rgba(15, 99, 255, 0.35), transparent 60%);
  animation: float 14s ease-in-out infinite;
}

.glow.one {
  top: -20vmax;
  left: -10vmax;
}

.glow.two {
  bottom: -25vmax;
  right: -10vmax;
  animation-delay: -4s;
}

.grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.frame {
  width: min(900px, 92vw);
  padding: 40px 36px 32px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 28px;
  animation: rise 0.9s ease both;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  align-items: center;
}

.ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ring-track) 0);
  position: relative;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.6),
    0 18px 40px rgba(12, 16, 20, 0.12);
}

.ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(12, 16, 20, 0.04);
  z-index: 2;
}

.ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0.6;
  z-index: 4;
}

.sheen {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 12%, rgba(255, 255, 255, 0) 35%);
  mix-blend-mode: screen;
  animation: sweep 8s linear infinite;
  opacity: 0.7;
  z-index: 1;
}

.orb {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: start center;
  transform: rotate(calc(var(--angle, 0) * 1deg));
  z-index: 3;
  pointer-events: none;
}

.orb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 8px 14px rgba(12, 16, 20, 0.18);
}

.readout {
  display: grid;
  gap: 10px;
}

.percent {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sub {
  font-size: 16px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(12, 16, 20, 0.08);
  color: #1a1f2a;
}

.timeline {
  display: grid;
}

.timeline-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  gap: 6px;
  padding: 12px 12px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(12, 16, 20, 0.08);
}

.timeline-bar::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 1px;
  background: rgba(12, 16, 20, 0.08);
}

.month {
  display: grid;
  place-items: center;
  padding: 6px 0;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
  border: 1px solid transparent;
}

.month.active {
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid rgba(12, 16, 20, 0.08);
}

.marker {
  position: absolute;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 18px rgba(12, 16, 20, 0.14);
  transform: translateX(-50%);
  left: 0;
  z-index: 2;
}

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

.tile {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(12, 16, 20, 0.08);
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.value {
  font-size: 18px;
  font-weight: 500;
}

.foot {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(30px, -24px, 0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sweep {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .frame {
    padding: 28px 24px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .readout {
    text-align: center;
  }

  .chips {
    justify-content: center;
  }

  .top {
    flex-direction: column;
    gap: 10px;
  }

  .foot {
    text-align: center;
  }

  .timeline-bar {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 8px;
  }
}
