:root {
  --bg: #f2efe8;
  --bg-accent: #e4dccf;
  --ink: #1d1d1b;
  --muted: #5c5a54;
  --line: rgba(29, 29, 27, 0.12);
  --card: rgba(255, 252, 246, 0.88);
  --shadow: 0 22px 60px rgba(40, 32, 18, 0.12);
  --live: #0d7a5f;
  --testing: #a55312;
  --planned: #5f5773;
  --hero: linear-gradient(135deg, #121212 0%, #26201b 38%, #4b3223 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 153, 83, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(39, 122, 106, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f7f4ed 100%);
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.portal-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-panel {
  padding: 32px;
  border-radius: 32px;
  color: #fbf6ef;
  background: var(--hero);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow,
.strip-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel h1,
.ops-strip h3,
.module-card h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-panel h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.hero-copy {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(251, 246, 239, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.module-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-link,
.secondary-link {
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
}

.primary-link {
  color: #171513;
  background: #f5d277;
  box-shadow: 0 14px 30px rgba(16, 13, 9, 0.22);
}

.secondary-link {
  color: #fbf6ef;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}

.hero-meta div,
.module-card,
.ops-strip article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(10px);
}

.hero-meta div {
  padding: 18px;
  color: #1f1a14;
  background: rgba(251, 246, 239, 0.9);
}

.hero-meta dt {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 10px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

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

.module-card {
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.status-pill,
.module-id,
.module-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill,
.module-note {
  padding: 7px 12px;
}

.module-id {
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(29, 29, 27, 0.06);
}

.live {
  color: #fff;
  background: var(--live);
}

.testing {
  color: #fff;
  background: var(--testing);
}

.planned {
  color: #fff;
  background: var(--planned);
}

.module-card h2 {
  font-size: 1.65rem;
}

.module-card p,
.ops-strip p,
.steps-list li,
.feature-list li {
  line-height: 1.7;
}

.feature-list,
.steps-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.module-link {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  color: #111;
  font-weight: 700;
  background: #efe5d2;
}

.module-note {
  margin-top: 22px;
  color: var(--muted);
  background: rgba(29, 29, 27, 0.06);
}

.live-card {
  border-top: 6px solid var(--live);
}

.test-card {
  border-top: 6px solid var(--testing);
}

.planned-card {
  border-top: 6px solid var(--planned);
}

.ops-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.ops-strip article {
  padding: 24px;
  box-shadow: var(--shadow);
}

.primary-link:hover,
.secondary-link:hover,
.module-link:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .hero-meta,
  .module-grid,
  .ops-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .portal-shell {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 36px;
  }

  .hero-panel,
  .module-card,
  .ops-strip article {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-panel h1 {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }
}
