/* 
    #  Author: Manoj Kumar 
    ## Profile: https://www.linkedin.com/in/macyhvt/ 
*/

:root {
  --page-bg: #eef2f7;
  --panel-bg: #ffffff;
  --text-main: #123c78;
  --text-soft: #2d4f80;
  --shadow-soft: 0 22px 60px rgba(17, 40, 79, 0.10);
  --footer-blue: #0f4b8c;
  --footer-blue-soft: #b9cee9;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Urbanist', sans-serif;
  background: #ffffff;
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
}

.welcome-panel {
  position: relative;
  width: min(100%, 1500px);
  min-height: 100vh;
  overflow: visible;
  background: #ffffff;
  padding: clamp(22px, 2vw, 26px) clamp(18px, 2vw, 28px) 0 clamp(18px, 5vw, 78px);
  display: flex;
  flex-direction: column;
}

.welcome-panel::before,
.welcome-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.welcome-panel::before {
  bottom: 10px;
  height: 200px;
  background: var(--footer-blue-soft);
  clip-path: polygon(0 0%, 105% 100%, 0 100%);
}

.welcome-panel::after {
  bottom: 0;
  height: 235px;
  background: var(--footer-blue);
  clip-path: polygon(0 84%, 100% 0, 100% 100%, 0 100%);
}

.hero-block {
  position: relative;
  z-index: 1;
  max-width: 320px;
}

.brand-mark,
.hero-kicker,
.hero-title {
  opacity: 0;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-mark {
  display: block;
  width: 180px;
  height: auto;
  margin-bottom: 50px;
  animation-delay: 0.1s;
}

.hero-kicker {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-soft);
  animation-delay: 0.22s;
}

.hero-title {
  margin: 0 0 25px;
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  line-height: 1.16;
  font-weight: 700;
  color: var(--text-main);
  animation-delay: 0.34s;
}

.company-grid {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.company-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  background: #123c78;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: cardEntrance 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.company-card:nth-child(1) { animation-delay: 0.24s; }
.company-card:nth-child(2) { animation-delay: 0.32s; }
.company-card:nth-child(3) { animation-delay: 0.40s; }
.company-card:nth-child(4) { animation-delay: 0.48s; }
.company-card:nth-child(5) { animation-delay: 0.56s; }
.company-card:nth-child(6) { animation-delay: 0.64s; }
.company-card:nth-child(7) { animation-delay: 0.72s; }
.company-card:nth-child(8) { animation-delay: 0.80s; }

.company-card:nth-child(5) {
  grid-column: 1;
  grid-row: 2;
}

.company-card:nth-child(6) {
  grid-column: 2;
  grid-row: 2;
}

.company-card--eks {
  grid-column: 3;
  grid-row: 2;
}

.company-card--catalog {
  grid-column: 4;
  grid-row: 2;
}

.company-card__image,
.company-card__veil {
  position: absolute;
  inset: 0;
}

.company-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.35s ease;
}

.company-card__veil {
  z-index: 1;
  background: linear-gradient(180deg, rgb(9 45 98 / 76%), rgb(0 11 26 / 76%));
  transition: background 0.35s ease;
}

/* FIXED FIREFOX SVG SIZING */

.company-card__badge {
  position: relative;
  z-index: 2;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 138px;
  min-width: 138px;

  padding: 10px 14px 8px;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.company-card__badge img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.company-card:nth-child(2) .company-card__badge {
  width: 138px;
  min-width: 138px;
}

.company-card--eks .company-card__badge {
  width: 170px;
  min-width: 170px;
}

.company-card--eks .company-card__badge img {
  width: 100%;
  max-width: none;
  height: auto;
}

.company-card__badge span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  border: 1px solid;
  padding: 9px;
}

.company-card__catalog-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2px;
  color: #ffffff;
  text-transform: uppercase;
}

.company-card__badge--clean {
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.company-card:hover .company-card__image,
.company-card:focus-visible .company-card__image {
  transform: scale(1.07);
  filter: brightness(1.05);
}

.company-card:hover .company-card__veil,
.company-card:focus-visible .company-card__veil {
  background: linear-gradient(
    180deg,
    rgba(10, 36, 74, 0.38),
    rgba(6, 20, 40, 0.58)
  );
}

.company-card:hover .company-card__badge,
.company-card:focus-visible .company-card__badge {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.company-card:focus-visible {
  outline: 3px solid rgba(15, 75, 140, 0.38);
  outline-offset: 2px;
}

.panel-footer {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 0 6px;

  margin-top: auto;
  padding: 24px 20px 18px;

  font-size: 14px;
  font-weight: 400;
  color: #ffffff;

  text-align: center;

  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
  animation-delay: 1s;
}

.panel-footer a {
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.25s ease;
}

.panel-footer a:hover,
.panel-footer a:focus-visible {
  text-decoration: underline;
  opacity: 0.85;
}

.panel-footer a:not(:first-of-type)::before,
.panel-footer span + a::before {
  content: "·";
  margin-right: 6px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .brand-mark,
  .hero-kicker,
  .hero-title,
  .company-card,
  .panel-footer {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 901px) {
  body {
    overflow: hidden;
  }

  .landing-page {
    height: 100dvh;
    min-height: 100dvh;
  }

  .welcome-panel {
    height: 100dvh;
    min-height: 100dvh;

    padding:
      clamp(16px, 2vh, 26px)
      clamp(18px, 2vw, 28px)
      0
      clamp(28px, 5vw, 78px);
  }

  .brand-mark {
    width: clamp(132px, 9.8vw, 180px);
    margin-bottom: clamp(24px, 5vh, 50px);
  }

  .hero-kicker {
    font-size: clamp(18px, 1.2vw, 22px);
  }

  .hero-title {
    line-height: 0.96;
    margin-bottom: clamp(14px, 2.4vh, 25px);
  }

  .company-grid {
    margin-top: clamp(12px, 1.8vh, 18px);
    width: min(100%, calc((100dvh - 350px) * 2 + 10px));
  }

  .welcome-panel::before {
    height: clamp(110px, 19vh, 200px);
    bottom: clamp(6px, 1vh, 12px);
  }

  .welcome-panel::after {
    height: clamp(150px, 24vh, 235px);
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .company-grid {
    width: min(100%, calc((100dvh - 295px) * 2 + 10px));
    gap: 8px;
  }

  .brand-mark {
    margin-bottom: 20px;
  }

  .hero-title {
    margin-bottom: 12px;
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .landing-page {
    align-items: flex-start;
  }

  .welcome-panel {
    width: 100%;
    min-height: 100svh;
    padding: 24px 24px 0;
  }

  .brand-mark {
    width: 132px;
    margin-bottom: 28px;
  }

  .hero-title {
    margin-bottom: 22px;
  }

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

  .company-card,
  .company-card:nth-child(5),
  .company-card:nth-child(6),
  .company-card--eks,
  .company-card--catalog {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .welcome-panel {
    padding: 22px 18px 0;
  }

  .brand-mark {
    width: 112px;
    margin-bottom: 22px;
  }

  .hero-kicker {
    font-size: 18px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .company-card__badge {
    width: 118px;
    min-width: 118px;
  }

  .company-card--eks .company-card__badge {
    width: 146px;
    min-width: 146px;
  }
}

@media (max-width: 520px) {
  .welcome-panel {
    padding: 20px 14px 0;
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .company-card {
    aspect-ratio: 16 / 10;
  }

  .brand-mark {
    width: 92px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: 1.9rem;
    margin-bottom: 18px;
  }

  .company-card__badge {
    width: 112px;
    min-width: 112px;
  }

  .company-card--eks .company-card__badge {
    width: 136px;
    min-width: 136px;
  }

  .welcome-panel::before {
    height: 92px;
    bottom: 10px;
  }

  .welcome-panel::after {
    height: 112px;
  }

  .panel-footer {
    gap: 2px 6px;
    padding: 22px 14px 14px;
    font-size: 11px;
  }
}

@media (min-width: 1501px) {
  .welcome-panel {
    width: min(100%, 1620px);
  }
}

@media (min-width: 2330px) and (max-width: 2450px) {
  .welcome-panel {
    width: min(100%, 2000px);

    padding:
      clamp(16px, 2vh, 26px)
      clamp(18px, 2vw, 28px)
      clamp(88px, 12vh, 118px)
      clamp(28px, 6vw, 125px);
  }
}