@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
  --bg: #080510;
  --bg2: #100820;
  --bg3: #1a0d30;
  --card: rgba(20,10,40,0.88);
  --border: rgba(157,78,221,0.18);
  --border2: rgba(0,212,255,0.15);
  --green: #9d4edd;
  --green2: #7b2fbe;
  --cyan: #00d4ff;
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #e2e8f0;
  --muted: #64748b;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; font-size: clamp(14px, 0.85vw + 4px, 22px); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grid + noise background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    linear-gradient(rgba(157,78,221,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,78,221,0.09) 1px, transparent 1px);
  background-size: 256px 256px, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Radial glow blobs ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 15%, rgba(157,78,221,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 92% 80%, rgba(0,212,255,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(120,40,220,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Tech accent overlays ── */
.tech-accent {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
}
.tech-accent-tl {
  top: 80px; left: 0;
  width: 220px; height: 220px;
}
.tech-accent-br {
  bottom: 40px; right: -40px;
  width: 200px; height: 200px;
  transform: rotate(180deg);
  opacity: 0.18;
}

/* ── Navbar — glassmorphism ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(8, 5, 16, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(157,78,221,0.14);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4), inset 0 -1px 0 rgba(157,78,221,0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  mix-blend-mode: screen;
  animation: logoFlip 4s linear infinite;
  transform-style: preserve-3d;
}

@keyframes logoFlip {
  0%   { transform: perspective(180px) rotateY(0deg); }
  100% { transform: perspective(180px) rotateY(360deg); }
}

.logo-text-wrap {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.logo-text {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
  display: block;
  white-space: nowrap;
}
.logo-sub {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
  display: block;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--green); }

/* Active nav = [ PAGE ] bracket style */
.nav-links a.active {
  color: var(--green);
  text-shadow: 0 0 16px rgba(157,78,221,0.7);
}
.nav-links a.active::before {
  content: '[ ';
  color: var(--green);
  font-weight: 700;
}
.nav-links a.active::after {
  content: ' ]';
  color: var(--green);
  font-weight: 700;
  position: static;
  width: auto; height: auto;
  background: none;
  bottom: auto; left: auto; right: auto;
  box-shadow: none;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  cursor: default;
  user-select: none;
}
.nav-status { gap: 10px; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,255,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(0,212,255,0); }
}

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

/* ── Page wrapper ── */
main { position: relative; z-index: 1; padding-top: 64px; }

/* ── Section base ── */
section { padding: 5rem 2rem; max-width: 1650px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--green);
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 4rem 2rem;
}

.hero-inner {
  max-width: 1650px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--green);
  color: #000;
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: var(--green2);
  box-shadow: 0 0 24px rgba(157,78,221,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Terminal card ── */
.terminal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ef4444; }
.dot.y { background: #f59e0b; }
.dot.g { background: var(--green); }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.terminal-body { padding: 1.25rem; }

.terminal-line {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.terminal-line .prompt { color: var(--green); }
.terminal-line .val { color: var(--cyan); }
.terminal-line .pos { color: var(--green); }
.terminal-line .neg { color: var(--red); }
.terminal-line .key { color: var(--amber); }

/* ── Stats grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.3s;
}

.stat-card:hover { border-color: rgba(157,78,221,0.5); box-shadow: 0 0 20px rgba(157,78,221,0.12); }

/* ── Hover: border brightens ── */
.bot-card:hover    { border-color: rgba(157,78,221,0.55); transform: translateY(-2px); }
.infra-item:hover  { border-color: rgba(157,78,221,0.4); }
.stat-card:hover   { border-color: rgba(157,78,221,0.45); }
.contact-link:hover { border-color: rgba(157,78,221,0.6); color: var(--green); }
.tag:hover         { filter: brightness(1.3); cursor: default; }
.expertise-item:hover { background: rgba(157,78,221,0.04); }
.nav-links a:hover { text-shadow: 0 0 20px rgba(157,78,221,0.7), 0 0 40px rgba(157,78,221,0.3); }

/* ── Light Sweep effect ──
   A glowing streak (radial-gradient + blur) sweeps fast left→right,
   then pauses before repeating. Applied to ALL cards and buttons. */

/* ── Border Beam + Hover Glow ── */
.bot-card, .stat-card, .infra-item, .terminal-card, .contact-card,
.contact-link, .expertise-item, .laser-wrap, .btn {
  position: relative;
  isolation: isolate;
}

/* Border beam — conic gradient laser running around the border */
.bot-card::before, .stat-card::before, .infra-item::before, .terminal-card::before,
.contact-card::before, .contact-link::before, .expertise-item::before,
.laser-wrap::before, .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from var(--laser-angle, 0deg),
    transparent      0%,
    transparent     35%,
    rgba(157,78,221,0.7) 44%,
    rgba(0,212,255,1)    50%,
    rgba(157,78,221,0.7) 56%,
    transparent     65%,
    transparent    100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  z-index: 2;
}

/* Ambient hover glow — neon radial behind the card */
.bot-card::after, .stat-card::after, .infra-item::after, .terminal-card::after,
.contact-card::after, .contact-link::after, .expertise-item::after,
.laser-wrap::after, .btn::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%,
    rgba(157,78,221,0.22) 0%,
    rgba(0,212,255,0.06)  50%,
    transparent           75%
  );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.bot-card:hover::after, .stat-card:hover::after, .infra-item:hover::after,
.terminal-card:hover::after, .contact-card:hover::after, .contact-link:hover::after,
.expertise-item:hover::after, .laser-wrap:hover::after, .btn:hover::after {
  opacity: 1;
}

/* Mobile: tap feedback triggers glow */
@media (hover: none) {
  .bot-card:active::after, .stat-card:active::after, .infra-item:active::after,
  .contact-card:active::after, .contact-link:active::after,
  .expertise-item:active::after { opacity: 1; }
}

/* Restore clean borders */
.bot-card     { background: var(--card); border: 1px solid var(--border); }
.stat-card    { background: var(--card); border: 1px solid var(--border); }
.infra-item   { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); }
.contact-link { background: rgba(157,78,221,0.04); border: 1px solid rgba(157,78,221,0.2); }
.contact-card { background: var(--card); border: 1px solid var(--border); }
.laser-wrap   { background: var(--card); border: 1px solid var(--border); }
.expertise-item { border: 1px solid rgba(157,78,221,0.12); border-radius: 8px; }

/* ── All 3 hero buttons identical ghost style ── */
.btn-primary,
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(157,78,221,0.38);
}
.btn-primary:hover,
.btn-ghost:hover {
  border-color: rgba(157,78,221,0.75);
  color: var(--green);
  background: rgba(157,78,221,0.07);
  transform: translateY(-1px);
}

/* Bot cards equal height — !important overrides inline style="display:block" on <a> */
.bots-grid { align-items: stretch; }
.bots-grid > a { display: flex !important; }
.bot-card { display: flex !important; flex-direction: column; flex: 1; min-height: 0; }
.bot-card .bot-desc { flex: 1; }

/* ── Mobile tap feedback (press-down effect) ── */
@media (hover: none) {
  .btn:active          { transform: scale(0.97) translateY(2px); transition: transform 0.08s; }
  .bot-card:active     { transform: scale(0.99) translateY(1px); transition: transform 0.08s; }
  .stat-card:active    { transform: scale(0.99) translateY(1px); transition: transform 0.08s; }
  .infra-item:active   { transform: scale(0.98) translateY(1px); transition: transform 0.08s; }
  .contact-link:active { transform: scale(0.97) translateY(1px); transition: transform 0.08s; }
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.stat-value {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-value.cyan { color: var(--cyan); }
.stat-value.amber { color: var(--amber); }

.stat-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-sub .up { color: var(--green); }
.stat-sub .dn { color: var(--red); }

/* ── Infra stats ── */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.infra-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.infra-val {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.infra-lbl {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

/* ── Divider ── */
.divider {
  max-width: 1650px;
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Bot Fleet ── */
.bots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.bot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}

.bot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(157,78,221,0.2), 0 0 60px rgba(157,78,221,0.08), 0 0 120px rgba(157,78,221,0.04);
}

.bot-avatar {
  width: 72px; height: 72px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}

.bot-name {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.bot-codename {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bot-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-green { background: rgba(157,78,221,0.14); color: var(--green); border: 1px solid rgba(157,78,221,0.3); }
.tag-cyan { background: rgba(0,212,255,0.08); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.tag-amber { background: rgba(245,158,11,0.08); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.tag-purple { background: rgba(168,85,247,0.08); color: #a855f7; border: 1px solid rgba(168,85,247,0.2); }

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto auto;
  gap: 5rem 4rem;
  align-items: start;
}
.about-bio-col    { grid-column: 1; grid-row: 1; }
.about-sidebar-col { grid-column: 2; grid-row: 1 / 3; }
.about-extras-col { grid-column: 1; grid-row: 2; }

.about-heading {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.about-heading span { color: var(--green); }

.about-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.expertise-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.expertise-item h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.expertise-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 84px;
}

.contact-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
}

.contact-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  transition: all 0.2s;
}

.contact-link:hover {
  border-color: var(--green);
  color: var(--green);
}

.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Contact reveal label */
.contact-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  flex: 1;
}
.contact-default,
.contact-hover {
  display: block;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s;
  white-space: nowrap;
}
.contact-hover {
  position: absolute;
  top: 0; left: 0;
  transform: translateY(100%);
  opacity: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.contact-reveal:hover .contact-default {
  transform: translateY(-100%);
  opacity: 0;
}
.contact-reveal:hover .contact-hover {
  transform: translateY(0);
  opacity: 1;
  animation: glitchRGB 0.45s steps(2, end) forwards;
}

/* ── Peek Behind the Matrix ── */
.bot-card { position: relative; overflow: hidden; }

.peek-btn {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  background: rgba(157,78,221,0.06);
  border: 1px solid rgba(157,78,221,0.18);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.peek-btn:hover { color: var(--cyan); border-color: rgba(0,212,255,0.5); background: rgba(0,212,255,0.06); }

.peek-content { transition: opacity 0.12s; }
.bot-card.peeking .peek-content { opacity: 0.06; }

.peek-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.12s;
  background: rgba(4,2,10,0.97);
  display: flex;
  align-items: flex-start;
}
.bot-card.peeking .peek-overlay { opacity: 1; }

.peek-scroll {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.75;
  color: #22c55e;
  padding: 14px 18px;
  white-space: pre;
  will-change: transform;
}
@media (max-width: 600px) {
  .peek-scroll { font-size: 7px; line-height: 1.5; padding: 8px 10px; }
}
.bot-card.peeking .peek-scroll {
  animation: peekScroll 1.8s linear forwards;
}
@keyframes peekScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-55%); }
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  background: rgba(8, 5, 16, 0.85);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(157,78,221,0.14);
  box-shadow: 0 -1px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(157,78,221,0.08);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1650px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-domain {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  opacity: 0.7;
}

.footer-disclaimer {
  max-width: 1650px;
  margin: 1rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 10px;
  color: var(--muted);
  opacity: 0.5;
  line-height: 1.7;
  text-align: center;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ── Page header ── */
.page-hero {
  padding: 4rem 2rem 1.5rem;
  max-width: 1650px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-hero h1 span { color: var(--green); }

.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Counter animation ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px 10px;
  background: rgba(157,78,221,0.10);
  border: 1px solid rgba(157,78,221,0.3);
  border-radius: 6px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.25s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: rgba(4,4,13,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--green); }

/* ── Fleet overview grid (bot-fleet page) ── */
.fleet-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .terminal-card { margin-top: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .bots-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; grid-template-rows: auto; display: flex; flex-direction: column; }
  .about-bio-col     { order: 1; grid-column: unset; grid-row: unset; }
  .about-sidebar-col { order: 2; grid-column: unset; grid-row: unset; width: 100%; }
  .about-extras-col  { order: 3; grid-column: unset; grid-row: unset; }
  .contact-card { position: static; width: 100%; box-sizing: border-box; }
  .expertise-grid { grid-template-columns: 1fr; }
  .fleet-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; order: -2; margin-right: 10px; margin-left: 0; }
  .nav-logo { order: -1; }
  .nav-status { display: flex; margin-left: auto; }
  nav { padding: 0 1.25rem; }
  section { padding: 3rem 1.25rem; }
  .terminal-line { font-size: 11px; line-height: 1.7; }
  #terminal-feed { min-height: 180px; }

  /* Tech accents: hide on mobile — too large */
  .tech-accent { display: none; }

  /* Hero: compact, terminal below sub-text with gap */
  .hero { min-height: unset; padding: 5rem 1.25rem 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 14px; margin-bottom: 1.25rem; }
  .btn-group { flex-direction: row; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0; }
  .btn { flex: 1 1 45%; justify-content: center; padding: 0.65rem 0.75rem; font-size: 13px; }
  .terminal-card { margin-top: 1.5rem !important; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 6px; align-items: center; }

  /* Fleet overview: 2x2, smaller font */
  .fleet-summary-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .fleet-summary-grid [style*="font-size: 2rem"] { font-size: 1.3rem !important; }

  /* Performance table: horizontal scroll on table only */
  .log-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .log-table { min-width: 520px; }
}

/* ── Cyberpunk Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #9d4edd, #00d4ff);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #b47ce8, #33ddff);
}

/* ── Grid Spotlight ── */
#grid-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}



/* ── Bot avatar zoom on hover ── */
.bot-avatar {
  position: relative;
  z-index: 0;
  cursor: default;
}

.bot-avatar img {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  display: block;
}

@media (hover: hover) {
  .bot-avatar:hover { z-index: 10; }
  .bot-avatar:hover img {
    transform: scale(2.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 16px rgba(157,78,221,0.3);
  }
}

/* Mobile: show pointer to hint it's tappable */
@media (hover: none) {
  .bot-avatar { cursor: pointer; }
  .bot-avatar::after {
    content: '🔍';
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 12px;
    line-height: 1;
    display: none;
  }
}

/* ── Nav dot groups (status + kill) ── */
.nav-dot-group {
  position: relative;
  display: flex;
  align-items: center;
  cursor: default;
}

.kill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #c2410c;
  animation: killPulse 2.6s infinite;
  flex-shrink: 0;
}
@keyframes killPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(194,65,12,0.6); }
  50%       { opacity: 0.6; box-shadow: 0 0 0 5px rgba(194,65,12,0); }
}

/* Bigger hit area on the dot itself */
.nav-dot-group { padding: 8px 4px; }

.nav-dot-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: max-content;
  background: rgba(8,5,16,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  /* padding-top bridges the gap so hover stays active */
  padding: 10px 14px;
  padding-top: 18px;
  backdrop-filter: blur(16px);
  z-index: 200;
  white-space: nowrap;
}
/* Invisible bridge between dot and tooltip */
.nav-dot-tooltip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
}
.nav-dot-group:hover .nav-dot-tooltip,
.nav-dot-group.open .nav-dot-tooltip { display: block; }

.status-tooltip {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  color: var(--cyan);
  border-color: rgba(0,212,255,0.15);
}

.kill-tooltip {
  border-color: rgba(194,65,12,0.25);
  padding: 8px 12px;
}

#kill-trigger {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fb923c;
  background: transparent;
  border: 1px solid rgba(194,65,12,0.4);
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
#kill-trigger:hover {
  color: #ef4444;
  border-color: rgba(239,68,68,0.6);
  background: rgba(239,68,68,0.06);
  box-shadow: 0 0 10px rgba(239,68,68,0.15);
}

/* Kill switch overlay */
#kill-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  padding: 80px 48px;
  box-sizing: border-box;
  overflow: hidden;
}
#kill-overlay.active { display: flex; flex-direction: column; justify-content: center; }
#kill-terminal {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
  color: #22c55e;
  max-width: 640px;
}
/* ── Custom Cursor: Fusion Blob ── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 6px rgba(0,212,255,0.8);
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1.5px solid rgba(157,78,221,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.25,1,0.5,1),
              height 0.35s cubic-bezier(0.25,1,0.5,1),
              border-color 0.25s,
              border-radius 0.35s,
              opacity 0.25s;
  will-change: transform;
}
#cursor-ring.hovering {
  border-color: rgba(157,78,221,0.9);
  background: rgba(157,78,221,0.08);
}
#cursor-dot.clicking {
  width: 3px; height: 3px;
  background: #fff;
}

/* ── Bot Fleet 3D Cubes ── */
.bot-slot { display: flex; flex-direction: column; align-items: center; }
.bots-grid > .bot-slot { display: flex; }

.cube-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 2.5rem 1rem 1rem;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.cube-floater { animation: cubeFloat 3.6s ease-in-out infinite; }
.cube-scene { width: 160px; height: 160px; perspective: 640px; perspective-origin: 50% 38%; }
.cube { width: 160px; height: 160px; position: relative; transform-style: preserve-3d; animation: cubeRotate 9s linear infinite; }

.cube-face {
  position: absolute;
  width: 160px; height: 160px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid; gap: 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cube-face.front  { transform: translateZ(80px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(80px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(80px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(80px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(80px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(80px); }

.cube-face-avatar { width: 60px; height: 60px; border-radius: 8px; mix-blend-mode: screen; }
.cube-face-name { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.cube-face-role { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; line-height: 1.7; padding: 0 14px; }
.cube-face-unit { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.12em; }
.cube-face-side { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.12em; writing-mode: vertical-rl; text-transform: uppercase; }

.cube-shadow { width: 110px; height: 18px; border-radius: 50%; margin-top: 14px; animation: cubeShadow 3.6s ease-in-out infinite; }
.cube-label { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 1.4rem; }
.cube-hint { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 5px; animation: cubeHintPulse 2.2s ease-in-out infinite; }

@keyframes cubeFloat  { 0%,100%{transform:translateY(0px)} 42%,58%{transform:translateY(-16px)} }
@keyframes cubeShadow { 0%,100%{transform:scaleX(1);opacity:0.45} 42%,58%{transform:scaleX(0.68);opacity:0.18} }
@keyframes cubeRotate { from{transform:rotateX(17deg) rotateY(0deg)} to{transform:rotateX(17deg) rotateY(360deg)} }
@keyframes cubeHintPulse { 0%,100%{opacity:0.35} 50%{opacity:0.9} }

@keyframes cubeExplode {
  0%   { transform: rotateX(17deg) rotateY(0deg)   scale(1);    opacity: 1;    filter: none; }
  30%  { transform: rotateX(35deg) rotateY(140deg) scale(1.18); opacity: 0.85; filter: brightness(2.5); }
  65%  { transform: rotateX(-8deg) rotateY(280deg) scale(0.4);  opacity: 0.3;  filter: brightness(0.6); }
  100% { transform: rotateX(0deg)  rotateY(360deg) scale(0);    opacity: 0;    filter: none; }
}
.cube-wrap.opening { pointer-events: none; }
.cube-wrap.opening .cube-floater { animation: none; }
.cube-wrap.opening .cube { animation: cubeExplode 0.75s cubic-bezier(0.4,0,0.2,1) forwards; }
.cube-wrap.opening .cube-shadow,
.cube-wrap.opening .cube-label,
.cube-wrap.opening .cube-hint { opacity: 0; transition: opacity 0.25s; }

.bot-card-reveal { display: none; opacity: 0; transform: translateY(18px) scale(0.97); transition: opacity 0.45s ease, transform 0.45s ease; width: 100%; }
.bot-card-reveal.active { opacity: 1; transform: none; }

.close-card-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 5px;
  padding: 6px 14px; cursor: pointer; margin-bottom: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.close-card-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ── Kill Switch: System Collapse ── */
@keyframes sysKillGlitch {
  0%   { filter: none; transform: none; }
  8%   { filter: hue-rotate(90deg) saturate(8) brightness(2.5); transform: skewX(-4deg) translateX(8px); }
  16%  { filter: hue-rotate(200deg) saturate(12) brightness(0.2); transform: skewX(5deg) translateX(-10px) scaleY(1.03); }
  24%  { filter: saturate(0) brightness(3) contrast(5); transform: skewX(-8deg) translateX(4px); }
  32%  { filter: none; transform: none; }
  40%  { filter: hue-rotate(320deg) saturate(6) brightness(1.8); transform: skewX(3deg) translateX(-6px); }
  48%  { filter: none; transform: none; }
  56%  { filter: saturate(0) brightness(0.1); transform: translateY(-4px) scaleX(1.02); }
  64%  { filter: none; transform: none; }
  100% { filter: none; transform: none; }
}
body.sys-killing {
  animation: sysKillGlitch 0.85s steps(1) forwards;
}

/* Fatal screen overlay */
#fatal-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,0.97);
  padding: 15vh 8vw;
  overflow: hidden;
}
#fatal-screen.active { display: block; }

#fatal-red-flash {
  position: absolute;
  inset: 0;
  background: #cc0000;
  animation: redFlash 0.35s steps(1) forwards;
  pointer-events: none;
}
@keyframes redFlash {
  0%   { opacity: 0.75; }
  33%  { opacity: 0; }
  66%  { opacity: 0.45; }
  100% { opacity: 0; }
}

#fatal-lines {
  font-family: 'Courier New', monospace;
  font-size: clamp(11px, 1.8vw, 16px);
  line-height: 2;
  color: #ff3333;
  text-shadow: 0 0 12px rgba(255,0,0,0.6);
}
#fatal-lines p { margin: 0; color: #cc3333; }

/* DOS screen */
#dos-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  align-items: center;
  justify-content: center;
}
#dos-screen.active { display: flex; }
#dos-text {
  font-family: 'Courier New', monospace;
  font-size: clamp(16px, 3vw, 28px);
  color: #c0c0c0;
  letter-spacing: 0.04em;
}
#dos-cursor {
  display: inline-block;
  color: #c0c0c0;
  animation: dosBlink 0.5s step-end infinite;
}
@keyframes dosBlink { 0%,100%{opacity:1} 50%{opacity:0} }

@keyframes pageShake {
  0%,100% { transform: translateX(0); }
  10%,50%,90% { transform: translateX(-6px); }
  30%,70% { transform: translateX(6px); }
}
body.shaking { animation: pageShake 0.45s ease; }

/* ── Chromatic Aberration / RGB Glitch on hover ── */
@keyframes glitchRGB {
  0%          { filter: none; transform: none; }
  10%         { filter: drop-shadow(-3px 0 rgba(255,0,60,0.85)) drop-shadow(3px 0 rgba(0,220,255,0.85)); transform: translateX(2px); }
  22%         { filter: drop-shadow(3px 0 rgba(255,0,60,0.9))  drop-shadow(-3px 0 rgba(0,220,255,0.9));  transform: translateX(-2px); }
  34%         { filter: drop-shadow(-5px 0 rgba(255,0,60,0.8)) drop-shadow(4px 0 rgba(0,220,255,0.8));   transform: translateX(1px); }
  46%         { filter: drop-shadow(2px 0 rgba(255,0,60,0.7))  drop-shadow(-2px 0 rgba(0,220,255,0.7));  transform: translateX(-1px); }
  62%         { filter: drop-shadow(-2px 0 rgba(255,0,60,0.4)) drop-shadow(2px 0 rgba(0,220,255,0.4));   transform: none; }
  78%         { filter: drop-shadow(-1px 0 rgba(255,0,60,0.2)) drop-shadow(1px 0 rgba(0,220,255,0.2));   transform: none; }
  100%        { filter: none; transform: none; }
}

/* Elements that get the glitch on hover */
.btn:hover,
.pnl-pos:hover,
.pnl-neg:hover,
.log-row:hover .pnl-pos,
.log-row:hover .pnl-neg,
.stat-card:hover .infra-val,
.infra-item:hover .infra-val,
.bot-card:hover .bot-name,
.contact-card:hover .contact-name,
.hero h1 span:hover,
[data-target]:hover {
  animation: glitchRGB 0.45s steps(2, end) forwards;
}

/* ── Bot Fleet Asymmetric Layout ── */
.fleet-layout-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.fleet-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 4rem;
  align-items: start;
}

.fleet-sidebar {
  position: sticky;
  top: calc(64px + 2rem);
}

.fleet-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}
.fleet-title span {
  color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.fleet-sidebar-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.fleet-overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.fleet-overview-item {
  padding: 1.25rem 1rem;
  text-align: center;
  background: rgba(8,5,16,0.6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fleet-overview-item:nth-child(2n) { border-right: none; }
.fleet-overview-item:nth-child(3),
.fleet-overview-item:nth-child(4) { border-bottom: none; }

.fleet-overview-val {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.fleet-overview-lbl {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fleet-bots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
  .fleet-layout { grid-template-columns: 1fr; gap: 2rem; }
  .fleet-sidebar { position: static; }
  .fleet-overview-stats { grid-template-columns: repeat(4, 1fr); }
  .fleet-overview-item { border-bottom: none; }
  .fleet-overview-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .fleet-overview-item:last-child { border-right: none; }
  .fleet-bots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .fleet-layout-section { padding: 2rem 1.25rem; }
  .fleet-overview-stats { grid-template-columns: 1fr 1fr; }
  .fleet-overview-item:nth-child(2n) { border-right: none; }
  .fleet-overview-item:nth-child(3),
  .fleet-overview-item:nth-child(4) { border-bottom: none; }
  .fleet-overview-item:nth-child(1),
  .fleet-overview-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ── Mobile performance: kill expensive GPU animations ── */
@media (hover: none) {
  /* Logo: no 3D flip */
  .logo-mark {
    animation: none !important;
    transform: none !important;
    transform-style: flat !important;
  }
  /* Cubes: stop 3D rotation, keep float only */
  .cube {
    animation: none !important;
    transform: rotateX(17deg) rotateY(-25deg) !important;
    transform-style: preserve-3d;
  }
  .cube-floater { animation: cubeFloat 3.6s ease-in-out infinite; }
  .cube-shadow  { animation: cubeShadow 3.6s ease-in-out infinite; }
  /* Cursor: already skipped in JS, hide elements if they slipped through */
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* ── Bot card header: avatar + name side by side ── */
.bot-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bot-card-header .bot-avatar { flex-shrink: 0; margin-bottom: 0; }
.bot-card-header .bot-name { margin-bottom: 2px; }

/* ══════════════════════════════════════════
   NEW EFFECTS
   ══════════════════════════════════════════ */


/* ── Ticker bar ── */
#ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  height: 30px;
  background: rgba(8, 8, 12, 0.94);
  border-top: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
#ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
}
#ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.ticker-pair   { color: var(--text); font-weight: 600; }
.ticker-price  { color: #94a3b8; }
.ticker-up     { color: var(--green); }
.ticker-down   { color: #ef4444; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
body { padding-bottom: 30px; }

/* ── Hero canvas ── */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  display: block;
}
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }

/* ── Signal log ── */
#signal-log {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.signal-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.signal-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: signalPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes signalPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

@keyframes signalSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.signal-time { font-family: var(--mono); font-size: 10px; color: var(--muted); flex-shrink: 0; }
.signal-type-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}
.signal-type-found   { background: rgba(157,78,221,0.15); color: #9d4edd; border: 1px solid rgba(157,78,221,0.3); }
.signal-type-placed  { background: rgba(0,212,255,0.10); color: var(--cyan); border: 1px solid rgba(0,212,255,0.25); }
.signal-type-filled  { background: rgba(0,255,136,0.10); color: var(--green); border: 1px solid rgba(0,255,136,0.25); }
.signal-type-skip    { background: rgba(100,100,120,0.15); color: #64748b; border: 1px solid rgba(100,100,120,0.2); }
.signal-bot-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.signal-bot-loutias  { background: rgba(157,78,221,0.08); color: #9d4edd; }
.signal-bot-loudevoir { background: rgba(0,212,255,0.08); color: var(--cyan); }
.signal-pair-name { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.signal-tf { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-left: 2px; }
.signal-card-body {
  font-family: var(--mono);
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.7;
  padding-left: 0;
}
.signal-card-body strong { color: var(--text); }
.sig-long  { color: var(--green); font-weight: 700; }
.sig-short { color: #ef4444; font-weight: 700; }
.sig-entry { color: var(--amber); }
.sig-sl    { color: #ef4444; }
.sig-tp    { color: var(--green); }
.sig-skip-reason { color: #64748b; font-style: italic; }

@media (max-width: 600px) {
  body { padding-bottom: 0; }
  #ticker-bar, #hero-canvas { display: none !important; }
  .signal-card-body { font-size: 10px; }
}

@media (max-width: 1919px) {
  .hero-inner { max-width: 1200px; }
  section { max-width: 1200px; }
}

@media (min-width: 1920px) {
  .hero-inner { grid-template-columns: 1fr 36vw; }
  .terminal-card { min-width: 36vw; }
  .terminal-body { height: 340px !important; }
  .terminal-header { padding: 16px 20px; }
}
