/* ======================== Defense Header ======================== */

/* ---------- Defense header ---------- */
html {
  scroll-behavior: smooth;
}

.defense-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 54, 92, 0.08);
}

.admin-bar .defense-header {
  top: 32px;
}

.defense-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 85px;
}

.defense-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: 30px;
  margin-right: auto;
  position: relative;
}

.defense-logo::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 55px;
  background: #b9c4cc;
}

.defense-logo img {
  height: 80px;
  width: auto;
  display: block;
}

.defense-nav {
  flex: 1;
}

.defense-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}

.defense-menu li {
  margin: 0;
  padding: 0;
}

.defense-menu li::before {
  content: none !important;
}

.defense-menu a {
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 15px;
  color: var(--kyn-navy);
  text-decoration: none;
  transition: color 0.2s;
}

.defense-menu a:hover {
  color: var(--kyn-darkblue);
}

.defense-menu li:last-child a {
  display: inline-block;
  background: var(--kyn-navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
}

.defense-menu li:last-child a:hover {
  background: var(--kyn-darkblue);
  color: #fff;
}

.defense-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.defense-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--kyn-navy);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/*  ===================== Defense Landing ==================== */

/* ---------- banner ---------- */
.kyn-def .def-banner {
  min-height: 550px;
  background-color: var(--kyn-navy);
  background-size: cover;
  background-position: center right;
  display: flex;
  align-items: center;
}

.kyn-def .def-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 54, 92, 0.95) 0%,
    rgba(0, 54, 92, 0.75) 35%,
    rgba(0, 54, 92, 0) 65%
  );
  z-index: 0;
}

.kyn-def .def-banner-inner {
  width: 100%;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}

.kyn-def .def-banner-content {
  max-width: 560px;
  font-family: var(--font-inter);
}

.kyn-def .def-banner-content h1 {
  font-family: var(--font-inter);
}

.kyn-def .def-banner-sub {
  font-size: 19px;
  line-height: 135%;
  padding-left: 24px;
  border-left: 4px solid rgba(120, 170, 210, 0.8);
  max-width: 420px;
}

.kyn-def .def-btn-main::before {
  background-color: #2d679f;
  transform: none;
  border-radius: 6px;
}

.kyn-def .def-btn-main {
  text-transform: none;
  font-size: 18px;
  letter-spacing: 0;
  font-family: var(--font-inter);
}

.kyn-def .def-banner-logo {
  position: absolute;
  top: 0px;
  right: 20px;
  width: 200px;
}

.kyn-def .def-banner-logo img {
  width: 100%;
  height: auto;
}

/* ---------- technology ---------- */
.kyn-def .def-tech {
  background: #dce7f1;
  padding: 50px 0;
}

.kyn-def .def-tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background-color: #dce7f1;
}

.kyn-def .def-tech-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.kyn-def .def-tech-content {
  border-left: 1px solid #b9c4cc;
  padding-left: 40px;
}

.kyn-def .def-tech-content h2 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 34px;
}

.kyn-def .def-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-inter);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.kyn-def .def-eyebrow::after {
  content: "";
  width: 50px;
  height: 2px;
  background: var(--kyn-navy);
}

.kyn-def .def-desc {
  font-size: 16px;
  line-height: 150%;
}

.kyn-def .def-tech-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: 10px;
}

.kyn-def .def-tech-info-item {
  padding: 0 18px;
  border-left: 1px solid #b9c4cc;
}

.kyn-def .def-tech-info-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.kyn-def .def-tech-info-item h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- applications ---------- */
.kyn-def .def-app {
  padding: 50px 0 40px;
  background: #fff;
}

.kyn-def .def-app-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: center;
}

.kyn-def .def-app-content h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
}

.kyn-def .def-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.kyn-def .def-app-cards {
  display: flex;
  align-items: stretch;
}

.kyn-def .def-app-card {
  position: relative;
  flex: 1;
  height: 240px;
  overflow: hidden;
  margin-left: -28px;
  clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

.kyn-def .def-app-card:first-child {
  margin-left: 0;
}

.kyn-def .def-app-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyn-def .def-app-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 20px 14px 38px;
  color: #fff;
  font-size: 15px;
  background: rgba(0, 54, 92, 0.88);
}

/* ---------- why ---------- */
.kyn-def .def-why {
  padding: 34px 0;
}

.kyn-def .def-why-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.kyn-def .def-why-title {
  flex: 0 0 230px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 120%;
}

.kyn-def .def-why-items {
  flex: 1;
  display: flex;
}

.kyn-def .def-why-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.kyn-def .def-why-icon {
  width: 38px;
  height: 38px;
  display: block;
}

.kyn-def .def-why-icon img,
.kyn-def .def-why-icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyn-def .def-why-label {
  font-size: 15px;
  line-height: 130%;
}

.kyn-def .def-why-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border: 2px solid #fff;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 125%;
  max-width: 260px;
}

.kyn-def .def-why-cta:hover {
  background: #fff;
  color: var(--kyn-navy);
}

.kyn-def .def-why-cta:hover svg {
  fill: var(--kyn-navy);
}

/* ---------- responsive ---------- */
@media screen and (max-width: 1100px) {
  .kyn-def .def-app-inner {
    grid-template-columns: 1fr;
  }

  .kyn-def .def-why-inner {
    flex-wrap: wrap;
  }

  .kyn-def .def-why-items {
    flex: 1 1 100%;
    order: 3;
  }
}

@media screen and (max-width: 991px) {
  /* Header */
  .defense-header-inner {
    min-height: 60px;
  }

  .defense-logo::after {
    display: none;
  }

  .defense-logo img {
    height: 45px;
  }

  .defense-logo,
  .defense-toggle {
    position: relative;
    z-index: 1001;
  }

  .defense-toggle {
    display: block;
  }

  .defense-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 100px 24px 40px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  .defense-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .defense-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 30px;
  }

  .defense-menu a {
    font-size: 16px;
  }

  .defense-menu li:last-child a {
    font-size: 16px;
  }

  .defense-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .defense-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .defense-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.defense-menu-open {
    overflow: hidden;
  }

  .defense-menu li:last-child a {
    padding: 8px 18px;
  }

  /* body */
  .kyn-def .def-banner-inner {
    padding: 40px 20px;
  }

  .kyn-def h1,
  .kyn-def .h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .kyn-def .def-banner {
    background-position: 70% center;
    min-height: unset;
  }

  .kyn-def .def-banner-sub {
    padding-left: 10px;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .kyn-def .def-banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 54, 92, 0.9) 0%,
      rgba(0, 54, 92, 0.55) 100%
    );
  }

  .kyn-def .def-tech-info {
    gap: 20px;
  }

  .kyn-def .def-tech-info-item {
    padding: 0;
    border: none;
  }

  .kyn-def .def-banner-logo {
    position: static;
    width: 150px;
    margin-top: 20px;
  }

  .kyn-def .def-tech-inner {
    grid-template-columns: 1fr;
  }

  .kyn-def .def-tech-content {
    border-left: 0;
    padding-left: 0;
  }

  .kyn-def .def-app-cards {
    flex-direction: column;
    gap: 14px;
  }

  .kyn-def .def-app-card {
    margin-left: 0;
    clip-path: none;
    height: 220px;
  }

  .kyn-def .def-app-caption {
    padding-left: 20px;
  }

  .kyn-def .def-why-items {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .kyn-def .def-why-item {
    flex: 1 1 45%;
  }

  .kyn-def .def-why-item:nth-child(odd) {
    border-left: 0;
  }

  .kyn-def .def-why-cta {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    padding: 10px;
  }
}

@media screen and (max-width: 767px) {
  .admin-bar .defense-header {
    top: 46px;
  }
}
