:root {
  --kd-bg: #00141c;
  --kd-bg-secondary: #03232e;
  --kd-card: rgba(4, 38, 50, 0.9);
  --kd-card-light: rgba(7, 49, 63, 0.95);

  --kd-white: #ffffff;
  --kd-text: #d6e1e5;
  --kd-muted: #9eb1b9;

  --kd-red: #ff3621;
  --kd-red-light: #ff503c;
  --kd-blue: #2e89a8;

  --kd-border: rgba(94, 167, 193, 0.18);
}


/* =====================================================
   KEY DISCUSSION SECTION
===================================================== */

.key-discussion {
  position: relative;
  padding: 105px 0 110px;
  overflow: hidden;
  isolation: isolate;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(7, 91, 118, 0.22),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 74%,
      rgba(17, 79, 102, 0.2),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #00141c 0%,
      #031d27 52%,
      #001019 100%
    );
}

.kd-container {
  position: relative;
  z-index: 4;
  width: min(90%, 1680px);
  margin: 0 auto;
}


/* =====================================================
   BACKGROUND DECORATION
===================================================== */

.kd-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.14;

  background-image:
    linear-gradient(
      rgba(60, 135, 160, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(60, 135, 160, 0.08) 1px,
      transparent 1px
    );

  background-size: 62px 62px;

  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
}

.kd-glow {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.kd-glow-left {
  top: 8%;
  left: -120px;
  width: 430px;
  height: 430px;
  background: rgba(0, 107, 139, 0.16);
}

.kd-glow-right {
  right: -90px;
  bottom: 2%;
  width: 470px;
  height: 470px;
  background: rgba(19, 91, 116, 0.15);
}


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

.kd-header {
  margin-bottom: 62px;
}

.kd-label {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;

  color: var(--kd-red);
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.kd-label-line {
  width: 250px;
  height: 2px;

  background: linear-gradient(
    90deg,
    rgba(255, 54, 33, 0.75),
    rgba(60, 135, 160, 0.1)
  );
}

.kd-heading-row {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(320px, 0.75fr);
  gap: 70px;
  align-items: end;
}

.kd-heading {
  max-width: 920px;
  color: var(--kd-white);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -2.5px;
}

.kd-heading span {
  display: block;
  margin-top: 8px;
  color: var(--kd-red);
}

.kd-intro {
  max-width: 520px;
  padding-left: 28px;
  border-left: 2px solid var(--kd-red);

  color: var(--kd-text);
  font-size: clamp(16px, 1.12vw, 19px);
  line-height: 1.7;
}


/* =====================================================
   CARDS GRID
===================================================== */

.kd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.kd-card {
  position: relative;
  min-height: 390px;
  padding: 38px 34px 34px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--kd-border);
  border-radius: 4px;

  background:
    linear-gradient(
      145deg,
      rgba(7, 48, 62, 0.92),
      rgba(2, 29, 39, 0.95)
    );

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.kd-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 4px;
  height: 0;

  background: linear-gradient(
    to bottom,
    var(--kd-red),
    var(--kd-red-light)
  );

  transition: height 0.45s ease;
}

.kd-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;

  width: 210px;
  height: 210px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(255, 54, 33, 0.08),
    transparent 68%
  );

  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
}

.kd-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 54, 33, 0.42);

  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    0 0 35px rgba(255, 54, 33, 0.06);
}

.kd-card:hover::before {
  height: 100%;
}

.kd-card:hover::after {
  transform: scale(1.25);
}


/* Wider first card */

.kd-card-large {
  grid-column: span 2;

  background:
    linear-gradient(
      115deg,
      rgba(9, 57, 72, 0.98),
      rgba(3, 33, 43, 0.95)
    );
}


/* Highlighted final card */

.kd-card-highlight {
  background:
    linear-gradient(
      145deg,
      rgba(45, 41, 38, 0.94),
      rgba(11, 35, 42, 0.98)
    );

  border-color: rgba(255, 54, 33, 0.28);
}


.kd-number {
  position: absolute;
  top: 24px;
  right: 28px;

  color: rgba(255, 255, 255, 0.07);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}

.kd-card-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 36px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(126, 188, 208, 0.27);
  border-radius: 50%;

  background: rgba(3, 28, 37, 0.65);

  box-shadow:
    inset 0 0 20px rgba(16, 105, 134, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

.kd-card-icon i {
  color: var(--kd-red);
  font-size: 30px;
}

.kd-card:hover .kd-card-icon {
  transform: rotate(-8deg) scale(1.07);
  border-color: rgba(255, 54, 33, 0.55);
  background: rgba(255, 54, 33, 0.06);
}

.kd-card-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.kd-card-tag {
  display: inline-block;
  margin-bottom: 14px;

  color: var(--kd-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.kd-card h3 {
  max-width: 450px;
  margin-bottom: 18px;

  color: var(--kd-white);
  font-size: clamp(21px, 1.55vw, 28px);
  line-height: 1.25;
  font-weight: 700;
}

.kd-card p {
  max-width: 570px;

  color: var(--kd-muted);
  font-size: 15px;
  line-height: 1.7;
}

.kd-arrow {
  position: absolute;
  right: 28px;
  bottom: 28px;

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(123, 181, 201, 0.21);
  border-radius: 50%;

  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;

  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease;
}

.kd-card:hover .kd-arrow {
  color: var(--kd-white);
  border-color: var(--kd-red);
  background: var(--kd-red);
  transform: rotate(45deg);
}


/* =====================================================
   LARGE LAPTOP
===================================================== */

@media (max-width: 1350px) {

  .key-discussion {
    padding: 90px 0 95px;
  }

  .kd-heading-row {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 45px;
  }

  .kd-card {
    min-height: 370px;
    padding: 32px 28px;
  }

  .kd-card h3 {
    font-size: 23px;
  }

  .kd-arrow {
    right: 22px;
    bottom: 22px;
  }

}


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

@media (max-width: 1050px) {

  .kd-heading-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .kd-intro {
    max-width: 700px;
  }

  .kd-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .kd-card-large {
    grid-column: span 2;
  }

}


/* =====================================================
   SMALL TABLET
===================================================== */

@media (max-width: 768px) {

  .key-discussion {
    padding: 70px 0 72px;
  }

  .kd-container {
    width: min(90%, 680px);
  }

  .kd-header {
    margin-bottom: 42px;
  }

  .kd-label {
    gap: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 1.7px;
  }

  .kd-label-line {
    flex: 1;
    width: auto;
  }

  .kd-heading {
    font-size: clamp(38px, 10vw, 54px);
    letter-spacing: -1.6px;
  }

  .kd-intro {
    padding-left: 20px;
    font-size: 15px;
  }

  .kd-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kd-card-large {
    grid-column: span 1;
  }

  .kd-card {
    min-height: 350px;
    padding: 30px 25px;
  }

  .kd-card-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 30px;
  }

  .kd-card-icon i {
    font-size: 27px;
  }

  .kd-number {
    top: 22px;
    right: 24px;
    font-size: 52px;
  }

  .kd-card h3 {
    padding-right: 30px;
    font-size: 22px;
  }

  .kd-card p {
    padding-right: 35px;
    font-size: 14px;
  }

}


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

@media (max-width: 480px) {

  .key-discussion {
    padding: 58px 0 62px;
  }

  .kd-heading {
    font-size: 36px;
    line-height: 1.09;
  }

  .kd-heading span {
    margin-top: 6px;
  }

  .kd-intro {
    padding-left: 16px;
    line-height: 1.65;
  }

  .kd-card {
    min-height: 330px;
    padding: 26px 21px;
  }

  .kd-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 26px;
  }

  .kd-card-icon i {
    font-size: 24px;
  }

  .kd-card-tag {
    font-size: 11px;
    letter-spacing: 1.4px;
  }

  .kd-card h3 {
    padding-right: 18px;
    font-size: 20px;
  }

  .kd-card p {
    padding-right: 15px;
    font-size: 14px;
    line-height: 1.65;
  }

  .kd-arrow {
    right: 18px;
    bottom: 18px;
    width: 38px;
    height: 38px;
  }

}