:root {
  --bg: #f5efe4;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 252, 246, 0.88);
  --surface-strong: #fffaf1;
  --ink: #1f1e1a;
  --muted: #665d4f;
  --border: rgba(31, 30, 26, 0.12);
  --accent: #c75b39;
  --accent-strong: #a63d1f;
  --accent-cool: #1d6f70;
  --shadow: 0 22px 60px rgba(41, 30, 15, 0.12);
  --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: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 91, 57, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(29, 111, 112, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #efe5d6 100%);
}

code {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.92em;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.controls-panel,
.panel-card,
.project-card {
  background: var(--bg-soft);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 111, 112, 0.12);
  color: var(--accent-cool);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  max-width: 10ch;
}

.hero-text {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(199, 91, 57, 0.28);
}

.button-secondary {
  background: rgba(29, 111, 112, 0.12);
  color: var(--accent-cool);
}

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

.metric-card,
.tip-card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(31, 30, 26, 0.08);
  padding: 18px;
}

.metric-label,
.tip-title {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2rem;
  line-height: 1;
}

.tip-card {
  margin-top: 14px;
}

.tip-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.controls-panel {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  padding: 24px;
}

.controls-row {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.search-field {
  display: grid;
  gap: 8px;
  flex: 1;
  font-size: 0.94rem;
  font-weight: 600;
}

.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
}

.search-field input:focus {
  outline: 2px solid rgba(199, 91, 57, 0.18);
  border-color: var(--accent);
}

.status-badge {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(29, 111, 112, 0.12);
  color: var(--accent-cool);
  font-weight: 700;
  white-space: nowrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.featured-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.notes-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 22px;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 76% 48%;
  height: 120px;
  background: radial-gradient(circle, rgba(199, 91, 57, 0.22), transparent 70%);
  pointer-events: none;
}

.project-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.project-head h3 {
  margin: 0;
  font-size: 1.26rem;
}

.project-folder {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-ready {
  background: rgba(29, 111, 112, 0.12);
  color: var(--accent-cool);
}

.pill-server {
  background: rgba(199, 91, 57, 0.14);
  color: var(--accent-strong);
}

.pill-new {
  background: rgba(47, 82, 160, 0.12);
  color: #2f52a0;
}

.project-summary {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 30, 26, 0.05);
  color: var(--ink);
  font-size: 0.78rem;
}

.project-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  line-height: 1.55;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

.project-link-primary {
  background: var(--ink);
  color: #fff;
}

.project-link-secondary {
  background: rgba(31, 30, 26, 0.07);
  color: var(--ink);
}

.project-link-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero,
  .featured-panel,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .hero-copy,
  .hero-panel,
  .controls-panel,
  .panel-card,
  .project-card {
    padding: 20px;
  }

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

  .status-badge {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
