:root {
  --fx-blue: #2e6da4;
  --fx-blue-dk: #235580;
  --fx-navy: #0f2a47;
  --fx-navy-2: #14365a;
  --fx-tint: #e2f2fa;
  --fx-text: #1a2433;
  --fx-muted: #5c6a80;
  --fx-border: #dde6f0;
  --fx-bg-light: #f4f8fc;
  --fx-white: #ffffff;
  --fx-radius: 16px;
  --fx-shadow: 0 14px 36px rgba(15, 42, 71, .14);
}

.fx-page {
  color: var(--fx-text);
  overflow-wrap: break-word;
}

.fx-page img {
  max-width: 100%;
}

/* ── BUTTONS ── */
.fx-page .btn-fx,
.fx-page .btn-fx:visited,
.fx-page .btn-fx:focus {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.4rem;
  border: 2px solid var(--fx-blue);
  border-radius: 999px;
  background: var(--fx-blue);
  color: var(--fx-white);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.fx-page .btn-fx:hover {
  background: var(--fx-blue-dk);
  border-color: var(--fx-blue-dk);
  color: var(--fx-white);
  transform: translateY(-1px);
}

.fx-page .btn-fx-light,
.fx-page .btn-fx-light:visited,
.fx-page .btn-fx-light:focus {
  background: var(--fx-white);
  border-color: var(--fx-white);
  color: var(--fx-navy);
}

.fx-page .btn-fx-light:hover {
  background: transparent;
  border-color: var(--fx-white);
  color: var(--fx-white);
}

/* ── SECTIONS & HEADINGS ── */
.fx-section {
  padding: 64px 0;
  background: var(--fx-white);
}

.fx-section-alt {
  background: var(--fx-bg-light);
}

.fx-heading {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.fx-heading h2 {
  margin-bottom: .75rem;
  color: var(--fx-navy);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
}

.fx-heading p {
  margin: 0 0 1.25rem;
  color: var(--fx-muted);
  font-size: .98rem;
  line-height: 1.7;
}

.fx-heading p:last-child {
  margin-bottom: 0;
}

/* ── HERO ── */
.fx-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 64px 0;
  overflow: hidden;
  color: var(--fx-white);
  background: var(--fx-navy) url('/images/flexera/hero-homepage-soitam-2022-10.jpg') center / cover no-repeat;
}

.fx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 42, 71, .94) 0%, rgba(15, 42, 71, .78) 50%, rgba(15, 42, 71, .25) 100%);
}

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

.fx-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.fx-hero p {
  max-width: 36rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

/* ── INTRO + DASHBOARD ── */
.fx-intro {
  padding: 64px 0 0;
  background: linear-gradient(180deg, var(--fx-tint) 0%, var(--fx-tint) 55%, var(--fx-white) 55%);
}

.fx-intro .fx-heading {
  margin-bottom: 2.25rem;
}

.fx-dashboard {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.fx-dashboard img {
  display: block;
  width: 100%;
  border-radius: var(--fx-radius);
  box-shadow: var(--fx-shadow);
}

/* ── FEATURE CARDS ── */
.fx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--fx-border);
  border-radius: var(--fx-radius);
  background: var(--fx-white);
  box-shadow: 0 6px 20px rgba(15, 42, 71, .07);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.fx-card:hover {
  transform: translateY(-4px);
  border-color: var(--fx-blue);
  box-shadow: var(--fx-shadow);
}

.fx-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--fx-bg-light);
  border-bottom: 1px solid var(--fx-border);
}

.fx-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.fx-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.4rem 1.5rem;
}

.fx-card-body h3 {
  margin-bottom: .35rem;
  color: var(--fx-navy);
  font-size: 1.15rem;
  font-weight: 700;
}

.fx-card-body h5 {
  margin-bottom: .7rem;
  color: var(--fx-blue);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.4;
}

.fx-card-body p {
  margin-bottom: 1.25rem;
  color: var(--fx-muted);
  font-size: .88rem;
  line-height: 1.65;
}

.fx-card-body .btn-fx {
  margin-top: auto;
}

/* ── STATS ── */
.fx-stats {
  padding: 64px 0;
  color: var(--fx-white);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(77, 150, 214, .28) 0%, transparent 60%),
    var(--fx-navy);
}

.fx-stats .fx-heading h2 {
  color: var(--fx-white);
}

.fx-stats .fx-heading p {
  color: rgba(255, 255, 255, .8);
}

.fx-stat {
  height: 100%;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--fx-radius);
  background: rgba(255, 255, 255, .06);
  text-align: center;
  transition: transform .25s, border-color .25s;
}

.fx-stat:hover {
  transform: translateY(-4px);
  border-color: #6db3ec;
}

.fx-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: var(--fx-white);
}

.fx-stat-icon img {
  max-height: 36px;
  max-width: 36px;
  object-fit: contain;
}

.fx-stat h3 {
  margin-bottom: .3rem;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.fx-stat p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  font-size: .85rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .fx-section,
  .fx-stats {
    padding: 44px 0;
  }

  .fx-intro {
    padding-top: 44px;
  }

  .fx-dashboard {
    padding-bottom: 44px;
  }

  .fx-hero {
    min-height: 0;
    padding: 48px 0;
  }
}

/* Hero logo */
.fx-hero-logo {
  display: block;
  width: auto;
  height: 40px;
  margin: 0 0 1.5rem;
}
