:root {
  --header-height: 120px;
  --logo-height: 49px;
  --section-v-pad: 70px;
  --bg: #021a2b;
  --bg-soft: #052138;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.8);
  --surface: #08263f;
  --line: #1b4665;
  --accent: #00839b;
  --accent-soft: #0a3c57;
  --warn: #d85a4b;
  --warn-soft: #4b2622;
  --shadow: 0 16px 30px rgba(2, 20, 33, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  display: none;
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  background: #0f3c5d;
  top: -80px;
  left: -110px;
}

.bg-shape-2 {
  width: 380px;
  height: 380px;
  background: #0d5f7f;
  right: -120px;
  bottom: -120px;
}

.page-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 12px 40px;
  animation: fade-in 420ms ease-out;
}

@media (min-width: 576px) {
  .page-shell {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .page-shell {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .page-shell {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .page-shell {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .page-shell {
    max-width: 1320px;
  }
}

.site-brand {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  width: auto;
  height: var(--logo-height);
  max-width: min(320px, 78vw);
  display: block;
}

.hero {
  padding: var(--section-v-pad) 0;
}

.hero h1 {
  margin: 8px 0 14px;
  font-family: "Saira", "Roboto", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.1;
}

.kicker {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.intro {
  max-width: 100%;
  color: var(--ink-soft);
  margin: 0;
}

.panel {
  margin-top: 28px;
  width: 100%;
  background: color-mix(in srgb, var(--surface) 94%, #031b2d 6%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 8px;
}

.panel-head h2 {
  margin: 0;
  font-family: "Saira", "Roboto", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.subscribe-inline-wrap {
  margin-top: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.subscribe-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.subscribe-inline-btn {
  border: 1px solid rgba(87, 208, 228, 0.55);
  border-radius: 999px;
  background: transparent;
  color: #9fe7f4;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  cursor: pointer;
}

.subscribe-inline-btn:hover,
.subscribe-inline-btn:focus-visible {
  color: #d5f6fc;
  border-color: #8de4f2;
  background: rgba(12, 59, 86, 0.5);
}

.rss-inline-btn {
  text-decoration: none;
}

.subscribe-inline-feedback {
  margin: 0;
  font-size: 0.84rem;
}

.subscribe-modal {
  width: min(460px, 92vw);
  border: 0;
  padding: 0;
  background: transparent;
}

.subscribe-modal::backdrop {
  background: rgba(2, 7, 15, 0.68);
  backdrop-filter: blur(3px);
}

.subscribe-card {
  background: #0b2a43;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.subscribe-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.subscribe-modal-text {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.subscribe-form {
  padding: 0;
}

.subscribe-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.subscribe-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.subscribe-input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 33, 52, 0.9);
  color: var(--ink);
  font-size: 0.95rem;
  padding: 10px 12px;
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.subscribe-input:focus-visible {
  outline: 2px solid #57d0e4;
  outline-offset: 1px;
}

.subscribe-btn {
  border: 1px solid #2f738b;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  cursor: pointer;
}

.subscribe-btn:hover,
.subscribe-btn:focus-visible {
  background: #0a98b2;
}

.subscribe-feedback {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.subscribe-feedback-success {
  color: #b8f3da;
}

.subscribe-feedback-error {
  color: #ffb8af;
}

.vuln-list {
  margin: 0;
  padding: 12px 24px 18px;
  list-style: none;
}

.product-group + .product-group {
  margin-top: 8px;
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px 2px;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
}

.product-code {
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 500;
}

.vuln-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 90%, #041e33 10%);
  margin: 10px 0;
  overflow: hidden;
  animation: reveal-up 400ms ease-out;
  animation-delay: var(--delay, 0ms);
  animation-fill-mode: both;
}

.vuln-btn {
  display: flex;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.vuln-btn:hover,
.vuln-btn:focus-visible {
  background: #0f324c;
}

.vuln-main {
  min-width: 0;
}

.vuln-title {
  margin: 0;
  font-size: 1rem;
}

.vuln-meta {
  margin-top: 6px;
  color: #d0dded;
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 0.76rem;
  font-family: "Roboto", "Segoe UI", sans-serif;
  border: 1px solid #344966;
}

.badge-critical {
  background: var(--warn-soft);
  color: #ffb8af;
  border-color: #7b3430;
}

.badge-high {
  background: #4f3b1e;
  color: #ffd7a2;
  border-color: #876338;
}

.badge-medium {
  background: #2f4720;
  color: #bfeba2;
  border-color: #4f7140;
}

.badge-low {
  background: var(--accent-soft);
  color: #bdebf5;
  border-color: #2f738b;
}

.vuln-modal {
  width: min(760px, 92vw);
  border: 0;
  padding: 0;
  background: transparent;
}

.vuln-modal::backdrop {
  background: rgba(2, 7, 15, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  background: #0b2a43;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.close-btn {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--accent);
  color: var(--ink);
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  padding: 7px 12px;
  cursor: pointer;
  float: right;
}

.modal-cve {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.modal-card h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--warn-soft);
  color: #ffc6bf;
}

.chip-alt {
  background: #0f3a5a;
  color: #c7e9f8;
  border-color: #2d6a88;
}

.modal-summary {
  color: #d8e4f3;
}

.modal-card h4 {
  margin: 18px 0 8px;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.detail-list li {
  margin: 6px 0;
}

.meta-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.meta-row {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 32, 51, 0.6);
}

.meta-row dt {
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-row dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.download-title {
  margin: 12px 0 6px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-item,
.download-empty {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(18, 33, 53, 0.7);
  padding: 10px 12px;
}

.download-item + .download-item,
.download-empty + .download-item,
.download-item + .download-empty {
  margin-top: 8px;
}

.download-link {
  color: #57d0e4;
  text-decoration: none;
  font-weight: 500;
}

.download-link:hover,
.download-link:focus-visible {
  text-decoration: underline;
}

.download-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.download-empty {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.ifam-footer {
  margin-top: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.ifam-footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  padding: 28px clamp(28px, 5vw, 120px);
}

.ifam-footer-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.ifam-footer-logo {
  width: auto;
  height: 46px;
  display: block;
}

.ifam-footer-col h3 {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Work Sans", "Roboto", sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.ifam-footer-col p {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.ifam-footer-company {
  margin-bottom: 8px;
}

.ifam-footer-company strong {
  color: #fff;
  font-family: "Saira", "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
}

.ifam-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ifam-footer-col li + li {
  margin-top: 8px;
}

.ifam-footer-col a,
.ifam-footer-social a {
  color: #fff;
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}

.ifam-footer-col a:hover,
.ifam-footer-col a:focus-visible,
.ifam-footer-social a:hover,
.ifam-footer-social a:focus-visible {
  color: #cde8ef;
  text-decoration: underline;
}

.ifam-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.ifam-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(28px, 5vw, 120px) 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ifam-footer-bottom p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.ifam-footer-top-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--accent);
  font-family: "Work Sans", "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.ifam-footer-top-link:hover,
.ifam-footer-top-link:focus-visible {
  text-decoration: underline;
  color: #7ad8e7;
}

/* Keep all text readable on dark surfaces regardless of browser default element colors. */
.hero,
.hero h1,
.hero p,
.panel,
.panel h2,
.vuln-btn,
.vuln-title,
.product-title,
.modal-card,
.modal-card h3,
.modal-card h4,
.detail-list li {
  color: var(--ink) !important;
}

.intro,
.meta,
.vuln-meta,
.product-code,
.modal-cve,
.modal-summary {
  color: var(--ink-soft) !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 84px;
    --logo-height: 36px;
    --section-v-pad: 34px;
  }

  .page-shell {
    padding: 0 14px 28px;
  }

  .panel-head {
    padding: 16px 14px 8px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .subscribe-row {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-input {
    min-width: 0;
    width: 100%;
  }

  .subscribe-modal {
    width: min(460px, 96vw);
  }

  .subscribe-card {
    padding: 14px;
  }

  .vuln-list {
    padding: 8px 10px 14px;
  }

  .product-head {
    padding: 12px 14px 2px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .product-title {
    font-size: 0.98rem;
  }

  .vuln-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .vuln-meta {
    font-size: 0.8rem;
    word-break: break-word;
  }

  .close-btn {
    float: none;
    margin-bottom: 10px;
  }

  .vuln-modal {
    width: min(760px, 96vw);
  }

  .modal-card {
    padding: 16px;
  }

  .ifam-footer-main,
  .ifam-footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ifam-footer-logo {
    height: 40px;
  }

  .ifam-footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ifam-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
