@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:          #0a0f14;
  --surface:     #111820;
  --surface2:    #192030;
  --surface3:    #1e2738;
  --border:      #252f3d;
  --border2:     #2e3a4d;
  --accent:      #34d058;
  --accent-dim:  #1a7a32;
  --accent-mid:  #25a048;
  --accent-glow: rgba(52,208,88,0.10);
  --accent-glow2:rgba(52,208,88,0.06);
  --text:        #e8f0f8;
  --text2:       #c5d4e3;
  --muted:       #7a8fa8;
  --dim:         #465768;
  --red:         #f85149;
  --yellow:      #d4a017;
  --blue:        #4dabf7;
  --purple:      #b794f4;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;

  --nav-h:       64px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --glow:        0 0 24px rgba(52,208,88,0.15);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  line-height: 1.15;
}
h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,15,20,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  transition: background 0.2s;
}
.nav-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--accent); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; align-items: center; flex-wrap: nowrap; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.835rem; font-weight: 500;
  padding: 6px 11px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text2); background: var(--surface2); }
.nav-links a.active { color: var(--text); background: var(--surface2); }
.nav-cta {
  background: var(--accent-dim) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 7px 15px !important;
  font-weight: 600 !important;
  margin-left: 6px;
  transition: background 0.15s, box-shadow 0.15s !important;
}
.nav-cta:hover {
  background: var(--accent-mid) !important;
  box-shadow: var(--glow) !important;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10,15,20,0.97);
  padding-top: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-links {
  display: flex; flex-direction: column;
  padding: 24px 24px;
  gap: 4px;
}
.nav-mobile-links a {
  color: var(--muted); text-decoration: none;
  font-size: 1.1rem; font-weight: 500;
  padding: 12px 16px; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid var(--border);
}
.nav-mobile-links a:last-child { border-bottom: none; }
.nav-mobile-links a:hover, .nav-mobile-links a.active { color: var(--text); background: var(--surface2); }
.nav-mobile-links .nav-cta-mobile {
  margin-top: 16px;
  background: var(--accent-dim) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  text-align: center;
  border: none !important;
  border-bottom: none !important;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-overlay { display: block; }
}

/* ── Page wrapper ── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* ── Sections ── */
.section {
  padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 72px);
  max-width: 1120px; margin: 0 auto;
}
.section-wide { max-width: 1320px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
}

/* ── Labels / Tags ── */
.label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent);
  font-family: 'DM Sans', sans-serif;
}

/* ── Pill ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(52,208,88,0.25);
  border-radius: 100px; padding: 4px 14px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;
  font-family: 'DM Sans', sans-serif;
}
.pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 24px; border-radius: var(--radius);
  border: none; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s; letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-dim); color: var(--text);
  box-shadow: 0 2px 8px rgba(52,208,88,0.15);
}
.btn-primary:hover {
  background: var(--accent-mid);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--muted);
  background: var(--surface2);
  color: var(--text);
}

/* ── Divider ── */
.divider {
  border: none; border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: clamp(80px,12vw,140px) clamp(16px,5vw,72px) clamp(48px,8vw,72px);
  max-width: 1120px; margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2.4rem,6vw,4.5rem);
  margin-bottom: 16px;
}
.page-hero .sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 580px; line-height: 1.85;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px clamp(16px, 5vw, 72px);
  text-align: center;
}
footer p { color: var(--muted); font-size: 0.85rem; line-height: 2.2; }
footer a { color: var(--text2); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--accent); }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.footer-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.footer-nav a:hover { background: var(--surface2); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,208,88,0); }
  50%       { box-shadow: 0 0 0 6px rgba(52,208,88,0.08); }
}

.fade-up   { animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up-1 { animation-delay: 0.08s; }
.fade-up-2 { animation-delay: 0.16s; }
.fade-up-3 { animation-delay: 0.24s; }
.fade-up-4 { animation-delay: 0.32s; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hide-mobile { display: none; }
}

/* ── Nav script (inline) ── */
