/* NexusOps AI marketing site — standalone stylesheet.
   Design system: "situation report" — the visual language borrows directly from
   the product's own ops-center UI (status bars, severity stripes, mono data
   readouts) rather than generic SaaS card-and-shadow templates. */

:root {
  /* Ground */
  --color-ink: #0a0f1c;        /* near-black navy — hero/dark grounds */
  --color-ink-raised: #121a2e; /* one step up from ink, for panels on dark */
  --color-paper: #f2f4f8;      /* cool paper white, blue hue-bias */
  --color-card: #ffffff;

  /* Brand */
  --color-primary: #0052cc;
  --color-primary-dark: #003d99;
  --color-primary-tint: #e8f0ff;

  /* Signal (semantic, used sparingly — never as the general accent) */
  --color-amber: #e8a33d;
  --color-amber-tint: #fdf3e2;
  --color-red: #c23b3b;

  /* Text / neutrals — all blue-hue-biased, never pure grey */
  --color-fg: #0a1628;
  --color-muted: #48597a;
  --color-border: #dbe3f0;
  --slate-900: #0a1628;
  --slate-800: #16233b;
  --slate-700: #2c3e5c;
  --slate-400: #8298b8;
  --slate-300: #b9c9e0;

  --font-display: "Archivo", -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1152px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

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

/* Topographic texture — the ops-center background motif. Applied only to
   dark grounds (hero, page-hero, footer, cta-band); never decorative on
   light sections. */

.topo {
  background-image:
    linear-gradient(var(--color-ink), var(--color-ink)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M-20 40 Q40 5 100 40 T220 40 T340 40' stroke-opacity='0.05'/%3E%3Cpath d='M-20 96 Q40 61 100 96 T220 96 T340 96' stroke-opacity='0.04'/%3E%3Cpath d='M-20 152 Q40 117 100 152 T220 152 T340 152' stroke-opacity='0.035'/%3E%3Cpath d='M-20 208 Q40 173 100 208 T220 208 T340 208' stroke-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
}

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 100px;
  width: auto;
}

.primary-nav {
  display: flex;
  gap: 32px;
}

.primary-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  letter-spacing: 0.01em;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-paper);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
}

.mobile-nav a {
  padding: 10px 4px;
  font-weight: 600;
}

.mobile-nav .btn {
  margin-top: 8px;
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-fg);
}

.btn-outline:hover {
  background: var(--color-card);
  border-color: var(--slate-400);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
}

.btn-ghost:hover {
  color: var(--color-primary);
}

.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1rem;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Sections */

section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

/* Situation-report status bar — echoes the product's own dashboard header
   (date / location / status chip). Structural, not decorative: it's the
   same information architecture the real app uses. */

.sitrep-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-400);
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sitrep-bar .label {
  color: var(--slate-300);
  letter-spacing: 0.08em;
}

.sitrep-bar .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a8e6b8;
  margin-left: auto;
}

.sitrep-bar .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.hero {
  color: #fff;
  padding: 56px 0 80px;
}

.hero .wrap {
  text-align: left;
}

.hero-headline {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin: 0 0 20px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--color-amber);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .subhead {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--slate-300);
  margin: 24px 0 0;
  max-width: 640px;
}

.hero .lede {
  font-size: 1.02rem;
  color: var(--slate-400);
  max-width: 620px;
  margin: 16px 0 0;
}

/* Home hero: looping control-room video behind the headline */

.hero-video {
  position: relative;
  overflow: hidden;
  background-image: none;
  background-color: var(--color-ink);
}

.hero-video .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 15, 28, 0.82) 0%, rgba(10, 15, 28, 0.5) 55%, rgba(10, 15, 28, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.1) 0%, rgba(10, 15, 28, 0.5) 100%);
}

.hero-video > .wrap {
  position: relative;
  z-index: 2;
}

/* Centered page banners with a video: even overlay, since the text sits in the middle */

.page-hero.hero-video .hero-scrim {
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.55) 0%, rgba(10, 15, 28, 0.7) 100%);
}

/* lede text stays readable over the video */
.hero-video .lede {
  color: var(--slate-300);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video .hero-bg {
    display: none;
  }
  .hero-video {
    background: linear-gradient(rgba(10, 15, 28, 0.8), rgba(10, 15, 28, 0.8)), url("assets/video/em-room-poster.jpg") center / cover no-repeat;
  }
}

.hero-ctas {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta-band .hero-ctas,
.page-hero .hero-ctas,
.section-head + .hero-ctas {
  justify-content: center;
}

.hero-shot {
  max-width: 980px;
  margin: 64px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.page-hero {
  color: #fff;
  text-align: center;
}

.page-hero .wrap {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  font-weight: 700;
  margin-top: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--slate-300);
  margin-top: 20px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin-top: 16px;
}

.bg-alt {
  background: #e9edf6;
}

/* Cards / grids — sharp panels with a left severity-stripe, matching the
   product's own status-chip pattern rather than a uniform rounded+shadow
   template. */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card.stripe-amber {
  border-left-color: var(--color-amber);
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--color-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card.stripe-amber .icon-badge {
  background: var(--color-amber-tint);
}

.icon-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.card.stripe-amber .icon-badge svg {
  color: var(--color-amber);
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.card p {
  font-size: 0.94rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Preparedness cycle */

.stage-card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.stage-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 8px;
}

.stage-card > p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.stage-items {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.stage-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.stage-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.stage-item span {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* CTA band */

.cta-band {
  text-align: center;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

.cta-band p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: var(--slate-300);
}

.cta-band .hero-ctas {
  margin-top: 32px;
}

.btn-on-primary {
  background: #fff;
  color: var(--color-primary);
}

.btn-on-primary:hover {
  background: var(--color-primary-tint);
}

.btn-outline-on-primary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-on-primary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Timeline (How It Works) — a mission clock, since the page is literally
   structured by time of day. */

.day-arc {
  max-width: 880px;
  margin: 0 auto 48px;
}

.day-arc svg {
  width: 100%;
  height: auto;
  display: block;
}

.timeline {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 62px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--color-border);
}

.timeline-step {
  display: flex;
  gap: 32px;
  padding: 40px 0;
  position: relative;
}

.timeline-time {
  flex-shrink: 0;
  width: 140px;
  position: relative;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.time-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-tint);
  flex-shrink: 0;
}

.timeline-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.timeline-body > p {
  margin-top: 12px;
  color: var(--color-muted);
}

.timeline-body ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-body li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--slate-700);
}

.timeline-body li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.lifelines-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.lifeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  text-align: center;
}

.lifeline-item svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.lifeline-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

.timeline-shot {
  margin-top: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 36px -16px rgba(10, 22, 40, 0.2);
}

/* Feature rows */

.feature-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-row .feature-copy {
  flex: 1 1 0;
  min-width: 280px;
}

.feature-row .feature-shot {
  flex: 1 1 0;
  min-width: 280px;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 36px -16px rgba(10, 22, 40, 0.2);
}

.feature-row.no-shot .feature-copy {
  flex: none;
  max-width: 620px;
  margin: 0 auto;
}

.feature-copy h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 16px;
}

.feature-copy p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 1rem;
}

/* About */

.prose {
  max-width: 680px;
  margin: 0 auto;
}

.prose p {
  font-size: 1.1rem;
  color: var(--slate-700);
  margin-top: 20px;
}

.prose p:first-child {
  margin-top: 0;
}

.deputy-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 20px;
}

.deputy-block p {
  margin-top: 0;
}

.deputy-badge {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .deputy-block {
    flex-direction: column;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Contact */

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.contact-card .role {
  color: var(--color-muted);
  margin-top: 4px;
  font-size: 0.95rem;
}

.contact-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */

.site-footer {
  color: var(--slate-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 72px 24px 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-grid p {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--slate-400);
}

.footer-grid h3 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--slate-400);
}

/* Responsive */

@media (max-width: 900px) {
  .primary-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-shot {
    margin-top: 40px;
  }

  .hero .wrap {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-headline {
    margin: 0 auto;
  }

  section {
    padding: 60px 0;
  }

  .timeline::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    flex-direction: column;
    gap: 12px;
    padding: 28px 0;
  }

  .timeline-time {
    width: auto;
  }

  .sitrep-bar {
    font-size: 0.7rem;
  }

  .sitrep-bar .status {
    margin-left: 0;
  }
}
