:root {
  --ink: #152234;
  --muted: #5d6a78;
  --panel: #ffffff;
  --line: #dbe3ec;
  --soft: #f4f7fa;
  --brand: #174a7c;
  --accent: #13a89e;
  --gold: #f4b740;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(219, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #174a7c, #13a89e);
  color: #ffffff;
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a {
  color: var(--ink);
}

.nav-links .product-link {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
}

.hero {
  display: grid;
  min-height: 560px;
  align-items: center;
  padding: clamp(70px, 10vw, 126px) clamp(20px, 5vw, 64px);
  background:
    linear-gradient(110deg, rgba(21, 34, 52, 0.92), rgba(23, 74, 124, 0.75)),
    radial-gradient(circle at 82% 20%, rgba(19, 168, 158, 0.32), transparent 34%),
    #152234;
  color: #ffffff;
}

.hero.image-hero {
  min-height: 640px;
  background:
    linear-gradient(100deg, rgba(12, 28, 46, 0.92) 0%, rgba(12, 28, 46, 0.72) 45%, rgba(12, 28, 46, 0.18) 100%),
    url("/assets/rd-hero.webp") center / cover no-repeat,
    #152234;
}

.hero-panel {
  max-width: 780px;
}

.hero-inner,
.section-inner,
.page-main {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #95eee5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  color: #1f2d3d;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.button.outline {
  border-color: var(--line);
  color: var(--brand);
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 64px);
}

.section.alt {
  background: var(--soft);
}

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

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.image-card div {
  padding: 20px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.card,
.callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 20px 48px rgba(21, 34, 52, 0.08);
}

.card p,
.callout p {
  color: var(--muted);
}

.metric-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.metric-list li {
  padding: 13px 14px;
  border-left: 4px solid var(--accent);
  background: #ffffff;
  font-weight: 800;
}

.svg-lab {
  overflow: hidden;
  padding: 18px;
  margin: 34px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(21, 34, 52, 0.08);
}

.attack-map {
  display: block;
  min-width: 0;
  width: 100%;
  height: auto;
}

.attack-map .zone {
  fill: #eef7ff;
  stroke: #9cc8e8;
  stroke-width: 2;
  stroke-dasharray: 7 6;
}

.attack-map .node {
  fill: #ffffff;
  stroke: #174a7c;
  stroke-width: 2;
}

.attack-map .asset {
  fill: #f8fbff;
  stroke: #13a89e;
  stroke-width: 2;
}

.attack-map .risk {
  fill: #fff8e8;
  stroke: #f4b740;
  stroke-width: 2;
}

.attack-map .evidence {
  fill: #f8fbff;
  stroke: #13a89e;
  stroke-width: 2;
}

.attack-map text {
  fill: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.attack-map .small {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.attack-map .flow {
  fill: none;
  stroke: #174a7c;
  stroke-width: 2.3;
  marker-end: url(#arrow);
}

.attack-map .evidence-flow {
  fill: none;
  stroke: #9aa8b7;
  stroke-width: 2;
  stroke-dasharray: 6 7;
  marker-end: url(#mutedArrow);
}

.attack-map .evidence-dot {
  fill: #ffffff;
  stroke: #9aa8b7;
  stroke-width: 2;
}

.attack-map .attack-flow {
  fill: none;
  stroke: #d64f38;
  stroke-width: 3;
  stroke-dasharray: 7 8;
  marker-end: url(#attackArrow);
  animation: dashMove 1.2s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -30;
  }
}

.page-main {
  padding: clamp(52px, 7vw, 86px) clamp(20px, 5vw, 64px);
}

.article {
  max-width: 900px;
}

.article p,
.article li {
  color: var(--muted);
}

.article ul {
  padding-left: 1.2rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .grid,
  .resource-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
}
