:root {
  --sage: #7C9082;
  --sage-light: #A3B8A0;
  --sage-lighter: #D4E2D4;
  --sage-dark: #5A6B5D;
  --sage-darker: #3D4A3F;
  --bg: #0A0F0D;
  --bg-card: #111916;
  --bg-card-hover: #162019;
  --text: #E8EDE9;
  --text-dim: #8A9B8D;
  --text-muted: #5A6B5D;
  --border: rgba(124, 144, 130, 0.15);
  --glow: rgba(124, 144, 130, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-dark) var(--bg);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; }

.container { max-width: 1100px; margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { color: var(--sage-light); border-color: var(--sage); }
.btn-primary {
  background: var(--sage-dark);
  color: var(--text);
  border: 1px solid var(--sage);
}
.btn-primary:hover { background: var(--sage); box-shadow: 0 0 20px var(--glow); color: var(--text); }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.section-title { font-size: 2rem; font-weight: 700; }
.section-header { margin-bottom: 3rem; }

/* Shared top shell used by /magic and /dev */
.shell-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 15, 13, 0.7);
  border-bottom: 1px solid var(--border);
}
.shell-nav .nav-logo {
  font-weight: 600;
  font-size: 1rem;
  color: var(--sage-light);
  letter-spacing: 0.5px;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
}
.shell-nav .nav-cross {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.shell-nav .nav-cross:hover { color: var(--sage-light); }

.shell-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.shell-footer a { color: var(--sage); text-decoration: none; margin: 0 0.5rem; }
.shell-footer a:hover { color: var(--sage-light); }

.reveal { opacity: 0; transform: translateY(30px); }
