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

/* ==========================================
   TOKYO NIGHT DESIGN SYSTEM & TOKENS
   ========================================== */
:root {
  /* Color Palette */
  --bg-primary: #1a1b26;        /* Deep dark charcoal blue */
  --bg-secondary: #13141f;      /* Near-black dark blue for panel backgrounds */
  --surface-card: #202334;      /* Muted slate card surface */
  --surface-card-hover: #292e46; /* Lighter slate for active elements */
  --text-primary: #a9b1d6;      /* Clean soft lavender-white */
  --text-heading: #c0caf5;      /* Brighter soft purple-blue for headers */
  --text-muted: #565f89;        /* Muted tech slate grey */
  --text-inverse: #15161e;      /* Contrast dark text */
  
  /* Accents */
  --accent-blue: #7aa2f7;       /* Primary warm blue */
  --accent-purple: #bb9af3;     /* Secondary soft violet */
  --accent-teal: #73daca;       /* Glowing cyan-teal */
  --accent-orange: #ff9e64;     /* Warning/Intake orange */
  --accent-red: #f7768e;        /* Error/Delete red */
  
  /* Borders & Shadows */
  --border-color: rgba(86, 95, 137, 0.25);
  --border-active: rgba(122, 162, 247, 0.4);
  --border-glow: rgba(122, 162, 247, 0.15);
  --shadow-glow: 0 0 30px rgba(122, 162, 247, 0.08);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  /* Fonts */
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Standard Layout Parameters */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================
   GLOBAL RESET & DECORATION
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Custom Selection Highlight */
::selection {
  background: rgba(122, 162, 247, 0.3);
  color: #ffffff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-purple);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* ==========================================
   REUSABLE SYSTEM COMPONENTS
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-teal);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 60px;
}

.glass-panel {
  background: rgba(32, 35, 52, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px border var(--border-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

/* ==========================================
   LAYOUT STRUCTURES: NAV & HERO
   ========================================== */

/* Floating Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  background: rgba(22, 22, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 70px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  background-color: #000000; /* Solid Black Background */
  padding: 4px;
  transition: var(--transition-smooth);
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: var(--transition-smooth);
}

/* Tokyo Night Default States */
.logo-svg .star-filled {
  stroke: #ffffff;
  fill: #ffffff; /* Solid White like GitHub */
  stroke-width: 1px;
  transition: var(--transition-smooth);
}

/* PUP Logo Hover States: Yellow Star & Crimson Red Circle Background */
.nav-logo:hover .logo-icon, .logo-icon:hover {
  background-color: #A31820; /* PUP Maroon/Red */
  box-shadow: 0 0 15px rgba(163, 24, 32, 0.8);
  transform: scale(1.1) rotate(5deg);
}

.nav-logo:hover .logo-svg .star-filled, .logo-icon:hover .logo-svg .star-filled {
  stroke: #ffd700 !important; /* Gold/Yellow Star */
  fill: #ffd700 !important; /* Solid Gold/Yellow Fill */
  filter: drop-shadow(0 0 4px #ffd700);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.05em;
  font-size: 1.2rem;
  color: var(--text-heading);
}
.logo-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Can add hamburger menu later or keep simple */
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav-link span {
  color: var(--accent-teal);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
}
.nav-link.active {
  border-bottom-color: var(--accent-blue);
}

.cta-button {
  background: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}
.cta-button:hover {
  background: var(--accent-blue);
  color: var(--bg-primary);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(122, 162, 247, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(122, 162, 247, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(187, 154, 243, 0.03) 0%, transparent 50%);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  z-index: 2;
  position: relative;
}
@media (max-width: 992px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 0;
  }
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  background: rgba(115, 218, 202, 0.07);
  border: 1px solid rgba(115, 218, 202, 0.2);
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.hero-badge-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}
@media (max-width: 992px) {
  .hero-buttons {
    justify-content: center;
  }
}

.hero-cta {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hero-cta:hover {
  box-shadow: 0 0 25px rgba(187, 154, 243, 0.4);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

.hero-secondary {
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.hero-secondary:hover {
  background: rgba(86, 95, 137, 0.15);
  border-color: var(--accent-blue);
}

/* Background canvas in Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}
@media (max-width: 992px) {
  .hero-visual {
    height: 300px;
    order: -1;
  }
}

#hero-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.85;
}

/* Hero technical metadata box */
.tech-spec-box {
  position: relative;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 80%;
  text-align: left;
  border-left: 2px solid var(--accent-blue);
  background: linear-gradient(90deg, rgba(32, 35, 52, 0.4), transparent);
}
.tech-spec-line {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.tech-spec-line span {
  color: var(--text-primary);
}

/* ==========================================
   THE 10 FOUNDATIONS (DECOLOGUE) SECTION
   ========================================== */
.foundations {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.foundations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .foundations-grid {
    grid-template-columns: 1fr;
  }
}

.foundation-card {
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(22, 22, 30, 0.4);
  transition: var(--transition-smooth);
  display: flex;
  gap: 24px;
}
.foundation-card:hover {
  border-color: var(--border-active);
  background: rgba(32, 35, 52, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.foundation-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1.1;
  user-select: none;
}

.foundation-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.foundation-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================
   SERVICES SHOWCASE
   ========================================== */
.services {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(32, 35, 52, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-blue);
  opacity: 0;
  transition: var(--transition-smooth);
}
.service-card:hover {
  border-color: var(--border-active);
  background: rgba(32, 35, 52, 0.7);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}
.service-card:hover::after {
  opacity: 1;
}

/* Service Card Accents for variety */
.service-card.s-web::after { background: var(--accent-blue); }
.service-card.s-data::after { background: var(--accent-teal); }
.service-card.s-automation::after { background: var(--accent-purple); }
.service-card.s-ai::after { background: var(--accent-orange); }
.service-card.s-marketing::after { background: var(--accent-red); }
.service-card.s-software::after { background: var(--accent-blue); }

.service-icon-box {
  width: 50px;
  height: 50px;
  background: rgba(22, 22, 30, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-blue);
  transition: var(--transition-smooth);
}
.service-card:hover .service-icon-box {
  color: #ffffff;
  border-color: transparent;
}
.service-card.s-web:hover .service-icon-box { background: var(--accent-blue); }
.service-card.s-data:hover .service-icon-box { background: var(--accent-teal); }
.service-card.s-automation:hover .service-icon-box { background: var(--accent-purple); }
.service-card.s-ai:hover .service-icon-box { background: var(--accent-orange); }
.service-card.s-marketing:hover .service-icon-box { background: var(--accent-red); }
.service-card.s-software:hover .service-icon-box { background: var(--accent-blue); }

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card h3 span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.service-card p {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(22, 22, 30, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.service-card:hover .service-tag {
  color: var(--text-primary);
  border-color: rgba(169, 177, 214, 0.15);
}

/* ==========================================
   HUMAN CENTRIC INTERACTIVE PANEL
   ========================================== */
.human-experience {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hex-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 60px;
}
@media (max-width: 992px) {
  .hex-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hex-content {
  max-width: 500px;
}
.hex-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.hex-content p {
  color: var(--text-primary);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.hex-quote {
  border-left: 2px solid var(--accent-teal);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--text-heading);
}

.hex-interactive-container {
  height: 420px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(22, 22, 30, 0.7);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hex-panel-header {
  height: 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  background: rgba(19, 20, 31, 0.6);
}
.hex-header-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.hex-header-dots {
  display: flex;
  gap: 6px;
}
.hex-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.hex-dot.teal { background: var(--accent-teal); }

.hex-canvas-box {
  flex-grow: 1;
  position: relative;
  cursor: crosshair;
}

#hex-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hex-canvas-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-teal);
  pointer-events: none;
  background: rgba(19, 20, 31, 0.8);
  padding: 6px 12px;
  border: 1px solid rgba(115, 218, 202, 0.2);
  border-radius: var(--border-radius-sm);
}

/* ==========================================
   CONTACT & INTAKE CONSOLE
   ========================================== */
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 20% 80%, rgba(187, 154, 243, 0.04) 0%, transparent 40%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-details {
  list-style: none;
  margin-top: 40px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon-wrapper {
  color: var(--accent-blue);
  margin-top: 4px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contact-val {
  color: var(--text-heading);
  font-size: 1.1rem;
}

/* Console Styled Intake Form */
.intake-console {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  overflow: hidden;
}

.console-header {
  height: 44px;
  background: rgba(32, 35, 52, 0.5);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.console-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.console-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.console-controls {
  display: flex;
  gap: 6px;
}
.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(86, 95, 137, 0.3);
}

.console-body {
  padding: 30px;
}

.console-form-group {
  margin-bottom: 24px;
}
.console-form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.console-input-wrapper {
  position: relative;
}
.console-input {
  width: 100%;
  background: rgba(32, 35, 52, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  color: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}
.console-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(122, 162, 247, 0.15);
  background: rgba(32, 35, 52, 0.6);
}

textarea.console-input {
  resize: vertical;
  min-height: 100px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .console-grid {
    grid-template-columns: 1fr;
  }
}

.console-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}
.console-submit:hover {
  box-shadow: 0 0 25px rgba(115, 218, 202, 0.3);
  transform: translateY(-1px);
}

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: none;
}
.form-status.success {
  background: rgba(115, 218, 202, 0.08);
  border: 1px solid rgba(115, 218, 202, 0.2);
  color: var(--accent-teal);
  display: block;
}

/* ==========================================
   INTERACTIVE FLOATING CHATBOT WIDGET
   ========================================== */
.bot-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(122, 162, 247, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
  color: var(--bg-primary);
}
.bot-trigger:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 15px 35px rgba(122, 162, 247, 0.5);
}
.bot-trigger.active {
  transform: rotate(90deg);
  background: var(--surface-card);
  color: var(--accent-red);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.bot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 500px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.bot-container.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
@media (max-width: 480px) {
  .bot-container {
    width: calc(100vw - 40px);
    right: 20px;
    bottom: 90px;
  }
}

.bot-header {
  height: 50px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(19, 20, 31, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.bot-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bot-pulse-status {
  width: 8px;
  height: 8px;
  background-color: var(--accent-teal);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}
.bot-header-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-heading);
}

.bot-close-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.bot-close-btn:hover {
  color: var(--accent-red);
}

/* Chat Terminal Feed */
.bot-feed {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background: rgba(19, 20, 31, 0.75);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.bot-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
}

.bot-message.bot {
  background: var(--surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  align-self: flex-start;
  font-family: var(--font-sans);
}
.bot-message.bot::before {
  content: 'AMABINI_SYS //';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-teal);
  margin-bottom: 4px;
}

.bot-message.user {
  background: rgba(122, 162, 247, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(122, 162, 247, 0.2);
  align-self: flex-end;
}
.bot-message.user::before {
  content: 'CLIENT //';
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

/* Typing Indicator */
.bot-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.bot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite ease-in-out both;
}
.bot-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.bot-typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* Interactive options drawer */
.bot-options {
  padding: 12px 20px;
  background: rgba(22, 22, 30, 0.9);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bot-opt-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  background: rgba(32, 35, 52, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bot-opt-btn::after {
  content: '>';
  opacity: 0;
  transition: var(--transition-fast);
}
.bot-opt-btn:hover {
  background: rgba(122, 162, 247, 0.1);
  border-color: var(--accent-blue);
  padding-left: 16px;
}
.bot-opt-btn:hover::after {
  opacity: 1;
}

/* Dynamic estimate card */
.estimate-card {
  border: 1px dashed var(--accent-teal);
  border-radius: var(--border-radius-sm);
  background: rgba(115, 218, 202, 0.03);
  padding: 16px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.estimate-title {
  color: var(--accent-teal);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.estimate-total {
  border-top: 1px solid rgba(115, 218, 202, 0.2);
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-copy span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-blue);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.footer-meta span {
  color: var(--accent-teal);
}

.scroll-top {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.scroll-top:hover {
  background: rgba(86, 95, 137, 0.1);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* ==========================================
   KEYFRAMES & ANIMATIONS
   ========================================== */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(115, 218, 202, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(115, 218, 202, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(115, 218, 202, 0);
  }
}

@keyframes typing {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
