:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #1c2128;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --green: #3fb950;
  --purple: #a371f7;
  --gold: #f0883e;
  --blue: #58a6ff;
  --border: #30363d;
  --radius: 8px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,17,23,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
nav .logo { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; }
nav .logo span { color: var(--green); }
nav .links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
nav .links a { color: var(--text-dim); }
nav .links a:hover { color: var(--green); }

/* LAYOUT */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
section:first-of-type { padding-top: 7rem; }

/* HERO */
.hero { text-align: center; padding: 8rem 0 4rem; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--green), var(--purple), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-dim);
  margin: 1rem 0 2rem;
  font-weight: 300;
}
.hero .socials { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.hero .socials a {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.hero .socials a:hover {
  color: var(--green);
  border-color: var(--green);
  background: rgba(63,185,80,0.08);
}

/* SECTION HEADERS */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--purple));
  border: none;
  margin-bottom: 2rem;
}

/* ABOUT */
.about-text { font-size: 1.05rem; line-height: 1.8; color: var(--text-dim); max-width: 720px; }
.about-text strong { color: var(--text); }

/* MANIFESTO */
.manifesto {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--green), var(--purple), var(--gold));
}
.manifesto h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--green);
}
.manifesto p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}
.manifesto p:last-child { margin-bottom: 0; }
.manifesto em { color: var(--text); font-style: normal; font-weight: 600; }

/* WORK GRID */
.work-category { margin-bottom: 3rem; }
.work-category h3 {
  font-size: 1.1rem;
  color: var(--purple);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.work-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(63,185,80,0.1);
}
.work-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.work-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  flex: 1;
}
.work-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.6rem;
  font-weight: 500;
}
.tag-live { background: rgba(63,185,80,0.15); color: var(--green); }
.tag-shipped { background: rgba(88,166,255,0.15); color: var(--blue); }
.tag-bounty { background: rgba(240,136,62,0.15); color: var(--gold); }
.tag-collab { background: rgba(163,113,247,0.15); color: var(--purple); }
.tag-writing { background: rgba(139,148,158,0.15); color: var(--text-dim); }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
}
.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.wallet-addr {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: inline-block;
  word-break: break-all;
}

/* PLATFORMS */
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.platform-badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  transition: all 0.2s;
}
.platform-badge:hover {
  color: var(--green);
  border-color: var(--green);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* MOBILE */
@media (max-width: 640px) {
  nav { padding: 0.75rem 1rem; }
  nav .links { gap: 1rem; font-size: 0.8rem; }
  .hero { padding: 6rem 0 3rem; }
  .manifesto { padding: 2rem 1.5rem; }
  section { padding: 3rem 0; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
