/* ========================================
   TOKENS
======================================== */

:root {
  --bg: #07111f;
  --surface: #0b1422;
  --surface-2: #0e1a2b;
  --border: #1f3048;
  --text: #edf5ff;
  --muted: #8190a6;
  --accent: #55e1bd;
  --accent-2: #4ea8ff;
  --accent-soft: rgba(85, 225, 189, 0.1);
  --danger: #ff647c;
  --warn: #ffb65c;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: Consolas, ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

/* ========================================
   SHARED
======================================== */

.landing-hero .eyebrow,
.landing-section .eyebrow,
.landing-cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
}

.landing-hero .eyebrow.pill {
  padding: 8px 14px;
  border: 1px solid rgba(85, 225, 189, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

#heroStatus.flicker {
  animation: flicker 0.6s steps(2) 2;
}

@keyframes flicker {
  50% {
    opacity: 0.3;
  }
}

.live-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(85, 225, 189, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(85, 225, 189, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(85, 225, 189, 0);
  }
}

/* Buttons */
.landing-hero .btn,
.landing-cta .btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.landing-hero .btn.primary,
.landing-cta .btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d;
  box-shadow: 0 10px 30px -10px rgba(85, 225, 189, 0.6);
}

/* light sweep = "scanning" the button */
.landing-hero .btn.primary::after,
.landing-cta .btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.landing-hero .btn.primary:hover::after,
.landing-cta .btn.primary:hover::after {
  transform: translateX(120%);
}

.landing-hero .btn.primary:hover,
.landing-cta .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(85, 225, 189, 0.8);
}

.landing-hero .btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.landing-hero .btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Scroll reveal (only hides content once landing.js has loaded) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* "Discovered" cards: a scan line passes over them as they appear */
.discover {
  position: relative;
  overflow: hidden;
}

.discover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(85, 225, 189, 0.16) 85%,
    rgba(85, 225, 189, 0.55) 100%
  );
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.js-ready .discover.visible::after {
  animation: discoverSweep 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes discoverSweep {
  0% {
    transform: translateY(-110%);
    opacity: 1;
  }
  100% {
    transform: translateY(260%);
    opacity: 0;
  }
}

.card-tag,
.member-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.card-tag {
  margin-bottom: 20px;
}

.tag-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.tag-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 1001;
}

/* ========================================
   NAVBAR
======================================== */

.landing-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  box-sizing: border-box;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition:
    height 0.3s,
    background 0.3s,
    border-color 0.3s;
}

.landing-navbar.scrolled {
  height: 64px;
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo-text span {
  color: var(--accent);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -6px rgba(85, 225, 189, 0.7);
  transition: transform 0.3s var(--ease);
}

.logo-mark svg {
  width: 12px;
  height: 20px;
  fill: #07111d;
}

.nav-logo:hover .logo-mark {
  transform: rotate(-12deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: #9eabc0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:not(.nav-login)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-login {
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111d !important;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 24px -12px rgba(85, 225, 189, 0.8);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

/* light sweep, as on the login button */
.nav-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.nav-login:hover::before {
  transform: translateX(120%);
}

.nav-login:hover {
  box-shadow: 0 14px 30px -12px rgba(85, 225, 189, 0.9);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
======================================== */

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 30px 90px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg);
}

.landing-hero [hidden] {
  display: none !important;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* keeps the trail behind the text readable */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 42% 48% at 50% 52%,
      rgba(7, 17, 31, 0.92),
      rgba(7, 17, 31, 0.55) 60%,
      transparent 85%
    ),
    radial-gradient(
      circle at 50% 45%,
      rgba(85, 225, 189, 0.08),
      transparent 55%
    );
}

.landing-hero-content {
  position: relative;
  max-width: 880px;
  width: 100%;
  z-index: 1;
  will-change: transform;
}

.landing-hero h1 {
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.06;
  margin: 24px 0;
  font-weight: 700;
  letter-spacing: -1.5px;
}

.landing-hero h1 .typed {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent));
  background-size: 200% auto;
  animation: gradShift 6s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caret {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

/* Trace search */
.trace-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 8px 8px 18px;
  background: rgba(11, 20, 34, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.trace-form:focus-within {
  border-color: rgba(85, 225, 189, 0.6);
  box-shadow:
    0 0 0 4px rgba(85, 225, 189, 0.08),
    0 20px 50px -20px rgba(85, 225, 189, 0.45);
}

.trace-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.3s var(--ease);
}

.trace-form:focus-within .trace-icon {
  transform: scale(1.12) rotate(-10deg);
}

.trace-form input {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.trace-form input::placeholder {
  color: #5f6f86;
}

.trace-form .btn {
  flex: none;
  padding: 12px 20px;
}

.trace-form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* scanning border while an investigation runs */
.trace-form::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent)
    no-repeat;
  background-size: 35% 100%;
  opacity: 0;
}

.landing-hero.investigating .trace-form::before {
  opacity: 1;
  animation: borderScan 1.2s linear infinite;
}

@keyframes borderScan {
  from {
    background-position: -60% 0;
  }
  to {
    background-position: 160% 0;
  }
}

.trace-form.shake {
  animation: shake 0.4s;
}

@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-3px);
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 13px;
  color: #5f6f86;
}

.hero-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s;
}

.hero-links a:hover {
  color: var(--accent);
}

/* Investigation panel */
.trace-panel,
.trace-result {
  max-width: 620px;
  margin: 18px auto 0;
  padding: 18px 20px;
  text-align: left;
  background: rgba(11, 20, 34, 0.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  animation: panelIn 0.45s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.trace-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}

.trace-seeker {
  flex: none;
  width: 22px;
  height: 22px;
  animation: seek 1.6s linear infinite;
}

.trace-seeker svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes seek {
  from {
    transform: rotate(0) translateX(3px) rotate(0);
  }
  to {
    transform: rotate(360deg) translateX(3px) rotate(-360deg);
  }
}

.trace-progress {
  height: 3px;
  margin: 14px 0;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.trace-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px var(--accent);
  transition: width 0.9s var(--ease);
}

.trace-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.trace-log li {
  animation: panelIn 0.3s var(--ease);
}

.trace-log li::before {
  content: "›";
  display: inline-block;
  width: 16px;
  color: var(--accent);
}

.trace-log li.done {
  color: #b8c4d6;
}

.trace-log li.done::before {
  content: "✓";
}

/* Discovery */
.trace-result {
  max-width: 720px;
  padding: 22px;
  border-color: rgba(85, 225, 189, 0.35);
  box-shadow: 0 30px 60px -30px rgba(85, 225, 189, 0.35);
}

.trace-result .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
}

.trace-result h3 {
  margin: 8px 0 6px;
  font-size: 22px;
}

#traceTarget {
  color: var(--accent);
  word-break: break-all;
}

.trace-result p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #b4c2d6;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.source-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #2a4060;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  animation: found 0.55s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes found {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    border-color: var(--accent);
    box-shadow: 0 0 24px rgba(85, 225, 189, 0.35);
  }
}

.source-card .lock {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.source-card .shackle {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: lockClose 0.4s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + 0.6s);
}

@keyframes lockClose {
  from {
    transform: translateY(-3px);
  }
}

.source-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.source-card small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a3b2c7;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-actions .btn {
  padding: 12px 20px;
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.hero-stat span {
  font-size: 13px;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  z-index: 1;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ========================================
   SCROLL TRAIL (footprints between sections)
======================================== */

.trail-root {
  position: relative;
  overflow: hidden;
}

.trail-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.trail-root > section {
  position: relative;
  z-index: 1;
}

.trail-base {
  fill: none;
  stroke: rgba(85, 225, 189, 0.12);
  stroke-width: 1.5;
  stroke-dasharray: 2 8;
}

.trail-progress {
  fill: none;
  stroke: url(#trailGrad);
  stroke-width: 2;
  opacity: 0.55;
}

.trail-foot {
  fill: rgba(85, 225, 189, 0.2);
  stroke: var(--accent);
  stroke-width: 0.9;
  opacity: 0;
  transition: opacity 0.6s;
}

.trail-foot.on {
  opacity: 0.25;
}
.trail-foot.fresh {
  opacity: 0.9;
}

.trail-head {
  transition: opacity 0.3s;
}

.trail-head circle {
  fill: var(--accent);
}

.trail-head .head-ring,
.cp.active .cp-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPing 1.8s ease-out infinite;
}

.trail-head .head-ring {
  fill: none;
  stroke: var(--accent);
}

@keyframes ringPing {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.cp-ring {
  fill: none;
  stroke: rgba(85, 225, 189, 0.5);
  opacity: 0;
}

.cp.active .cp-ring {
  opacity: 1;
}

.cp-dot {
  fill: var(--bg);
  stroke: rgba(85, 225, 189, 0.4);
  stroke-width: 1.5;
  transition: fill 0.4s;
}

.cp.active .cp-dot {
  fill: var(--accent);
}

.cp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  fill: var(--muted);
  opacity: 0.45;
  transition:
    opacity 0.4s,
    fill 0.4s;
}

.cp.active .cp-label {
  fill: var(--accent);
  opacity: 1;
}

/* ========================================
   GENERAL SECTIONS
======================================== */

.landing-section {
  padding: 100px 40px;
  max-width: 1250px;
  margin: auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0;
  letter-spacing: -0.5px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

/* Cursor spotlight cards */
.glow-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--x, 50%) var(--y, 50%),
    rgba(85, 225, 189, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.glow-card:hover::before {
  opacity: 1;
}

/* ========================================
   HOW IT WORKS
======================================== */

.steps {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 10px 20px;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(85, 225, 189, 0.4);
  background: var(--surface);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.step-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step:hover .step-icon {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(85, 225, 189, 0.35);
}

.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
}

.step h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.step p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.step-line {
  position: relative;
  flex: 0 0 80px;
  height: 2px;
  margin-top: 34px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(85, 225, 189, 0.5),
    transparent
  );
}

/* data pulse travelling between steps */
.step-line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  opacity: 0;
}

.steps.active .step-line::after {
  animation: travelX 2.4s var(--ease) infinite;
}

.steps.active .step-line:last-of-type::after {
  animation-delay: 1.2s;
}

@keyframes travelX {
  0% {
    left: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

@keyframes travelY {
  0% {
    top: 0;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 8px);
    opacity: 0;
  }
}

/* ========================================
   THREAT MAP
======================================== */

.threat-map {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 35% 50%,
      rgba(85, 225, 189, 0.06),
      transparent 60%
    ),
    #08111e;
}

.cybermap-wrap {
  position: relative;
  min-height: 480px;
  background: #000;
}

.cybermap-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-credit {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  background: rgba(8, 17, 30, 0.8);
  text-decoration: none;
}

.map-credit:hover {
  color: var(--accent);
}

.map-status {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
}

.threat-feed {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: rgba(11, 20, 34, 0.6);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.feed-note {
  margin: 0;
  padding: 10px 20px;
  font-size: 0.78rem;
  color: var(--muted, #9aa8bd);
  border-bottom: 1px solid var(--border);
}

.threat-meter {
  --level: var(--accent);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.threat-meter[data-level="elevated"] {
  --level: var(--warn);
}
.threat-meter[data-level="high"] {
  --level: var(--danger);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.meter-top strong {
  font-family: var(--font-mono);
  letter-spacing: 1px;
  color: var(--level);
  transition: color 0.4s;
}

.meter-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-bar i {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--level);
  box-shadow: 0 0 10px var(--level);
  transition:
    width 0.8s var(--ease),
    background 0.4s;
}

.threat-meter[data-level="high"] .meter-bar i {
  animation: alarm 1s ease-in-out infinite;
}

@keyframes alarm {
  50% {
    opacity: 0.55;
  }
}

.threat-feed ul {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  overflow: hidden;
}

.threat-feed li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  animation: feedIn 0.5s var(--ease);
}

.threat-feed li:first-child {
  background: rgba(255, 255, 255, 0.03);
}

.threat-feed li small {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 2px;
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
}

.sev {
  flex: 0 0 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  display: inline-block;
}

.sev.high {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}
.sev.med {
  background: var(--warn);
  box-shadow: 0 0 8px var(--warn);
}
.sev.low {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.feed-legend {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.feed-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-legend .sev {
  margin-top: 0;
}

/* ========================================
   OBJECTIVES & SERVICES
======================================== */

.objective-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.objective-card,
.service-card {
  padding: 28px 30px 32px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s,
    opacity 0.7s var(--ease);
}

.objective-card:hover,
.service-card:hover,
.service-card.open {
  transform: translateY(-6px);
  border-color: rgba(85, 225, 189, 0.6);
  box-shadow: 0 20px 40px -20px rgba(85, 225, 189, 0.35);
}

.objective-number {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.objective-card h3,
.service-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.objective-card p,
.service-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.service-card {
  cursor: pointer;
  outline: none;
}

.service-card:focus-visible {
  border-color: var(--accent);
}

.service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 18px;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 24px rgba(85, 225, 189, 0.3);
}

.service-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  transition:
    max-height 0.4s var(--ease),
    opacity 0.3s,
    margin 0.3s;
}

.service-card.open .service-more {
  max-height: 120px;
  opacity: 0.9;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

/* ========================================
   TEAM (dossier cards)
======================================== */

.members-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.member-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 26px;
  text-align: center;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    opacity 0.7s var(--ease);
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 225, 189, 0.6);
}

.member-meta {
  margin-bottom: 18px;
  font-size: 9.5px;
  letter-spacing: 1px;
}

.member-img {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent));
  transition: box-shadow 0.3s;
}

.member-card:hover .member-img {
  box-shadow: 0 0 28px rgba(85, 225, 189, 0.4);
}

/* scan line over the photo on hover */
.member-img::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(
      180deg,
      transparent 42%,
      rgba(85, 225, 189, 0.55) 50%,
      transparent 58%
    )
    no-repeat;
  background-size: 100% 220%;
  opacity: 0;
  pointer-events: none;
}

.member-card:hover .member-img::after {
  opacity: 1;
  animation: photoScan 1.4s linear infinite;
}

@keyframes photoScan {
  from {
    background-position: 0 100%;
  }
  to {
    background-position: 0 0;
  }
}

.member-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-sizing: border-box;
}

.member-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
}

.role {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  background: var(--accent-soft);
}

.role.supervisor {
  color: var(--accent-2);
  background: rgba(78, 168, 255, 0.12);
}

/* ========================================
   CTA
======================================== */

.landing-cta {
  position: relative;
  text-align: center;
  padding: 110px 30px;
  overflow: hidden;
  background: linear-gradient(120deg, #0b1422, #0e2531);
}

.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(85, 225, 189, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 225, 189, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.cta-inner {
  position: relative;
}

.landing-cta h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  max-width: 700px;
  margin: 14px auto;
}

.landing-cta p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* footprints walking down to the button */
.cta-trail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
}

.cta-trail svg {
  width: 13px;
  height: 21px;
  fill: rgba(85, 225, 189, 0.25);
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.12;
}

.cta-trail svg:nth-child(odd) {
  transform: translateX(-9px) rotate(180deg);
}
.cta-trail svg:nth-child(even) {
  transform: translateX(9px) rotate(180deg) scaleX(-1);
}

.cta-trail.active svg {
  animation: footStep 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

@keyframes footStep {
  0%,
  100% {
    opacity: 0.12;
  }
  15% {
    opacity: 0.95;
  }
  45% {
    opacity: 0.12;
  }
}

/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(85, 225, 189, 0.4);
  background: rgba(11, 20, 34, 0.9);
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top:hover {
  background: var(--accent);
  color: #07111d;
}

/* ========================================
   SHARED LOOK WITH THE LOGIN PAGE
   background network, rotating glow borders, console windows
======================================== */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* how strongly the rotating border shows (0 = plain border) */
@property --glow {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes borderSpin {
  to {
    --spin: 360deg;
  }
}

@keyframes gradShift {
  to {
    background-position: 200% center;
  }
}

/* ---------- page background (sits under everything below the hero) ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 171, 201, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 171, 201, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 75%);
}

.site-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bg-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  animation: orbDrift 18s ease-in-out infinite alternate;
}

.bg-orb.orb-a {
  top: -120px;
  right: 10%;
  background: #1d6f8f;
}

.bg-orb.orb-b {
  bottom: -160px;
  left: 5%;
  background: #1b7a63;
  animation-delay: -9s;
}

@keyframes orbDrift {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

/* ---------- rotating glow border ----------
   The fill is painted in the padding box and the conic gradient in the
   border box, so only the 1px border ring shows the moving light. */

.trace-form,
.trace-panel,
.trace-result,
.threat-map,
.objective-card,
.service-card,
.member-card {
  --fill: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: transparent;
  background:
    var(--fill) padding-box,
    conic-gradient(
        from var(--spin),
        transparent 0 55%,
        rgb(85 225 189 / var(--glow)) 70%,
        rgb(78 168 255 / var(--glow)) 82%,
        transparent 95%
      )
      border-box,
    linear-gradient(var(--border), var(--border)) border-box;
  animation: borderSpin 7s linear infinite;
  transition:
    --glow 0.4s,
    transform 0.3s var(--ease),
    box-shadow 0.3s,
    opacity 0.7s var(--ease);
}

/* always lit */
.trace-form,
.trace-panel,
.trace-result,
.threat-map {
  --glow: 0.9;
}

.trace-form {
  --fill: linear-gradient(#0b1422, #0b1422);
  box-shadow: 0 0 60px -24px rgba(85, 225, 189, 0.45);
}

.trace-panel,
.trace-result {
  --fill: linear-gradient(#08101c, #08101c);
  overflow: hidden;
}

.threat-map {
  --fill: #08111e;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

/* lit (and spinning) only on hover, so idle cards cost no repaints */
.objective-card,
.service-card,
.member-card {
  animation: none;
}

.objective-card:hover,
.service-card:hover,
.service-card.open,
.member-card:hover {
  --glow: 0.95;
  border-color: transparent;
  animation: borderSpin 7s linear infinite;
}

/* trace panels keep their own entrance animation alongside the spin */
.trace-panel,
.trace-result {
  animation:
    panelIn 0.45s var(--ease),
    borderSpin 7s linear infinite;
}

.trace-form.shake {
  animation:
    shake 0.4s,
    borderSpin 7s linear infinite;
}

/* ---------- console window title bar ---------- */

.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -18px -20px 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
}

.trace-result .console-bar {
  margin: -22px -22px 18px;
  color: #a3b2c7;
}

.console-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f3048;
}

.console-bar i:nth-child(1) {
  background: var(--danger);
}
.console-bar i:nth-child(2) {
  background: var(--warn);
}
.console-bar i:nth-child(3) {
  background: var(--accent);
}

.console-bar span {
  margin-left: 10px;
}

/* blinking cursor after the latest log line */
.trace-log li:last-child:not(.done)::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .landing-hero h1 .typed {
    animation: none;
  }

  .trace-form,
  .trace-panel,
  .trace-result,
  .threat-map,
  .objective-card,
  .service-card,
  .member-card {
    animation: none;
  }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .objective-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .threat-map {
    grid-template-columns: 1fr;
  }

  .cybermap-wrap {
    min-height: 360px;
  }

  .threat-feed {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .threat-feed ul {
    max-height: 260px;
  }
}

@media (max-width: 900px) {
  .cp-label {
    display: none;
  }

  .trail-foot.on {
    opacity: 0.15;
  }

  .trail-foot.fresh {
    opacity: 0.6;
  }
}

@media (max-width: 860px) {
  .landing-navbar {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(7, 17, 31, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }

  .nav-links.open {
    transform: none;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links .nav-login {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-line {
    flex: 0 0 40px;
    width: 2px;
    height: 40px;
    margin: 0;
    background: linear-gradient(
      180deg,
      transparent,
      rgba(85, 225, 189, 0.5),
      transparent
    );
  }

  .step-line::after {
    top: 0;
    left: -3px;
  }

  .steps.active .step-line::after {
    animation-name: travelY;
  }
}

@media (max-width: 650px) {
  .landing-section {
    padding: 70px 20px 70px 36px;
  }

  .members-grid,
  .objective-grid,
  .services-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .trace-form {
    flex-wrap: wrap;
    padding: 8px;
  }

  .trace-form .trace-icon {
    margin-left: 8px;
  }

  .trace-form .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat strong {
    font-size: 24px;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }

  .cta-trail svg {
    opacity: 0.5;
  }

  html {
    scroll-behavior: auto;
  }
}
/* ========================================
   BIGGER LIVE THREAT MAP
======================================== */

/* let this section go wider (heading stays centred) */
.threat-map-section {
  max-width: 1375px;
}

/* taller map — the globe inside gets bigger too */
.threat-map {
  min-height: 0;
  align-items: start;
}

.cybermap-wrap {
  min-height: 590px;
}

/* keep the Activity Feed at its original size */
.threat-feed {
  height: 480px;
}

/* move the two labels so they don't cover the map's title and bottom bar */
.map-status {
  top: auto;
  bottom: 18px;
  left: 18px;
}

.map-credit {
  bottom: auto;
  top: 60px;
  right: 18px;
}

/* tablet / small laptop (map stacks above the feed) */
@media (max-width: 1100px) {
  .threat-map {
    align-items: stretch;
  }

  .cybermap-wrap {
    min-height: 450px;
  }

  .threat-feed {
    height: auto;
  }
}

/* phone */
@media (max-width: 650px) {
  .cybermap-wrap {
    min-height: 380px;
  }
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* the WhoLeakMe logo image (round; replaces the old letter / footprint mark) */
img.logo-img,
.login-brand img.logo-mark,
.nav-logo img.logo-mark {
  display: block;
  padding: 0;
  border-radius: 50%;
  background: none;
  object-fit: cover;
  box-shadow: 0 6px 20px -8px rgba(85, 225, 189, 0.6);
}
