:root {
  --bg: #080b10;
  --surface: #0f1419;
  --surface-hover: #141b22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(47, 111, 79, 0.5);
  --text: #eef2f6;
  --muted: #8b9aab;
  --accent: #2f6f4f;
  --accent-bright: #45a06e;
  --accent-glow: rgba(47, 111, 79, 0.2);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% -10%, black, transparent);
  pointer-events: none; z-index: 0;
}

.bg-glow {
  position: fixed; top: -25%; left: 50%;
  width: 1000px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-glow), transparent 68%);
  pointer-events: none; z-index: 0;
}

.container {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative; z-index: 1;
}

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 16, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0;
}

.brand {
  display: flex; align-items: center; gap: 0.85rem;
  text-decoration: none; color: inherit;
}

.avatar {
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-bright);
}

.brand h1 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; }
.site-nav a {
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-bright); }

.hero { padding: 4.5rem 0 2rem; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-bright);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title span { color: var(--muted); font-weight: 500; }

.hero-motto {
  margin-top: 1rem; font-size: 1rem;
  color: var(--accent-bright); font-weight: 500;
}

.hero-meta {
  margin-top: 0.6rem;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1rem; border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.78rem;
  text-decoration: none; transition: all 0.2s;
}

.btn-primary {
  background: var(--accent); color: var(--text);
  border: 1px solid var(--accent-bright);
}
.btn-primary:hover { background: var(--accent-bright); color: var(--bg); }

.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  margin-top: 2.25rem;
}

.stat {
  min-width: 100px; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat strong {
  display: block; font-size: 1.45rem;
  font-weight: 700; color: var(--accent-bright); line-height: 1;
}

.stat span {
  display: block; margin-top: 0.3rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

.section { padding: 2.75rem 0 0.5rem; }

.section-head {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 1.1rem;
}

.section-head h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.section-head p { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

.about-card {
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-bright);
  border-radius: var(--radius);
}

.about-lead { font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; }
.about-body { font-size: 0.9rem; color: var(--muted); }

.focus-list {
  list-style: none;
  display: grid; gap: 0.65rem;
}

.focus-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.focus-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.9rem;
}

.featured-grid .card {
  background: linear-gradient(155deg, var(--surface) 0%, #0c1218 100%);
}

.card {
  display: flex; flex-direction: column; min-height: 170px;
  padding: 1.15rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.card-domain {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-bright);
}

.card-arrow { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.card:hover .card-arrow { transform: translate(2px, -2px); color: var(--accent-bright); }

.card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; word-break: break-word; }
.card p { flex: 1; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.85rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: auto; }
.tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
}

.card-error { cursor: default; }
.card-error:hover { transform: none; box-shadow: none; }

.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding: 1.75rem 0 2.5rem; text-align: center;
}

.footer-inner p {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
}

.footer-note { margin-top: 0.35rem; }
.site-footer a { color: var(--accent-bright); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
