:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe3ef;
  --primary: #1e3a8a;
  --accent: #2563eb;
  --teal: #0f766e;
  --amber: #d97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(15, 118, 110, 0.08) 0%, transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* SITE NAV */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 40px;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }

.nav-logo {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: transform 0.15s ease;
}

.nav-logo:hover { transform: scale(1.05); }

.nav-text { display: flex; flex-direction: column; gap: 1px; }
.nav-title { font-weight: 800; font-size: 0.88rem; color: var(--text); }
.nav-sub { font-size: 0.65rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-round {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  margin-right: 8px;
  background: #dbeafe;
  border-radius: 999px;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover { background: var(--surface); color: var(--text); }

.nav-right { margin-left: 24px; }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: nav-pulse 2s infinite;
}

@keyframes nav-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

/* SITE MAIN */
.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* INTRO */
.sel-intro { margin-bottom: 52px; padding-top: 52px; }

.sel-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.sel-intro h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  font-weight: 900;
  margin-bottom: 20px;
}

.sel-lead {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sel-legend { display: flex; flex-wrap: wrap; gap: 16px; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sel-alive .legend-dot { background: #22c55e; }
.sel-dead .legend-dot { background: #94a3b8; }
.sel-new .legend-dot { background: var(--accent); }

/* GRID */
.sel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

/* CARD */
.sel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.22s ease;
}

.sel-alive:not(.sel-dead):hover { transform: translateY(-4px); box-shadow: 0 16px 50px rgba(15, 23, 42, 0.1); }

.sel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sel-card-num {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sel-card-state {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  background: #dcfce7;
  color: #15803d;
}

.sel-card-state.sel-new { background: #dbeafe; color: #1d4ed8; }
.sel-card-state.sel-imp { background: #fef3c7; color: #92400e; }
.sel-dead .sel-card-state { background: var(--bg); color: var(--muted); }

.sel-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

.sel-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.sel-card-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-block {
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sel-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}

.sel-card-cta:hover { background: #1e40af; transform: translateY(-1px); }

.sel-card-archived { background: var(--muted); }
.sel-card-archived:hover { background: #475569; }

.sel-card-dead-label {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

/* RULES */
.sel-rules {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 60px;
}

.sel-rules h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.sel-rules ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; list-style: none; }
.sel-rules li { font-size: 0.88rem; color: var(--muted); line-height: 1.5; padding-left: 20px; position: relative; }
.sel-rules li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* FOOTER */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .sel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .site-main { padding: 0 20px 40px; }
  .site-nav { padding: 0 20px; }
  .sel-grid { grid-template-columns: 1fr; }
  .sel-rules ul { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
}