:root {
  --navy: #07162d;
  --navy-soft: #0d2344;
  --blue: #1769ff;
  --blue-soft: #e7f0ff;
  --ink: #10203b;
  --muted: #5c6b84;
  --line: rgba(7, 22, 45, 0.1);
  --surface: #ffffff;
  --surface-soft: #f5f8fd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.section-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-band {
  background: var(--surface-soft);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(7, 22, 45, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 18px 42px rgba(7, 22, 45, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.nav-cta {
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100svh - 28px));
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 22, 45, 0.98) 0%, rgba(7, 22, 45, 0.88) 35%, rgba(7, 22, 45, 0.35) 70%, rgba(7, 22, 45, 0.25) 100%),
    url("assets/nuvistar-hero.jpg") center / cover;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(7, 22, 45, 0.06), rgba(7, 22, 45, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 520px);
  align-items: end;
  gap: 48px;
  min-height: min(860px, calc(100svh - 28px));
  padding-top: 140px;
  padding-bottom: 48px;
}

.hero-copy {
  align-self: center;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #7ba8ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dashboard {
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.dashboard-topbar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

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

.metric,
.route-card,
.task-list {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.metric {
  padding: 16px;
}

.metric small,
.route-head span,
.task-list span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.metric em {
  color: var(--blue);
  font-size: 0.78rem;
  font-style: normal;
}

.route-card {
  grid-column: span 2;
  padding: 16px;
}

.route-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.route-head strong {
  font-size: 0.82rem;
}

.route-map {
  position: relative;
  height: 92px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(23, 105, 255, 0.08), rgba(23, 105, 255, 0.18)),
    radial-gradient(circle at 20% 30%, rgba(23, 105, 255, 0.2), transparent 28%),
    #f3f7ff;
}

.route-map::before {
  position: absolute;
  top: 45px;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #7ba8ff);
  content: "";
}

.route-map i {
  position: absolute;
  top: 38px;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
}

.route-map i:nth-child(1) { left: 20px; }
.route-map i:nth-child(2) { left: calc(50% - 8px); }
.route-map i:nth-child(3) { right: 20px; }

.task-list {
  padding: 16px;
}

.task-list ul {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.problem,
.ai,
.reports {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 650px;
}

.section-heading.centered {
  margin: 0 auto 34px;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.problem-grid,
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.report-grid span,
.stack-panel span {
  min-height: 62px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
}

.problem-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.problem-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.problem-card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 48px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.stack-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.centered-solution {
  padding-top: 96px;
  padding-bottom: 96px;
}

.features {
  padding-top: 96px;
  padding-bottom: 96px;
}

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

.feature-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-card b {
  color: var(--blue);
  font-size: 0.8rem;
}

.feature-card h3,
.ai-card h3 {
  margin: 18px 0 12px;
  font-size: 1.18rem;
}

.feature-card p,
.ai-card p {
  color: var(--muted);
  line-height: 1.65;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.ai-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.08), transparent),
    #fff;
}

.ai-card span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing {
  padding-top: 96px;
  padding-bottom: 96px;
}

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

.pricing-card {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pricing-card.featured {
  border-color: rgba(23, 105, 255, 0.35);
  box-shadow: 0 18px 42px rgba(23, 105, 255, 0.12);
}

.pricing-card h3 {
  margin-bottom: 20px;
}

.pricing-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
}

.pricing-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card p {
  color: var(--muted);
  line-height: 1.65;
}

.cta {
  padding: 96px 0;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta .section-shell {
  max-width: 760px;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.footer-logo {
  display: block;
  width: min(165px, 42vw);
  height: auto;
}

.cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.cta .button {
  margin-top: 12px;
}

.contact-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 48px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(7, 22, 45, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(7, 22, 45, 0.14);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
  }

  .nav-cta {
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    align-items: end;
    gap: 28px;
    padding-top: 120px;
  }

  .dashboard {
    max-width: 620px;
  }

  .problem-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .section-shell,
  .site-header {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    margin-top: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .dashboard-grid,
  .problem-grid,
  .stack-panel,
  .feature-grid,
  .ai-grid,
  .report-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    grid-column: auto;
  }

  .problem,
  .ai,
  .reports,
  .features,
  .split-layout,
  .centered-solution,
  .pricing {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}
