:root {
  --bg-color: #06090e;
  --bg-card: rgba(13, 19, 28, 0.75);
  --bg-card-hover: rgba(18, 27, 40, 0.9);
  --border-color: rgba(0, 255, 136, 0.15);
  --border-glow: rgba(0, 255, 136, 0.45);
  
  --neon-green: #00ff88;
  --neon-cyan: #00f0ff;
  --neon-purple: #8b5cf6;
  --neon-crimson: #ff0055;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #4b5563;

  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Canvas Matrix Rain in background */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}

/* Subtle CRT scanline overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.6;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 14, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-name .accent {
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--neon-green);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--neon-green) !important;
  color: #04080e !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  border: 1px solid var(--neon-green) !important;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  white-space: nowrap;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-nav:hover {
  background: #2aff9b !important;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.65);
}

.icon-nav {
  width: 12px;
  height: 12px;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 3rem auto 6rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-green);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.glitch {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  color: #fff;
  position: relative;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2rem 0;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--neon-green);
  color: #06090e;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-primary:hover {
  background: #22ffa0;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.7);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.icon {
  width: 20px;
  height: 20px;
}

.status-bar {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
}

.status-item strong {
  color: var(--neon-green);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.live {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Emblem Container with Cyber Rings */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.emblem-container {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.emblem-ring {
  position: absolute;
  border: 1px dashed rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  width: 340px;
  height: 340px;
  animation: spin 24s linear infinite;
}

.emblem-ring.ring-outer {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--neon-green);
  animation: spin-reverse 35s linear infinite;
}

.hero-emblem-img {
  width: 260px;
  height: 260px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--border-glow);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.25);
  position: relative;
  z-index: 2;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Section Common Styling */
section {
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--neon-green);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Interactive Terminal Section */
.terminal-window {
  background: #080c12;
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #0d131c;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-controls {
  display: flex;
  gap: 7px;
}

.control {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.control.close { background: #ff5f56; }
.control.min { background: #ffbd2e; }
.control.max { background: #27c93f; }

.terminal-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terminal-session {
  font-size: 0.75rem;
  color: var(--neon-green);
}

.terminal-body {
  padding: 1.5rem;
  height: 250px;
  overflow-y: auto;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.term-line {
  color: #d1d5db;
}

.system-msg {
  color: var(--neon-cyan);
}

.cmd-highlight {
  color: var(--neon-green);
  font-weight: 600;
}

.terminal-input-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #05080c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-input-row .prompt {
  color: var(--neon-green);
  margin-right: 0.75rem;
  font-size: 0.9rem;
}

#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Manifesto Grid */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.manifesto-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.25rem 1.75rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.manifesto-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.12);
}

.card-icon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.manifesto-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.manifesto-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

.project-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-badge.active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.75rem 0;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Community CTA Section */
.community-card {
  background: linear-gradient(135deg, rgba(13, 20, 30, 0.9), rgba(5, 10, 16, 0.95));
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.15);
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-card h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.community-card p {
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 2rem;
  background: #040609;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.founders-text {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem !important;
  color: var(--neon-cyan) !important;
  letter-spacing: 1px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.rights-text {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-founder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.founder-flag {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.footer-meta {
  display: flex;
  gap: 1.5rem;
}

.footer-meta strong {
  color: var(--neon-green);
}

/* Security & Legal Banner */
.security-banner {
  margin-top: -3rem;
  margin-bottom: 4rem;
}

.shield-badge {
  background: rgba(13, 20, 30, 0.6);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-left: 4px solid var(--neon-green);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.shield-icon {
  width: 36px;
  height: 36px;
  color: var(--neon-green);
  flex-shrink: 0;
}

.shield-badge h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--neon-green);
  margin-bottom: 0.25rem;
}

.shield-badge p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shield-badge a {
  color: var(--neon-cyan);
  text-decoration: underline;
  cursor: pointer;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #090e16;
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 50px rgba(0, 255, 136, 0.25);
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  padding: 2rem;
  font-family: var(--font-body);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.modal-header h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--neon-green);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-body p {
  color: #d1d5db;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-body strong {
  color: var(--neon-cyan);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtext {
    margin: 1.5rem auto 2rem auto;
  }
  .hero-actions, .status-bar {
    justify-content: center;
  }
  .manifesto-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
  .shield-badge {
    flex-direction: column;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* Dedicated Mobile Viewport (Phones <= 768px) */
@media (max-width: 768px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.6rem 0.85rem;
    width: 100%;
  }

  .nav-container {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .brand-logo {
    width: 24px;
    height: 24px;
    border-radius: 5px;
  }

  /* Hide desktop text links in navbar so header fits cleanly on phone screen */
  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a:not(.btn-nav) {
    display: none;
  }

  .btn-nav {
    padding: 0.18rem 0.45rem;
    font-size: 0.65rem;
    gap: 0.2rem;
    white-space: nowrap;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.35);
  }

  .icon-nav {
    width: 10px;
    height: 10px;
  }

  /* Hero Section */
  .hero {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin: 1.5rem auto 3rem auto;
    gap: 2.5rem;
  }

  .glitch {
    font-size: 2.3rem !important;
    letter-spacing: 1.5px;
    line-height: 1.15;
    word-break: break-word;
    text-align: center;
  }

  .tagline {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-align: center;
  }

  .hero-founder-tag {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.4;
    justify-content: center;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 1.25rem 0 1.75rem 0;
    padding: 0 0.25rem;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    padding: 0;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .status-bar {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    padding-top: 1.25rem;
    font-size: 0.75rem;
    align-items: center;
    text-align: center;
  }

  /* Mobile Emblem Scaling - Compact so it does not dominate the screen */
  .hero-visual {
    width: 100%;
    overflow: hidden;
  }

  .emblem-container {
    width: 160px;
    height: 160px;
    max-width: 70vw;
  }

  .emblem-ring {
    width: 170px;
    height: 170px;
  }

  .emblem-ring.ring-outer {
    width: 185px;
    height: 185px;
  }

  .hero-emblem-img {
    width: 125px;
    height: 125px;
    border-radius: 14px;
  }

  /* Content Sections */
  section {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 3.5rem;
    overflow-x: hidden;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  /* Terminal Window */
  .terminal-window {
    width: 100%;
  }

  .terminal-body {
    padding: 1rem 0.85rem;
    height: 220px;
    font-size: 0.8rem;
  }

  .terminal-input-row {
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
  }

  .terminal-input-row .prompt {
    font-size: 0.75rem;
    margin-right: 0.4rem;
  }

  #terminal-input {
    font-size: 0.8rem;
  }

  /* Cards */
  .manifesto-card, .project-card {
    padding: 1.5rem 1.25rem;
    width: 100%;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .community-card {
    padding: 2.5rem 1.25rem;
    width: 100%;
  }

  .community-card h2 {
    font-size: 1.75rem;
  }

  .community-card p {
    font-size: 0.95rem;
  }

  .shield-badge {
    padding: 1.25rem 1rem;
  }

  .shield-badge p {
    font-size: 0.82rem;
  }

  .footer-container {
    padding: 0 0.5rem;
  }
}

/* ========================================
   NULL-AI Cyber Assistant Styling
   ======================================== */
.ai-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 12, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.35);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-trigger:hover {
  transform: translateY(-2px);
  background: rgba(12, 20, 30, 0.95);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.6);
  border-color: #22ffa0;
}

.ai-icon {
  width: 18px;
  height: 18px;
  color: var(--neon-green);
}

.ai-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
}

.ai-badge {
  font-size: 0.65rem;
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  letter-spacing: 0.5px;
}

.ai-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 1.8s infinite;
}

/* AI Chat Window */
.ai-chat-window {
  display: none;
  position: fixed;
  bottom: 85px;
  right: 24px;
  width: 370px;
  height: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 110px);
  z-index: 9999;
  background: rgba(7, 11, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.2);
  border-radius: 14px;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body);
  animation: slideUp 0.25s ease-out;
}

.ai-chat-window.active {
  display: flex;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
  padding: 0.85rem 1rem;
  background: rgba(13, 20, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-avatar {
  position: relative;
  width: 36px;
  height: 36px;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-glow);
}

.avatar-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  border: 1.5px solid #070b11;
  box-shadow: 0 0 6px var(--neon-green);
}

.ai-chat-brand h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-ver {
  font-size: 0.65rem;
  color: var(--neon-green);
  font-family: var(--font-mono);
  background: rgba(0, 255, 136, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.ai-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
}

.ai-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s ease;
}

.ai-close-btn:hover {
  color: #fff;
}

/* Chat Body */
.ai-chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
}

.ai-msg .msg-bubble {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.ai-msg.bot .msg-bubble {
  background: rgba(14, 22, 34, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.2);
  color: #e5e7eb;
}

.ai-msg.bot .msg-bubble strong {
  color: var(--neon-green);
}

.ai-msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 255, 136, 0.2));
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
}

.ai-msg.user .msg-time {
  text-align: right;
}

/* Quick Pills */
.ai-quick-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.pill {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
  padding: 0.3rem 0.65rem;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill:hover {
  background: var(--neon-cyan);
  color: #04080e;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Chat Input Area */
.ai-chat-input-area {
  padding: 0.75rem 1rem;
  background: #05080c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-chat-input-area input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.55rem 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.ai-chat-input-area input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.25);
}

.ai-chat-input-area button {
  background: var(--neon-green);
  border: none;
  border-radius: 6px;
  color: #04080e;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ai-chat-input-area button:hover {
  background: #2aff9b;
  transform: scale(1.05);
}

/* Mobile AI button adjustments */
@media (max-width: 768px) {
  .ai-trigger {
    bottom: 16px;
    right: 16px;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
  .ai-chat-window {
    bottom: 75px;
    right: 16px;
    width: calc(100vw - 32px);
    height: 480px;
  }
}


