@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=DM+Mono:wght@400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg:        #09090B;
  --surface:   #101013;
  --border:    rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.13);
  --text-1:    #F4F4F5;
  --text-2:    rgba(244,244,245,0.50);
  --text-3:    rgba(244,244,245,0.24);
  --green:     #4CCA3B;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg:        #F1EDE6;
  --surface:   #E9E4DC;
  --border:    rgba(9,9,11,0.10);
  --border-hi: rgba(9,9,11,0.18);
  --text-1:    #09090B;
  --text-2:    rgba(9,9,11,0.58);
  --text-3:    rgba(9,9,11,0.34);
  --green:     #4CCA3B;
  color-scheme: light;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .22s, color .22s;
}
a { text-decoration: none; color: inherit; }

/* ── Logo ── */
.logo { font-family: 'Source Serif 4', serif; font-size: 18px; font-weight: 600; letter-spacing: -0.5px; color: var(--text-1); }
.logo span { color: var(--green); }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hi);
  transition: background .22s, border-color .22s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 52px;
}
.nav-links { display: flex; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-3); padding: 5px 12px; border-radius: 6px; transition: color 0.12s; }
.nav-links a:hover { color: var(--text-1); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.12s; }
.nav-back:hover { color: var(--text-1); }
.nav-back svg { width: 14px; height: 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 14px;
  padding: 9px 18px; border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.15s; line-height: 1; white-space: nowrap; letter-spacing: -0.01em;
}
.btn-primary  { background: var(--green); color: #fff; }
.btn-primary:hover  { opacity: .86; }
.btn-outline  { background: transparent; color: var(--text-2); border: 1px solid var(--border-hi); }
.btn-outline:hover  { color: var(--text-1); border-color: var(--text-3); }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 9px; }

/* ── Section labels ── */
.sec-lbl, .section-lbl, .hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 10px; display: block;
}

/* ── Headings ── */
.sec-h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 3vw, 32px); font-weight: 700;
  letter-spacing: -0.04em; color: var(--text-1); line-height: 1.1; margin-bottom: 12px;
}
.sec-p { font-size: 15px; color: var(--text-2); line-height: 1.6; max-width: 440px; letter-spacing: -0.01em; }

/* ── Wrap ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

/* ── Theme toggle ── */
.theme-toggle {
  width: 44px; height: 24px; border-radius: 100px;
  background: transparent; border: 1px solid var(--border-hi);
  cursor: pointer; position: relative; flex-shrink: 0; overflow: hidden;
  transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--text-3); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-1);
  transition: transform .24s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
}
[data-theme="light"] .toggle-thumb { transform: translateX(20px); background: #18181B; }
.toggle-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: none; z-index: 1;
  display: flex; align-items: center; justify-content: center; width: 18px; height: 18px;
}
#t-moon { right: 3px; color: rgba(255,210,80,.7); }
#t-sun  { left: 3px; color: var(--text-3); }
.toggle-icon svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 52px 0 0; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-logo { font-family: 'Source Serif 4', serif; font-size: 16px; font-weight: 600; color: var(--text-1); letter-spacing: -0.4px; margin-bottom: 8px; }
.footer-logo span { color: var(--green); }
.footer-tagline { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.footer-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-lbl { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; display: block; }
.footer-col a { font-size: 13px; color: var(--text-2); transition: color 0.12s; letter-spacing: -0.01em; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-legal { font-size: 12px; color: var(--text-3); max-width: 520px; line-height: 1.6; }
.footer-copy { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
