/* KYUVOR SECURITY COMPLIANCE LLC — SECURITY OPS VAULT theme */
/* Palette: vault-corridor #13151A body, vault-teal #5FA89B accent, */
/* rack-panel #1B2027, cage-deep #232B33, lanyard-white #F2F4F5, */
/* clip-grey #C5C9CD, audit-green #6FA287, breach-red #B84A4A, */
/* foam-blue #4E7FB0, hairline #2C343D */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #13151A;
  color: #C5C9CD;
  font-size: 16px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: #5FA89B;
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #7FB0A8;
}

h1, h2, h3, h4 {
  color: #F2F4F5;
  font-weight: 700;
  line-height: 1.2;
}

/* ============ MATRIX SCROLL FALLBACK ============ */
.fade-up {
  opacity: 1;
  transform: none;
}

/* reveal animation active only when a modern JS browser has added the js class */
html.js .fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ============ BADGE HEADER ============ */
.matrix-badgehead {
  background-color: #1B2027;
  border-bottom: 1px solid #2C343D;
  padding: 18px 0 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.matrix-head {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-glyph {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: #5FA89B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #13151A;
  box-shadow: 0 0 18px rgba(95, 168, 155, 0.25);
}

.brand-name {
  color: #F2F4F5;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.brand-tag {
  color: #5FA89B;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

/* Badge card nav */
.badge-nav {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 84px;
  height: 62px;
  border-radius: 10px;
  background-color: #232B33;
  border: 1px solid #2C343D;
  color: #C5C9CD;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
  position: relative;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.badge-card::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 2px solid #2C343D;
  position: absolute;
  top: 6px;
  left: 50%;
  margin-left: -5px;
  box-sizing: content-box;
}

.badge-photo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: #4E7FB0;
}

.badge-card:hover,
.badge-card.active {
  border-color: #5FA89B;
  color: #F2F4F5;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

/* ============ MATRIX HERO CELL ============ */
.matrix-hero {
  background-color: #232B33;
  border-bottom: 2px solid #5FA89B;
}

.matrix-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  align-items: center;
}

.matrix-hero h1 {
  font-size: 52px;
  color: #F2F4F5;
  letter-spacing: -1px;
  margin: 16px 0 20px;
  line-height: 1.08;
}

.matrix-hero h1 .teal {
  color: #5FA89B;
}

.eyebrow {
  display: inline-block;
  background-color: #5FA89B;
  color: #13151A;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: 6px;
}

.matrix-hero p.lede {
  color: #C5C9CD;
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 640px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-teal {
  background-color: #5FA89B;
  color: #13151A;
}

.btn-teal:hover {
  background-color: #7FB0A8;
  color: #13151A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(95, 168, 155, 0.35);
}

.btn-ghost-red {
  border: 2px solid #B84A4A;
  color: #B84A4A;
}

.btn-ghost-red:hover {
  background-color: #B84A4A;
  color: #F2F4F5;
  transform: translateY(-2px);
}

/* Badge reader illustration */
.matrix-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cam-dome {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1B2027, #13151A 70%);
  border: 2px solid #2C343D;
  position: relative;
  margin-right: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cam-lens {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #1B2027;
  border: 3px solid #2C343D;
  position: absolute;
  top: 22px;
}

.cam-stand {
  width: 8px;
  height: 28px;
  background-color: #2C343D;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.badge-reader {
  width: 210px;
  background-color: #1B2027;
  border: 1px solid #2C343D;
  border-radius: 14px;
  padding: 22px;
  position: relative;
  text-align: center;
}

.reader-lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #6FA287;
  margin: 0 auto 14px;
  animation: lampblink 1.6s infinite;
  box-shadow: 0 0 12px rgba(111, 162, 135, 0.6);
}

@keyframes lampblink {
  0%, 100% { opacity: 1; }
  50% { filter: saturate(0.27); }
}

.reader-slot {
  width: 100%;
  height: 96px;
  background-color: #0b0d10;
  border: 1px solid #2C343D;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inserted-card {
  width: 120px;
  height: 52px;
  background-color: #5FA89B;
  border-radius: 6px;
  position: absolute;
  bottom: 28px;
  border: 1px solid #2C343D;
}

.inserted-card .chip {
  width: 16px;
  height: 22px;
  background-color: #7FB0A8;
  border-radius: 3px;
  margin: 14px auto 0;
}

.readout {
  font-family: "Courier New", monospace;
  color: #6FA287;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
}

/* ============ CONTROL GRID (2-col) ============ */
.control-grid-wrap {
  background-color: #232B33;
  padding: 76px 24px 60px;
}

.section-kicker {
  text-align: center;
  color: #5FA89B;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-heading {
  text-align: center;
  font-size: 40px;
  max-width: 760px;
  margin: 0 auto 16px;
}

.section-sub {
  text-align: center;
  color: #C5C9CD;
  max-width: 720px;
  margin: 0 auto 46px;
}

.matrix-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.control-cell {
  border: 1px solid #2C343D;
  border-radius: 14px;
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
}

.control-cell.rack {
  background-color: #1B2027;
}

.control-cell.cage {
  background-color: #232B33;
}

.cell-lamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #13151A;
}

.cell-lamp.pass {
  background-color: #6FA287;
  box-shadow: 0 0 12px rgba(111, 162, 135, 0.4);
}

.cell-lamp.fail {
  background-color: #B84A4A;
  box-shadow: 0 0 12px rgba(184, 74, 74, 0.4);
}

.control-cell h3 {
  font-size: 24px;
  margin-bottom: 16px;
  padding-right: 36px;
}

.control-cell p {
  color: #C5C9CD;
  margin-bottom: 12px;
}

/* ============ AUDIT LOG STRIP ============ */
.matrix-log {
  background-color: #1B2027;
  border-top: 1px solid #2C343D;
  border-bottom: 1px solid #5FA89B;
  padding: 44px 24px;
}

.matrix-log-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.log-title {
  font-family: "Courier New", monospace;
  color: #F2F4F5;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.log-row {
  font-family: "Courier New", monospace;
  color: #C5C9CD;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed #2C343D;
}

.log-row .time {
  color: #5FA89B;
  font-weight: 700;
}

.log-row .event {
  color: #6FA287;
  font-weight: 700;
}

.log-cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: #5FA89B;
  vertical-align: middle;
  margin-left: 8px;
  animation: cursorblink 1s infinite;
}

@keyframes cursorblink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============ CONTACT SECTION (matrix emphasis) ============ */
.matrix-contact {
  background-color: #13151A;
  padding: 80px 24px;
}

.matrix-contact-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: start;
}

.matrix-contact h2 {
  font-size: 34px;
  margin-bottom: 20px;
}

.matrix-contact p {
  color: #C5C9CD;
  margin-bottom: 16px;
}

.contact-block {
  background-color: #1B2027;
  border: 1px solid #2C343D;
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 16px;
}

.contact-block h4 {
  color: #5FA89B;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.contact-block p {
  margin-bottom: 2px;
}

.contact-block a {
  color: #4E7FB0;
  font-weight: 600;
}

.contact-block a:hover {
  color: #5FA89B;
}

/* basic form for the homepage CTA uses the shared .legal style via a light form */
.home-form .form-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.home-form .form-field {
  flex: 1 1 260px;
  background-color: #1B2027;
  border: 1px solid #2C343D;
  color: #F2F4F5;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
}

.home-form .form-field::placeholder {
  color: #8a9199;
}

.home-form .btn-teal {
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* ============ EVIDENCE FOOTER ============ */
.matrix-foot {
  background-color: #232B33;
  border-top: 2px solid #5FA89B;
  padding: 44px 24px 26px;
  position: relative;
  z-index: 1;
}

.matrix-foot-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}

.matrix-foot-col {
  position: relative;
  z-index: 1;
}

.matrix-foot .brand-name {
  font-size: 18px;
}

.matrix-foot .brand-tag {
  font-size: 11px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
}

.foot-links a {
  color: #C5C9CD;
  font-size: 15px;
}

.foot-links a:hover {
  color: #5FA89B;
}

.matrix-foot-col .foot-cont {
  color: #C5C9CD;
  font-size: 15px;
  line-height: 1.9;
}

.matrix-foot-col .foot-cont a {
  color: #4E7FB0;
  font-weight: 600;
}

.matrix-foot .foot-copy {
  border-top: 1px solid #2C343D;
  margin-top: 26px;
  padding-top: 18px;
  text-align: center;
  width: 100%;
  color: #8a9199;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.shield-mark {
  color: #5FA89B;
  font-size: 22px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .matrix-hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }

  .matrix-hero h1 {
    font-size: 40px;
  }

  .matrix-contact-inner,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .badge-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    padding-top: 16px;
  }

  .badge-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle button {
    background-color: #232B33;
    border: 1px solid #5FA89B;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 16px;
    color: #5FA89B;
    cursor: pointer;
  }

  .badge-card {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-align: left;
  }

  .badge-card::before {
    position: static;
    margin: 0;
  }

  .matrix-foot-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .matrix-hero h1 {
    font-size: 34px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
