/* ===== CSS variables (colors & fonts) ===== */
:root {
  --accent: #C8E829;
  --navy: #0D1F3C;
  --surface: #132644;
  --surface2: #0A1730;
  --ink: #F4F7FB;
  --muted: #90A4C4;
  --line: rgba(200, 232, 41, 0.16);
  --fd: 'Space Grotesk', sans-serif;
  --fb: 'Manrope', system-ui, sans-serif;
  --fm: 'JetBrains Mono', monospace;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--fb);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

::selection { background: var(--accent); color: var(--navy); }
input::placeholder, textarea::placeholder { color: #5C7299; }
a { color: inherit; }

.accent { color: var(--accent); }

/* ===== Grid backdrop ===== */
.grid-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(200, 232, 41, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 232, 41, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ===== Buttons ===== */
.btn {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-accent { color: var(--navy); background: var(--accent); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-outline { color: var(--ink); background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 14.5px; padding: 11px 22px; }
.btn-block { width: 100%; padding: 15px; margin-top: 4px; border-radius: 10px; }

/* ===== Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13, 31, 60, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { height: 46px; width: auto; }
.nav-logo-text { font-family: var(--fd); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { margin-left: 6px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: top .2s ease, transform .25s ease, opacity .2s ease;
}
.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }
.nav-toggle.open .nav-toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 24px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-inner a {
  font-family: var(--fd);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 15px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu-inner .mobile-cta {
  margin-top: 16px;
  text-align: center;
  border-bottom: none;
  padding: 14px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== Section shared primitives ===== */
.kicker { font-family: var(--fm); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-family: var(--fd); font-weight: 700; font-size: clamp(32px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.02em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 48px; }
.section-lede { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 360px; }
.card { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; }

/* ===== Footer ===== */
.site-footer { position: relative; z-index: 1; background: var(--navy); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 40px; width: auto; }
.footer-word { font-family: var(--fd); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.footer-word .tm { font-size: 10px; vertical-align: super; color: var(--muted); }
.footer-tag { font-family: var(--fm); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
.footer-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted);
}
