/* True Blue Software Division — one-page site
   Tokens: paper #FFFFFF / navy #10233F / blue #1CA8E8 / deep-blue #0E7FBE
   green (Guardian) #8DC63F / gold (Network) #F2B705
   Display: Playfair Display · Body: DM Sans · Mono/labels: JetBrains Mono */

:root {
  --paper: #FFFFFF;
  --paper-alt: #F4F8FC;
  --navy: #10233F;
  --slate: #55677F;
  --blue: #1CA8E8;
  --blue-deep: #0E7FBE;
  --blue-bright: #6ED2F5;
  --blue-mid: #48C4EE;
  --green: #8DC63F;
  --gold: #F2B705;
  --border: #E1E8F0;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--slate);
  transition: color 0.15s ease;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--navy); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--blue-deep);
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff !important;
}

.nav-cta:hover { background: var(--navy); }

/* ---------- Hero ---------- */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 32px;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.18;
  margin: 0 0 20px;
}

.hero-sub {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Pyramid section ---------- */

.pyramid-section {
  padding: 6px 24px 90px;
}

.section-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 10px;
}

.pyramid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.pyramid-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.lion-mark {
  pointer-events: none;
  opacity: 0.14;
  transition: opacity 0.25s ease;
}

.lion-interactive-zone {
  cursor: pointer;
}

.lion-interactive-zone:hover ~ .lion-mark {
  opacity: 0.6;
}

.node {
  stroke-width: 4;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.node:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.node-network {
  fill: var(--blue-deep);
  stroke: var(--gold);
}

.node-guardian {
  fill: var(--blue);
  fill-opacity: 0.92;
  stroke: var(--green);
}

.node-fm, .node-gpu {
  fill: var(--blue-deep);
  stroke: var(--paper);
  stroke-width: 2;
}

.node-sunrise, .node-watch {
  fill: var(--blue-mid);
  stroke: var(--paper);
  stroke-width: 2;
}

.node-snapshot {
  fill: var(--blue-bright);
  stroke: var(--paper);
  stroke-width: 2;
}

.node:hover, .node.is-active {
  filter: drop-shadow(0 14px 22px rgba(16, 35, 63, 0.28));
  transform: scale(1.035);
}

/* dim non-active nodes slightly once a selection has been made, to draw focus */
.pyramid-svg.has-active .node:not(.is-active) { opacity: 0.82; }

.node-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
}

.label-network {
  font-family: var(--font-mono);
  font-size: 24px;
  fill: var(--gold);
  letter-spacing: 0.02em;
}

.label-guardian {
  font-family: var(--font-display);
  font-size: 25px;
  fill: var(--green);
}

.label-small.dim { fill: #EAF7FD; opacity: 0.92; }

/* ---------- Info panel ---------- */

.info-panel {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-left: 5px solid var(--blue);
  border-radius: 14px;
  padding: 26px 24px;
  min-height: 220px;
  transition: border-color 0.2s ease;
}

.info-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}

.info-panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.info-panel p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.info-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Family strip ---------- */

.family {
  background: var(--paper-alt);
  padding: 60px 24px 80px;
}

.family-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.family-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--navy);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: block;
}

.family-card:hover, .family-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -18px rgba(16, 35, 63, 0.35);
  border-color: var(--blue);
}

.family-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 10px;
}

.family-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.family-card p {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Trust badges + map ---------- */

.trust {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badges img {
  display: block;
  filter: grayscale(0.1);
  transition: transform 0.18s ease;
}

.trust-badges a:hover img {
  transform: translateY(-2px);
}

.trust-map {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.trust-map iframe {
  display: block;
  width: 100%;
  height: 320px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #C7D3E2;
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
}

.footer-legal a { text-decoration: none; }

.footer-parent-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.footer-parent-link:hover { color: #fff; }

.footer-parent-link img { display: block; }
.footer-legal a:hover { color: #fff; }

.footer-fine {
  width: 100%;
  margin: 10px 0 0;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #8FA0BA;
}

/* ---------- Signup modal ---------- */

.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(16, 35, 63, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--paper);
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: sticky;
  top: 8px;
  margin: 8px 8px 0 auto;
  display: block;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 35, 63, 0.75);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover { background: rgba(16, 35, 63, 0.16); }

.modal-card iframe {
  display: block;
  width: 100%;
  height: 600px;
  max-height: 80vh;
  border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .pyramid-wrap { grid-template-columns: 1fr; }
  .family-cards { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .node-label { font-size: 15px; }
  .label-network { font-size: 19px; }
  .label-guardian { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node { transition: none; }
}
