@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #061021;
  --bg-deep: #040b18;
  --bg-panel: #0c1c33;
  --cyan: #2ee6d6;
  --cyan-bright: #4ff0e2;
  --ink: #ffffff;
  --body: #a8bacd;
  --dim: #7d90a6;
  --line: rgba(140, 180, 215, 0.16);
  --purple: #a875ff;
  --gold: #ffc44d;
  --blue: #62a8ff;
  --green: #4fe08a;
  --indigo: #8b9bff;
  --rose: #ff8da1;
  --orange: #ff9d5c;
  /* Light surfaces are tinted, never pure white, so the page stays
     comfortable to read in a dark room. */
  --surface: #eff3f9;
  --surface-alt: #e1e8f3;
  --card: #f8fafd;
  --dot: rgba(11, 26, 45, 0.06);
  --ink-900: #0b1a2d;
  --ink-500: #56677c;
  --ink-400: #7b8b9e;
  --border: #d7e0ec;
  --border-soft: #e3eaf3;
  --teal-deep: #0b8f85;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body.landing-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.landing-shell {
  width: min(1240px, calc(100% - 44px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 14px;
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Nav (sticky, dark) ---------- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 11, 24, 0.95);
  border-bottom: 1px solid var(--line);
}

/* backdrop-filter makes an element the containing block for fixed-position
   descendants, which would trap the mobile drawer inside the 72px nav.
   Only apply the blur at the widths where the drawer isn't used. */
@media (min-width: 992px) {
  .landing-nav {
    background: rgba(4, 11, 24, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.landing-nav .navbar { min-height: var(--nav-h); padding-inline: 0; }

.landing-nav .brand-lockup img {
  width: 196px;
  height: auto;
  filter: brightness(0) invert(1);
}

.landing-nav .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem;
  font-weight: 600;
}

.landing-nav .nav-link:hover { color: #fff !important; }
.landing-nav .navbar-toggler { color: #fff; font-size: 1.6rem; padding: 0 0 0 14px; }

/* Log in sits beside the drawer toggle on phones */
.nav-mobile-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-login-inline {
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-login-inline:hover { color: #fff; }

.landing-login {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.landing-cta {
  border: 0;
  background: var(--cyan);
  color: #04202b;
  box-shadow: 0 0 0 rgba(46, 230, 214, 0);
}

.landing-cta:hover {
  background: var(--cyan-bright);
  color: #04202b;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(46, 230, 214, 0.28);
}

.landing-cta-lg { min-height: 58px; padding: 0 30px; font-size: 1rem; }

/* ---------- Hero (full-bleed background + card ring) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: 28px 24px 40px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  /* Plain url() first: a browser that cannot parse image-set() would discard
     the whole declaration and leave the hero with no photo at all. */
  background-image: url("../img/brance-hero-team.jpg");
  background-image:
    image-set(
      url("../img/brance-hero-team.webp") type("image/webp"),
      url("../img/brance-hero-team.jpg") type("image/jpeg")
    ),
    /* 0.6 KB blurred placeholder, inlined so the hero has colour on first
       paint rather than a black gap while the real image downloads. */
    url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABQODxIPDRQSEBIXFRQYHjIhHhwcHj0sLiQySUBMS0dARkVQWnNiUFVtVkVGZIhlbXd7gYKBTmCNl4x9lnN+gXz/2wBDARUXFx4aHjshITt8U0ZTfHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHz/wgARCAANACADASIAAhEBAxEB/8QAFwABAQEBAAAAAAAAAAAAAAAABAIBBf/EABYBAQEBAAAAAAAAAAAAAAAAAAIAAf/aAAwDAQACEAMQAAABDsQi9HPZt//EABsQAAMAAgMAAAAAAAAAAAAAAAABAhASERMh/9oACAEBAAEFAtULwU7nSPEN81dI/8QAGBEAAgMAAAAAAAAAAAAAAAAAAAERElH/2gAIAQMBAT8BjSiP/8QAFxEAAwEAAAAAAAAAAAAAAAAAAAECEf/aAAgBAgEBPwHR2z//xAAWEAADAAAAAAAAAAAAAAAAAAAQESD/2gAIAQEABj8CKn//xAAZEAEBAQEBAQAAAAAAAAAAAAABABEhQWH/2gAIAQEAAT8hTIiMt3G4Pq824whjZrt//9oADAMBAAIAAwAAABDqj//EABYRAQEBAAAAAAAAAAAAAAAAAAEAEf/aAAgBAwEBPxDJBG//xAAXEQEAAwAAAAAAAAAAAAAAAAABABEh/9oACAECAQE/EBtVkEbP/8QAGhABAAIDAQAAAAAAAAAAAAAAAQARITFBUf/aAAgBAQABPxAFy3EQEPsNDIQJWs2lu+S267i65e4AV09n/9k=");
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 24, 0.72) 0%, rgba(4, 11, 24, 0.2) 38%, rgba(4, 11, 24, 0.55) 100%),
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(4, 11, 24, 0.15), rgba(4, 11, 24, 0.45));
  pointer-events: none;
}

.hero-orbit {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.orbit-frame {
  --frame-h: min(calc(100dvh - var(--nav-h) - 76px), 640px);
  --ring-r: min(calc(var(--frame-h) * 0.41), 30vw);
  --spread: 1.5;
  position: relative;
  width: min(96vw, 1240px);
  height: var(--frame-h);
}

/* A true circle: the radius drives both axes */
.hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  height: calc(var(--ring-r) * 2);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(46, 230, 214, 0.2);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 100px rgba(46, 230, 214, 0.07), inset 0 0 90px rgba(46, 230, 214, 0.04);
  animation: ring-breathe 6s ease-in-out infinite;
}

.hero-launch {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(140, 180, 215, 0.32);
  border-radius: 999px;
  background: rgba(6, 16, 33, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: launch-pulse 3.2s ease-in-out infinite;
}

.hero-launch i {
  color: var(--cyan);
  font-size: 0.95rem;
  transition: transform 200ms ease;
}

.hero-launch:hover {
  color: #fff;
  border-color: rgba(46, 230, 214, 0.6);
  background: rgba(9, 22, 42, 0.96);
  transform: translate(-50%, -50%) scale(1.03);
}

.hero-launch:hover i { transform: translateX(4px); }

.chip-ring {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Phones only — on desktop the ring itself carries the message */
.hero-intro { display: none; }

.chip {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  width: max-content;
  max-width: 380px;
  padding: 14px 18px;
  border: 1px solid rgba(140, 180, 215, 0.28);
  border-radius: 15px;
  background: rgba(6, 16, 33, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: border-color 200ms ease;
  animation: chip-float 5s ease-in-out infinite;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
}

.chip:hover {
  border-color: rgba(46, 230, 214, 0.45);
  z-index: 4;
}

/* Five evenly spaced points on the ring; --spread widens them horizontally */
.chip:nth-child(1) {
  --x: 0px;
  --y: calc(var(--ring-r) * -1);
  --chip-glow: rgba(46, 230, 214, 0.22);
  animation-delay: 0s;
}
.chip:nth-child(2) {
  --x: calc(var(--ring-r) * 0.951 * var(--spread));
  --y: calc(var(--ring-r) * -0.309);
  --chip-glow: rgba(255, 196, 77, 0.22);
  animation-delay: -1s;
}
.chip:nth-child(3) {
  --x: calc(var(--ring-r) * 0.588 * var(--spread));
  --y: calc(var(--ring-r) * 0.809);
  --chip-glow: rgba(168, 117, 255, 0.22);
  animation-delay: -2s;
}
.chip:nth-child(4) {
  --x: calc(var(--ring-r) * -0.588 * var(--spread));
  --y: calc(var(--ring-r) * 0.809);
  --chip-glow: rgba(79, 224, 138, 0.22);
  animation-delay: -3s;
}
.chip:nth-child(5) {
  --x: calc(var(--ring-r) * -0.951 * var(--spread));
  --y: calc(var(--ring-r) * -0.309);
  --chip-glow: rgba(98, 168, 255, 0.22);
  animation-delay: -4s;
}

.chip i {
  grid-row: span 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #04202b;
}

.chip b {
  align-self: end;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.chip small {
  color: rgba(200, 214, 228, 0.88);
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: nowrap;
}

.chip-finance i { background: var(--cyan); }
.chip-finance b { color: var(--cyan); }
.chip-finance:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(46, 230, 214, 0.2); }

.chip-bizdev i { background: var(--gold); }
.chip-bizdev b { color: var(--gold); }
.chip-bizdev:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 196, 77, 0.2); }

.chip-marketing i { background: var(--purple); }
.chip-marketing b { color: var(--purple); }
.chip-marketing:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(168, 117, 255, 0.2); }

.chip-staff i { background: var(--green); }
.chip-staff b { color: var(--green); }
.chip-staff:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(79, 224, 138, 0.2); }

.chip-research i { background: var(--blue); }
.chip-research b { color: var(--blue); }
.chip-research:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(98, 168, 255, 0.2); }

@keyframes chip-float {
  0%, 100% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 var(--chip-glow, transparent);
  }
  50% {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 12px));
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.58), 0 0 32px var(--chip-glow, rgba(46, 230, 214, 0.15));
  }
}

@keyframes launch-pulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 rgba(46, 230, 214, 0); }
  50% { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 34px rgba(46, 230, 214, 0.28); }
}

@keyframes ring-breathe {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.012); }
}

/* ================= LIGHT SECTIONS ================= */
.intro,
.capabilities-section,
.cta-section {
  background: var(--surface);
  color: var(--ink-900);
}

/* Alternating bands carry a faint dot grid, masked so it fades in and out
   rather than stopping hard at the section edge. */
.how-section,
.team-section {
  position: relative;
  background: var(--surface-alt);
  color: var(--ink-900);
}

.how-section::before,
.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

.how-section > *,
.team-section > * {
  position: relative;
  z-index: 1;
}

/* ---------- Intro ---------- */
.intro {
  position: relative;
  padding: 76px 0;
  background:
    radial-gradient(760px 420px at 88% 4%, rgba(11, 143, 133, 0.1), transparent 66%),
    radial-gradient(620px 400px at 2% 100%, rgba(98, 168, 255, 0.09), transparent 70%),
    var(--surface);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro-lede {
  margin: 0 0 32px;
  max-width: 46ch;
  color: var(--ink-500);
  font-size: 1.02rem;
  line-height: 1.62;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.intro-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-900);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.intro-link i { color: var(--teal-deep); transition: transform 180ms ease; }
.intro-link:hover { color: var(--teal-deep); }
.intro-link:hover i { transform: translateY(3px); }

/* Dark command card — shows the product doing the thing the copy promises */
.command-card {
  overflow: hidden;
  border: 1px solid rgba(140, 180, 215, 0.16);
  border-radius: 20px;
  background: linear-gradient(160deg, #0c1c33, #071427);
  box-shadow: 0 30px 70px rgba(12, 26, 45, 0.24);
}

.command-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(140, 180, 215, 0.12);
}

.cdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(140, 180, 215, 0.28);
}

.command-title {
  margin-left: 10px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.command-body {
  display: grid;
  gap: 15px;
  padding: 22px 20px 26px;
}

.command-prompt {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid rgba(46, 230, 214, 0.24);
  border-radius: 13px;
  background: rgba(46, 230, 214, 0.07);
  color: #eaf4ff;
  font-size: 0.94rem;
  line-height: 1.5;
}

.command-prompt span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.command-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: var(--body);
  font-size: 0.88rem;
  line-height: 1.45;
}

.command-line i {
  margin-top: 2px;
  color: var(--green);
  font-size: 0.95rem;
}

.command-line.pending { color: var(--dim); }
.command-line.pending i { color: var(--gold); }

/* ---------- Shared section furniture ---------- */
.how-section,
.capabilities-section,
.team-section,
.control-section { padding: 72px 0; }

.how-section h2,
.capabilities-section h2,
.team-section h2,
.control-copy h2,
.cta-panel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.control-copy h2 em { font-style: normal; color: var(--cyan); }

.section-head { max-width: 660px; margin-bottom: 34px; }

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .lede {
  margin: 16px auto 0;
  max-width: 50ch;
}

.section-head .lede {
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Cards: icon sits inline with the title ---------- */
.flow-step,
.cap,
.role {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.flow-step > i,
.cap > i,
.role > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  font-size: 1.02rem;
}

.flow-step h3,
.cap h3,
.role h3 {
  margin: 0;
  color: var(--ink-900);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flow-step p,
.cap p,
.role p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.58;
}

/* ---------- How it works ---------- */
.flow-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
}

.flow-step {
  padding: 26px 24px 28px;
  box-shadow: 0 1px 3px rgba(12, 26, 45, 0.05);
}

.flow-step > i {
  background: rgba(11, 143, 133, 0.1);
  color: var(--teal-deep);
}

/* ---------- Capabilities ---------- */
.capabilities-section { border-top: 1px solid var(--border-soft); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cap {
  padding: 24px 22px 26px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.cap > i {
  background: rgba(11, 143, 133, 0.09);
  color: var(--teal-deep);
}

.cap:hover {
  border-color: #c3d2e4;
  box-shadow: 0 16px 40px rgba(12, 26, 45, 0.08);
}

/* ---------- Team ---------- */
.team-section { border-top: 1px solid var(--border-soft); }

/* Eight roles fill a 4x2 grid exactly */
.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.role {
  padding: 22px 20px 24px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.role:hover {
  transform: translateY(-4px);
  border-color: #c3d2e4;
  box-shadow: 0 18px 40px rgba(12, 26, 45, 0.1);
}

.role > i { color: #04202b; }

.role-staff > i, i.role-staff { background: var(--green); }
.role-sales > i, i.role-sales { background: var(--gold); }
.role-marketing > i, i.role-marketing { background: var(--purple); }
.role-support > i, i.role-support { background: var(--blue); }
.role-finance > i, i.role-finance { background: var(--cyan); }
.role-legal > i, i.role-legal { background: var(--indigo); }
.role-hr > i, i.role-hr { background: var(--rose); }
.role-ops > i, i.role-ops { background: var(--orange); }

/* ---------- Mission Control (stays dark) ---------- */
.control-section {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% 40%, rgba(168, 117, 255, 0.12), transparent 70%),
    var(--bg);
  color: var(--ink);
}

/* Faint technical grid — reads like an operations console */
.control-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 180, 215, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 215, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 76%);
  pointer-events: none;
}

.control-section > * {
  position: relative;
  z-index: 1;
}

.control-section .kicker { color: var(--cyan); }

.control-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.control-copy > p {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.6;
}

.control-points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.control-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #dbe6f2;
  font-weight: 600;
  font-size: 0.94rem;
}

.control-points i { color: var(--cyan); font-size: 1.05rem; }

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-panel);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.45);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.panel-live { color: var(--green); }

.panel-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.panel-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child { border-bottom: 0; }

.panel-row > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #04202b;
  font-size: 0.9rem;
}

.panel-row b { display: block; font-size: 0.88rem; font-weight: 700; }
.panel-row small { color: var(--dim); font-size: 0.74rem; }

.tag {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.tag-review { color: var(--gold); background: rgba(255, 196, 77, 0.13); }
.tag-done { color: var(--green); background: rgba(79, 224, 138, 0.12); }

/* ---------- Closing CTA ---------- */
.cta-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(720px 380px at 50% 0%, rgba(11, 143, 133, 0.08), transparent 70%),
    var(--surface);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 48px;
  border-radius: 24px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(700px 340px at 50% 120%, rgba(46, 230, 214, 0.22), transparent 70%),
    linear-gradient(150deg, #0a1c33, #071427);
  box-shadow: 0 28px 64px rgba(12, 26, 45, 0.2);
}

.cta-panel h2 { margin: 0 auto 14px; max-width: 20ch; }

.cta-panel > p {
  margin: 0 auto 32px;
  max-width: 44ch;
  color: var(--body);
  font-size: 1.02rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.cta-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(46, 230, 214, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.cta-login:hover {
  border-color: var(--cyan);
  background: rgba(46, 230, 214, 0.1);
  color: #fff;
}

/* ---------- Footer ---------- */
.landing-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
}

.landing-footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.landing-footer img {
  width: 178px;
  height: auto;
  filter: brightness(0) invert(1);
}

.landing-footer p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--body);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover { color: var(--cyan); }

/* ---------- Legal pages ---------- */
body.legal-page {
  background: var(--surface);
  color: var(--ink-900);
}

.legal {
  background: var(--surface);
  color: var(--ink-900);
  padding: 64px 0 88px;
  min-height: calc(100vh - var(--nav-h) - 140px);
}

.legal-doc { max-width: 760px; }

.legal-kicker {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-doc h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.legal-updated {
  margin: 0 0 36px;
  color: var(--ink-400);
  font-size: 0.88rem;
}

.legal-doc h2 {
  margin: 36px 0 12px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-500);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-doc p { margin: 0 0 14px; }

.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.legal-doc li { margin-bottom: 8px; }

.legal-doc a { color: var(--teal-deep); font-weight: 600; }

.legal-doc a:hover { color: var(--ink-900); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .chip { max-width: 300px; padding: 13px 15px; }
  .chip b { font-size: 0.84rem; }
  .chip small { font-size: 0.7rem; }
  .orbit-frame { --spread: 1.25; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  /* Below lg the nav becomes a left drawer. Driving Bootstrap's own custom
     properties keeps its >=992px reset (which flattens the drawer back into a
     plain bar) working untouched. */
  .landing-drawer {
    --bs-offcanvas-width: min(84vw, 330px);
    --bs-offcanvas-bg: #050e1f;
    --bs-offcanvas-padding-x: 24px;
    --bs-offcanvas-padding-y: 18px;
    --bs-offcanvas-border-width: 0;
    --bs-offcanvas-color: #fff;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  }

  .landing-drawer .offcanvas-header { border-bottom: 1px solid var(--line); }

  .landing-drawer .offcanvas-logo {
    width: 146px;
    height: auto;
    filter: brightness(0) invert(1);
  }

  .landing-drawer .btn-close {
    --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
  }

  .landing-drawer .offcanvas-body { padding-top: 8px; }

  .landing-nav .navbar-nav { align-items: stretch !important; gap: 0 !important; }

  .landing-drawer .nav-link {
    padding: 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(140, 180, 215, 0.12);
  }

  .landing-drawer .landing-cta {
    justify-content: center;
    width: 100%;
    margin-top: 22px;
  }

  .hero { padding: 24px 16px 36px; }

  .orbit-frame {
    --frame-h: min(calc(100dvh - var(--nav-h) - 72px), 620px);
    --ring-r: min(calc(var(--frame-h) * 0.4), 32vw);
    --spread: 1.1;
    width: 100%;
  }

  .chip {
    max-width: 260px;
    padding: 11px 13px;
    grid-template-columns: 30px 1fr;
    gap: 3px 10px;
  }

  .chip i { width: 30px; height: 30px; font-size: 0.82rem; }
  .chip b { font-size: 0.78rem; }
  .chip small { font-size: 0.66rem; }

  .hero-launch {
    min-height: 46px;
    padding: 0 20px;
    font-size: 0.76rem;
  }

  .intro { padding: 60px 0; }

  .intro-grid,
  .control-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow-grid,
  .cap-grid { grid-template-columns: 1fr; gap: 12px; }

  .role-grid { grid-template-columns: repeat(2, 1fr); }

  .intro,
  .how-section,
  .capabilities-section,
  .team-section,
  .control-section { padding: 60px 0; }

  .cta-section { padding: 60px 0; }
}

@media (max-width: 700px) {
  .landing-shell { width: min(100% - 30px, 1240px); }
  .landing-nav .brand-lockup img { width: 158px; }

  /* Phones: stack the cards instead of orbiting them */
  .hero {
    min-height: 0;
    padding: 30px 16px 38px;
  }

  /* Darker top so the headline reads over the photo */
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(4, 11, 24, 0.86) 0%, rgba(4, 11, 24, 0.5) 45%, rgba(4, 11, 24, 0.7) 100%),
      radial-gradient(ellipse 90% 60% at 50% 22%, rgba(4, 11, 24, 0.55), rgba(4, 11, 24, 0.2));
  }

  .orbit-frame {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 100%;
    height: auto;
  }

  .hero-ring { display: none; }

  .hero-intro {
    display: block;
    order: -1;
    margin-bottom: 6px;
    text-align: center;
  }

  .hero-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
  }

  .hero-title em {
    color: var(--cyan);
    font-style: normal;
  }

  .hero-sub {
    margin: 0;
    color: rgba(224, 236, 250, 0.82);
    font-size: 0.88rem;
    line-height: 1.4;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  }

  .chip-ring {
    position: static;
    display: grid;
    gap: 9px;
  }

  .chip {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: none;
    --x: 0px;
    --y: 0px;
    grid-template-columns: 32px 1fr;
    gap: 2px 11px;
    padding: 11px 13px;
    border-radius: 13px;
    transform: none;
    animation: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }

  .chip i { width: 32px; height: 32px; font-size: 0.85rem; }
  .chip b { font-size: 0.82rem; }
  .chip small { font-size: 0.72rem; white-space: normal; }

  .hero-launch {
    position: static;
    order: 2;
    width: 100%;
    margin-top: 8px;
    transform: none;
    animation: none;
  }

  .hero-launch:hover { transform: none; }

  .intro h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .intro-actions .landing-cta { width: 100%; }

  .command-body { padding: 18px 16px 22px; }

  .role { max-width: none; }
  .role-grid { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 28px; }

  .cta-section { padding: 56px 0 60px; }
  .cta-panel { padding: 46px 22px; }
  .cta-actions a { width: 100%; }

  .landing-footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip,
  .hero-launch,
  .hero-ring { animation: none; }
  .role,
  .cap,
  .flow-step,
  .landing-cta { transition: none; }
}
