/* HABx Space — styled to match the "Assured comms from the stratosphere" briefing:
   deep navy field, slate panels, blue section labels, orange accents, white bold sans headings. */

:root {
  --bg: #0b111f;          /* briefing slide background */
  --bg-deep: #070b15;
  --panel: #12203a;       /* stat / card panels */
  --panel-2: #1a2845;     /* callout boxes */
  --line: #2d3c53;        /* panel borders */
  --text: #ffffff;
  --body: #b4bfd2;        /* body copy */
  --muted: #8592a8;
  --blue: #4ab3ff;        /* section labels, primary accent */
  --teal: #2dbfb2;
  --orange: #fa9b41;      /* taglines, numbered markers, callout bars */
  --max: 1180px;
  --gutter: clamp(16px, 5vw, 64px);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { color: var(--text); font-weight: 700; }

/* ---------- Navigation ---------- */
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 17, 31, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
nav a { color: var(--body); transition: color .15s; }
nav a:hover { color: var(--text); }
.nav-cta { color: var(--blue) !important; border: 1px solid var(--blue); border-radius: 4px; padding: 8px 16px; }
.nav-cta:hover { background: var(--blue); color: var(--bg) !important; }

/* ---------- Type ---------- */
h1, h2, h3 { color: var(--text); font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.05; margin: 0 0 24px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; margin: 0 0 40px; max-width: 900px; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 10px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.subhead { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tagline { color: var(--orange); font-style: italic; font-weight: 700; font-size: 18px; margin: 22px 0 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 10vh var(--gutter) 30vh;
  background:
    radial-gradient(ellipse 60% 50% at 78% 40%, rgba(74, 179, 255, .10), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6vw;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-mark { width: 240px; }
.hero-mark img {
  width: 100%; height: auto; border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 0 70px rgba(74, 179, 255, .22);
}
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 620px; margin: 0; color: var(--body); }
.actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.button { padding: 13px 22px; border-radius: 4px; font-size: 15px; font-weight: 700; transition: background .15s, color .15s; }
.primary { background: var(--blue); color: var(--bg); }
.primary:hover { background: #7cc8ff; }
.secondary { border: 1px solid var(--line); color: var(--text); background: rgba(18, 32, 58, .6); }
.secondary:hover { border-color: var(--blue); }
/* Constellation of mesh nodes riding the Earth's limb */
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: auto; padding: 12vh var(--gutter); }
.callout {
  background: var(--panel-2);
  border-left: 6px solid var(--orange);
  padding: 26px 30px;
  max-width: 900px;
}
.callout p { margin: 0; font-size: 18px; }

/* Numbered orange markers (as on briefing slides) */
.num {
  flex: none;
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: var(--text);
  font-size: 14px; font-weight: 700;
  background: rgba(250, 155, 65, .08);
}

/* Capability cards with coloured top rule */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 28px;
  min-height: 260px;
  display: flex; flex-direction: column;
}
.card-teal { border-top-color: var(--teal); }
.card-orange { border-top-color: var(--orange); }
.card .num { margin-bottom: 56px; }
.card p { margin: 0; font-size: 15px; }

/* Operating environments */
.envs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.env {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  padding: 24px 24px 26px;
}
.env-teal { border-left-color: var(--teal); }
.env-slate { border-left-color: #9fafc8; }
.env-orange { border-left-color: var(--orange); }
.env-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.env p:last-child { margin: 0; font-size: 15px; }
.section-intro { max-width: 760px; margin: -16px 0 40px; font-size: 18px; }

/* Approach band */
.band { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-inner {
  max-width: var(--max); margin: auto; padding: 13vh var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center;
}
.band h2 { font-size: clamp(44px, 6vw, 80px); line-height: 1; margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 30px; }
.panel-bar { border-left: 6px solid var(--blue); }
.panel p { margin: 0 0 18px; }
.panel p:last-child { margin: 0; }

/* Company */
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; }
.company-copy p:first-child { margin-top: 0; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 700; font-size: 18px;
}
.principles li:first-child { border-top: 1px solid var(--line); }

/* Contact — modelled on the closing slide */
.contact-wrap { padding-bottom: 14vh; }
.contact {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  padding: clamp(28px, 5vw, 56px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.contact h2 { margin-bottom: 0; }
.contact-copy { max-width: 540px; margin: 18px 0 0; }
.contact-link { color: var(--blue); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px); white-space: nowrap; }
.contact-link:hover { color: #7cc8ff; }
.contact-link span { margin-left: 8px; }

/* Footer — like the briefing slide footer */
footer {
  max-width: var(--max); margin: auto;
  padding: 22px var(--gutter) 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 50%; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) and (min-width: 861px) {
  .envs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  nav { gap: 18px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { min-height: auto; padding: 8vh var(--gutter) 330px; }
  .hero-grid, .band-inner, .company-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; }
  .hero-mark { width: 110px; order: -1; }
  .envs { grid-template-columns: 1fr; }
  .callout, .panel { padding: 22px 20px; }
  .section { padding: 72px var(--gutter); }
  .band-inner { padding: 72px var(--gutter); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card .num { margin-bottom: 28px; }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact-link { white-space: normal; word-break: break-word; }
  footer { flex-direction: column; align-items: flex-start; }
}
