/* ---------- Tokens ---------- */
:root {
  --bg: #060c1a;
  --bg-alt: #0a1224;
  --surface: #111a30;
  --surface-hover: #172241;
  --border: rgba(148, 170, 220, 0.12);
  --text: #e6ecf7;
  --text-muted: #8a97b4;
  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: rgba(22, 163, 74, 0.14);
  --accent-line: rgba(22, 163, 74, 0.35);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #34d06a; text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Subtle circuit-tree background (CSS only) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(22, 163, 74, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(59, 130, 246, 0.06), transparent 70%),
    linear-gradient(180deg, #070d1d 0%, #060c1a 100%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 12, 26, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-text {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-hover); }

@media (max-width: 700px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
}
.hero-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 22px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-pillars {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.pillar-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--accent-line); }

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}
.section-lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
}
.card p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Legion section ---------- */
.legion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.legion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.legion-stat {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legion-stat-hero {
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.legion-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Why / two-col ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col p { color: var(--text-muted); margin: 0 0 14px; }
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 32px;
}
.callout-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 !important;
  line-height: 1.4;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.team-card h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
}
.team-role {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 8px !important;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.team-email {
  margin: 0 0 18px !important;
  font-size: 15px;
}
.team-email a {
  color: var(--text);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}
.team-email a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.team-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 16px;
}
.team-links {
  font-size: 14px;
  margin: 16px 0 0 !important;
}
.team-sep { color: var(--border); margin: 0 8px; }
.team-linkedin-placeholder {
  color: var(--text-muted) !important;
  cursor: default;
  pointer-events: none;
  text-decoration: line-through;
  opacity: 0.5;
}

/* ---------- News ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.news-placeholder {
  opacity: 0.55;
  border-style: dashed;
}
.news-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.news-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
}
.news-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}
.news-more {
  margin-top: 32px;
  text-align: right;
}
.news-more a {
  font-weight: 600;
}

/* ---------- Contact ---------- */
.section-contact { padding-bottom: 100px; }
.contact-primary {
  margin: 24px 0 48px;
}
.contact-primary-btn {
  display: inline-block;
  padding: 18px 36px;
  background: var(--accent);
  color: #fff !important;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-primary-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  text-decoration: none;
}
.contact-team {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.contact-team-row:last-child { border-bottom: none; }
.contact-team-name {
  color: var(--text);
  font-weight: 500;
}
.contact-team-row a {
  color: var(--accent);
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-tag {
  color: var(--accent);
  font-style: italic;
  margin: 0;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
