:root {
  --bg-0: #060d1f;
  --bg-1: #0c1737;
  --panel: rgba(15, 30, 68, 0.82);
  --line: #355da7;
  --text: #ebf4ff;
  --muted: #9bb4da;
  --cyan: #20c7ff;
  --blue: #1e4bd8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(900px 500px at 92% -15%, rgba(37, 95, 222, 0.42) 0%, transparent 60%),
    radial-gradient(820px 460px at -15% 20%, rgba(34, 203, 255, 0.25) 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(45, 76, 137, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 76, 137, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
}

.glow {
  position: fixed;
  pointer-events: none;
  filter: blur(90px);
}

.glow-a {
  width: 320px;
  height: 320px;
  left: -100px;
  top: 15%;
  background: rgba(20, 201, 255, 0.34);
}

.glow-b {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: 6%;
  background: rgba(44, 79, 222, 0.4);
}

.shell {
  width: min(1160px, calc(100% - 38px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nav {
  margin-top: 10px;
  padding: 8px 0 10px;
  border-bottom: 1px solid rgba(66, 98, 162, 0.6);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(72px, 9vw, 110px);
  max-width: min(320px, 52vw);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(78, 121, 198, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 25, 60, 0.92) 0%, rgba(10, 22, 52, 0.88) 100%);
  padding: 6px;
  max-width: max-content;
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(19, 73, 168, 0.28), inset 0 0 0 1px rgba(33, 199, 255, 0.18);
}

.nav-links a {
  text-decoration: none;
  color: #d3e6ff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: 0.18s ease;
  position: relative;
}

.nav-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 8px;
  background: rgba(32, 199, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(32, 199, 255, 0.16);
}

.nav-links a:nth-child(1)::before {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.nav-links a:nth-child(2)::before {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
}

.nav-links a:nth-child(3)::before {
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.22);
}

.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.hero-copy,
.hero-panel,
.section {
  border: 1px solid rgba(71, 107, 175, 0.72);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(6px);
}

.hero-copy,
.hero-panel {
  padding: 24px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.73rem;
  font-weight: 800;
  color: #83dfff;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(90deg, #8ee6ff 0%, #4f9eff 45%, #7dd7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(96deg, var(--blue) 0%, var(--cyan) 100%);
  box-shadow: 0 12px 24px rgba(29, 75, 216, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.btn-ghost {
  color: #d8e9ff;
  border-color: rgba(106, 145, 220, 0.85);
  background: rgba(12, 30, 70, 0.82);
}

.nav-links a:hover {
  color: #ffffff;
  border-color: rgba(86, 150, 255, 0.72);
  background: linear-gradient(95deg, rgba(30, 75, 216, 0.35) 0%, rgba(32, 199, 255, 0.22) 100%);
  box-shadow: 0 0 0 1px rgba(32, 199, 255, 0.18), 0 8px 16px rgba(17, 73, 188, 0.28);
  transform: translateY(-1px);
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(45, 168, 255, 0.95);
  outline-offset: 2px;
}

.hero-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.attack-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.attack-map-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.attack-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #99e8ff;
  background: rgba(32, 199, 255, 0.14);
  border: 1px solid rgba(32, 199, 255, 0.45);
}

.attack-map {
  position: relative;
  min-height: 240px;
  border: 1px solid rgba(79, 117, 190, 0.8);
  border-radius: 12px;
  background: rgba(10, 24, 57, 0.9);
  overflow: hidden;
  padding: 14px;
}

.attack-map::after,
.services-map::after,
.codeflow-card::after,
.risk-snapshot::after,
.contact-form::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 36%,
    rgba(33, 200, 255, 0.1) 47%,
    rgba(33, 200, 255, 0.24) 50%,
    rgba(33, 200, 255, 0.1) 53%,
    transparent 64%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: scan-sweep 5.2s ease-in-out infinite;
}

.attack-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(69, 102, 168, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(69, 102, 168, 0.2) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.attack-node {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 34, 79, 0.95);
  border: 1px solid rgba(82, 123, 198, 0.72);
  white-space: nowrap;
}

.node-entry {
  top: 16px;
  left: 14px;
  color: #ffbf88;
  border-color: rgba(251, 146, 60, 0.7);
}

.node-foothold {
  top: 68px;
  left: 120px;
  color: #ffe080;
  border-color: rgba(250, 204, 21, 0.65);
}

.node-pivot {
  top: 126px;
  left: 220px;
  color: #8ce5b5;
  border-color: rgba(39, 194, 122, 0.65);
}

.node-priv {
  top: 66px;
  right: 24px;
  color: #99e8ff;
  border-color: rgba(32, 199, 255, 0.65);
}

.node-crown {
  bottom: 20px;
  right: 18px;
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.7);
}

.attack-link {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(32, 199, 255, 0.25) 0%, rgba(32, 199, 255, 0.95) 50%, rgba(32, 199, 255, 0.25) 100%);
  transform-origin: left center;
  animation: pulse-path 1.8s linear infinite;
}

.link-a {
  top: 40px;
  left: 95px;
  width: 98px;
  transform: rotate(24deg);
}

.link-b {
  top: 98px;
  left: 185px;
  width: 86px;
  transform: rotate(27deg);
}

.link-c {
  top: 112px;
  left: 286px;
  width: 86px;
  transform: rotate(-23deg);
}

.link-d {
  top: 142px;
  left: 305px;
  width: 98px;
  transform: rotate(33deg);
}

.attack-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.attack-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-entry {
  background: #fb923c;
}

.dot-pivot {
  background: #27c27a;
}

.dot-priv {
  background: #20c7ff;
}

.dot-crown {
  background: #ef4444;
}

.section {
  margin-top: 28px;
  padding: 24px;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(1.48rem, 2.5vw, 2.1rem);
}

.cyber-title {
  position: relative;
  display: inline-block;
  padding-right: 16px;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #e8f4ff 0%, #8fe6ff 42%, #63b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 24px rgba(45, 168, 255, 0.2);
}

.cyber-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: min(240px, 90%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 199, 255, 0.95) 0%, rgba(32, 199, 255, 0.05) 100%);
  box-shadow: 0 0 12px rgba(32, 199, 255, 0.45);
}

.services-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(79, 117, 190, 0.8);
  border-radius: 14px;
  background: rgba(10, 24, 57, 0.88);
  overflow: hidden;
  padding: 14px;
}

.services-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(69, 102, 168, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(69, 102, 168, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.services-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.services-edges line {
  stroke: rgba(33, 199, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 7;
  animation: pulse-path 2s linear infinite;
}

.service-node {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(15, 34, 79, 0.95);
  border: 1px solid rgba(82, 123, 198, 0.72);
  white-space: nowrap;
}

.node-soc {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #8ce5b5;
  border-color: rgba(39, 194, 122, 0.72);
  box-shadow: 0 0 0 6px rgba(39, 194, 122, 0.18);
}

.node-pt {
  top: 9%;
  left: 10%;
  color: #ffbf88;
  border-color: rgba(251, 146, 60, 0.68);
}

.node-va {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  color: #99e8ff;
}

.node-wm {
  top: 9%;
  right: 10%;
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.7);
}

.node-wi {
  top: 37%;
  left: 4%;
  color: #ffe080;
  border-color: rgba(250, 204, 21, 0.67);
}

.node-se {
  top: 37%;
  right: 4%;
  color: #ffbf88;
  border-color: rgba(251, 146, 60, 0.68);
}

.node-rt {
  bottom: 16%;
  left: 10%;
  color: #99e8ff;
}

.node-bas {
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  color: #8ce5b5;
  border-color: rgba(39, 194, 122, 0.72);
}

.node-ca {
  bottom: 16%;
  right: 10%;
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.7);
}

.knox p {
  color: var(--muted);
  margin-top: 0;
}

.knox-top {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 10px;
}

.knox-logo-wrap {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(79, 117, 190, 0.8);
  border-radius: 12px;
  background: rgba(10, 24, 57, 0.9);
  padding: 12px;
}

.knox-logo {
  width: min(430px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(20, 75, 190, 0.35));
}

.codeflow-card {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(79, 117, 190, 0.8);
  border-radius: 12px;
  background: rgba(10, 24, 57, 0.9);
  overflow: hidden;
  padding: 10px;
}

.codeflow-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(69, 102, 168, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(69, 102, 168, 0.2) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.flow-node {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(15, 34, 79, 0.96);
  border: 1px solid rgba(82, 123, 198, 0.72);
  white-space: nowrap;
}

.node-repo {
  top: 14px;
  left: 12px;
  color: #99e8ff;
}

.node-sast {
  top: 62px;
  left: 120px;
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.7);
}

.node-sca {
  top: 62px;
  left: 210px;
  color: #ffbf88;
  border-color: rgba(251, 146, 60, 0.72);
}

.node-iac {
  top: 62px;
  left: 300px;
  color: #ffe080;
  border-color: rgba(250, 204, 21, 0.72);
}

.node-correlate {
  top: 118px;
  left: 170px;
  color: #8ce5b5;
  border-color: rgba(39, 194, 122, 0.72);
}

.node-risk {
  top: 165px;
  left: 125px;
  color: #99e8ff;
}

.node-remediate {
  top: 165px;
  left: 248px;
  color: #8ce5b5;
}

.flow-link {
  position: absolute;
  z-index: 1;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(32, 199, 255, 0.2) 0%, rgba(32, 199, 255, 1) 50%, rgba(32, 199, 255, 0.2) 100%);
  transform-origin: left center;
  animation: pulse-path 1.8s linear infinite;
}

.flow-a {
  top: 38px;
  left: 78px;
  width: 80px;
  transform: rotate(28deg);
}

.flow-b {
  top: 38px;
  left: 130px;
  width: 138px;
  transform: rotate(15deg);
}

.flow-c {
  top: 38px;
  left: 184px;
  width: 178px;
  transform: rotate(8deg);
}

.flow-d {
  top: 95px;
  left: 180px;
  width: 70px;
  transform: rotate(58deg);
}

.flow-e {
  top: 144px;
  left: 200px;
  width: 72px;
  transform: rotate(162deg);
}

.flow-f {
  top: 144px;
  left: 214px;
  width: 100px;
  transform: rotate(24deg);
}

.codechip {
  position: absolute;
  z-index: 3;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(8, 17, 42, 0.96);
  border: 1px solid rgba(82, 123, 198, 0.65);
  color: #d5e8ff;
  white-space: nowrap;
}

.chip-1 {
  top: 16px;
  right: 10px;
  border-color: rgba(239, 68, 68, 0.65);
  color: #ffb0b0;
}

.chip-2 {
  top: 96px;
  right: 10px;
  border-color: rgba(250, 204, 21, 0.65);
  color: #ffe79d;
}

.chip-3 {
  bottom: 10px;
  right: 10px;
  border-color: rgba(39, 194, 122, 0.65);
  color: #a7f0c8;
}

.risk-snapshot {
  margin: 12px 0 14px;
  border: 1px solid rgba(79, 117, 190, 0.8);
  border-radius: 12px;
  background: rgba(10, 24, 57, 0.9);
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.risk-snapshot h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

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

.risk-grid article {
  border: 1px solid rgba(82, 123, 198, 0.72);
  border-radius: 10px;
  background: rgba(13, 31, 74, 0.95);
  padding: 8px 10px;
}

.risk-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 1.28rem;
}

.risk-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.tag.critical {
  color: #ff9d9d;
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.2);
}

.tag.high {
  color: #ffbf88;
  border-color: rgba(251, 146, 60, 0.6);
  background: rgba(251, 146, 60, 0.2);
}

.tag.medium {
  color: #ffe080;
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(250, 204, 21, 0.18);
}

.tag.low {
  color: #8ce5b5;
  border-color: rgba(39, 194, 122, 0.6);
  background: rgba(39, 194, 122, 0.18);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
}

.contact-info {
  border: 1px solid rgba(72, 112, 182, 0.75);
  border-radius: 12px;
  padding: 16px;
  background: rgba(14, 29, 68, 0.92);
}

.contact-info h3 {
  margin-top: 0;
}

.contact-form {
  border: 1px solid rgba(72, 112, 182, 0.75);
  border-radius: 12px;
  padding: 16px;
  background: rgba(14, 29, 68, 0.92);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: #ecf5ff;
  background: rgba(10, 23, 55, 0.95);
  border: 1px solid rgba(85, 129, 206, 0.86);
  border-radius: 10px;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(45, 168, 255, 0.95);
  border-color: transparent;
}

.risk-snapshot > *,
.contact-form > * {
  position: relative;
  z-index: 1;
}

.footer {
  padding: 24px 0 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes pulse-path {
  0% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
  }
}

@keyframes scan-sweep {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .knox-top {
    grid-template-columns: 1fr;
  }

  .codeflow-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .codeflow-grid,
  .flow-link {
    display: none;
  }

  .flow-node,
  .codechip {
    position: static;
    white-space: normal;
  }

  .services-map {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .services-grid-bg,
  .services-edges {
    display: none;
  }

  .services-map .service-node {
    position: static;
    transform: none !important;
    white-space: normal;
  }

  .attack-map {
    min-height: 210px;
  }

  .attack-node {
    font-size: 0.66rem;
    padding: 4px 7px;
  }

  .node-entry {
    top: 14px;
    left: 12px;
  }

  .node-foothold {
    top: 58px;
    left: 84px;
  }

  .node-pivot {
    top: 106px;
    left: 156px;
  }

  .node-priv {
    top: 56px;
    right: 10px;
  }

  .node-crown {
    bottom: 12px;
    right: 10px;
  }

  .link-a {
    top: 33px;
    left: 74px;
    width: 76px;
  }

  .link-b {
    top: 82px;
    left: 145px;
    width: 64px;
  }

  .link-c {
    top: 95px;
    left: 220px;
    width: 62px;
  }

  .link-d {
    top: 118px;
    left: 240px;
    width: 80px;
  }

  .risk-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    max-width: none;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}
