/* ! =========================
   APPLICATIONS HERO
========================= */

.applications-hero-section {
  position: relative;
  width: 100%;
  min-height: 430px;
  overflow: hidden;
  background: #10202c;
  isolation: isolate;
}

/* =========================
   BACKGROUND IMAGE
========================= */

.applications-hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================
   OVERLAY
========================= */

.applications-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 40, 67, 0.78) 0%,
      rgba(25, 74, 104, 0.56) 32%,
      rgba(32, 54, 69, 0.38) 58%,
      rgba(14, 24, 32, 0.52) 100%
    ),
    linear-gradient(180deg, rgba(7, 18, 25, 0.12) 0%, rgba(7, 18, 25, 0.3) 100%);
}

/* =========================
   INNER WRAPPER
========================= */

.applications-hero-wrapper {
  position: relative;
  z-index: 3;
  width: min(100% - 32px, 1320px);
  min-height: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   CONTENT
========================= */

.applications-hero-content {
  width: 100%;
  max-width: 950px;
  padding: 70px 0;
  color: #ffffff;
  text-align: center;
}

/* Kicker */

.applications-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.applications-hero-kicker::before,
.applications-hero-kicker::after {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

/* H1 */

.applications-hero-content h1 {
  max-width: 950px;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(2.7rem, 5vw, 3rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 30px rgba(7, 18, 25, 0.24);
}

/* Subtitle */

.applications-hero-content p {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 500;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991.98px) {
  .applications-hero-section,
  .applications-hero-wrapper {
    min-height: 400px;
  }

  .applications-hero-content {
    padding: 60px 0;
  }

  .applications-hero-content h1 {
    max-width: 800px;
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

@media (max-width: 767.98px) {
  .applications-hero-section,
  .applications-hero-wrapper {
    min-height: 460px;
  }

  .applications-hero-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .applications-hero-image {
    object-position: center;
  }

  .applications-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 32, 50, 0.66) 0%,
      rgba(6, 27, 42, 0.82) 100%
    );
  }

  .applications-hero-content {
    padding: 56px 0;
  }

  .applications-hero-kicker {
    margin-bottom: 18px;
    font-size: 0.72rem;
  }

  .applications-hero-kicker::before,
  .applications-hero-kicker::after {
    width: 30px;
  }

  .applications-hero-content h1 {
    font-size: 2.45rem;
    line-height: 0.98;
  }

  .applications-hero-content p {
    margin-top: 18px;
    font-size: 1.15rem;
  }
}

/* ! =========================
   APPLICATIONS INTRO
========================= */

.applications-intro-section {
  padding: 48px 0;
  background: #f0f1f3;
}

.applications-intro-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

.applications-intro-content {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.applications-intro-content p {
  margin: 0;
  color: #2d333b;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.5;
  font-weight: 400;
}

.applications-intro-content strong,
.applications-intro-content b {
  color: #161b21;
  font-weight: 800;
}

/* Responsive */

@media (max-width: 767.98px) {
  .applications-intro-section {
    padding: 38px 0;
  }

  .applications-intro-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .applications-intro-content p {
    font-size: 0.98rem;
    line-height: 1.55;
  }
}

/* ! =========================
   APPLICATIONS BENTO
========================= */

.applications-bento-section {
  padding: 80px 0;
  background: transparent;
}

.applications-bento-wrapper {
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.applications-bento-header {
  margin-bottom: 22px;
  padding: 30px 34px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.applications-bento-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #263444;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.applications-bento-kicker::after {
  content: "";
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: #00b2e9;
}

.applications-bento-header h2 {
  margin: 0;
  color: #263444;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

/* =========================
   MAIN BENTO
========================= */

.applications-bento-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(0, 2.05fr);
  gap: 16px;
  align-items: stretch;
}

.applications-bento-right {
  display: grid;
  grid-template-rows: 1fr 0.82fr;
  gap: 16px;
  min-width: 0;
}

.applications-bento-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.applications-bento-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* =========================
   CARD BASE
========================= */

.application-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #071c29;
  color: #ffffff;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.application-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.18);
}

.application-card:hover,
.application-card:focus {
  text-decoration: none;
  color: inherit;
}

.application-card:focus-visible {
  outline: 3px solid #00b2e9;
  outline-offset: 3px;
}

/* =========================
   BACKGROUND IMAGE
========================= */

.application-card-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.application-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition:
    transform 0.55s ease,
    filter 0.4s ease;
}

.application-card:hover .application-card-media img {
  transform: scale(1.05);
  filter: saturate(1.06);
}

/* =========================
   OVERLAY
========================= */

.application-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(6, 23, 34, 0.02) 0%,
    rgba(6, 23, 34, 0.18) 32%,
    rgba(5, 24, 36, 0.84) 62%,
    rgba(4, 23, 35, 0.98) 100%
  );

  transition: background 0.35s ease;
}

.application-card:hover .application-card-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 178, 233, 0.05) 0%,
    rgba(5, 42, 58, 0.28) 32%,
    rgba(4, 38, 54, 0.88) 65%,
    rgba(4, 28, 41, 0.98) 100%
  );
}

/* =========================
   CONTENT
========================= */

.application-card-content {
  position: relative;
  z-index: 3;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #ffffff;
}

.application-card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00b2e9;
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(0, 178, 233, 0.28);
}

.application-card-content h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.application-card-content > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.92rem;
  line-height: 1.48;
}

/* =========================
   FOOD CARD
========================= */

.application-card-food {
  min-height: 720px;
}

.application-card-food .application-card-content {
  padding: 30px;
}

.application-card-food .application-card-content h3 {
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
}

.application-food-divider {
  width: 100%;
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(
    90deg,
    #00b2e9 0%,
    rgba(255, 255, 255, 0.22) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

.application-food-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.application-food-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.application-food-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00b2e9;
  color: #ffffff;
  font-size: 0.7rem;
}

.application-food-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  line-height: 1.45;
}

.application-food-item strong {
  color: #ffffff;
  font-weight: 800;
}

/* =========================
   STANDARD TOP CARDS
========================= */

.application-card-standard {
  min-height: 350px;
}

/* =========================
   SMALL BOTTOM CARDS
========================= */

.application-card-small {
  min-height: 350px;
}

.application-card-small .application-card-content {
  padding: 20px;
}

.application-card-small .application-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.application-card-small .application-card-content h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  line-height: 1.02;
}

.application-card-small .application-card-content > p {
  font-size: 0.8rem;
  line-height: 1.42;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 991.98px) {
  .applications-bento-section {
    padding: 68px 0;
  }

  .applications-bento-grid {
    grid-template-columns: 1fr;
  }

  .application-card-food {
    min-height: 650px;
  }

  .applications-bento-right {
    grid-template-rows: auto;
  }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 767.98px) {
  .applications-bento-section {
    padding: 52px 0;
  }

  .applications-bento-wrapper {
    width: min(100% - 24px, 1320px);
  }

  .applications-bento-header {
    padding: 24px 22px;
    border-radius: 16px;
  }

  .applications-bento-header h2 {
    font-size: 2rem;
  }

  .applications-bento-top,
  .applications-bento-bottom {
    grid-template-columns: 1fr;
  }

  .application-card-food,
  .application-card-standard,
  .application-card-small {
    min-height: 520px;
  }

  .application-card-content,
  .application-card-food .application-card-content,
  .application-card-small .application-card-content {
    padding: 24px;
  }

  .application-card-small .application-card-content h3 {
    font-size: 1.7rem;
  }

  .application-card-small .application-card-content > p {
    font-size: 0.92rem;
  }
}
