:root {
  --bg: #14171a;
  --surface: #1c2024;
  --surface-hover: #23282d;
  --border: #2b3136;
  --text: #eef1f3;
  --text-dim: #9aa4ad;
  --accent: #4f8cff;
  --accent-soft: rgba(79, 140, 255, 0.14);
  --green: #3ecf8e;
  --green-soft: rgba(62, 207, 142, 0.14);
  --amber: #d9a441;
  --amber-soft: rgba(217, 164, 65, 0.14);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.main-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.main-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* Sections */
.project-section {
  padding: 48px 0;
}

.project-section + .project-section {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.section-link:hover {
  color: var(--accent);
}

.section-desc {
  margin: 8px 0 28px;
  color: var(--text-dim);
  font-size: 14px;
  max-width: 640px;
}

/* Module grid */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

a.module-card:hover {
  background: var(--surface-hover);
  border-color: #3a4147;
  transform: translateY(-2px);
}

.module-card.planned {
  opacity: 0.6;
  cursor: default;
}

.module-icon {
  color: var(--accent);
  width: 32px;
  height: 32px;
}

.module-icon svg {
  width: 100%;
  height: 100%;
}

.module-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.module-info p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge.live {
  color: var(--green);
  background: var(--green-soft);
}

.badge.planned {
  color: var(--amber);
  background: var(--amber-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 56px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .main-header { padding: 40px 0 24px; }
  .project-section { padding: 36px 0; }
}
