/* ===========================
   DESIGN TOKENS
   =========================== */
:root {
  color-scheme: dark;
  --bg: #05070a;
  --bg-soft: #090d13;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.095);
  --text: #f7f9fc;
  --muted: #8a95a6;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #42f5d7;
  --accent-2: #5aa7ff;
  --warning: #facc15;
  --danger: #ff4d6d;
  --glow-teal: rgba(66, 245, 215, 0.35);
  --glow-blue: rgba(90, 167, 255, 0.3);
  --nav-height: 64px;
  --container: min(1080px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
}

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: transform 60ms linear;
  pointer-events: none;
}

/* ===========================
   BODY & BACKGROUNDS
   =========================== */
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(66, 245, 215, 0.08), transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(90, 167, 255, 0.07), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.04), transparent 50%);
  animation: bg-shift 16s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(12deg) brightness(1.03); }
  100% { filter: hue-rotate(-8deg) brightness(0.98); }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, black, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 70%);
}

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   NAVBAR
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: var(--container);
  margin: 12px auto 0;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 400ms ease, border-color 400ms ease;
}

.nav.scrolled {
  border-color: rgba(66, 245, 215, 0.14);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon svg {
  filter: drop-shadow(0 0 8px rgba(66, 245, 215, 0.25));
}

.shield-check {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  animation: check-draw 1.2s ease 0.8s forwards;
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.shield-orbit {
  animation: orbit-spin 14s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.logo-scan-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: logo-scan 3s ease-in-out infinite;
}

@keyframes logo-scan {
  0%   { transform: translateY(4px); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(32px); opacity: 0; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 800;
  font-size: 0.98rem;
}

.brand-text small {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.nav-menu a {
  position: relative;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  transition: color 200ms ease, background 200ms ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-menu a.active {
  color: var(--accent);
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.nav-cta:hover {
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ===========================
   HAMBURGER MENU
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: transform 350ms ease, opacity 250ms ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   LAYOUT
   =========================== */
main,
footer {
  width: var(--container);
  margin: 0 auto;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

h3, .h3-style {
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.text-muted {
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-copy,
.section-head > p,
.card p,
.roadmap-item p,
.project-card p,
.company p,
.contact p {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===========================
   SHIMMER TEXT
   =========================== */
.shimmer-text {
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 40%, var(--accent) 50%, var(--text) 60%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===========================
   TYPEWRITER CURSOR
   =========================== */
.cursor {
  display: inline-block;
  font-weight: 300;
  -webkit-text-fill-color: var(--accent);
  animation: blink-cursor 0.75s step-end infinite;
  margin-left: 2px;
}

.cursor.done {
  animation: blink-cursor 0.75s step-end 3;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ===========================
   BUTTONS
   =========================== */
.actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 300ms ease;
}

.primary::before,
.primary-pph::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btn-shimmer 4s ease-in-out infinite;
}

@keyframes btn-shimmer {
  0%, 70% { left: -100%; }
  100%    { left: 200%; }
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020408;
}

.primary:hover {
  box-shadow: 0 0 20px var(--glow-teal), 0 0 40px rgba(90, 167, 255, 0.15);
}

.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(66, 245, 215, 0.3);
}

/* ===========================
   CARDS & PANELS
   =========================== */
.card,
.roadmap-item,
.project-card,
.facts,
.process article,
.metrics article,
.security-console {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 400ms ease;
}

.card:hover,
.roadmap-item:hover,
.project-card:hover,
.process article:hover,
.metrics article:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 245, 215, 0.35);
  box-shadow:
    0 0 16px rgba(66, 245, 215, 0.08),
    0 0 32px rgba(66, 245, 215, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* Card inner glow */
.card::before,
.roadmap-item::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(66, 245, 215, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  border-radius: inherit;
}

.card:hover::before,
.roadmap-item:hover::before,
.project-card:hover::before {
  opacity: 1;
}

/* ===========================
   HERO — MINIMALIST
   =========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 100px);
  padding: 80px 0 48px;
}

.hero .eyebrow {
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-copy {
  max-width: 480px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero .actions {
  justify-content: center;
}

/* ===========================
   PAGE HEADER — INNER PAGES
   =========================== */
.page-header {
  padding: 100px 0 48px;
  text-align: center;
}

.page-header h1 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .text-muted {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

/* ===========================
   MARQUEE STRIP
   =========================== */
.strip-wrapper {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  margin-bottom: 2px;
}

.strip-wrapper::before,
.strip-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.strip-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.strip-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.strip-track {
  display: flex;
  animation: marquee 24s linear infinite;
  width: max-content;
}

.strip-track p {
  display: flex;
  min-width: 180px;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  border-right: 1px solid var(--line);
  transition: color 200ms ease;
}

.strip-track p:hover {
  color: var(--accent);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 28px;
}

/* ===========================
   PREVIEW GRID (HOME)
   =========================== */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 48px 0;
}

.preview-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
  position: relative;
  overflow: hidden;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 245, 215, 0.3);
  box-shadow: 0 0 20px rgba(66, 245, 215, 0.06);
}

.preview-card .card-num {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.preview-card h3,
.preview-card .h3-style {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.preview-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.preview-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: gap 200ms ease;
}

.preview-card:hover .card-link {
  gap: 10px;
}

/* ===========================
   STATS ROW
   =========================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 0 48px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  text-align: center;
  transition: border-color 300ms ease;
}

.stat-card:hover {
  border-color: rgba(66, 245, 215, 0.25);
}

.stat-card .stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.5;
}

/* ===========================
   SERVICE CARDS GRID
   =========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card .card-num {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* ===========================
   SECURITY CONSOLE
   =========================== */
.security-console {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(5, 7, 10, 0.92);
  border: 1px solid rgba(66, 245, 215, 0.12);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(66, 245, 215, 0.04), 0 16px 48px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.security-console::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(180deg, rgba(66, 245, 215, 0.015) 0 1px, transparent 1px 4px);
  pointer-events: none;
  z-index: 0;
}

.security-console::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(66, 245, 215, 0.04), transparent);
  transform: translateX(-100%);
  animation: panel-sweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.security-console > * {
  position: relative;
  z-index: 1;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.console-dots {
  display: flex;
  gap: 5px;
}

.console-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.console-dots span:nth-child(1) { background: var(--danger); }
.console-dots span:nth-child(2) { background: var(--warning); }
.console-dots span:nth-child(3) { background: var(--accent); }

.console-title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.03em;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.pulse-live {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(66, 245, 215, 0.6);
  animation: pulse-live-ring 2s infinite;
}

@keyframes pulse-live-ring {
  0%   { box-shadow: 0 0 0 0 rgba(66, 245, 215, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(66, 245, 215, 0); }
  100% { box-shadow: 0 0 0 0 rgba(66, 245, 215, 0); }
}

.threat-feed {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  max-height: 140px;
  overflow: hidden;
}

.threat-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.68rem;
  font-family: 'Courier New', Courier, monospace;
  opacity: 0;
  transform: translateY(6px);
  animation: feed-in 400ms ease forwards;
}

.threat-entry:nth-child(1) { animation-delay: 200ms; }
.threat-entry:nth-child(2) { animation-delay: 400ms; }
.threat-entry:nth-child(3) { animation-delay: 600ms; }
.threat-entry:nth-child(4) { animation-delay: 800ms; }
.threat-entry:nth-child(5) { animation-delay: 1000ms; }

@keyframes feed-in {
  to { opacity: 1; transform: translateY(0); }
}

.threat-time {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  flex-shrink: 0;
}

.threat-tag {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  text-transform: uppercase;
}

.threat-tag.blocked { background: rgba(255, 77, 109, 0.12); color: var(--danger); border: 1px solid rgba(255, 77, 109, 0.25); }
.threat-tag.warn    { background: rgba(250, 204, 21, 0.1); color: var(--warning); border: 1px solid rgba(250, 204, 21, 0.2); }
.threat-tag.safe    { background: rgba(66, 245, 215, 0.08); color: var(--accent); border: 1px solid rgba(66, 245, 215, 0.2); }

.threat-msg {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Radar */
.radar-section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  align-items: center;
}

.radar {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(66, 245, 215, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(66, 245, 215, 0.08); }
.ring-1 { width: 90%; height: 90%; }
.ring-2 { width: 60%; height: 60%; }
.ring-3 { width: 30%; height: 30%; }

.radar-sweep {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  left: 50%;
  transform-origin: bottom left;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(66, 245, 215, 0.15) 35deg, transparent 50deg);
  border-radius: 50% 50% 0 0;
  animation: radar-rotate 3s linear infinite;
}

@keyframes radar-rotate { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 6px rgba(255, 77, 109, 0.7);
  animation: blip-fade 3s ease-in-out infinite;
}

.blip-1 { top: 22%; left: 30%; animation-delay: 0s; }
.blip-2 { top: 60%; right: 22%; animation-delay: 1s; }
.blip-3 { bottom: 28%; left: 22%; animation-delay: 2s; }

@keyframes blip-fade {
  0%, 30% { opacity: 0; transform: scale(0); }
  40%     { opacity: 1; transform: scale(1.3); }
  60%     { opacity: 1; transform: scale(1); }
  100%    { opacity: 0; transform: scale(0); }
}

.radar-core {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.9);
  border: 1px solid rgba(66, 245, 215, 0.3);
  box-shadow: 0 0 16px rgba(66, 245, 215, 0.12);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(66, 245, 215, 0.12); }
  50%      { box-shadow: 0 0 24px rgba(66, 245, 215, 0.25); }
}

.radar-stats { display: flex; flex-direction: column; gap: 8px; }
.radar-stat  { display: flex; flex-direction: column; gap: 2px; }

.stat-value {
  display: block;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stat-bar { height: 2px; background: rgba(255, 255, 255, 0.06); border-radius: 2px; overflow: hidden; }
.stat-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: fill-bar 1.5s ease 1.2s forwards;
}

@keyframes fill-bar { to { width: var(--fill); } }

.console-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.status-dot { width: 4px; height: 4px; border-radius: 50%; }
.status-dot.green { background: var(--accent); box-shadow: 0 0 4px rgba(66, 245, 215, 0.4); }
.status-dot.amber { background: var(--warning); box-shadow: 0 0 4px rgba(250, 204, 21, 0.4); }

/* ===========================
   CARD ICONS
   =========================== */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(66, 245, 215, 0.08);
  border: 1px solid rgba(66, 245, 215, 0.15);
  color: var(--accent);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 20px rgba(66, 245, 215, 0.15);
}

.card-icon--danger {
  background: rgba(255, 77, 109, 0.08);
  border-color: rgba(255, 77, 109, 0.15);
  color: var(--danger);
}

.card:hover .card-icon--danger {
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.15);
}

.card-icon--blue {
  background: rgba(90, 167, 255, 0.08);
  border-color: rgba(90, 167, 255, 0.15);
  color: var(--accent-2);
}

.card:hover .card-icon--blue {
  box-shadow: 0 0 20px rgba(90, 167, 255, 0.15);
}

/* ===========================
   SOC DASHBOARD — FULL WIDTH
   =========================== */
.soc-dashboard {
  border: 1px solid rgba(66, 245, 215, 0.12);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.94);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(66, 245, 215, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.5);
  margin-top: 32px;
  position: relative;
}

.soc-dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(66, 245, 215, 0.012) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

.soc-dashboard > * {
  position: relative;
  z-index: 1;
}

.soc-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.soc-title {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.02em;
}

.soc-body {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  min-height: 360px;
}

/* --- NETWORK MAP --- */
.soc-network {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.soc-network-title,
.soc-feed-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.network-viz {
  position: relative;
  width: 100%;
  height: 200px;
  background:
    radial-gradient(circle at 50% 50%, rgba(66, 245, 215, 0.04), transparent 60%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.attack-line {
  stroke: var(--danger);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  opacity: 0.5;
  animation: dash-flow 1.5s linear infinite;
}

.al-1 { animation-delay: 0s; }
.al-2 { animation-delay: 0.3s; }
.al-3 { animation-delay: 0.6s; }

.safe-line {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.3;
  animation: dash-flow-safe 2s linear infinite;
}

@keyframes dash-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes dash-flow-safe {
  to { stroke-dashoffset: -20; }
}

.net-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}

.net-server {
  width: 44px;
  height: 44px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 7, 10, 0.9);
  border: 1.5px solid rgba(66, 245, 215, 0.4);
  box-shadow: 0 0 24px rgba(66, 245, 215, 0.15);
  animation: server-pulse 3s ease-in-out infinite;
}

@keyframes server-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(66, 245, 215, 0.15); }
  50% { box-shadow: 0 0 36px rgba(66, 245, 215, 0.3), 0 0 60px rgba(66, 245, 215, 0.08); }
}

.net-attacker {
  width: 26px;
  height: 26px;
  background: rgba(255, 77, 109, 0.12);
  border: 1px solid rgba(255, 77, 109, 0.35);
  color: var(--danger);
  font-size: 0.65rem;
  animation: attacker-blink 2s ease-in-out infinite;
}

.att-1 { top: 8%; left: 12%; animation-delay: 0s; }
.att-2 { top: 10%; right: 10%; animation-delay: 0.6s; }
.att-3 { bottom: 10%; left: 8%; animation-delay: 1.2s; }

@keyframes attacker-blink {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.net-safe {
  width: 22px;
  height: 22px;
  background: rgba(66, 245, 215, 0.08);
  border: 1px solid rgba(66, 245, 215, 0.25);
  color: var(--accent);
  font-size: 0.55rem;
  font-weight: 800;
}

.safe-1 { bottom: 15%; right: 10%; }
.safe-2 { bottom: 3%; left: 45%; }

.net-block {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 900;
  z-index: 3;
  animation: block-pop 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.5);
}

.block-1 { top: 25%; left: 33%; animation-delay: 0.2s; }
.block-2 { top: 28%; right: 30%; animation-delay: 0.8s; }
.block-3 { bottom: 30%; left: 30%; animation-delay: 1.4s; }

@keyframes block-pop {
  0%, 40% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.3); }
  60% { transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.8); }
}

/* --- FEED --- */
.soc-feed {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  overflow: hidden;
}

.soc-feed .threat-feed {
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  border: none;
}

.soc-feed .threat-feed::-webkit-scrollbar {
  width: 3px;
}

.soc-feed .threat-feed::-webkit-scrollbar-track {
  background: transparent;
}

.soc-feed .threat-feed::-webkit-scrollbar-thumb {
  background: rgba(66, 245, 215, 0.15);
  border-radius: 3px;
}

.soc-feed .threat-entry:nth-child(6) { animation-delay: 1200ms; }
.soc-feed .threat-entry:nth-child(7) { animation-delay: 1400ms; }
.soc-feed .threat-entry:nth-child(8) { animation-delay: 1600ms; }

/* --- STATS --- */
.soc-stats {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soc-stat-card {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 300ms ease, background 300ms ease;
}

.soc-stat-card:hover {
  border-color: rgba(66, 245, 215, 0.15);
  background: rgba(66, 245, 215, 0.02);
}

.soc-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.soc-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.soc-stat-badge {
  font-size: 0.52rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.soc-stat-badge.blocked {
  background: rgba(255, 77, 109, 0.1);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 109, 0.2);
}

.soc-stat-badge.safe {
  background: rgba(66, 245, 215, 0.08);
  color: var(--accent);
  border: 1px solid rgba(66, 245, 215, 0.18);
}

.soc-stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.soc-stat-unit {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

.soc-stat-bar {
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.soc-stat-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: fill-bar 1.8s ease 0.8s forwards;
}

/* ===========================
   VULNERABILITY SCANNER
   =========================== */
.vuln-scanner {
  border: 1px solid rgba(66, 245, 215, 0.1);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.95);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(66, 245, 215, 0.03), 0 16px 60px rgba(0, 0, 0, 0.4);
  max-width: 800px;
  margin: 24px auto 0;
}

.vuln-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.vuln-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.vuln-status {
  font-size: 0.6rem;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.vuln-body {
  padding: 16px 18px;
  max-height: 380px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}

.vuln-body::-webkit-scrollbar {
  width: 3px;
}

.vuln-body::-webkit-scrollbar-thumb {
  background: rgba(66, 245, 215, 0.12);
  border-radius: 3px;
}

.vuln-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: vuln-reveal 400ms ease forwards;
  animation-delay: calc(var(--delay) * 300ms + 500ms);
  color: rgba(255, 255, 255, 0.65);
}

@keyframes vuln-reveal {
  to { opacity: 1; transform: translateX(0); }
}

.vuln-prefix {
  color: var(--accent);
  font-weight: 700;
}

.vuln-cmd {
  color: var(--text);
  font-weight: 500;
}

.vuln-ts {
  color: rgba(255, 255, 255, 0.25);
}

.vuln-safe {
  color: var(--accent);
  font-weight: 700;
}

.vuln-warn {
  color: var(--warning);
  font-weight: 700;
}

.vuln-danger {
  color: var(--danger);
  font-weight: 700;
}

.vuln-blink {
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--accent);
}

/* ===========================
   PROCESS SECTION
   =========================== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.process span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* ===========================
   ROADMAP
   =========================== */
.roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.roadmap-item {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 10px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.06);
  color: var(--warning);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  border-color: rgba(66, 245, 215, 0.25);
  background: rgba(66, 245, 215, 0.06);
  color: var(--accent);
  gap: 5px;
}

/* ===========================
   METRICS
   =========================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 0;
}

.metrics article { padding: 24px; }
.metrics span {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: var(--accent);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.metrics p {
  max-width: 280px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===========================
   PROJECT CARD
   =========================== */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

/* ===========================
   COMPANY / CONTACT
   =========================== */
.company,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.company {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.contact {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-radius: 10px;
}

.facts div {
  padding: 18px;
  background: var(--bg-soft);
  transition: background 300ms ease;
}

.facts div:hover { background: rgba(66, 245, 215, 0.03); }

dt, .facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  word-break: break-word;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

footer a {
  color: var(--accent);
  transition: opacity 200ms ease;
}

footer a:hover { opacity: 0.8; }

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.staggered > * {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   MAGNETIC
   =========================== */
.magnetic {
  transition: transform 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================
   DDOS SIMULATION CONTAINER
   =========================== */
.ddos-sim-container {
  border: 1px solid rgba(66, 245, 215, 0.1);
  border-radius: 16px;
  background: rgba(5, 7, 10, 0.95);
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(66, 245, 215, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.ddos-sim-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(66, 245, 215, 0.008) 0 1px, transparent 1px 3px);
  pointer-events: none;
  z-index: 0;
}

.ddos-sim-container > * {
  position: relative;
  z-index: 1;
}

/* Header */
.ddos-sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.ddos-sim-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--danger);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.ddos-sim-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.04em;
}

.ddos-sim-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Body */
.ddos-sim-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 380px;
}

/* Sidebar */
.ddos-sim-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bench-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.bench-tab:first-child {
  background: rgba(66, 245, 215, 0.04);
  border-color: rgba(66, 245, 215, 0.15);
  border-left: 2px solid var(--accent);
}

.bench-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.bench-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  flex-shrink: 0;
}

.bench-icon svg {
  width: 18px;
  height: 18px;
}

.bench-icon--active {
  background: rgba(66, 245, 215, 0.08);
  border-color: rgba(66, 245, 215, 0.2);
  color: var(--accent);
}

.bench-tab strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.bench-tab:first-child strong {
  color: var(--accent);
}

.bench-tab span {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.3;
}

.bench-verified {
  margin-top: auto;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.25);
  padding: 8px 0 0;
}

/* Canvas */
.ddos-sim-canvas-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(66, 245, 215, 0.03), transparent 50%),
    radial-gradient(ellipse at 20% 50%, rgba(255, 77, 109, 0.02), transparent 50%);
}

#ddosCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Server rack */
.server-rack {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  background: rgba(66, 245, 215, 0.04);
  border: 1px solid rgba(66, 245, 215, 0.15);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(66, 245, 215, 0.06);
}

.rack-unit {
  width: 100%;
  height: 18px;
  border-radius: 3px;
  background: rgba(66, 245, 215, 0.06);
  border: 1px solid rgba(66, 245, 215, 0.12);
  position: relative;
  overflow: hidden;
}

.rack-unit::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  animation: rack-blink 2s ease-in-out infinite;
}

.rack-unit:nth-child(2)::before { animation-delay: 0.3s; }
.rack-unit:nth-child(3)::before { animation-delay: 0.6s; }
.rack-unit:nth-child(4)::before { animation-delay: 0.9s; }
.rack-unit:nth-child(5)::before { animation-delay: 1.2s; }
.rack-unit:nth-child(6)::before { animation-delay: 1.5s; }
.rack-unit:nth-child(7)::before { animation-delay: 1.8s; }
.rack-unit:nth-child(8)::before { animation-delay: 2.1s; }

.rack-unit::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(66, 245, 215, 0.3);
}

@keyframes rack-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* Stats bar */
.ddos-sim-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ddos-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.ddos-stat:last-child {
  border-right: none;
}

.ddos-stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ddos-stat-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--danger);
  letter-spacing: -0.02em;
}

.ddos-stat-safe {
  color: var(--accent);
}

/* ===========================
   KEYFRAMES
   =========================== */
@keyframes panel-sweep {
  0%, 55% { transform: translateX(-100%); }
  100%    { transform: translateX(100%); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    background: rgba(5, 7, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms ease, visibility 400ms ease;
  }

  .nav-menu a {
    color: var(--muted);
    font-size: 1.4rem;
  }

  .nav-menu.open { opacity: 1; visibility: visible; }

  .nav-menu.open a {
    animation: menu-in 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(16px);
  }

  .nav-menu.open a:nth-child(1) { animation-delay: 60ms; }
  .nav-menu.open a:nth-child(2) { animation-delay: 120ms; }
  .nav-menu.open a:nth-child(3) { animation-delay: 180ms; }
  .nav-menu.open a:nth-child(4) { animation-delay: 240ms; }

  @keyframes menu-in { to { opacity: 1; transform: translateY(0); } }

  .nav-cta { display: none; }

  .preview-grid,
  .stats-row,
  .grid,
  .roadmap,
  .process,
  .metrics {
    grid-template-columns: 1fr;
  }

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

  .project-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .radar-section {
    grid-template-columns: 100px 1fr;
    gap: 8px;
  }

  .radar { width: 90px; height: 90px; }

  .soc-body {
    grid-template-columns: 1fr 200px;
  }

  .soc-network {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ddos-sim-sidebar {
    display: none;
  }

  .ddos-sim-body {
    grid-template-columns: 1fr;
  }

  .ddos-sim-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  :root { --container: min(100% - 24px, 1080px); }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.6rem; }

  .hero { min-height: calc(100vh - 80px); padding: 60px 0 40px; }
  .page-header { padding: 80px 0 36px; }
  .section { padding: 48px 0; }

  .radar-section { grid-template-columns: 1fr; justify-items: center; }
  .radar { width: 100px; height: 100px; }
  .radar-stats { width: 100%; }

  .console-status { flex-wrap: wrap; gap: 6px; }
  .threat-time { display: none; }

  .soc-body {
    grid-template-columns: 1fr;
  }

  .soc-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .soc-stat-card {
    flex: 1;
    min-width: 120px;
  }

  .soc-feed .threat-feed {
    max-height: 200px;
  }

  .vuln-scanner {
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 0;
  }

  .vuln-body {
    font-size: 0.6rem;
  }

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

  .ddos-sim-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ddos-sim-header {
    flex-wrap: wrap;
    gap: 6px;
  }

  .ddos-sim-label {
    display: none;
  }

  .server-rack {
    width: 28px;
    padding: 6px 4px;
    right: 6px;
    gap: 3px;
  }

  .rack-unit {
    height: 12px;
  }

  .rack-unit::before {
    width: 3px;
    height: 3px;
    left: 3px;
  }

  .rack-unit::after {
    width: 2px;
    height: 2px;
    right: 3px;
  }

  footer { flex-direction: column; text-align: center; }
}

/* ===========================
   PAGE LOADER
   =========================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 700ms ease 200ms, visibility 700ms ease 200ms;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: loader-appear 400ms ease forwards;
}

@keyframes loader-appear {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.loader-wordmark {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-bar-wrap {
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  animation: loader-fill 900ms cubic-bezier(0.4,0,0.2,1) 100ms forwards;
}

@keyframes loader-fill { to { width: 100%; } }

/* ===========================
   GLITCH ANIMATIONS
   =========================== */
@keyframes glitch-clip-1 {
  0%, 82%, 100% { clip-path: none; transform: none; }
  84% { clip-path: inset(18% 0 62% 0); transform: translate(-4px, 0); }
  86% { clip-path: inset(72% 0 4%  0); transform: translate( 4px, 0); }
  88% { clip-path: inset(42% 0 38% 0); transform: translate(-2px, 0); }
  90% { clip-path: none; transform: none; }
}

@keyframes glitch-clip-2 {
  0%, 82%, 100% { clip-path: none; transform: none; opacity: 0; }
  84% { clip-path: inset(52% 0 28% 0); transform: translate(4px, 0);  opacity: 0.7; }
  86% { clip-path: inset(8%  0 82% 0); transform: translate(-4px, 0); opacity: 0.5; }
  88% { clip-path: none; opacity: 0; }
}

/* ===========================
   BUTTON RIPPLE
   =========================== */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: ripple-burst 600ms linear forwards;
  pointer-events: none;
}

@keyframes ripple-burst {
  to { transform: scale(4.5); opacity: 0; }
}

/* ===========================
   STAT / METRIC NUMBER GLOW
   =========================== */
.stat-num,
.soc-stat-number,
.metrics span {
  text-shadow:
    0 0 18px rgba(66,245,215,0.35),
    0 0 36px rgba(66,245,215,0.15);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar          { width: 5px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: rgba(66,245,215,0.14); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(66,245,215,0.28); }

/* ===========================
   HERO AMBIENT GLOW
   =========================== */
.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66,245,215,0.055) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  animation: hero-ambient 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

@keyframes hero-ambient {
  0%, 100% { transform: translate(-50%,-55%) scale(1);    opacity: 0.6; }
  50%       { transform: translate(-50%,-55%) scale(1.18); opacity: 1; }
}

/* ===========================
   TERMINAL SCAN LINE
   =========================== */
.soc-dashboard,
.vuln-scanner,
.ddos-sim-container {
  overflow: hidden;
}

.soc-dashboard::after,
.vuln-scanner::after,
.ddos-sim-container::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(66,245,215,0.35) 50%, transparent 100%);
  top: 0;
  animation: term-scan 5s linear infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes term-scan {
  0%   { top: 0%;   opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===========================
   CARD MOUSE-TRACKED SPOTLIGHT
   =========================== */
.card::before,
.roadmap-item::before,
.preview-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(66,245,215,0.07),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.card:hover::before,
.roadmap-item:hover::before,
.preview-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.card > *,
.roadmap-item > *,
.preview-card > *,
.project-card > * {
  position: relative;
  z-index: 1;
}

/* ===========================
   NAV ACTIVE GLOW
   =========================== */
.nav-menu a.active {
  text-shadow: 0 0 14px rgba(66,245,215,0.55);
}

/* ===========================
   EYEBROW SHIMMER TEXT
   =========================== */
.eyebrow {
  background: linear-gradient(90deg,
    var(--accent) 0%,
    rgba(66,245,215,0.55) 50%,
    var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: eyebrow-shimmer 4s linear infinite;
}

@keyframes eyebrow-shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* ===========================
   SECTION HEAD UNDERLINE
   =========================== */
.section-head h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 12px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(66,245,215,0.4);
}

/* ===========================
   STAGGER CHILDREN WITH SCALE
   =========================== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0ms);
}

.stagger-children.staggered > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===========================
   FLOATING CARD ANIMATION
   =========================== */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ===========================
   ANIMATED GRADIENT BORDER ON HOVER
   =========================== */
@property --ba {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes ba-spin { to { --ba: 360deg; } }

.card,
.roadmap-item,
.preview-card {
  --ba: 0deg;
}

.card:hover,
.roadmap-item:hover,
.preview-card:hover {
  animation: ba-spin 3s linear infinite;
}

/* ===========================
   DDOS CANVAS BACKGROUND
   =========================== */
.ddos-sim-canvas-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,77,109,0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(66,245,215,0.04) 0%, transparent 55%);
}



/* ===========================
   PC PART HUNT SPECIFIC STYLES
   =========================== */
:root {
  --pph-accent: #cfff04; /* PC Part Hunt lime green */
}

.card-pph {
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 400ms ease;
}

.card-pph:hover {
  border-color: rgba(207, 255, 4, 0.35);
  box-shadow: 
    0 0 16px rgba(207, 255, 4, 0.08), 
    0 0 32px rgba(207, 255, 4, 0.04), 
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.card-pph::before {
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(207, 255, 4, 0.06), transparent 60%);
}

.primary-pph {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pph-accent), #a3cc00);
  color: #020408;
}

.primary-pph:hover {
  box-shadow: 0 0 20px rgba(207, 255, 4, 0.35), 0 0 40px rgba(207, 255, 4, 0.15);
}

.badge-pph {
  color: var(--pph-accent);
  background: rgba(207, 255, 4, 0.08);
  border: 1px solid rgba(207, 255, 4, 0.15);
}

.badge-pph .pulse-live {
  background: var(--pph-accent);
  box-shadow: 0 0 8px var(--pph-accent);
}
