/* ═══════════════════════════════════════════
   PULSE NOC — Marketing Site
   Dark Theme: #080c10 bg · #00e676 accent
   Fonts: Space Grotesk · JetBrains Mono
═══════════════════════════════════════════ */

:root {
  --void: #080c10;
  --card: #0d1520;
  --card2: #111f2e;
  --border: rgba(0, 230, 118, .12);
  --green: #00e676;
  --green2: #00c853;
  --cyan: #00e5ff;
  --purple: #7c3aed;
  --amber: #ffab00;
  --red: #ff1744;
  --text: #e8f5e9;
  --muted: #546e64;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(0,230,118,.3); border-radius: 3px; }

/* ════════════════════════════════
   NAV
════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(8, 12, 16, .8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(8, 12, 16, .95);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,230,118,.25));
}
.logo-img-sm { height: 17px; }
.logo-noc {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--green);
  border: 1px solid var(--border);
  background: rgba(0,230,118,.06);
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.4;
}
.nav-logo .logo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 10px var(--green); }
  50%      { box-shadow: 0 0 22px var(--green), 0 0 40px rgba(0,230,118,.3); }
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn-green {
  background: var(--green);
  color: #081210;
  box-shadow: 0 0 20px rgba(0,230,118,.25);
}
.btn-green:hover {
  background: var(--green2);
  box-shadow: 0 0 32px rgba(0,230,118,.45);
  transform: translateY(-1px);
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,230,118,.05);
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: .08em;
  margin-bottom: 32px;
  position: relative;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 24px;
  position: relative;
}
.hero h1 .accent { color: var(--green); }
.hero h1 .dim { color: var(--muted); }

.hero-sub {
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto 44px;
  position: relative;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .7rem;
  font-family: var(--mono);
  letter-spacing: .12em;
  animation: float-up 2.5s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--green), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes float-up {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(-6px); }
}

/* ════════════════════════════════
   STATS STRIP
════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  background: var(--void);
  padding: 36px 32px;
  text-align: center;
  transition: background .3s;
}
.stat-item:hover { background: var(--card); }
.stat-num {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.04em;
  line-height: 1;
  font-family: var(--mono);
}
.stat-num sup { font-size: 1.2rem; }
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ════════════════════════════════
   SECTION COMMONS
════════════════════════════════ */
section { padding: 100px 48px; }

.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .8;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--green); }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}

.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ════════════════════════════════
   FEATURES GRID
════════════════════════════════ */
.features {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feat-card {
  background: var(--card);
  padding: 36px 32px;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--fc, var(--green));
  opacity: 0;
  transition: opacity .3s;
}
.feat-card:hover { background: var(--card2); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(0,230,118,.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all .3s;
}
.feat-card:hover .feat-icon {
  background: rgba(0,230,118,.14);
  box-shadow: 0 0 20px rgba(0,230,118,.2);
}
.feat-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feat-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ════════════════════════════════
   MODULES
════════════════════════════════ */
.modules { background: var(--void); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.module-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(0,230,118,.08), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.module-card:hover::after { opacity: 1; }

.module-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: rgba(0,230,118,.08);
  border: 1px solid var(--border);
}
.module-ico.cyan { background: rgba(0,229,255,.08); border-color: rgba(0,229,255,.15); }
.module-ico.purple { background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.2); }
.module-ico.amber { background: rgba(255,171,0,.08); border-color: rgba(255,171,0,.15); }
.module-ico.red { background: rgba(255,23,68,.08); border-color: rgba(255,23,68,.15); }

.module-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.module-body p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.module-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mtag {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,230,118,.03);
}

/* ════════════════════════════════
   TERMINAL SECTION
════════════════════════════════ */
.terminal-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.terminal-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 0;
}
.terminal-text { }
.terminal-text .section-title { margin-bottom: 20px; }
.terminal-text .section-sub { margin-bottom: 32px; }

.term-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.term-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--muted);
}
.term-list li::before {
  content: '▸';
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.term-list li strong { color: var(--text); }

.terminal-box {
  background: #040810;
  border: 1px solid rgba(0,230,118,.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 80px rgba(0,230,118,.04);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,230,118,.04);
  border-bottom: 1px solid rgba(0,230,118,.1);
}
.term-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c840; }
.term-title {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: .06em;
}
.term-body {
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 2;
  color: var(--muted);
  min-height: 260px;
}
.term-line { display: block; }
.term-prompt { color: var(--green); }
.term-cmd { color: var(--text); }
.term-out { color: var(--muted); }
.term-ok { color: var(--green); }
.term-warn { color: var(--amber); }
.term-err { color: var(--red); }
.term-cursor {
  display: inline-block;
  width: 7px; height: 1.1em;
  background: var(--green);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ════════════════════════════════
   TOPOLOGY PREVIEW
════════════════════════════════ */
.topo-section { background: var(--void); }
.topo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 0;
}
.topo-canvas-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
#topo-canvas { display: block; width: 100%; height: 320px; }

/* ════════════════════════════════
   CTA
════════════════════════════════ */
.cta-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(0,230,118,.07) 0%, transparent 65%), var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-section .section-title { margin-bottom: 20px; }
.cta-section .section-sub { margin: 0 auto 40px; }
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--green); }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a { color: var(--muted); font-size: .85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  color: var(--muted);
  font-size: .8rem;
  font-family: var(--mono);
}

/* ════════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  section { padding: 72px 24px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: 1fr; }
  .terminal-wrap { grid-template-columns: 1fr; }
  .topo-inner { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
