:root {
  --bg: #07111f;
  --bg-accent: #13253a;
  --panel: rgba(8, 20, 35, 0.8);
  --panel-strong: rgba(14, 30, 49, 0.96);
  --text: #f4f7fb;
  --muted: #a8bacd;
  --line: rgba(168, 186, 205, 0.22);
  --highlight: #78f0c4;
  --highlight-strong: #f7b955;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120, 240, 196, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(247, 185, 85, 0.22), transparent 28%),
    linear-gradient(160deg, var(--bg) 0%, #091729 48%, #030812 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent);
}

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

.hero {
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(8, 20, 35, 0.72), rgba(11, 26, 44, 0.92));
  box-shadow: var(--shadow);
}

.eyebrow,
.section-label,
.module-path,
.status-badge,
code {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--highlight);
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
}

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

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.module-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.module-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(120, 240, 196, 0.45);
  background: var(--panel-strong);
}

.module-card:hover::after,
.module-card:focus-visible::after {
  opacity: 1;
}

.module-card-live {
  border-color: rgba(120, 240, 196, 0.35);
}

.module-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-live {
  background: rgba(120, 240, 196, 0.14);
  color: var(--highlight);
}

.module-path {
  font-size: 0.8rem;
  color: var(--muted);
}

.module-card h2 {
  margin: 44px 0 10px;
  font-size: 1.6rem;
}

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

.module-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--highlight-strong);
  font-weight: 700;
}

.conventions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.conventions > div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(6, 16, 28, 0.72);
}

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

code {
  color: var(--text);
  font-size: 0.92em;
}

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

  .hero,
  .module-card,
  .conventions > div {
    border-radius: 20px;
  }

  .hero {
    padding: 26px;
  }

  .module-card {
    min-height: 0;
  }
}
