/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --z9: #33759d;
  --z9-dark: #00467f;
  --z9-light: #01aeee;
  --white: #ffffff;
  --black: #1a1b1f;
  --text: #333333;
  --text-body: #475569;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background-color: var(--white);
  font-family: Rubik, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

img { max-width: 100%; vertical-align: middle; display: inline-block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 700; }

h1 {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
}

p { margin-top: 0; margin-bottom: 10px; }

/* ===== Main Section (gradient background) ===== */
.section-main {
  text-align: center;
  background-image: url(../images/dotted-swoosh.svg), linear-gradient(270deg, var(--z9-dark), var(--z9-light));
  background-position: 0 0, 0 0;
  background-size: auto, auto;
  padding-top: 5px;
  padding-bottom: 80px;
}

/* ===== Hero / Intro ===== */
.hero-container {
  text-align: center;
  background-color: var(--white);
  border-radius: 12px;
  max-width: 56rem;
  margin: 80px auto 140px;
  padding: 56px;
}

.hero-logo {
  text-align: center;
  width: 13rem;
  margin-bottom: 40px;
  display: inline-block;
}

.hero-heading {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 500;
  line-height: 36px;
}

.brand-z9,
.brand-flex {
  color: var(--text);
}

.hero-text {
  color: var(--text-body);
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
}

.z9-link {
  color: var(--z9);
  font-size: 18px;
}

.z9-link-upper {
  color: var(--z9);
  text-transform: uppercase;
  font-size: 18px;
}

/* ===== Feature Cards (Flexible Hardware / Software) ===== */
.cards-container {
  max-width: 1140px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  padding: 20px;
}

.card {
  text-align: center;
  background-color: var(--white);
  border-radius: 16px;
  max-width: 510px;
  height: 100%;
  padding: 60px 40px 40px;
  display: inline-block;
  position: relative;
  box-shadow: 11px 14px 11px rgba(0, 0, 0, 0.2);
}

.card-icon-wrap {
  border-radius: 9999px;
  background-color: var(--white);
  width: 100px;
  height: 100px;
  display: inline-block;
  position: absolute;
  top: -50px;
  left: 50%;
  margin-left: -50px;
  box-shadow: 0 20px 50px rgba(51, 117, 157, 0.5);
}

.card-icon {
  max-width: 100%;
  height: auto;
  padding: 12px;
}

.card-heading {
  text-align: left;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 10px;
}

.card-body {
  text-align: left;
  padding-top: 20px;
  font-size: 18px;
  line-height: 28px;
}

.card-body p {
  margin-bottom: 10px;
}

.card-body a {
  color: var(--z9-light);
  text-decoration: none;
}

.card-body a strong {
  color: var(--text);
}

/* ===== CTA Section ===== */
.cta-container {
  max-width: 500px;
  margin: 80px auto;
}

.cta-content {
  color: var(--white);
  text-align: left;
  font-size: 18px;
}

.cta-content h1 {
  color: var(--white);
}

.cta-content strong {
  color: var(--white);
}

.cta-content p {
  text-align: justify;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
}

.cta-content a {
  text-decoration: none;
}

/* ===== Platforms Grid ===== */
.platforms-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 80px 40px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 0;
  grid-row-gap: 0;
  padding: 20px;
  justify-content: center;
}

.platform-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.platform-list {
  min-width: 400px;
}

.platform-heading {
  color: var(--white);
  padding-bottom: 20px;
  font-size: 36px;
  font-weight: 500;
}

.platform-link {
  opacity: 1;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  margin: 4px;
  padding: 8px 24px;
  font-size: 18px;
  text-decoration: none;
  display: inline-block;
}

.platform-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.35);
}

/* Spider diagrams */
.platform-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spider-vertical {
  display: none;
}

.spider-horizontal {
  padding-top: 60px;
  display: block;
}

.spider-img {
  width: 70rem;
  min-width: 200px;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

/* ===== Footer ===== */
.footer {
  margin-left: 40px;
  margin-right: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-container {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
}

.footer-contact {
  display: block;
}

.footer-label {
  display: inline;
}

.footer-link {
  opacity: 1;
  color: var(--z9);
  text-decoration: none;
  display: block;
}

.footer-link:hover {
  opacity: 1;
}

.footer-link:active {
  opacity: 0.8;
}

.footer-contact .footer-link {
  display: inline;
}

.footer-copyright {
  display: block;
}

/* ===== Responsive: Tablet ===== */
@media screen and (max-width: 991px) {
  .section-main {
    padding-left: 40px;
    padding-right: 40px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .card {
    max-width: 100%;
  }

  .cards-grid .card:first-child {
    padding-bottom: 40px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .platform-list {
    min-width: auto;
  }

  .spider-horizontal {
    padding: 40px;
    display: none;
  }

  .spider-vertical {
    padding: 40px;
    display: block;
  }

  .spider-img {
    max-height: 300px;
  }

  .footer-link {
    margin-bottom: 0;
  }
}

/* ===== Responsive: Mobile ===== */
@media screen and (max-width: 767px) {
  .hero-container {
    margin-bottom: 60px;
  }

  .card {
    margin-top: 60px;
    padding-top: 40px;
  }

  .cta-content p {
    text-align: left;
  }

  .footer {
    float: left;
    text-align: center;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
    position: relative;
  }

  .footer-contact {
    float: left;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    position: relative;
  }

  .footer-link {
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .footer-copyright {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    display: flex;
  }

  .footer-container {
    flex-direction: column;
  }
}

/* ===== Responsive: Small Mobile ===== */
@media screen and (max-width: 479px) {
  .section-main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cta-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .card {
    margin-top: 40px;
  }
}
