/* ==========================================================================
   Heimdall Systems — marketing site design tokens
   Same navy/Work-Sans family as the Invariant product site (brand cohesion),
   with a signature gold "watchtower" accent for the parent brand.
   ========================================================================== */

:root {
  --navy-950: #050a1c;
  --navy-900: #071031;
  --navy-800: #0b1740;
  --brand: #1e3a8a;
  --brand-light: #3b5fd9;
  --gold: #d9a441;
  --gold-bright: #f0c368;
  --slate: #a9b4d0;
  --slate-dark: #445077;
  --mist: #e6e9f3;
  --fog: #f2f4f9;
  --white: #fefefe;
  --ink: #0a0d1a;

  --success: #157539;
  --success-bg: #e1faea;
  --success-bright: #3adb76;
  --warning: #805700;
  --warning-bg: #fff3d9;
  --warning-bright: #ffae00;
  --danger: #a53b2a;
  --danger-bright: #ff6b52;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 500px;

  --font-head: "Poppins", "Work Sans", Helvetica, Arial, sans-serif;
  --font-body: "Work Sans", Helvetica, Arial, sans-serif;
  --font-mono: Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-alt { background: var(--fog); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--mist);
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.eyebrow.on-dark { color: var(--gold-bright); background: rgba(217, 164, 65, .14); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.subtitle { font-size: 1.1rem; color: var(--slate-dark); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--gold); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217, 164, 65, .35); }
.btn-outline { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-solid { background: var(--brand); color: var(--white); }
.btn-solid:hover { background: var(--brand-light); transform: translateY(-2px); }
.btn-ghost { color: var(--brand); font-weight: 600; text-decoration: underline; padding: 0; border-radius: 0; }
.btn-dark { border-color: var(--mist); color: var(--ink); }
.btn-dark:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 254, 254, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--mist);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--navy-900), var(--brand));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .mark svg { width: 17px; height: 17px; color: var(--gold-bright); }
.brand .dot { color: var(--gold); }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand .mark { background: linear-gradient(150deg, rgba(217,164,65,.25), rgba(217,164,65,.05)); border: 1px solid rgba(217,164,65,.3); }

.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }
.nav-icon { color: var(--ink); display: flex; }
.nav-icon svg { width: 21px; height: 21px; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 30% 0%, rgba(217, 164, 65, .16), transparent 60%),
              radial-gradient(45% 90% at 85% 10%, rgba(59, 95, 217, .28), transparent 65%);
  pointer-events: none;
}
.hero .circle { position: absolute; border-radius: 50%; background: rgba(213, 219, 235, .08); z-index: 0; }
.circle-1 { width: 620px; height: 620px; top: -260px; right: -200px; }
.circle-2 { width: 380px; height: 380px; bottom: -200px; left: -140px; background: rgba(217, 164, 65, .06); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-badge {
  font-family: var(--font-mono);
  font-size: .74rem;
  border: 1px solid rgba(169, 180, 208, .35);
  color: var(--slate);
  padding: .3rem .7rem;
  border-radius: var(--radius-pill);
}
.hero h1 { font-size: 2.9rem; letter-spacing: -.01em; }
.hero .lede { font-size: 1.2rem; color: var(--slate); font-weight: 500; }
.hero .body { color: rgba(254, 254, 254, .74); }
.hero-ctas { display: flex; gap: 1rem; margin: 1.75rem 0; flex-wrap: wrap; }
.hero-note { font-size: .85rem; color: var(--slate); }
.hero-note a { color: var(--white); }

/* lifecycle panel (hero visual) */

.lifecycle-panel {
  position: relative;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(169, 180, 208, .18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 30px 70px rgba(2, 6, 20, .5);
  backdrop-filter: blur(4px);
}
.lifecycle-panel .panel-label {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  display: block;
}
.lifecycle-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.lifecycle-steps::before {
  content: "";
  position: absolute;
  left: 17px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--gold), var(--brand-light), transparent);
  opacity: .5;
}
.lifecycle-step { display: flex; gap: 1rem; padding: 1rem 0; position: relative; }
.lifecycle-step .node {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid rgba(217, 164, 65, .4);
  color: var(--gold-bright);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  position: relative;
  z-index: 1;
}
.lifecycle-step.is-live .node { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.lifecycle-step h4 { margin: 0 0 .2rem; font-size: 1rem; color: var(--white); }
.lifecycle-step p { margin: 0; font-size: .85rem; color: var(--slate); }
.lifecycle-step .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--slate);
  border: 1px solid rgba(169, 180, 208, .3);
  padding: .1rem .5rem;
  border-radius: var(--radius-pill);
  margin-top: .4rem;
}

/* ---------- proof strip ---------- */

.proof-strip { background: var(--brand); color: var(--white); padding: 1.5rem 0; }
.proof-row { display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap; text-align: center; }
.proof-row span {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: rgba(254, 254, 254, .85);
  letter-spacing: .02em;
}

/* ---------- lifecycle / platform stages ---------- */

.stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stage-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--white);
  position: relative;
}
.stage-card .stage-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  background: #fbf1de;
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.stage-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.stage-card p { font-size: .92rem; color: var(--slate-dark); margin-bottom: 1rem; }
.stage-card .stage-status {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.stage-status.live { color: var(--success); background: var(--success-bg); }
.stage-status.roadmap { color: var(--warning); background: var(--warning-bg); }

/* ---------- product cards ---------- */

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: 0 24px 50px rgba(7, 16, 49, .1); transform: translateY(-3px); }
.product-card .product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.product-card .product-icon svg { width: 24px; height: 24px; color: var(--gold-bright); }
.product-card h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.product-card .tagline { font-family: var(--font-mono); font-size: .8rem; color: var(--brand); margin-bottom: 1rem; }
.product-card p.desc { color: var(--slate-dark); }
.feature-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.feature-list li {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .4rem 0;
  font-size: .92rem;
  color: var(--ink);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--gold);
}
.stat-row { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 1.25rem 0; margin: 1rem 0 1.5rem; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.stat-row .stat { display: flex; flex-direction: column; }
.stat-row .stat strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy-900); }
.stat-row .stat span { font-size: .78rem; color: var(--slate-dark); }
.product-card .card-foot { margin-top: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.product-card .license-tag {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--slate-dark);
}

/* ---------- approach ---------- */

.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.approach-card { border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: 2rem; background: var(--white); }
.approach-card .approach-kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  display: block;
  margin-bottom: .75rem;
}
.approach-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.approach-card p { font-size: .92rem; color: var(--slate-dark); margin: 0; }

/* ---------- why grid (numbered) ---------- */

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.why-card { padding: 0; }
.why-card .why-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--mist);
  -webkit-text-stroke: 1px var(--brand);
  color: transparent;
  display: block;
  margin-bottom: .75rem;
}
.why-card h4 { font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p { font-size: .9rem; color: var(--slate-dark); margin: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--navy-950);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(217, 164, 65, .14), transparent 65%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: 2.1rem; max-width: 620px; margin: 0 auto .75rem; }
.cta-banner .subtitle { max-width: 520px; margin: 0 auto 2rem; color: var(--slate); }
.cta-banner .hero-ctas { justify-content: center; }
.cta-banner .contact-note { margin-top: 1.75rem; font-size: .88rem; color: var(--slate); }
.cta-banner .contact-note a { color: var(--gold-bright); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-950); color: var(--slate); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(169, 180, 208, .16); }
.footer-brand p { font-size: .9rem; max-width: 30ch; margin-top: .85rem; }
.footer-col h4 { color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a { color: var(--slate); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.75rem; font-size: .82rem; flex-wrap: wrap; gap: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stage-row { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.15rem; }
  .section { padding: 3.75rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .proof-row { gap: 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.6rem; }
}
