:root {
  --ink: #102027;
  --ink-soft: #43535a;
  --surface: #f6f8f7;
  --surface-strong: #ffffff;
  --line: rgba(16, 32, 39, 0.12);
  --teal: #0b6d70;
  --teal-dark: #063f43;
  --green: #5c8f63;
  --amber: #c8913b;
  --steel: #65747b;
  --shadow: 0 24px 70px rgba(9, 29, 35, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  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;
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(200, 145, 59, 0.55);
  outline-offset: 4px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 23, 28, 0.78);
  backdrop-filter: blur(18px);
}

.navbar {
  padding: 14px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-lockup:hover,
.brand-lockup:focus {
  color: #ffffff;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand-logo-header {
  height: 46px;
  max-width: 184px;
  border-radius: 8px;
  padding: 0;
}

.brand-logo-footer {
  height: 98px;
  max-width: 150px;
  border-radius: 8px;
  padding: 10px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 8px 10px;
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 650;
  padding-inline: 14px !important;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: #ffffff;
  background: #0a171c;
}

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

.hero-media {
  background-image: url("/images/aspex-operations-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 16, 20, 0.95) 0%, rgba(5, 16, 20, 0.78) 38%, rgba(5, 16, 20, 0.2) 72%),
    linear-gradient(180deg, rgba(5, 16, 20, 0.22) 0%, rgba(5, 16, 20, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 92vh;
  flex-direction: column;
  justify-content: center;
  padding: 122px 0 52px;
}

.hero-copy {
  width: min(670px, 100%);
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.3rem, 9vw, 8.2rem);
  font-weight: 820;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  width: min(620px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 1.6vw, 1.36rem);
  line-height: 1.58;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 780;
}

.primary-action {
  background: #ffffff;
  color: #102027;
}

.primary-action:hover {
  color: #102027;
  background: #eef5f2;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.secondary-action:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 56px;
}

.hero-proof span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
  font-weight: 650;
}

.trust-band,
.systems-section,
.integration-section,
.contact-strip {
  position: relative;
  z-index: 2;
  scroll-margin-top: 82px;
}

.trust-band {
  margin-top: -1px;
  padding: 50px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: end;
}

.trust-grid h2,
.section-heading h2,
.integration-grid h2,
.contact-grid h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 790;
  line-height: 1.06;
  letter-spacing: 0;
}

.trust-grid p,
.section-heading p,
.integration-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.systems-section {
  padding: 92px 0;
}

.section-heading {
  width: min(790px, 100%);
  margin-bottom: 36px;
}

.section-heading p {
  margin-top: 18px;
}

.system-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: stretch;
}

.system-list {
  display: grid;
  gap: 12px;
}

.system-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.system-card:hover,
.system-card.active {
  border-color: rgba(11, 109, 112, 0.38);
  background: #ffffff;
  box-shadow: 0 16px 46px rgba(9, 29, 35, 0.08);
  transform: translateY(-1px);
}

.system-icon {
  grid-row: span 2;
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #edf3f1;
}

.system-icon::before,
.system-icon::after {
  content: "";
  position: absolute;
}

.fuel-icon::before {
  width: 17px;
  height: 26px;
  border: 3px solid var(--teal);
  border-radius: 4px 4px 8px 8px;
}

.fuel-icon::after {
  width: 24px;
  height: 3px;
  background: var(--amber);
  transform: translateY(8px);
}

.estate-icon::before {
  width: 24px;
  height: 23px;
  border: 3px solid var(--teal);
  border-top: 0;
  transform: translateY(5px);
}

.estate-icon::after {
  width: 25px;
  height: 25px;
  border-top: 3px solid var(--amber);
  border-left: 3px solid var(--amber);
  transform: translateY(-3px) rotate(45deg);
}

.membex-icon::before {
  width: 24px;
  height: 24px;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.membex-icon::after {
  width: 22px;
  height: 8px;
  border: 3px solid var(--amber);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  transform: translateY(15px);
}

.system-title {
  display: block;
  align-self: end;
  font-size: 1.15rem;
  font-weight: 820;
}

.system-summary {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.system-detail {
  position: relative;
  min-height: 384px;
  border-radius: 8px;
  border: 1px solid rgba(11, 109, 112, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 241, 0.96)),
    #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-detail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--amber));
}

.system-panel {
  padding: clamp(28px, 5vw, 56px);
}

.system-panel h3 {
  width: min(690px, 100%);
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.system-panel p:not(.panel-label) {
  width: min(720px, 100%);
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  width: min(720px, 100%);
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: #253940;
  font-weight: 620;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 0 0 4px #dcebe7;
}

.integration-section {
  padding: 90px 0;
  color: #ffffff;
  background: #0b1a1f;
}

.integration-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 54px;
  align-items: start;
}

.integration-grid h2,
.integration-grid p {
  color: #ffffff;
}

.integration-grid p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

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

.capability-item {
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.capability-item strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.08rem;
}

.capability-item span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-strip {
  padding: 64px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.contact-mail {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--teal-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-mail:hover {
  color: #ffffff;
  background: #082f33;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.68);
  background: #091317;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 540px;
  margin: 0;
}

.site-footer .footer-legal {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.92rem;
}

.footer-label {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-mail {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 780;
}

@media (max-width: 991px) {
  .site-header {
    background: rgba(9, 23, 28, 0.92);
  }

  .navbar-collapse {
    padding-top: 14px;
  }

  .nav-link {
    padding: 10px 0 !important;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    min-height: 860px;
  }

  .trust-grid,
  .system-layout,
  .integration-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .footer-grid {
    align-items: start;
  }

  .contact-mail {
    width: fit-content;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 16, 20, 0.94) 0%, rgba(5, 16, 20, 0.78) 70%, rgba(5, 16, 20, 0.48) 100%),
      linear-gradient(180deg, rgba(5, 16, 20, 0.12) 0%, rgba(5, 16, 20, 0.9) 100%);
  }

  .hero-content {
    min-height: 760px;
    padding-top: 104px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.2rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .trust-band,
  .systems-section,
  .integration-section,
  .contact-strip {
    padding-block: 58px;
  }

  .system-card {
    min-height: 100px;
    padding: 15px;
  }

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