:root {
  --bg: #07111f;
  --panel: rgba(8, 18, 34, 0.56);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #eef6ff;
  --muted: #afc3d8;
  --accent: #69e2d7;
  --accent-strong: #a2f3c3;
  --generic: rgba(105, 226, 215, 0.18);
  --project: rgba(255, 195, 113, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 226, 215, 0.22), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(255, 195, 113, 0.18), transparent 26%),
    linear-gradient(140deg, #08111f 0%, #0b172b 46%, #07111f 100%);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.7;
}

.ambient-one {
  top: 64px;
  right: 6%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 226, 215, 0.28), transparent 70%);
}

.ambient-two {
  bottom: 10%;
  left: 4%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 195, 113, 0.18), transparent 68%);
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.eyebrow, .phase-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

h1, h2, h3, .stat-card strong {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: 0.94;
  max-width: 10ch;
}

.hero-text, .section-heading p, .check-type, .phase-badge, .stat-label { color: var(--muted); }
.hero-text { margin: 16px 0 0; max-width: 58ch; font-size: 1.04rem; line-height: 1.6; }

.hero-stats { display: grid; gap: 16px; align-content: end; }

.stat-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(7, 15, 29, 0.46);
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sidebar, .content { padding: 24px; }

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
}

.section-heading h2 { font-size: 1.15rem; margin-bottom: 6px; }
.section-heading p { margin: 0; line-height: 1.5; }

.project-card, .progress-card, .control-card { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.92rem; font-weight: 700; }

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 12, 24, 0.62);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(105, 226, 215, 0.7);
  background: rgba(4, 12, 24, 0.82);
  transform: translateY(-1px);
}

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

.legend, .filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legend-chip, .filter-button, .ghost-button, .phase-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

.generic-chip { background: var(--generic); }
.project-chip { background: var(--project); }

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 0 24px rgba(105, 226, 215, 0.4);
  transition: width 220ms ease;
}

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

.phase-pill {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(4, 12, 24, 0.44);
  border: 1px solid rgba(255,255,255,0.08);
}

.phase-pill span:last-child { color: var(--accent); font-weight: 700; }

.filter-button, .ghost-button {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-button.active,
.filter-button:hover,
.ghost-button:hover {
  background: rgba(105, 226, 215, 0.16);
  border-color: rgba(105, 226, 215, 0.34);
  transform: translateY(-1px);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}

.toggle input { accent-color: var(--accent); }
.content { min-height: 70vh; }
.content-heading { margin-bottom: 18px; }
.phase-list { display: grid; gap: 18px; }

.phase-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(7, 15, 29, 0.42);
}

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

.phase-title { font-size: 1.4rem; }
.item-list { display: grid; gap: 12px; }

.check-item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(3, 10, 20, 0.48);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.check-item:hover {
  border-color: var(--line-strong);
  background: rgba(3, 10, 20, 0.72);
  transform: translateY(-1px);
}

.check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.03);
  position: relative;
  margin-top: 1px;
}

.check-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  transform: scale(0);
  transition: transform 160ms ease;
}

.check-input:checked + .check-mark::after { transform: scale(1); }

.check-copy { display: grid; gap: 6px; min-width: 0; }
.placeholder-group { display: grid; gap: 10px; margin-top: 6px; }
.placeholder-field { display: grid; gap: 6px; }
.placeholder-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.placeholder-input {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.placeholder-input:focus {
  border-color: rgba(105, 226, 215, 0.7);
  background: rgba(255,255,255,0.08);
}

.check-type {
  display: inline-flex;
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 700;
}

.check-item[data-type="Generic"] .check-type {
  background: var(--generic);
  border-color: rgba(105, 226, 215, 0.18);
}

.check-item[data-type="Project-specific"] .check-type {
  background: var(--project);
  border-color: rgba(255, 195, 113, 0.18);
}

.check-text { line-height: 1.55; }

.check-item.is-complete .check-text {
  color: #b9cad8;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(162, 243, 195, 0.5);
}

.phase-card.is-hidden, .check-item.is-hidden { display: none; }

@media (max-width: 980px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 20px, 100%); padding: 18px 0 28px; }
  .hero, .sidebar, .content, .phase-card { padding: 18px; }
  h1 { max-width: none; }
  .phase-header { align-items: start; flex-direction: column; }
  .check-item { padding: 14px; }
}
