:root {
  color-scheme: light;
  --stage-width: 1920px;
  --stage-height: 1080px;
  --text: #111827;
  --blue: #267df2;
  --teal: #2fa6a7;
  --green: #5ec56d;
  --line: #9fc8c9;
  --card: rgba(248, 253, 255, 0.92);
  --shadow: 0 18px 44px rgba(38, 108, 131, 0.16);
  --ring: rgba(36, 120, 242, 0.34);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  background: #eaf8ff;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(238, 249, 255, 0.38)),
    url("../assets/Background.png") center center / cover no-repeat;
}

button {
  border: 0;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  width: min(100vw, var(--stage-width), calc(100vh * 16 / 9));
  height: min(100vh, var(--stage-height), calc(100vw * 9 / 16));
  overflow: hidden;
  padding: 7.2% 7.7% 6%;
  background: transparent;
}

.top-logo {
  position: absolute;
  top: 2.5926%;
  left: 90.0734%;
  width: 7.062%;
  height: auto;
}

.hero-heading {
  text-align: center;
}

.hero-heading h1 {
  margin: 0 12% 0.7%;
  color: #1f8aa7;
  font-size: clamp(1.5rem, 3.08vw, 3.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-heading p {
  margin: 0 0 7.7%;
  color: #0b0f19;
  font-size: clamp(1rem, 1.72vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

.solution-flow {
  position: absolute;
  top: 41.3889%;
  left: 8.125%;
  display: grid;
  width: 83.75%;
  height: 45.3704%;
  grid-template-columns: 28.2338% 7.6493% 28.2338% 7.6493% 28.2338%;
  gap: 0;
  align-items: start;
}

.ep-data-card {
  grid-column: 1;
}

.x-brain-card {
  grid-column: 3;
}

.solutions-card {
  grid-column: 5;
}

.solution-card {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  padding: clamp(44px, 4.65vw, 86px) clamp(18px, 1.8vw, 34px) clamp(20px, 1.9vw, 34px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 4.427vw, 85px);
  color: var(--text);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.solution-card:hover,
.solution-card:focus-visible {
  border-color: rgba(36, 120, 242, 0.52);
  box-shadow: 0 24px 58px rgba(38, 108, 131, 0.22);
  transform: translateY(-0.45vw);
}

.solution-card.is-pressed {
  transform: translateY(-0.1vw) scale(0.986);
}

.icon-badge {
  position: absolute;
  top: clamp(-54px, -4.6vw, -38px);
  display: grid;
  width: clamp(74px, 6.1vw, 108px);
  height: clamp(74px, 6.1vw, 108px);
  place-items: center;
  border: 1px solid rgba(137, 190, 197, 0.7);
  border-radius: 50%;
  background: rgba(239, 249, 255, 0.86);
  box-shadow: 0 12px 28px rgba(38, 108, 131, 0.14);
}

.icon-badge img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.solution-title,
.solution-subtitle,
.solution-divider,
.solution-list,
.more-button {
  display: block;
}

.solution-title {
  margin-bottom: 2.2%;
  font-size: clamp(1.45rem, 2.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
}

.solution-subtitle {
  color: #121826;
  font-size: clamp(0.78rem, 0.95vw, 1.1rem);
  font-weight: 800;
}

.solution-divider {
  width: 46%;
  height: 2px;
  margin: 6.8% auto 6.2%;
  background: currentColor;
  opacity: 0.7;
}

.ep-data-card .solution-divider {
  color: var(--blue);
}

.x-brain-card .solution-divider {
  color: var(--green);
}

.solutions-card .solution-divider {
  color: var(--teal);
}

.solution-list {
  width: max-content;
  max-width: 100%;
  min-height: clamp(54px, 5.3vw, 94px);
  margin: 0 auto 7%;
  color: #1d2737;
  font-size: clamp(0.72rem, 0.82vw, 1rem);
  line-height: 1.42;
  text-align: left;
}

.solution-list span {
  display: block;
}

.solution-list span::before {
  content: ". ";
}

.more-button {
  width: min(78%, 260px);
  min-height: clamp(40px, 3.8vw, 64px);
  padding: clamp(10px, 0.95vw, 18px) clamp(20px, 1.7vw, 32px);
  margin-top: auto;
  border-radius: 999px;
  color: #ffffff;
  font-size: clamp(0.8rem, 1.05vw, 1.25rem);
}

.ep-data-card .more-button {
  background: linear-gradient(135deg, #3195ff, #1c5df2);
}

.x-brain-card .more-button {
  background: linear-gradient(135deg, #7ddc8d, #4aba5c);
}

.solutions-card .more-button {
  background: linear-gradient(135deg, #36a0b4, #32c6a7);
}

.flow-arrow {
  position: absolute;
  top: -29.5918%;
  width: 16.2313%;
  max-width: none;
  height: auto;
  margin: 0;
  pointer-events: none;
  justify-self: center;
  transform: rotate(-9.91deg);
  transform-origin: center;
  user-select: none;
}

.arrow-one {
  left: 25.0099%;
}

.arrow-two {
  left: 62%;
}

:focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 4px;
}

@media (max-width: 1366px), (max-height: 760px) {
  .stage {
    padding: 6.6% 7.4% 5.4%;
  }

  .top-logo {
    width: 7.2%;
  }

  .hero-heading h1 {
    font-size: clamp(1.45rem, 3vw, 3.1rem);
  }

  .hero-heading p {
    margin-bottom: 7.1%;
    font-size: clamp(0.95rem, 1.6vw, 1.65rem);
  }

  .solution-card {
    padding-top: clamp(40px, 4.4vw, 70px);
  }

  .icon-badge {
    width: clamp(64px, 5.8vw, 90px);
    height: clamp(64px, 5.8vw, 90px);
  }

  .solution-title {
    font-size: clamp(1.25rem, 1.95vw, 2.05rem);
  }

  .solution-subtitle {
    font-size: clamp(0.68rem, 0.88vw, 0.95rem);
  }

  .solution-list {
    min-height: clamp(46px, 4.8vw, 74px);
    font-size: clamp(0.62rem, 0.76vw, 0.82rem);
  }

  .more-button {
    min-height: clamp(34px, 3.2vw, 52px);
    font-size: clamp(0.76rem, 0.95vw, 1rem);
  }
}

@media (max-width: 1180px) {
  body::before {
    background-position: center top;
  }

  .stage {
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding: clamp(24px, 5vw, 56px) clamp(18px, 5vw, 64px) 56px;
    background-position: center top;
  }

  .top-logo {
    position: static;
    display: block;
    width: clamp(110px, 18vw, 160px);
    margin: 0 0 16px auto;
  }

  .hero-heading h1 {
    margin-right: 0;
    margin-left: 0;
    font-size: clamp(2rem, 5.2vw, 3.3rem);
  }

  .hero-heading p {
    margin-bottom: 72px;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
  }

  .solution-flow {
    position: static;
    grid-template-columns: 1fr;
    gap: 68px;
    width: min(560px, 100%);
    height: auto;
    margin: 0 auto;
  }

  .solution-card {
    width: 100%;
    height: auto;
    min-height: 320px;
    padding: 68px 30px 30px;
  }

  .icon-badge {
    top: -48px;
    width: 96px;
    height: 96px;
  }

  .solution-title {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .solution-subtitle {
    font-size: clamp(0.98rem, 2.8vw, 1.16rem);
  }

  .solution-list {
    min-height: auto;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  }

  .flow-arrow {
    position: static;
    width: clamp(96px, 22vw, 140px);
    max-width: none;
    margin: -28px auto -18px;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  body::before {
    background-position: 42% top;
    background-size: cover;
  }

  .stage {
    padding: 18px 14px 44px;
  }

  .top-logo {
    width: 112px;
    margin-bottom: 12px;
  }

  .hero-heading h1 {
    font-size: clamp(1.72rem, 8vw, 2.55rem);
    line-height: 1.12;
  }

  .hero-heading p {
    margin-bottom: 64px;
    font-size: clamp(1rem, 4.6vw, 1.35rem);
  }

  .solution-flow {
    gap: 62px;
  }

  .solution-card {
    min-height: auto;
    padding: 62px 22px 24px;
    border-radius: 30px;
  }

  .icon-badge {
    top: -42px;
    width: 84px;
    height: 84px;
  }

  .solution-title {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .solution-divider {
    width: 54%;
    margin: 16px auto 14px;
  }

  .solution-list {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .more-button {
    width: min(100%, 240px);
    min-height: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .stage {
    padding-right: 10px;
    padding-left: 10px;
  }

  .solution-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .solution-list {
    font-size: 0.84rem;
  }
}
