/* =========================================================
   Fidelis Landing Pages
   Shared CSS for landing page index files
========================================================= */

:root {
  --lp-red: #c40000;
  --lp-red-dark: #9f0000;
  --lp-navy: #07152f;
  --lp-text: #172033;
  --lp-muted: #5f6b7a;
  --lp-light: #f6f7f9;
  --lp-border: #dfe3ea;
  --lp-white: #ffffff;
  --lp-shadow: 0 18px 45px rgba(7, 21, 47, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--lp-text);
}

.lp-page {
  overflow: hidden;
}

.lp-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* Hero */

.lp-hero {
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at top right, rgba(196, 0, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-bottom: 1px solid var(--lp-border);
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.lp-eyebrow,
.lp-section-label {
  margin: 0 0 14px;
  color: var(--lp-red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-hero h1 {
  margin: 0;
  color: var(--lp-navy);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lp-hero__text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--lp-muted);
  font-size: 1.15rem;
  line-height: 1.65;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Buttons */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-btn:hover {
  transform: translateY(-2px);
}

.lp-btn--primary {
  background: var(--lp-red);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(196, 0, 0, 0.22);
}

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

.lp-btn--secondary {
  background: #ffffff;
  color: var(--lp-navy);
  border: 1px solid var(--lp-border);
}

/* Hero mock card */

.lp-hero__card {
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--lp-shadow);
}

.lp-card-label {
  margin-bottom: 14px;
  color: var(--lp-navy);
  font-weight: 900;
}

.lp-mock {
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.lp-mock__row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.2fr;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--lp-border);
  font-size: 0.95rem;
}

.lp-mock__row:last-child {
  border-bottom: 0;
}

.lp-mock__row--header {
  background: var(--lp-navy);
  color: #ffffff;
  font-weight: 800;
}

.lp-status {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.lp-status--good {
  background: #e7f8ef;
  color: #10783c;
}

.lp-status--warn {
  background: #fff5db;
  color: #9a6500;
}

.lp-status--danger {
  background: #ffe7e7;
  color: #b00000;
}

/* Sections */

.lp-section {
  padding: 82px 0;
}

.lp-section--light {
  background: var(--lp-light);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

.lp-section--dark {
  background: var(--lp-navy);
  color: #ffffff;
}

.lp-section--dark .lp-section-label {
  color: #ffb3b3;
}

.lp-section h2,
.lp-cta h2 {
  margin: 0;
  color: var(--lp-navy);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.lp-section--dark h2 {
  color: #ffffff;
}

.lp-section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.lp-section-head p:not(.lp-section-label) {
  color: var(--lp-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lp-section--dark .lp-section-head p:not(.lp-section-label) {
  color: rgba(255, 255, 255, 0.78);
}

.lp-two-col {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
}

.lp-copy p {
  margin-top: 0;
  color: var(--lp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.lp-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--lp-text);
}

.lp-list li {
  margin-bottom: 12px;
  line-height: 1.55;
}

/* Cards */

.lp-grid {
  display: grid;
  gap: 20px;
}

.lp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.lp-feature-card,
.lp-kpi,
.lp-related-card {
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(7, 21, 47, 0.06);
}

.lp-feature-card h3 {
  margin: 0 0 10px;
  color: var(--lp-navy);
  font-size: 1.12rem;
}

.lp-feature-card p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.6;
}

/* Steps */

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

.lp-step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  background: #ffffff;
}

.lp-step span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--lp-red);
  font-weight: 900;
}

.lp-step h3 {
  margin: 0 0 10px;
  color: var(--lp-navy);
}

.lp-step p {
  margin: 0;
  color: var(--lp-muted);
  line-height: 1.6;
}

/* KPI */

.lp-kpi {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.lp-kpi strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.05rem;
}

.lp-kpi span {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

/* Related */

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

.lp-related-card {
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lp-related-card:hover {
  transform: translateY(-3px);
  border-color: var(--lp-red);
}

.lp-related-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--lp-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-related-card strong {
  color: var(--lp-navy);
}

/* CTA */

.lp-cta {
  padding: 76px 0;
  background:
    linear-gradient(135deg, rgba(196, 0, 0, 0.95), rgba(7, 21, 47, 0.98));
  color: #ffffff;
}

.lp-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.lp-cta h2 {
  color: #ffffff;
}

.lp-cta p {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.lp-cta .lp-btn--primary {
  background: #ffffff;
  color: var(--lp-red);
}

/* Reveal animation */

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

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

/* Responsive */

@media (max-width: 980px) {
  .lp-hero__grid,
  .lp-two-col,
  .lp-cta__inner {
    grid-template-columns: 1fr;
  }

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

  .lp-hero {
    padding-top: 70px;
  }
}

@media (max-width: 640px) {
  .lp-container {
    width: min(100% - 28px, 1180px);
  }

  .lp-hero {
    padding: 54px 0 58px;
  }

  .lp-section {
    padding: 58px 0;
  }

  .lp-grid--3,
  .lp-grid--4,
  .lp-steps,
  .lp-related {
    grid-template-columns: 1fr;
  }

  .lp-mock__row {
    grid-template-columns: 1fr;
  }

  .lp-hero__actions {
    flex-direction: column;
  }

  .lp-btn {
    width: 100%;
  }
}