:root {
  --ink: #251f28;
  --muted: #756c73;
  --paper: #f5efe5;
  --paper-deep: #e9d9c3;
  --panel: rgba(255, 251, 244, 0.88);
  --panel-solid: #fffaf2;
  --border: rgba(62, 45, 42, 0.14);
  --evergreen: #17483c;
  --moss: #7e8f62;
  --brass: #c78b35;
  --maple: #b45534;
  --plum: #5a334f;
  --rose: #e8b7a7;
  --shadow: 0 24px 70px rgba(49, 33, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(199, 139, 53, 0.22), transparent 25%),
    radial-gradient(circle at 84% 5%, rgba(90, 51, 79, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(23, 72, 60, 0.1) 0 12%, transparent 12% 100%),
    linear-gradient(180deg, #f8f0e4 0%, #e9d9c3 52%, #d6c4ad 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 31, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 31, 40, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: rgba(37, 31, 40, 0.92);
  backdrop-filter: blur(16px);
  color: #fffaf2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brass), var(--maple));
  color: #fffaf2;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 250, 242, 0.64);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav a {
  color: rgba(255, 250, 242, 0.76);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem) 2.2rem;
}

.hero-copy,
.hero-panel,
.release-sidebar,
.release-detail,
.briefing-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  min-height: 460px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 34px 34px 12px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -120px;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52%;
  background: linear-gradient(135deg, rgba(180, 85, 52, 0.18), rgba(23, 72, 60, 0.18));
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--maple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Newsreader, Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.88;
}

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

h3 {
  margin-bottom: 0.45rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-action {
  background: var(--evergreen);
  color: #fffaf2;
}

.secondary-action {
  background: rgba(255, 250, 242, 0.4);
  border-color: rgba(90, 51, 79, 0.22);
  color: var(--plum);
}

.hero-panel {
  border-radius: 12px 34px 34px 34px;
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.panel-topline {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 22px;
  background: #251f28;
  color: #fffaf2;
}

.panel-topline span {
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-ring {
  display: grid;
  place-items: center;
  align-content: center;
  width: min(260px, 82%);
  aspect-ratio: 1;
  margin: 0.4rem auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel-solid) 0 57%, transparent 58%),
    conic-gradient(var(--evergreen) 0 var(--score-angle, 295deg), rgba(37, 31, 40, 0.12) var(--score-angle, 295deg) 360deg);
  box-shadow: inset 0 0 0 12px rgba(255, 250, 242, 0.75);
}

.score-ring span {
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.8;
  color: var(--evergreen);
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mini-metrics,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.mini-metrics div,
.metric-grid article {
  padding: 0.9rem;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.58);
  border: 1px solid var(--border);
}

.mini-metrics span,
.metric-grid span {
  display: block;
  color: var(--plum);
  font-size: 1.4rem;
  font-weight: 900;
}

.mini-metrics small,
.metric-grid small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 2.2rem;
}

.release-sidebar,
.release-detail {
  border-radius: 26px;
  padding: 1rem;
}

.section-heading h2,
.card-head h3 {
  margin-bottom: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 1rem 0;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(37, 31, 40, 0.08);
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-btn.active {
  background: var(--panel-solid);
  color: var(--evergreen);
  box-shadow: 0 8px 18px rgba(49, 33, 25, 0.08);
}

.release-list {
  display: grid;
  gap: 0.75rem;
}

.release-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 0.9rem;
  background: rgba(255, 250, 242, 0.62);
  color: inherit;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.release-item:hover,
.release-item.active {
  transform: translateY(-2px);
  border-color: rgba(23, 72, 60, 0.2);
  background: var(--panel-solid);
}

.release-item strong,
.release-item span {
  display: block;
}

.release-item strong {
  margin-bottom: 0.35rem;
}

.release-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.release-progress {
  height: 8px;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(37, 31, 40, 0.1);
  overflow: hidden;
}

.release-progress i {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--maple), var(--brass), var(--evergreen));
}

.release-detail {
  display: grid;
  gap: 1rem;
}

.detail-header,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.detail-header p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.6;
}

.status-pill {
  flex: 0 0 auto;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(23, 72, 60, 0.1);
  color: var(--evergreen);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
}

.content-grid,
.briefing-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1rem;
}

.readiness-card,
.blocker-card,
.briefing-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1rem;
  background: rgba(255, 250, 242, 0.72);
}

.checklist,
.blocker-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.check-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.7);
  border: 1px solid rgba(62, 45, 42, 0.09);
}

.check-item button {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(23, 72, 60, 0.24);
  background: #fffaf2;
  color: transparent;
  font-weight: 900;
}

.check-item.ready button {
  background: var(--evergreen);
  color: #fffaf2;
}

.check-item strong {
  display: block;
  font-size: 0.92rem;
}

.check-item small,
.blocker-item small {
  color: var(--muted);
}

.check-item .owner {
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 900;
}

.blocker-item {
  position: relative;
  padding: 0.85rem;
  border-left: 4px solid var(--maple);
  border-radius: 16px;
  background: rgba(180, 85, 52, 0.08);
}

.blocker-item strong,
.blocker-item small {
  display: block;
}

.resolve-btn {
  float: right;
  margin-left: 0.75rem;
  border: 1px solid rgba(23, 72, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--evergreen);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.28rem 0.55rem;
}

.empty-state {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed rgba(23, 72, 60, 0.2);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 250, 242, 0.48);
  line-height: 1.55;
}

.blocker-form {
  margin-top: 1rem;
}

.blocker-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blocker-form div {
  display: flex;
  gap: 0.45rem;
}

.blocker-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.72rem;
  background: #fffaf2;
  color: var(--ink);
}

.blocker-form button {
  border: 0;
  border-radius: 14px;
  padding: 0 0.9rem;
  background: var(--plum);
  color: #fffaf2;
  font-weight: 900;
}

.briefing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) 4rem;
}

.briefing-card {
  min-height: 260px;
}

.briefing-output {
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

.briefing-output strong {
  color: var(--ink);
}

.proof-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: #251f28;
  color: #fffaf2;
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .app-header,
  .hero,
  .dashboard-shell,
  .content-grid,
  .briefing-section {
    grid-template-columns: 1fr;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero-copy,
  .hero-panel {
    border-radius: 24px;
  }

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

@media (max-width: 560px) {
  .mini-metrics,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .detail-header,
  .card-head {
    flex-direction: column;
  }

  .check-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .check-item .owner {
    grid-column: 2;
  }
}
