/* ============================================================
   Unix Hawk — Dark presentation theme
   Bootstrap 5.3 + custom styles
   ============================================================ */

:root {
  --bg-deep: #070b12;
  --bg-base: #0b1220;
  --bg-elevated: #111a2b;
  --bg-card: rgba(17, 26, 43, 0.72);
  --bg-card-solid: #121c30;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #e8eef9;
  --text-muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #34d399;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #67e8f9;
}

img {
  max-width: 100%;
}

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}

.text-accent {
  color: var(--accent) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), transparent 70%);
  animation: float-glow 18s ease-in-out infinite;
}

.bg-glow-2 {
  width: 480px;
  height: 480px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.3), transparent 70%);
  animation: float-glow 22s ease-in-out infinite reverse;
}

.bg-glow-3 {
  width: 360px;
  height: 360px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), transparent 70%);
  animation: float-glow 26s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

/* ---------- Navbar ---------- */
.navbar {
  height: var(--nav-h);
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  z-index: 1030;
}

.navbar.scrolled {
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent);
  font-size: 1.15rem;
  box-shadow: 0 0 24px var(--accent-glow);
}

.brand-mark.sm {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1) brightness(1.2);
}

/* ---------- Buttons ---------- */
.btn-accent {
  --bs-btn-color: #041016;
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: #041016;
  --bs-btn-hover-bg: #67e8f9;
  --bs-btn-hover-border-color: #67e8f9;
  --bs-btn-active-color: #041016;
  --bs-btn-active-bg: #22d3ee;
  --bs-btn-active-border-color: #22d3ee;
  --bs-btn-font-weight: 600;
  border-radius: 0.65rem;
  box-shadow: 0 0 0 0 transparent, 0 8px 24px rgba(34, 211, 238, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--accent-glow), 0 10px 28px rgba(34, 211, 238, 0.3);
}

.btn-outline-light {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.35);
  --bs-btn-hover-color: #fff;
  border-radius: 0.65rem;
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
}

.py-section {
  padding: 6.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 26, 43, 0.35) 0%, transparent 100%);
}

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.section-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.1rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent-3);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-lead {
  max-width: 34rem;
  font-weight: 400;
  font-size: 1.15rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: bounce 2.2s infinite;
  opacity: 0.7;
}

.scroll-hint:hover {
  color: var(--accent);
  opacity: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Terminal */
.terminal-window {
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 60px rgba(34, 211, 238, 0.08);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s var(--ease);
}

.terminal-window:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(0deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

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

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.1rem 1.2rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(34, 211, 238, 0.35) transparent;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.3);
  border-radius: 4px;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.7em;
}

.term-line .dim { color: #64748b; }
.term-line .accent { color: var(--accent); }
.term-line .str { color: #86efac; }
.term-line .pkg { color: #94a3b8; }
.term-line .bar { color: #67e8f9; letter-spacing: 0.02em; }

.term-line .caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: caret-blink 1.05s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.term-line .prompt {
  color: var(--accent);
  margin-right: 0.4rem;
}

.term-line .cmd {
  color: var(--text);
}

.term-line.out {
  color: var(--text-muted);
  padding-left: 1.1rem;
}

.term-line .ok {
  color: var(--ok);
  margin-right: 0.35rem;
}

.typing {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Cards ---------- */
.stat-card,
.mini-card,
.service-card,
.visual-card,
.code-card,
.cta-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-card {
  padding: 1.75rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(34, 211, 238, 0.08);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.feature-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.feature-list i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.feature-list strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.feature-list span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Network visual */
.visual-card {
  padding: 1.5rem;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.network-card {
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08), transparent 55%),
    var(--bg-card);
}

.node-map {
  position: relative;
  width: 100%;
  height: 320px;
}

.node-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node-links .link {
  stroke: rgba(34, 211, 238, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: dash 12s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -120; }
}

.node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.node i {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.node:hover i {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}

.node-core {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.node-core i {
  width: 64px;
  height: 64px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(129, 140, 248, 0.2));
  border-color: rgba(34, 211, 238, 0.45);
  color: #fff;
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
}

.node-a { left: 8%; top: 8%; }
.node-b { right: 8%; top: 8%; }
.node-c { left: 8%; bottom: 8%; }
.node-d { right: 8%; bottom: 8%; }

/* Mini cards */
.mini-card {
  padding: 1.25rem;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.mini-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateY(-2px);
}

.mini-card i {
  font-size: 1.35rem;
  color: var(--accent-2);
  margin-bottom: 0.65rem;
  display: block;
}

.mini-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.mini-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Code card */
.code-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.35rem;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-file {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  margin: 0;
  padding: 1.35rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--text-muted);
  background: transparent;
}

.code-body .kw { color: #c4b5fd; }
.code-body .fn { color: #67e8f9; }
.code-body .str { color: #86efac; }

/* Service cards */
.service-card {
  padding: 1.75rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.15rem;
  color: #fff;
}

.ai-1 { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.ai-2 { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.ai-3 { background: linear-gradient(135deg, #34d399, #059669); }
.ai-4 { background: linear-gradient(135deg, #f472b6, #db2777); }
.ai-5 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ai-6 { background: linear-gradient(135deg, #94a3b8, #475569); }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

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

@media (min-width: 992px) {
  .stack-grid { grid-template-columns: repeat(6, 1fr); }
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.35rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
}

.stack-item i {
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.stack-item:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.stack-item:hover i {
  transform: scale(1.12);
}

/* CTA */
.section-cta {
  padding-bottom: 5rem;
}

.cta-panel {
  padding: 2.75rem 2.5rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.1)),
    var(--bg-card);
  border-color: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.06), var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), transparent 70%);
  pointer-events: none;
}

.contact-meta {
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 18, 0.6);
}

.footer-links a {
  font-size: 1.25rem;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent) !important;
  transform: translateY(-2px);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(7, 11, 18, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(16px);
  }

  .py-section {
    padding: 4.5rem 0;
  }

  .cta-panel {
    padding: 2rem 1.5rem;
    text-align: center;
  }

  .cta-panel .text-lg-end {
    text-align: center !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .terminal-body {
    font-size: 0.75rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-glow, .pulse-dot, .scroll-hint, .node-core i, .node-links .link, .typing, .term-line .caret {
    animation: none !important;
  }
}


/* ---------- Tawk AI console ---------- */
.tawk-window {
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(34, 211, 238, 0.06),
    0 0 80px rgba(129, 140, 248, 0.12);
  overflow: hidden;
  backdrop-filter: blur(14px);
  position: relative;
}

.tawk-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(129, 140, 248, 0.55), transparent);
  pointer-events: none;
}

.tawk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.1), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid var(--border);
}

.tawk-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tawk-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #818cf8 55%, #a78bfa);
  box-shadow: 0 0 24px rgba(129, 140, 248, 0.45);
  flex-shrink: 0;
}

.tawk-titles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tawk-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.tawk-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent-2);
}

.tawk-status.is-online {
  color: var(--accent-3);
}

.tawk-status.is-thinking {
  color: var(--accent);
}

.tawk-status.is-tools {
  color: #c4b5fd;
}

.tawk-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: tawk-pulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes tawk-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); transform: scale(1); }
  70% { box-shadow: 0 0 0 10px transparent; transform: scale(1.05); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}

.tawk-bar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.tawk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.tawk-chip.dim {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border);
}

.tawk-body {
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.15rem 1.25rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 140, 248, 0.4) transparent;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(129, 140, 248, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(34, 211, 238, 0.05), transparent 50%);
}

.tawk-body::-webkit-scrollbar { width: 6px; }
.tawk-body::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.35);
  border-radius: 4px;
}

.tawk-line {
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.tawk-line.sys {
  color: #94a3b8;
}

.tawk-line.sys .tag {
  color: #a78bfa;
  margin-right: 0.35rem;
}

.tawk-line.user-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0.85rem 0 0.95rem;
}

.tawk-bubble-user {
  max-width: min(92%, 34rem);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 1rem 1rem 0.35rem 1rem;
  padding: 0.7rem 0.95rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tawk-bubble-user .who {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tawk-line.think {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tawk-line.think .think-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--accent);
  animation: think-bounce 1.1s ease-in-out infinite;
}
.tawk-line.think .think-dots span:nth-child(2) { animation-delay: 0.15s; }
.tawk-line.think .think-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes think-bounce {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.tawk-line.tool {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #c4b5fd;
  padding: 0.35rem 0.55rem;
  border-left: 2px solid rgba(167, 139, 250, 0.45);
  background: rgba(129, 140, 248, 0.06);
  border-radius: 0 0.4rem 0.4rem 0;
  margin-left: 0.15rem;
}

.tawk-line.tool .tool-icon {
  color: #a78bfa;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tawk-line.tool .tool-name {
  color: #e9d5ff;
  font-weight: 500;
}

.tawk-line.tool .tool-meta {
  color: #64748b;
  font-size: 0.74rem;
}

.tawk-line.tool.done {
  color: #86efac;
  border-left-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.05);
}

.tawk-line.tool.done .tool-icon { color: var(--ok); }
.tawk-line.tool.done .tool-name { color: #bbf7d0; }

.tawk-line.step {
  color: #94a3b8;
  padding-left: 0.35rem;
}

.tawk-line.step .step-mark {
  color: var(--accent);
  margin-right: 0.4rem;
}

.tawk-line.step.active {
  color: var(--text);
}

.tawk-line.step.active .step-mark {
  animation: step-spin 0.9s linear infinite;
  display: inline-block;
}

@keyframes step-spin {
  to { transform: rotate(360deg); }
}

.tawk-line.assistant {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.35rem 1rem 1rem 1rem;
  background: rgba(17, 26, 43, 0.85);
  border: 1px solid var(--border-strong);
  font-family: var(--font);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  max-width: min(96%, 38rem);
}

.tawk-line.assistant .who {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #a78bfa;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tawk-line.assistant .hl {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.tawk-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  animation: caret-blink 1.05s step-end infinite;
}

.tawk-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.tawk-connect-orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(129, 140, 248, 0.35));
  border: 1px solid rgba(167, 139, 250, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  position: relative;
  animation: orb-breathe 2.2s ease-in-out infinite;
}

.tawk-connect-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  animation: orb-ring 2.2s ease-out infinite;
}

@keyframes orb-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(129, 140, 248, 0.35); }
  50% { transform: scale(1.06); box-shadow: 0 0 36px rgba(34, 211, 238, 0.45); }
}

@keyframes orb-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

.tawk-connect-title {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tawk-connect-title .dots::after {
  content: "";
  animation: connect-dots 1.4s steps(4, end) infinite;
}

@keyframes connect-dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.tawk-connect-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

@media (max-width: 575.98px) {
  .tawk-body { height: 320px; font-size: 0.74rem; }
  .tawk-bar { flex-direction: column; align-items: flex-start; }
  .tawk-bar-right { width: 100%; }
  .tawk-bubble-user,
  .tawk-line.assistant { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tawk-pulse, .tawk-connect-orb, .tawk-connect-orb::after,
  .tawk-line.think .think-dots span, .tawk-line.step.active .step-mark,
  .tawk-caret, .tawk-connect-title .dots::after {
    animation: none !important;
  }
}
