/* ==========================================
   KITSUNEAGENT ADVANCED EFFECTS & STYLES
   ========================================== */

:root {
  --bg: #0b0c0f;
  --bg-elevated: #12141a;
  --bg-panel: #181b22;
  --bg-hover: #1c2029;
  --border: #252a35;
  --border-strong: #343b4a;
  --text: #e6e0d4;
  --text-muted: #9a9590;
  --text-dim: #6a6560;
  
  --lime: #FF9E2C;
  --lime-hover: #FFAE4D;
  --lime-dim: rgba(255, 158, 44, 0.16);
  --lime-glow: rgba(255, 158, 44, 0.35);
  --cyan-accent: #00E5FF;
  --cyan-glow: rgba(0, 229, 255, 0.35);
  
  --neg: #FF4D4D;
  --neg-dim: rgba(255, 77, 77, 0.16);
  --pos: #00F090;
  --pos-glow: rgba(0, 240, 144, 0.35);
  
  --font-display: "IBM Plex Mono", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  
  --header-h: 56px;
  --ticker-h: 40px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Custom Cyber Cursor */
.cyber-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 0 12px var(--lime-glow);
  margin-top: -5px;
  margin-left: -5px;
  will-change: transform;
}

.cyber-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  box-shadow: 0 0 15px var(--lime-dim);
  margin-top: -17px;
  margin-left: -17px;
  transition: width 0.2s, height 0.2s, border-color 0.2s, margin 0.2s;
  will-change: transform;
}

body:has(a:hover, button:hover) .cyber-cursor-follower {
  width: 46px;
  height: 46px;
  border-color: var(--cyan-accent);
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* Cyber Scanline Effect Overlay */
.scanline-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.25)
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

.scanline-sweep {
  position: fixed;
  top: -20%;
  left: 0;
  width: 100vw;
  height: 15vh;
  background: linear-gradient(180deg, transparent, rgba(255, 158, 44, 0.06), transparent);
  pointer-events: none;
  z-index: 998;
  animation: sweep 8s linear infinite;
}

@keyframes sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(120vh); }
}

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-hover); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--lime);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: lowercase;
}

.brand:hover { color: var(--lime-hover); }

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--lime);
  background: var(--bg-elevated);
  box-shadow: 0 0 10px var(--lime-glow);
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(12deg) scale(1.1);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 158, 44, 0.35);
  background: var(--lime-dim);
  box-shadow: 0 0 12px var(--lime-glow);
}

.live-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
  animation: pulse-dot 1.8s infinite alternate;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.5rem;
  overflow-x: auto;
}

.header-nav a {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}

.header-nav a:hover { color: var(--text); background: var(--bg-hover); transform: translateY(-1px); }
.header-nav a.active {
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid rgba(255, 158, 44, 0.2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Sound Synthesizer Audio Button */
.audio-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.audio-btn:hover {
  border-color: var(--lime);
  box-shadow: 0 0 12px var(--lime-glow);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.sound-bars span {
  width: 2px;
  background: var(--lime);
  border-radius: 1px;
  animation: sound-bounce 1s infinite alternate ease-in-out;
}

.sound-bars span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-bars span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.sound-bars span:nth-child(3) { height: 60%; animation-delay: 0.2s; }

.audio-btn.muted .sound-bars span {
  animation: none;
  height: 20%;
  opacity: 0.4;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}

.social-link:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: var(--lime-dim);
  transform: translateY(-2px);
}

.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--lime);
  color: #0b0c0f;
  border: 1px solid var(--lime);
  box-shadow: 0 4px 16px var(--lime-glow);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--lime-hover);
  color: #0b0c0f;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(255, 158, 44, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--lime);
  background: var(--lime-dim);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-ghost svg { width: 14px; height: 14px; fill: currentColor; }
.btn-lg { padding: 0.7rem 1.15rem; font-size: 0.875rem; }

/* Ticker strip */
.ticker-strip {
  height: var(--ticker-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-strip:hover .ticker-track { animation-play-state: paused; }

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  height: 100%;
  border-right: 1px solid var(--border);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.ticker-item .sym {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--lime);
  font-size: 0.75rem;
}

.ticker-item .px {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
}

/* Main Layout */
main {
  padding: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-head .sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Cards with 3D Mouse Spotlight Glow */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.25s ease-out, box-shadow 0.25s;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 158, 44, 0.12),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 20px var(--lime-glow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-body { padding: 1rem; position: relative; z-index: 2; }

.section-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime);
  padding: 0.25rem 0.35rem;
}

.section-link:hover { color: var(--lime-hover); text-decoration: underline; }

.label-kicker {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
}

/* Hero Section & Interactive Cyber Canvas */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .home-hero {
    grid-template-columns: 1.45fr 1fr;
    align-items: stretch;
  }
}

.hero-art {
  position: relative;
  min-height: 280px;
  background: var(--bg-elevated) center/cover no-repeat;
  background-image: url('herobg.jpg');
  overflow: hidden;
}

#cyber-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,12,15,.82) 100%);
  pointer-events: none;
  z-index: 2;
}

.home-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  height: 100%;
}

.home-hero-meta h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-hero-meta .lede {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
}

.home-hero-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-pulse-ticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--pos);
  background: rgba(0, 240, 144, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 144, 0.3);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Index Grid */
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .index-grid { grid-template-columns: repeat(4, 1fr); }
}

.index-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.7rem;
  text-align: left;
  width: 100%;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.index-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 12px var(--lime-glow);
}

.index-card .sym {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 0.25rem;
}

.index-card .px {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
}

.index-card .chg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.15rem;
  color: var(--text-dim);
}

/* Two-col grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-2.meet-grid { grid-template-columns: 0.9fr 1.1fr; }
}

.portrait-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  min-height: 260px;
  position: relative;
}

.portrait-wrap img {
  width: min(240px, 75%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lime);
  box-shadow: 0 0 30px var(--lime-glow), 0 0 60px rgba(255, 158, 44, 0.2);
  background: var(--bg-panel);
  animation: float-avatar 6s infinite alternate ease-in-out;
}

@keyframes float-avatar {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

.meet-body { display: flex; flex-direction: column; gap: 0.75rem; }

.meet-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meet-body .role {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.meet-body p { color: var(--text-muted); font-size: 0.9375rem; }

.quote {
  margin-top: 0.5rem;
  padding: 0.75rem 0 0.75rem 0.9rem;
  border-left: 2px solid var(--lime);
  font-size: 0.9375rem;
  color: var(--text);
  font-style: italic;
  background: rgba(255, 158, 44, 0.05);
  border-radius: 0 8px 8px 0;
}

.traits { display: grid; gap: 0.75rem; margin-top: 0.5rem; }

.trait {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.75rem;
}

.trait span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.trait-bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lime), var(--cyan-accent));
  border-radius: 3px;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 10px var(--lime-glow);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.data-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: var(--bg-hover);
  color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table td.right, .data-table th.right { text-align: right; }

.data-table .mono-val {
  font-family: var(--font-mono);
  color: var(--lime);
  font-weight: 500;
}

/* Scene gallery cards */
.scenes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .scenes-grid { grid-template-columns: repeat(3, 1fr); }
}

.scene-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.25s;
}

.scene-card:hover {
  border-color: var(--lime);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--lime-glow);
}

.scene-card .art {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
}

.scene-card .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.scene-card:hover .art img { transform: scale(1.05); }
.scene-card .body { padding: 0.85rem 0.9rem 1rem; }

.scene-card h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.scene-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Feature list */
.feature-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.45rem;
  border-radius: 1px;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
  flex-shrink: 0;
}

/* Live Candlestick Graph Simulator */
.mock-board {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.mock-board .row {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.mock-board .sym {
  font-family: var(--font-mono);
  color: var(--lime);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mock-board .price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pos);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fake-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  margin-bottom: 0.75rem;
}

.fake-bars span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--lime), transparent);
  opacity: 0.65;
  transition: height 0.6s var(--ease), background 0.3s;
}

.fake-bars span.up {
  background: linear-gradient(180deg, var(--pos), transparent);
}

.fake-bars span.down {
  background: linear-gradient(180deg, var(--neg), transparent);
}

.mock-board .hint {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Lore / Coverage */
.lore-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 900px) {
  .lore-split { grid-template-columns: 1.1fr 1fr; }
}

.lore-art {
  min-height: 240px;
  background: center/cover no-repeat;
  background-image: url('gall3.jpg');
}

.lore-copy {
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lore-copy h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.lore-copy p { color: var(--text-muted); font-size: 0.9375rem; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--lime);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pill:hover {
  border-color: var(--lime);
  box-shadow: 0 0 10px var(--lime-glow);
}

/* CTA card */
.cta-card {
  text-align: center;
  padding: 2.8rem 1.25rem;
  background:
    linear-gradient(180deg, rgba(11,12,15,.7), rgba(11,12,15,.95)),
    url('herobg.jpg') center/cover no-repeat;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 700;
  margin: 0.65rem 0 0.55rem;
}

.cta-card p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.25rem;
  font-size: 0.9375rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1rem;
  text-align: center;
}

.site-footer .foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
  font-size: 0.95rem;
  text-transform: lowercase;
}

.site-footer .foot-copy {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* Agent Floating Chat FAB & Panel */
.agent-fab {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  border-radius: 999px;
  background: var(--lime);
  color: #0b0c0f;
  border: 1px solid var(--lime);
  box-shadow: 0 12px 36px rgba(255, 158, 44, 0.45), 0 0 20px var(--lime-glow);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s, background 0.15s, opacity 0.2s, box-shadow 0.2s;
  animation: fab-float 4s infinite alternate ease-in-out;
}

@keyframes fab-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.agent-fab:hover {
  background: var(--lime-hover);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 40px rgba(255, 158, 44, 0.6);
}

.agent-fab img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(11,12,15,.2); background: var(--bg-elevated);
}

.agent-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.9); }

.agent-panel {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem; z-index: 210;
  width: min(390px, calc(100vw - 1.5rem));
  height: min(580px, calc(100vh - 5rem));
  display: none; flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--lime);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 30px var(--lime-glow);
  overflow: hidden;
}

.agent-panel.open { display: flex; }

.agent-head {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.agent-head img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--lime); background: #e6e0d4;
  box-shadow: 0 0 10px var(--lime-glow);
}

.agent-head .meta { flex: 1; min-width: 0; }

.agent-head .name {
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--lime);
}

.agent-head .status {
  font-size: 0.7rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.1rem;
}

.agent-head .status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos); box-shadow: 0 0 0 3px rgba(0, 240, 144, 0.25);
}

.agent-close {
  width: 32px; height: 32px; border-radius: 8px;
  color: var(--text-muted); font-size: 1.1rem; line-height: 1;
}

.agent-close:hover { color: var(--text); background: var(--bg-hover); }

.agent-msgs {
  flex: 1; overflow-y: auto; padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.7rem; background: var(--bg);
}

.agent-msg {
  max-width: 88%; padding: 0.65rem 0.8rem; border-radius: 12px;
  font-size: 0.875rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}

.agent-msg.bot {
  align-self: flex-start; background: var(--bg-elevated);
  border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px;
}

.agent-msg.user {
  align-self: flex-end; background: var(--lime); color: #0b0c0f; font-weight: 500; border-bottom-right-radius: 4px;
}

.agent-msg .who {
  display: block; font-family: var(--font-display); font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-bottom: 0.25rem;
}

.agent-typing {
  align-self: flex-start; font-size: 0.75rem; color: var(--lime);
  font-family: var(--font-display); letter-spacing: 0.06em; padding: 0 0.9rem 0.4rem; display: none;
}

.agent-typing.on { display: block; }

.agent-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0 0.9rem 0.65rem; background: var(--bg);
}

.agent-chip {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  padding: 0.4rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-muted);
  transition: all 0.15s;
}

.agent-chip:hover { color: var(--lime); border-color: var(--lime); background: var(--bg-hover); }

.agent-compose {
  display: flex; gap: 0.45rem; padding: 0.7rem 0.75rem;
  border-top: 1px solid var(--border); background: var(--bg-elevated);
}

.agent-compose input {
  flex: 1; height: 40px; padding: 0 0.75rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.875rem;
}

.agent-compose input:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-dim);
}

.agent-send {
  height: 40px; padding: 0 0.9rem; border-radius: 10px;
  background: var(--lime); color: #0b0c0f;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; border: none;
  transition: background 0.15s;
}

.agent-send:hover { background: var(--lime-hover); }

/* Interactive App Modal */
.app-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}

.app-modal-overlay.open {
  opacity: 1; pointer-events: auto;
}

.app-modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--lime);
  border-radius: 16px;
  width: 100%; max-width: 680px;
  padding: 1.5rem; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--lime-glow);
  transform: scale(0.95);
  transition: transform 0.25s var(--ease);
}

.app-modal-overlay.open .app-modal-card {
  transform: scale(1);
}

.app-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 1.5rem; color: var(--text-muted); cursor: pointer;
  transition: color 0.15s;
}

.app-modal-close:hover { color: var(--text); }

.app-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
}

.app-demo-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}

.demo-symbol {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; color: var(--lime);
}

.demo-range-selector { display: flex; gap: 4px; }

.range-btn {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px;
  border-radius: 4px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted);
  transition: all 0.15s;
}

.range-btn.active {
  background: var(--lime); color: #0b0c0f; font-weight: 600; box-shadow: 0 0 10px var(--lime-glow);
}

.demo-chart-container {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.25rem; height: 220px;
  display: flex; align-items: flex-end; margin-bottom: 1rem;
}

.candlestick-chart {
  width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: space-around; gap: 8px;
}

.candle {
  width: 24px; position: relative; border-radius: 2px;
  transition: height 0.5s var(--ease);
}

.candle.bull { background: #00F090; box-shadow: 0 0 8px var(--pos-glow); }
.candle.bear { background: #FF4D4D; box-shadow: 0 0 8px rgba(255, 77, 77, 0.3); }

.candle .wick {
  position: absolute; left: 50%; top: -12px; bottom: -12px; width: 2px;
  background: inherit; transform: translateX(-50%);
}

.demo-indicators {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.ind-tag {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px;
  border-radius: 999px; background: var(--lime-dim); border: 1px solid rgba(255, 158, 44, 0.3); color: var(--lime);
}
