@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #fafaf8;
  --white: #ffffff;
  --text: #1a1a1a;
  --muted: #737373;
  --light: #f0eeeb;
  --border: #e8e5e0;
  --accent: #2563eb;
  --accent-light: #eff6ff;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* NAV */
nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.nav-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.nav-logo span { color: var(--accent); }

nav a {
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}

nav a:hover { color: var(--text); }
nav a.active { background: var(--text); color: white; }

/* LAYOUT */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-wrapper {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* PAGE HEADER */
.page-header { margin-bottom: 48px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  width: 16px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

h1, h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); }

.page-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 500px;
  line-height: 1.7;
}

/* SHARED TAGS */
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--light);
  color: var(--muted);
}

.stack-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-light);
  color: var(--accent);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-dark { background: var(--text); color: white; }
.btn-dark:hover { background: #333; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-light { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.btn-light:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }

/* FOOTER */
footer {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 700px) {
  nav { top: 10px; padding: 8px 12px; }
  nav a { padding: 5px 8px; font-size: 11px; }
  .nav-logo { font-size: 12px; margin-right: 4px; padding-right: 8px; }
  .container { padding: 0 20px; }
  .page-wrapper { padding-top: 80px; }
}
