/* ============================================================
   DeepSec — Cyberpunk / Hacker aesthetic (blue spectrum)
   Primary #0066ff · Bright #00d4ff · Purple #7c4dff · Green #00ff88
   Background #020204
   ============================================================ */

:root {
  --bg: #020204;
  --bg-panel: #05070d;
  --bg-terminal: #04070f;
  --primary: #0066ff;
  --accent: #00d4ff;
  --purple: #7c4dff;
  --green: #00ff88;
  --text: #e8f1ff;
  --muted: #8b9bb8;
  --dim: #55648a;
  --line: rgba(0, 102, 255, 0.22);
  --line-soft: rgba(0, 212, 255, 0.14);
  --glow-blue: rgba(0, 102, 255, 0.45);
  --glow-cyan: rgba(0, 212, 255, 0.4);
  --glow-purple: rgba(124, 77, 255, 0.4);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --topbar-h: 34px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  padding-top: calc(var(--topbar-h) + var(--header-h));
}

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--purple));
  border-radius: 5px;
  border: 2px solid var(--bg);
}

/* ============ Custom Cursor ============ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--glow-cyan), 0 0 20px var(--glow-cyan);
  transition: opacity 0.2s;
}
.cursor-outline {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0.55;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-outline.cursor-hover {
  width: 56px; height: 56px;
  border-color: var(--purple);
  opacity: 0.9;
  box-shadow: 0 0 18px var(--glow-purple);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none; }
}

/* ============ Overlay Effects ============ */
.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px,
    rgba(0, 0, 0, 0.18) 4px
  );
  pointer-events: none;
  z-index: 9990;
}
.vignette {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 9991;
}
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9992;
  animation: noiseShift 0.6s steps(4) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ============ Scroll Progress ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--purple));
  box-shadow: 0 0 12px var(--glow-cyan);
  z-index: 10003;
}

/* ============ WebGL Canvas ============ */
#webglCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

main, .site-footer { position: relative; z-index: 1; }

/* ============ Top Bar (Marquee) ============ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: stretch;
  background: rgba(2, 2, 4, 0.92);
  border-bottom: 1px solid var(--line);
  z-index: 10000;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.top-bar-marquee {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  transition: transform 30s linear;
}
.marquee-track.is-scrolling {
  transform: translateX(-50%);
}
.top-bar-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 26px;
  color: var(--muted);
  text-transform: uppercase;
}
.marquee-item i { color: var(--accent); font-size: 9px; }
.top-bar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-left: 1px solid var(--line);
  color: var(--green);
  background: rgba(0, 255, 136, 0.04);
  text-transform: uppercase;
  flex-shrink: 0;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============ Header / Nav ============ */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 9999;
  background: rgba(2, 2, 4, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(2, 2, 4, 0.92);
}
.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  filter: drop-shadow(0 0 8px var(--glow-blue));
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.text-accent { color: var(--accent); text-shadow: 0 0 14px var(--glow-cyan); }
.title-accent { color: var(--accent); text-shadow: 0 0 22px var(--glow-cyan); }
.title-accent-purple { color: var(--purple); text-shadow: 0 0 22px var(--glow-purple); }

.nav-menu {
  list-style: none;
  margin: 0; padding: 0;
  gap: 30px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width 0.25s ease;
}
.nav-menu a:hover { color: var(--accent); text-shadow: 0 0 12px var(--glow-cyan); }
.nav-menu a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--purple);
  background: transparent;
  border: 1px solid rgba(124, 77, 255, 0.5);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.lang-toggle:hover { background: rgba(124, 77, 255, 0.14); box-shadow: 0 0 14px var(--glow-purple); }
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-github:hover { color: var(--text); text-shadow: 0 0 12px var(--glow-cyan); }
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: box-shadow 0.25s, transform 0.25s;
}
.btn-install:hover { color: #fff; box-shadow: 0 0 24px var(--glow-blue); transform: translateY(-1px); }
.mobile-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
  width: 40px; height: 40px;
  font-size: 16px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px 20px;
  background: rgba(2, 2, 4, 0.97);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-install { color: var(--accent); font-weight: 600; }

/* ============ Buttons ============ */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: box-shadow 0.25s, transform 0.25s;
}
.btn-cyber:hover { color: #fff; box-shadow: 0 0 32px var(--glow-blue), 0 0 60px rgba(0, 102, 255, 0.25); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: all 0.25s;
}
.btn-ghost:hover { color: #fff; background: rgba(0, 212, 255, 0.14); box-shadow: 0 0 24px var(--glow-cyan); }
/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0 110px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
  padding: 7px 14px;
  margin-bottom: 26px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-transform: none;
}
.title-dim { color: var(--text); }
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0.75;
}
.glitch::before {
  color: var(--purple);
  z-index: -1;
  animation: glitchA 3.2s infinite steps(1);
}
.glitch::after {
  color: var(--primary);
  z-index: -2;
  animation: glitchB 2.7s infinite steps(1);
}
@keyframes glitchA {
  0%, 92%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  93% { transform: translate(-3px, 2px); clip-path: inset(10% 0 55% 0); }
  95% { transform: translate(3px, -2px); clip-path: inset(60% 0 8% 0); }
  97% { transform: translate(-2px, 1px); clip-path: inset(30% 0 40% 0); }
}
@keyframes glitchB {
  0%, 90%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  91% { transform: translate(3px, -1px); clip-path: inset(45% 0 30% 0); }
  94% { transform: translate(-3px, 2px); clip-path: inset(5% 0 70% 0); }
  96% { transform: translate(2px, -2px); clip-path: inset(70% 0 5% 0); }
}
.hero-subtitle {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 12px;
}
.hero-slogan {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 34px;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}
.prompt-prefix { color: var(--accent); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
}
.hstat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  text-shadow: 0 0 16px var(--glow-cyan);
  line-height: 1.1;
}
.hstat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============ Terminal Window ============ */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.06), 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 44px rgba(0, 102, 255, 0.12);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-terminal { transform: perspective(1200px) rotateY(-4deg); }
.terminal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(0, 102, 255, 0.07);
  border-bottom: 1px solid var(--line);
}
.t-dots { display: flex; gap: 7px; }
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-a { background: var(--purple); box-shadow: 0 0 8px var(--glow-purple); }
.dot-b { background: var(--primary); box-shadow: 0 0 8px var(--glow-blue); }
.dot-c { background: var(--green); box-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }
.t-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--green);
}
.terminal-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.85;
  min-height: 380px;
  overflow-x: auto;
}
.t-line { white-space: pre; }
.t-prompt { color: var(--green); font-weight: 600; }
.t-cmd { color: #fff; }
.t-ok { color: var(--green); }
.t-dim { color: var(--dim); }
.t-accent { color: var(--accent); }
.t-tag { color: var(--accent); font-weight: 600; }
.t-tag2 { color: var(--purple); font-weight: 600; }
.t-crit { color: var(--purple); font-weight: 700; text-shadow: 0 0 10px var(--glow-purple); }
.t-high { color: var(--accent); font-weight: 700; text-shadow: 0 0 10px var(--glow-cyan); }
.t-comment { color: var(--dim); font-style: italic; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}

/* ============ Section Base ============ */
.section { padding: 110px 0; position: relative; }
.section-header { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 6px 16px;
  margin-bottom: 20px;
  background: rgba(0, 102, 255, 0.06);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin: 0; }

/* ============ Holographic Feature Cards ============ */
.holo-card {
  position: relative;
  height: 100%;
  padding: 34px 28px 30px;
  background: linear-gradient(150deg, rgba(0, 102, 255, 0.08), rgba(2, 2, 4, 0.6) 45%, rgba(124, 77, 255, 0.06));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.holo-card::before,
.holo-card::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  transition: all 0.3s ease;
}
.holo-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.holo-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.holo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 34px rgba(0, 102, 255, 0.18);
}
.holo-card:hover::before, .holo-card:hover::after { width: 100%; height: 100%; opacity: 0.35; }
.holo-card .card-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.08) 50%, transparent 100%);
  transform: translateY(-100%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.holo-card:hover .card-scan { transform: translateY(100%); }
.card-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.12);
  line-height: 1;
}
.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.07);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.15), inset 0 0 14px rgba(0, 212, 255, 0.08);
  margin-bottom: 22px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.card-icon.purple {
  color: var(--purple);
  border-color: rgba(124, 77, 255, 0.4);
  background: rgba(124, 77, 255, 0.08);
  box-shadow: 0 0 18px rgba(124, 77, 255, 0.18), inset 0 0 14px rgba(124, 77, 255, 0.1);
}
.card-icon.green {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.35);
  background: rgba(0, 255, 136, 0.06);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.15), inset 0 0 14px rgba(0, 255, 136, 0.07);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.card-desc { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 3px 9px;
  background: rgba(0, 212, 255, 0.05);
}

/* ============ Quick Start Timeline ============ */
.timeline { position: relative; padding-left: 8px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--primary), var(--accent), var(--purple));
  opacity: 0.4;
}
.timeline-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 14px 0 26px;
}
.timeline-step:last-child { padding-bottom: 4px; }
.step-node {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  position: relative;
  z-index: 1;
}
.step-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 0 4px;
}
.step-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.22);
  padding: 8px 13px;
  cursor: pointer;
  transition: all 0.2s;
  max-width: 100%;
}
.cmd-chip code { color: inherit; background: transparent; white-space: nowrap; }
.cmd-chip i { color: var(--dim); font-size: 11px; }
.cmd-chip:hover { background: rgba(0, 255, 136, 0.12); box-shadow: 0 0 16px rgba(0, 255, 136, 0.18); }
.cmd-chip:hover i { color: var(--green); }
/* ============ Architecture Panels & Flow ============ */
.arch-panel {
  height: 100%;
  padding: 30px 28px 26px;
  background: rgba(5, 7, 13, 0.75);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.shield-panel { box-shadow: inset 0 0 60px rgba(0, 102, 255, 0.05); }
.spear-panel { box-shadow: inset 0 0 60px rgba(124, 77, 255, 0.06); }
.arch-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px dashed rgba(0, 212, 255, 0.25);
}
.arch-panel-head i { font-size: 22px; color: var(--accent); text-shadow: 0 0 14px var(--glow-cyan); }
.arch-panel-head.purple i { color: var(--purple); text-shadow: 0 0 14px var(--glow-purple); }
.arch-panel-head h3 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  color: var(--text);
}
.panel-sub { color: var(--dim); font-weight: 400; font-size: 0.8rem; }
.flow { display: flex; flex-direction: column; align-items: stretch; }
.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.flow-node:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 22px rgba(0, 102, 255, 0.2);
  transform: translateX(4px);
}
.node-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.badge-blue { color: #fff; background: linear-gradient(135deg, var(--primary), #0044bb); box-shadow: 0 0 14px var(--glow-blue); }
.badge-cyan { color: #02131a; background: linear-gradient(135deg, var(--accent), #00a8cc); box-shadow: 0 0 14px var(--glow-cyan); }
.badge-purple { color: #fff; background: linear-gradient(135deg, var(--purple), #5a2ee6); box-shadow: 0 0 14px var(--glow-purple); }
.badge-green { color: #02120a; background: linear-gradient(135deg, var(--green), #00cc6a); box-shadow: 0 0 14px rgba(0, 255, 136, 0.45); }
.node-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.node-body strong { font-family: var(--font-display); font-size: 0.98rem; color: var(--text); }
.node-body span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.node-speed {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 3px 8px;
  text-transform: uppercase;
}
.flow-line {
  width: 40px;
  height: 34px;
  margin: 0 auto;
  display: block;
  overflow: visible;
}
.flow-path {
  stroke: rgba(0, 212, 255, 0.25);
  stroke-width: 2;
  fill: none;
}
.flow-path.purple { stroke: rgba(124, 77, 255, 0.3); }
.flow-pulse {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 10 50;
  animation: flowDash 1.8s linear infinite;
  filter: drop-shadow(0 0 4px var(--accent));
}
.flow-pulse.purple { stroke: var(--purple); filter: drop-shadow(0 0 4px var(--purple)); }
@keyframes flowDash {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
.flow-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px dashed rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
}
.flow-outcome.purple {
  color: var(--purple);
  border-color: rgba(124, 77, 255, 0.45);
  background: rgba(124, 77, 255, 0.06);
}

/* ============ Ecosystem ============ */
.eco-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 60px;
}
.eco-stat {
  text-align: center;
  padding: 30px 12px 26px;
  background: rgba(5, 7, 13, 0.7);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.eco-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.eco-stat:hover { border-color: rgba(0, 212, 255, 0.45); box-shadow: 0 0 28px rgba(0, 102, 255, 0.18); transform: translateY(-4px); }
.eco-stat:hover::before { opacity: 1; }
.eco-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.eco-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}
.eco-groups { display: flex; flex-direction: column; gap: 34px; max-width: 860px; margin: 0 auto; }
.eco-group h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 18px;
}
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  padding: 9px 16px;
  border: 1px solid rgba(124, 77, 255, 0.35);
  background: rgba(124, 77, 255, 0.06);
  transition: all 0.22s;
}
.tag i { color: var(--purple); font-size: 11px; }
.tag:hover { box-shadow: 0 0 18px var(--glow-purple); transform: translateY(-2px); }
.tag.cyan { border-color: rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.05); }
.tag.cyan i { color: var(--accent); }
.tag.cyan:hover { box-shadow: 0 0 18px var(--glow-cyan); }

/* ============ CTA ============ */
.cta-section { padding: 90px 0; }
.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(0, 102, 255, 0.1), rgba(2, 2, 4, 0.85) 50%, rgba(124, 77, 255, 0.08));
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 14px 0 16px;
}
.cta-desc { position: relative; color: var(--muted); font-size: 1.05rem; margin-bottom: 34px; }
.cta-command {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--green);
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 16px 22px;
  margin-bottom: 36px;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.1), inset 0 0 24px rgba(0, 255, 136, 0.04);
}
.cta-command code { color: var(--green); background: transparent; }
.copy-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--accent); border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 12px var(--glow-cyan); }
.cta-buttons { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ============ GitHub Stats ============ */
.gh-card {
  text-align: center;
  padding: 36px 16px 30px;
  background: rgba(5, 7, 13, 0.75);
  border: 1px solid var(--line-soft);
  height: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.gh-card:hover { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 28px rgba(0, 102, 255, 0.2); transform: translateY(-4px); }
.gh-card i { font-size: 22px; color: var(--accent); margin-bottom: 14px; text-shadow: 0 0 14px var(--glow-cyan); }
.gh-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.gh-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 8px;
}

/* ============ Community ============ */
.qr-card {
  text-align: center;
  padding: 40px 30px 36px;
  background: rgba(5, 7, 13, 0.75);
  border: 1px solid var(--line-soft);
  height: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.qr-card:hover { border-color: rgba(0, 212, 255, 0.45); box-shadow: 0 0 34px rgba(0, 102, 255, 0.18); }
.qr-frame {
  position: relative;
  width: 210px;
  margin: 0 auto 24px;
  padding: 10px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: #fff;
  overflow: hidden;
}
.qr-frame img { display: block; width: 100%; height: auto; }
.qr-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.35), transparent);
  animation: qrScan 2.6s ease-in-out infinite;
}
@keyframes qrScan {
  0%, 100% { top: -34px; }
  50% { top: 100%; }
}
.qr-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.qr-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 18px; }
.qr-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.community-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 50px;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 3, 6, 0.95);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-brand .nav-logo { margin-bottom: 18px; }
.footer-slogan {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}
.footer-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 340px; }
.footer-social { margin-top: 18px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--muted);
  font-size: 18px;
  border: 1px solid var(--line);
  transition: all 0.22s;
}
.footer-social a:hover { color: var(--accent); border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 16px var(--glow-cyan); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-col a:hover { color: var(--accent); text-shadow: 0 0 10px var(--glow-cyan); }
.footer-security {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
  border-left: 2px solid var(--purple);
  padding-left: 14px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(0, 102, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }

/* ============ Toast ============ */
.toast-cyber {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--bg-terminal);
  border: 1px solid rgba(0, 255, 136, 0.4);
  padding: 12px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 10005;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.2);
}
.toast-cyber.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Demo Video Section ============ */
.demo-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: min(980px, calc(100vw - 32px));
  margin: 3rem auto 0;
}

.video-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-terminal);
  box-shadow: 0 0 40px rgba(0, 102, 255, 0.12);
}

.video-frame-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot-red { background: #ff5f57; }
.terminal-dots .dot-yellow { background: #febc2e; }
.terminal-dots .dot-green { background: #28c840; }

.video-frame-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-frame-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.demo-video {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--bg-terminal);
  object-fit: contain;
}

.video-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  z-index: -1;
  filter: blur(40px);
  opacity: 0.25;
  pointer-events: none;
}

/* ============ Responsive ============ */
@media (max-width: 991.98px) {
  .hero { padding: 60px 0 90px; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-terminal { transform: none; margin-top: 30px; }
  .hero-scroll-hint { display: none; }
  .eco-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-wrapper { margin-top: 2rem; }
  .demo-section { padding: 4rem 0; }
}
@media (max-width: 767.98px) {
  .section { padding: 80px 0; }
  .terminal-body { font-size: 11px; min-height: 320px; padding: 16px 14px 18px; }
  .eco-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-command { font-size: 0.9rem; padding: 13px 16px; }
  .top-bar-status { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .noise, .glitch::before, .glitch::after,
  .qr-scanline, .flow-pulse, .scroll-line { animation: none !important; }
  html { scroll-behavior: auto; }
}

