:root {
  --bg: #eff4f1;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --ink: #18211d;
  --muted: #5a6760;
  --accent: #176b52;
  --accent-strong: #114c3b;
  --accent-soft: #e3f3ed;
  --line: rgba(24, 33, 29, 0.1);
  --shadow: 0 16px 40px rgba(30, 47, 40, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fbf9 0%, #edf3ef 100%);
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.hero h1,
.panel h2 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-summary {
  display: grid;
  gap: 14px;
  align-content: start;
}

.summary-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fcfa;
}

.summary-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.summary-card strong {
  display: block;
  font-size: 1.08rem;
}

.summary-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions,
.tool-actions,
.verify-header {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.download-button,
.complete-button {
  border-radius: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease, color 160ms ease;
}

.primary-button,
.download-button {
  background: var(--accent);
  color: #f7fff9;
}

.primary-button:hover,
.download-button:hover {
  background: var(--accent-strong);
}

.ghost-button,
.complete-button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button:hover,
.complete-button:hover {
  border-color: rgba(31, 29, 26, 0.3);
  background: #f7faf8;
}

.layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-intro {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr;
}

.intro-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.progress-topline span {
  color: var(--muted);
  font-size: 0.96rem;
}

.progress-bar {
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(31, 29, 26, 0.08);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0e7a5f, #59b798);
  transition: width 220ms ease;
}

.download-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0.52;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 220ms ease, border-color 180ms ease, background-color 180ms ease;
}

.tool-card.is-visible,
.tool-card.is-unlocked {
  opacity: 1;
  transform: translateY(0);
}

.tool-card.is-unlocked {
  border-color: rgba(23, 107, 82, 0.24);
}

.tool-card.is-complete {
  background: #f3fbf7;
}

.tool-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.tool-step-group {
  display: grid;
  gap: 10px;
}

.tool-index,
.tool-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
}

.tool-index {
  width: fit-content;
  background: rgba(23, 107, 82, 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.tool-status {
  background: rgba(24, 33, 29, 0.06);
  color: var(--muted);
}

.tool-title {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
}

.tool-purpose {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.tool-links {
  display: grid;
  gap: 8px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.95rem;
  word-break: break-word;
}

.tool-link::before {
  content: "->";
  color: inherit;
  font-weight: 700;
}

.tool-card button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.verify-panel {
  margin-top: 4px;
}

.command-block {
  margin-top: 18px;
  border-radius: 20px;
  overflow: auto;
  border: 1px solid rgba(24, 33, 29, 0.08);
  background: #15201c;
}

.command-block pre {
  margin: 0;
  padding: 24px;
}

.command-block code {
  font-family: "IBM Plex Mono", monospace;
  color: #e9ffef;
  font-size: 0.98rem;
  line-height: 1.8;
}

.verify-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.verify-notes article {
  padding: 18px;
  border-radius: 18px;
  background: #fafdfb;
  border: 1px solid rgba(24, 33, 29, 0.08);
}

.verify-notes h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.verify-notes p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .hero,
  .panel-intro,
  .verify-notes {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .page-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
