:root {
  --cs-navy: #081b33;
  --cs-navy-2: #0d2747;
  --cs-graphite: #1f2937;
  --cs-platinum: #f8fafc;
  --cs-gold: #c89b3c;
  --cs-emerald: #0f766e;
  --cs-emerald-2: #14a093;
  --cs-ink: #111827;
  --cs-muted: #64748b;
  --cs-border: #dbe4ef;
  --cs-soft: #eef4fa;
  --cs-white: #ffffff;
  --cs-danger: #b42318;
  --cs-warning: #b7791f;
  --cs-success: #0f766e;
  --cs-radius: 8px;
  --cs-radius-sm: 6px;
  --cs-shadow: 0 18px 45px rgba(8, 27, 51, 0.13);
  --cs-shadow-sm: 0 10px 24px rgba(8, 27, 51, 0.1);
}

* {
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cs-platinum);
  color: var(--cs-graphite);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  color: var(--cs-ink);
  font-family: "IBM Plex Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: var(--cs-emerald);
  text-decoration: none;
}

a:hover {
  color: var(--cs-gold);
}

img,
svg,
canvas {
  max-width: 100%;
}

.skip-link {
  background: var(--cs-gold);
  color: var(--cs-navy);
  font-weight: 700;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: -4rem;
  z-index: 1100;
}

.skip-link:focus {
  top: 1rem;
}

.section-padding {
  padding: 96px 0;
}

.section-padding-sm {
  padding: 68px 0;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(8, 27, 51, 0.98), rgba(13, 39, 71, 0.98)),
    radial-gradient(circle at 78% 22%, rgba(15, 118, 110, 0.28), transparent 28%);
  color: rgba(248, 250, 252, 0.86);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--cs-white);
}

.section-dark .bg-white,
.section-dark .info-panel,
.section-dark .hero-dashboard,
.section-dark .timeline-content {
  color: var(--cs-graphite);
}

.section-dark .bg-white h1,
.section-dark .bg-white h2,
.section-dark .bg-white h3,
.section-dark .bg-white h4,
.section-dark .bg-white h5,
.section-dark .bg-white h6,
.section-dark .info-panel h1,
.section-dark .info-panel h2,
.section-dark .info-panel h3,
.section-dark .info-panel h4,
.section-dark .info-panel h5,
.section-dark .info-panel h6,
.section-dark .timeline-content h1,
.section-dark .timeline-content h2,
.section-dark .timeline-content h3,
.section-dark .timeline-content h4,
.section-dark .timeline-content h5,
.section-dark .timeline-content h6 {
  color: var(--cs-ink);
}

.section-muted {
  background: #edf3f8;
}

.section-rule {
  border-top: 1px solid rgba(8, 27, 51, 0.08);
}

.eyebrow {
  align-items: center;
  color: var(--cs-emerald);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--cs-gold);
  content: "";
  display: inline-block;
  height: 2px;
  width: 28px;
}

.text-gold {
  color: var(--cs-gold) !important;
}

.text-emerald {
  color: var(--cs-emerald) !important;
}

.text-muted-2 {
  color: var(--cs-muted) !important;
}

.lead-tight {
  color: var(--cs-muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.max-w-680 {
  max-width: 680px;
}

.max-w-820 {
  max-width: 820px;
}

.btn {
  border-radius: var(--cs-radius-sm);
  font-weight: 700;
  padding: 0.78rem 1.05rem;
}

.btn-lg {
  padding: 0.92rem 1.25rem;
}

.btn-gold {
  background: var(--cs-gold);
  border-color: var(--cs-gold);
  color: var(--cs-navy);
}

.btn-gold:hover,
.btn-gold:focus {
  background: #d6ad54;
  border-color: #d6ad54;
  color: var(--cs-navy);
}

.btn-emerald {
  background: var(--cs-emerald);
  border-color: var(--cs-emerald);
  color: var(--cs-white);
}

.btn-emerald:hover,
.btn-emerald:focus {
  background: #0a5d56;
  border-color: #0a5d56;
  color: var(--cs-white);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-outline-navy {
  border-color: rgba(8, 27, 51, 0.22);
  color: var(--cs-navy);
}

.btn-outline-navy:hover,
.btn-outline-navy:focus {
  background: var(--cs-navy);
  border-color: var(--cs-navy);
  color: var(--cs-white);
}

.cs-navbar {
  background: rgba(8, 27, 51, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(8, 27, 51, 0.18);
  backdrop-filter: blur(18px);
  z-index: 1030;
}

.cs-navbar.navbar-scrolled {
  background: rgba(8, 27, 51, 0.99);
  box-shadow: 0 12px 34px rgba(8, 27, 51, 0.24);
}

.cs-navbar .navbar-brand {
  color: var(--cs-white);
  font-size: 1.2rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--cs-gold), #e4c46f);
  border-radius: var(--cs-radius-sm);
  color: var(--cs-navy);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.cs-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}

.cs-navbar .nav-link:hover,
.cs-navbar .nav-link:focus,
.cs-navbar .nav-link.active,
.cs-navbar .show > .nav-link {
  color: var(--cs-white);
}

.cs-navbar .dropdown-menu {
  border: 1px solid rgba(8, 27, 51, 0.08);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow-sm);
}

.cs-navbar .dropdown-item {
  color: var(--cs-graphite);
  font-weight: 700;
}

.cs-navbar .dropdown-item:hover,
.cs-navbar .dropdown-item:focus,
.cs-navbar .dropdown-item.active {
  background: #eef7f6;
  color: var(--cs-emerald);
}

.mega-note {
  color: var(--cs-muted);
  font-size: 0.82rem;
  padding: 0.25rem 1rem 0.75rem;
}

.hero {
  background:
    linear-gradient(110deg, rgba(8, 27, 51, 0.99) 0%, rgba(8, 27, 51, 0.95) 43%, rgba(13, 39, 71, 0.84) 100%),
    linear-gradient(0deg, rgba(200, 155, 60, 0.1), transparent 44%);
  color: rgba(248, 250, 252, 0.88);
  min-height: 86vh;
  overflow: hidden;
  padding: 120px 0 70px;
  position: relative;
}

.hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.35;
  position: absolute;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--cs-white);
  font-size: clamp(2.55rem, 5.5vw, 5rem);
  max-width: 880px;
}

.hero-subtitle {
  color: rgba(248, 250, 252, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 690px;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.75rem 0 0;
}

.hero-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--cs-radius-sm);
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.45rem;
  padding: 0.48rem 0.62rem;
}

.hero-visual {
  margin-top: 2.75rem;
  position: relative;
}

.hero-dashboard {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--cs-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  color: var(--cs-graphite);
  overflow: hidden;
}

.dashboard-topbar {
  align-items: center;
  background: #0b2039;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots span {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  display: block;
  height: 9px;
  width: 9px;
}

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

.dash-card {
  background: var(--cs-white);
  border: 1px solid rgba(8, 27, 51, 0.08);
  border-radius: var(--cs-radius);
  box-shadow: 0 8px 22px rgba(8, 27, 51, 0.07);
  padding: 1rem;
}

.dash-card-dark {
  background: #0b2039;
  color: rgba(255, 255, 255, 0.84);
}

.dash-card h6 {
  color: inherit;
  font-size: 0.78rem;
  margin: 0;
  text-transform: uppercase;
}

.dash-kpi {
  color: var(--cs-navy);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.dash-card-dark .dash-kpi,
.dash-card-dark h6 {
  color: var(--cs-white);
}

.grid-span-3 {
  grid-column: span 3;
}

.grid-span-4 {
  grid-column: span 4;
}

.grid-span-5 {
  grid-column: span 5;
}

.grid-span-6 {
  grid-column: span 6;
}

.grid-span-7 {
  grid-column: span 7;
}

.grid-span-8 {
  grid-column: span 8;
}

.grid-span-12 {
  grid-column: span 12;
}

.chart-wrap {
  height: 230px;
  position: relative;
}

.chart-wrap-sm {
  height: 170px;
  position: relative;
}

.kpi-card,
.enterprise-card,
.security-card,
.industry-card,
.testimonial-card,
.feature-card,
.form-panel,
.info-panel {
  background: var(--cs-white);
  border: 1px solid rgba(8, 27, 51, 0.08);
  border-radius: var(--cs-radius);
  box-shadow: 0 12px 32px rgba(8, 27, 51, 0.07);
  height: 100%;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.kpi-card:hover,
.enterprise-card:hover,
.security-card:hover,
.industry-card:hover,
.testimonial-card:hover,
.feature-card:hover {
  border-color: rgba(200, 155, 60, 0.38);
  box-shadow: var(--cs-shadow);
  transform: translateY(-5px);
}

.enterprise-card,
.feature-card,
.security-card,
.industry-card,
.testimonial-card {
  padding: 1.35rem;
}

.icon-box {
  align-items: center;
  background: #eef7f6;
  border: 1px solid rgba(15, 118, 110, 0.13);
  border-radius: var(--cs-radius-sm);
  color: var(--cs-emerald);
  display: inline-flex;
  font-size: 1.35rem;
  height: 46px;
  justify-content: center;
  margin-bottom: 1rem;
  width: 46px;
}

.icon-box.gold {
  background: #fbf4e6;
  border-color: rgba(200, 155, 60, 0.23);
  color: #9a6f20;
}

.card-list {
  display: grid;
  gap: 0.62rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.card-list li {
  align-items: start;
  color: var(--cs-muted);
  display: flex;
  gap: 0.5rem;
}

.card-list i {
  color: var(--cs-emerald);
  margin-top: 0.12rem;
}

.metric-number {
  color: var(--cs-navy);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.section-dark .metric-number {
  color: var(--cs-white);
}

.table {
  vertical-align: middle;
}

.table thead th {
  color: var(--cs-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.status-pill {
  border-radius: var(--cs-radius-sm);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
}

.status-high {
  background: #fee4e2;
  color: var(--cs-danger);
}

.status-medium {
  background: #fef0c7;
  color: var(--cs-warning);
}

.status-low {
  background: #dcfce7;
  color: #166534;
}

.heatmap {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(7, 1fr);
}

.heatmap span {
  aspect-ratio: 1;
  background: #d9e8e7;
  border-radius: var(--cs-radius-sm);
  display: block;
}

.heatmap .l2 {
  background: #9ed5cf;
}

.heatmap .l3 {
  background: #52b7ad;
}

.heatmap .l4 {
  background: #0f766e;
}

.heatmap .l5 {
  background: #c89b3c;
}

.security-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.security-card .icon-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cs-gold);
}

.industry-card {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-height: 118px;
}

.testimonial-card blockquote {
  color: var(--cs-graphite);
  font-size: 1.02rem;
  margin: 0 0 1.25rem;
}

.avatar-badge {
  align-items: center;
  background: var(--cs-navy);
  border-radius: var(--cs-radius-sm);
  color: var(--cs-white);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.accordion {
  --bs-accordion-border-color: rgba(8, 27, 51, 0.09);
  --bs-accordion-border-radius: var(--cs-radius);
  --bs-accordion-inner-border-radius: var(--cs-radius-sm);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
  --bs-accordion-active-bg: #eef7f6;
  --bs-accordion-active-color: var(--cs-navy);
}

.accordion-button {
  font-weight: 800;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(8, 27, 51, 0.98), rgba(15, 118, 110, 0.94)),
    linear-gradient(90deg, rgba(200, 155, 60, 0.16), transparent);
  border-radius: var(--cs-radius);
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
}

.cta-band h2 {
  color: var(--cs-white);
}

.timeline {
  position: relative;
}

.timeline::before {
  background: rgba(15, 118, 110, 0.22);
  content: "";
  height: calc(100% - 20px);
  left: 20px;
  position: absolute;
  top: 10px;
  width: 2px;
}

.timeline-item {
  display: grid;
  gap: 1rem;
  grid-template-columns: 42px 1fr;
  margin-bottom: 1.25rem;
  position: relative;
}

.timeline-marker {
  align-items: center;
  background: var(--cs-emerald);
  border: 4px solid var(--cs-platinum);
  border-radius: 50%;
  color: var(--cs-white);
  display: inline-flex;
  font-size: 0.9rem;
  height: 42px;
  justify-content: center;
  width: 42px;
  z-index: 1;
}

.timeline-content {
  background: var(--cs-white);
  border: 1px solid rgba(8, 27, 51, 0.08);
  border-radius: var(--cs-radius);
  box-shadow: 0 10px 24px rgba(8, 27, 51, 0.06);
  padding: 1rem;
}

.workflow-line {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
}

.workflow-step {
  background: var(--cs-white);
  border: 1px solid rgba(8, 27, 51, 0.08);
  border-radius: var(--cs-radius);
  padding: 1rem;
  position: relative;
}

.workflow-step::after {
  background: var(--cs-gold);
  content: "";
  height: 2px;
  left: calc(100% + 0.15rem);
  position: absolute;
  top: 32px;
  width: 0.7rem;
}

.workflow-step:last-child::after {
  display: none;
}

.rule-builder {
  background: #0b2039;
  border-radius: var(--cs-radius);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.rule-builder .rule-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--cs-radius-sm);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr auto 1fr auto;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
}

.rule-token {
  background: rgba(15, 118, 110, 0.22);
  border: 1px solid rgba(20, 160, 147, 0.3);
  border-radius: var(--cs-radius-sm);
  color: var(--cs-white);
  font-weight: 800;
  padding: 0.4rem 0.55rem;
}

.matrix-table th,
.matrix-table td {
  min-width: 125px;
  text-align: center;
}

.map-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, #e6edf5, #f8fafc),
    linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.2));
  border: 1px solid rgba(8, 27, 51, 0.1);
  border-radius: var(--cs-radius);
  color: var(--cs-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
  min-height: 320px;
  text-align: center;
}

.map-placeholder i {
  color: var(--cs-emerald);
  font-size: 2.2rem;
}

.form-panel,
.info-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-control,
.form-select {
  border-color: rgba(8, 27, 51, 0.15);
  border-radius: var(--cs-radius-sm);
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--cs-emerald);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.form-feedback {
  display: none;
}

.form-feedback.show {
  display: block;
}

.footer {
  background: #07172b;
  color: rgba(255, 255, 255, 0.74);
  padding: 72px 0 28px;
}

.footer h5,
.footer h6 {
  color: var(--cs-white);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  margin-bottom: 0.55rem;
}

.footer a:hover,
.footer a:focus {
  color: var(--cs-gold);
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--cs-radius-sm);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.border-soft {
  border-color: rgba(8, 27, 51, 0.08) !important;
}

.bg-navy {
  background: var(--cs-navy) !important;
}

.bg-platinum {
  background: var(--cs-platinum) !important;
}

.bg-soft {
  background: var(--cs-soft) !important;
}

.badge-soft {
  background: #eef7f6;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: var(--cs-radius-sm);
  color: var(--cs-emerald);
  font-weight: 800;
}

.badge-gold {
  background: #fbf4e6;
  border: 1px solid rgba(200, 155, 60, 0.24);
  border-radius: var(--cs-radius-sm);
  color: #8a641e;
  font-weight: 800;
}

.progress {
  background: #e5edf5;
  border-radius: var(--cs-radius-sm);
  height: 0.55rem;
}

.progress-bar {
  background: linear-gradient(90deg, var(--cs-emerald), var(--cs-gold));
  width: 0;
  transition: width 900ms ease;
}

@media (max-width: 1199.98px) {
  .workflow-line {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-step::after {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 76px 0;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 54px;
  }

  .hero-dashboard {
    margin-top: 1rem;
  }

  .grid-span-3,
  .grid-span-4,
  .grid-span-5,
  .grid-span-6,
  .grid-span-7,
  .grid-span-8 {
    grid-column: span 6;
  }

  .cs-navbar .navbar-collapse {
    padding: 1rem 0 0.75rem;
  }

  .rule-builder .rule-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-padding-sm {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

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

  .grid-span-3,
  .grid-span-4,
  .grid-span-5,
  .grid-span-6,
  .grid-span-7,
  .grid-span-8,
  .grid-span-12 {
    grid-column: span 1;
  }

  .chart-wrap {
    height: 210px;
  }

  .workflow-line {
    grid-template-columns: 1fr;
  }

  .industry-card {
    min-height: auto;
  }

  .timeline::before {
    left: 17px;
  }

  .timeline-item {
    grid-template-columns: 36px 1fr;
  }

  .timeline-marker {
    height: 36px;
    width: 36px;
  }
}

@media (max-width: 575.98px) {
  .btn {
    width: 100%;
  }

  .hero-chip-row {
    flex-direction: column;
  }

  .hero-chip {
    width: 100%;
  }
}
