/* ── RESET ───────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── THEME ───────────────────────────────────── */
:root {
  --bg: #1f1f1f;
  --surface: rgba(20, 20, 20, 0.65);
  --surface-soft: rgba(20, 20, 20, 0.45);
  --border: rgba(16, 185, 129, 0.2);
  --border-strong: rgba(16, 185, 129, 0.45);

  --text: #f3f4f6;
  --text-dim: #9ca3af;
  --text-soft: #6b7280;
  --green: #10b981;
  --green-glow: rgba(16,185,129,0.7);
  --green-dim: rgba(16,185,129,0.12);
  --green-dark: #047857;

  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.12);

  --radius: 14px;
  --radius-sm: 10px;

  --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Light */
[data-theme="light"] {
  --bg: #f0fdf8;
  --surface: rgba(255,255,255,0.75);
  --surface-soft: rgba(255,255,255,0.55);
  --border: rgba(16,185,129,0.25);
  --border-strong: rgba(4,120,87,0.6);

  --green: #047857;
  --green-glow: rgba(4,120,87,0.5);
  --green-dim: rgba(4,120,87,0.08);
  --green-dark: #065f46;

  --text: #111827;
  --text-dim: #374151;
  --text-soft: #6b7280;

  --accent: #047857;
  --accent-soft: rgba(4,120,87,0.08);

  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ── BODY ───────────────────────────────────── */
body {
  font-family: 'Exo 2', system-ui, sans-serif;
  background:
    linear-gradient(135deg,
      rgba(16,185,129,0.03),
      rgba(59,130,246,0.03)
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid var(--border);

  padding: 16px 48px;

  display: flex;
  align-items: center;
  gap: 20px;
}

.header-title {
  flex: 1;
}

.header-title h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.header-title p {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── BUTTON ─────────────────────────────────── */
.theme-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── GRID ───────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 40px;
}

/* ── CARD (less boxy, softer) ───────────────── */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 20px;

  border-radius: var(--radius);
  border: 1px solid var(--border);

  background: var(--surface);

  text-decoration: none;
  color: inherit;

  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* subtle gradient edge instead of harsh border */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* hover feel = float + glow */
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card:hover::before {
  opacity: 0.08;
}

/* ── HEADER ROW ─────────────────────────────── */
.card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.card-icon {
  font-size: 18px;
  opacity: 0.9;
}

/* ── BADGES ─────────────────────────────────── */
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  border: 1px solid var(--border);
}

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

.badge-orange {
  color: #f97316;
  background: rgba(249,115,22,0.12);
}

.badge-blue {
  color: #60a5fa;
  background: rgba(96,165,250,0.12);
}

.badge-purple {
  color: #a78bfa;
  background: rgba(167,139,250,0.12);
}

/* ── TEXT ───────────────────────────────────── */
.card h3 {
  font-size: 15px;
  font-weight: 600;
}

.card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── META ───────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px; /* increase from current */
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--text-soft);
}

.card-meta-row strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* ── FOOTER ─────────────────────────────────── */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.15s ease;
}

.card:hover .card-link {
  transform: translateX(3px);
}

/* ── STATUS ─────────────────────────────────── */
.card-status {
  font-size: 10px;
  color: var(--text-soft);
}

.card-status.live {
  color: var(--accent);
}

/* ── PLACEHOLDER ────────────────────────────── */
.card-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: var(--text-soft);
  font-size: 12px;
}

.card-placeholder .plus {
  font-size: 24px;
  opacity: 0.4;
}
/* ── LAYOUT RESTORE (what you lost) ─────────── */

.hero {
  padding: 80px 48px 48px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
}

.hero-stat .n {
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
}

.hero-stat .l {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* section spacing */
.section {
  padding: 0 48px 80px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.section-header h2 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--green-dim);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}
.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px var(--green-glow);
}

.logo-text span {
  font-size: 10px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-link {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-link:hover {
  color: var(--green);
  text-shadow: 0 0 8px var(--green-glow);
}
.hero {
  padding: 80px 48px 64px;
  max-width: 900px;
}
footer {
  border-top: 1px solid var(--border);
  padding: 24px 48px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  font-size: 11px;
  color: var(--text-soft);
}

footer a {
  color: var(--green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat .n {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.hero-stat .l {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
