:root {
  --bg: #07111c;
  --bg-2: #0c1b2a;
  --panel: rgba(12, 22, 33, 0.84);
  --panel-2: rgba(14, 28, 41, 0.96);
  --text: #f5f8ff;
  --muted: rgba(245, 248, 255, 0.72);
  --muted-2: rgba(245, 248, 255, 0.54);
  --line: rgba(255, 255, 255, 0.08);
  --accent: #6be3d1;
  --accent-2: #ff9e57;
  --accent-3: #c89cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(107, 227, 209, 0.18), transparent 0 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 158, 87, 0.16), transparent 0 18%),
    radial-gradient(circle at 50% 88%, rgba(200, 156, 255, 0.12), transparent 0 22%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow-x: hidden;
}

.orb,
.grid-noise {
  position: fixed;
  pointer-events: none;
}

.orb {
  border-radius: 999px;
  filter: blur(18px);
}

.orb-a {
  width: 30vw;
  height: 30vw;
  top: -8vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(107, 227, 209, 0.28), transparent 68%);
}

.orb-b {
  width: 34vw;
  height: 34vw;
  bottom: -8vw;
  right: -10vw;
  background: radial-gradient(circle, rgba(255, 158, 87, 0.22), transparent 68%);
}

.grid-noise {
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: soft-light;
}

.shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.topbar,
.hero,
.section,
.dashboard,
.plan-card,
.right-panel,
.tech-result,
.log-card,
.footer-card,
.cue-card,
.fault-card,
.drill-card,
.progress-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(7, 15, 24, 0.7);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  color: #08111a;
  background: linear-gradient(135deg, #b0fff1 0%, #6be3d1 45%, #ffb16d 100%);
}

.brand-kicker,
.eyebrow,
.note-label,
.stat-label,
.drill-kicker,
.cue-label,
.fault-subtitle,
.progress-index {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
}

.topbar-actions,
.drill-actions,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.primary-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.92rem 1.1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.primary-button {
  color: #08111a;
  background: linear-gradient(135deg, #b0fff1 0%, #6be3d1 42%, #9ef6ea 100%);
  box-shadow: 0 16px 32px rgba(107, 227, 209, 0.24);
}

.ghost-button:hover,
.primary-button:hover,
.fault-card:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 21, 32, 0.9), rgba(7, 15, 24, 0.96));
}

.hero::after,
.section::after,
.dashboard::after,
.plan-card::after,
.right-panel::after,
.tech-result::after,
.log-card::after,
.footer-card::after,
.cue-card::after,
.fault-card::after,
.drill-card::after,
.progress-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.04));
}

.hero-copy,
.dashboard,
.plan-card,
.right-panel,
.tech-result,
.log-card,
.footer-card,
.cue-card,
.fault-card,
.drill-card,
.progress-card {
  position: relative;
}

.hero-copy {
  padding: 6px 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  font-size: clamp(3rem, 6vw, 6.2rem);
  max-width: 11ch;
  margin-top: 12px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

.lede,
.section-head p,
.hero-note p,
.cue-text,
.drill-copy,
.progress-copy,
.footer-card p,
.note-card p,
.recent-log,
.tech-result p,
.log-field span,
.control-card span {
  color: var(--muted);
  line-height: 1.68;
  font-size: 1.02rem;
}

.lede {
  max-width: 62ch;
  margin: 18px 0 22px;
  font-size: clamp(1.04rem, 1.65vw, 1.18rem);
}

.hero-tags,
.stats-grid,
.builder-grid,
.tech-grid,
.drill-grid,
.progress-tags,
.footer-meta {
  display: grid;
  gap: 12px;
}

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

.hero-tags span,
.dashboard-footer,
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.hero-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
}

.dashboard {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 12%, rgba(107, 227, 209, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 24, 35, 0.96), rgba(8, 15, 23, 0.98));
}

.dashboard-head,
.plan-head,
.progress-top,
.drill-head,
.session-progress-meta,
.dashboard-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.score-badge {
  min-width: 84px;
  color: #08111a;
  background: linear-gradient(135deg, #b0fff1 0%, #6be3d1 100%);
}

.ring-wrap {
  display: grid;
  place-items: center;
  padding: 14px 0 8px;
}

.ring {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: conic-gradient(var(--accent) 0deg, rgba(255, 255, 255, 0.07) 0deg);
}

.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(237, 243, 255, 0.97), rgba(217, 228, 241, 0.96));
  color: #07111c;
}

.ring-inner span {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.ring-inner small {
  color: rgba(7, 17, 28, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.stat-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
}

.dashboard-footer {
  margin-top: 14px;
  justify-content: flex-start;
  color: var(--muted);
}

.section {
  margin-top: 18px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(10, 19, 30, 0.82);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-head.compact {
  align-items: center;
}

.section-head p {
  max-width: 60ch;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, 0.72fr);
  gap: 16px;
}

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

.control-card,
.note-card,
.cue-card,
.fault-card,
.log-field,
.tech-result,
.plan-card,
.drill-card,
.progress-card,
.recent-log {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-card {
  display: grid;
  gap: 10px;
}

select,
input[type="number"],
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px;
  font: inherit;
  outline: none;
}

select:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: rgba(107, 227, 209, 0.72);
  box-shadow: 0 0 0 4px rgba(107, 227, 209, 0.12);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.plan-card,
.right-panel,
.log-card {
  border-radius: 26px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.session-progress {
  display: grid;
  gap: 10px;
  margin: 18px 0 16px;
}

.session-progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.session-progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 18px rgba(107, 227, 209, 0.35);
}

.session-progress-meta {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

.plan-list {
  display: grid;
  gap: 12px;
}

.active-timer {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.active-timer-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.active-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.active-timer-row strong {
  font-size: 1rem;
}

.active-timer-row span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.active-timer-track {
  height: 10px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.active-timer-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.plan-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 8px;
}

.plan-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.plan-item-title {
  font-weight: 900;
  font-size: 1.02rem;
}

.plan-item-meta {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.plan-item.done {
  border-color: rgba(107, 227, 209, 0.4);
  background: rgba(107, 227, 209, 0.08);
}

.cue-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.cue-card {
  padding: 16px;
}

.cue-label {
  margin-bottom: 8px;
}

.note-card p {
  margin: 0;
}

.tech-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.tech-list {
  display: grid;
  gap: 10px;
}

.fault-card {
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  padding: 16px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
}

.fault-card.active {
  border-color: rgba(255, 158, 87, 0.45);
  background: linear-gradient(180deg, rgba(255, 158, 87, 0.16), rgba(107, 227, 209, 0.08));
}

.fault-name {
  font-weight: 900;
  font-size: 1.03rem;
}

.fault-subtitle {
  color: var(--muted);
}

.tech-result {
  min-height: 100%;
}

.tech-result h3 {
  margin-bottom: 10px;
}

.tech-result p {
  margin: 0 0 12px;
}

.tech-bullets {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

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

.drill-card {
  padding: 20px;
  border-radius: 24px;
}

.drill-duration,
.progress-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(107, 227, 209, 0.12);
  color: #cafff7;
  font-size: 0.8rem;
  font-weight: 800;
}

.drill-copy {
  margin: 12px 0 0;
}

.drill-tags,
.progress-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-tag {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.drill-actions {
  margin-top: 18px;
}

.log-card {
  align-self: start;
}

.log-field {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.log-field textarea {
  resize: vertical;
  min-height: 110px;
}

.full-width {
  width: 100%;
}

.recent-log {
  margin-top: 14px;
}

.footer-card {
  margin-top: 18px;
  padding: 28px;
  border-radius: 28px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(107, 227, 209, 0.12), transparent 22%),
    radial-gradient(circle at 92% 0%, rgba(255, 158, 87, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(9, 18, 28, 0.92), rgba(7, 11, 18, 0.98));
}

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

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

@media (max-width: 980px) {
  .hero,
  .split,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .builder-grid,
  .drill-grid,
  .progress-grid,
  .hero-tags,
  .stats-grid,
  .footer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 8px;
  }

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

  .topbar-actions,
  .drill-actions {
    width: 100%;
  }

  .topbar-actions > *,
  .drill-actions > * {
    flex: 1 1 160px;
  }

  .hero,
  .section,
  .footer-card,
  .plan-card,
  .right-panel,
  .log-card {
    padding: 20px;
    border-radius: 22px;
  }

  .builder-grid,
  .drill-grid,
  .progress-grid,
  .hero-tags,
  .stats-grid,
  .footer-meta {
    grid-template-columns: 1fr;
  }

  .dashboard-head,
  .plan-head,
  .drill-head,
  .progress-top,
  .session-progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
