/* ==========================================================================
   Yakshith Enterprises — Design System
   Palette: deep signal-navy + electric blue + circuit-teal, on a cool paper base.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (data + labels)
   Signature: connected-node motif (network diagram) echoing "Network Solutions"
   ========================================================================== */

:root {
  /* Color */
  --navy-950: #060a16;
  --navy-900: #0a1128;
  --navy-800: #0f1a3a;
  --navy-700: #16224d;
  --paper: #f5f7fc;
  --paper-dim: #eceff8;
  --white: #ffffff;
  --ink: #101528;
  --ink-soft: #4a5170;
  --ink-faint: #838ba9;
  --blue: #3562ff;
  --blue-deep: #1f3fc4;
  --teal: #16d9c0;
  --amber: #ff8a3d;
  --border-dark: rgba(255, 255, 255, 0.09);
  --border-light: rgba(16, 21, 40, 0.09);
  --shadow-soft: 0 20px 50px -25px rgba(10, 17, 40, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(10, 17, 40, 0.28);

  /* Customizable brand roles (overridden live from Admin → Brand Colors).
     --blue / --blue-deep / --teal / --amber above are also overridden
     directly by that same panel — Primary/Secondary/Accent cascade through
     every existing use of those variables site-wide with no extra wiring. */
  --theme-button: #3562ff;
  --theme-header-bg: #0a1128;
  --theme-footer-bg: #060a16;
  --theme-text: #101528;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  /* Layout */
  --container: 1200px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--theme-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  color: var(--theme-text);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .9em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--teal); }

section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section-alt { background: var(--paper-dim); }
.section-dark { background: var(--navy-900); color: #cfd6ee; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--teal); }

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lede { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .lede { color: #a9b2d6; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--theme-button); color: #fff; box-shadow: 0 14px 30px -12px rgba(53,98,255,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(53,98,255,.65); }
.btn-ghost { border-color: var(--border-light); color: var(--theme-text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-ghost.on-dark { border-color: var(--border-dark); color: #fff; }
.btn-ghost.on-dark:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* Header ----------------------------------------------------------------*/
.top-bar {
  background: var(--theme-header-bg);
  color: #b9c2e6;
  font-family: var(--font-mono);
  font-size: .76rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; padding-top: .5rem; padding-bottom: .5rem; gap: 1rem; flex-wrap: wrap; }
.top-bar a:hover { color: var(--teal); }
.top-bar .top-links { display: flex; gap: 1.25rem; }
.top-bar .top-social { display: flex; gap: .9rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 700;
  background: var(--theme-header-bg);
  background: color-mix(in srgb, var(--theme-header-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 34px; width: auto; }
.brand-text { font-family: var(--font-display); color: #fff; font-size: 1.05rem; font-weight: 700; }

.main-nav ul { display: flex; gap: 2.1rem; }
.main-nav a {
  color: #cfd6ee;
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: .4rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--teal); transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 78px);
    max-height: calc(100vh - 78px);
    z-index: 650;
    background: var(--theme-header-bg);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--border-dark); font-size: 1.05rem; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .top-bar .top-links { display: none; }
}

/* Hero --------------------------------------------------------------- */
.hero {
  background: radial-gradient(circle at 18% 20%, #142255 0%, var(--theme-header-bg) 62%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); color: #fff; }
.hero-copy .lede { color: #b9c2e6; font-size: 1.1rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stage { position: relative; min-height: 320px; }
.hero-net { width: 100%; height: auto; }
.hero-net .net-line { stroke-dasharray: 6 6; animation: netFlow 6s linear infinite; }
.hero-net .net-node { animation: netPulse 2.6s ease-in-out infinite; transform-origin: center; }
.hero-net .net-node.n2 { animation-delay: .4s; }
.hero-net .net-node.n3 { animation-delay: .8s; }
.hero-net .net-node.n4 { animation-delay: 1.2s; }
.hero-net .net-node.n5 { animation-delay: 1.6s; }
.hero-net .net-node.n6 { animation-delay: 2s; }
@keyframes netFlow { to { stroke-dashoffset: -120; } }
@keyframes netPulse { 0%, 100% { opacity: .55; r: 4; } 50% { opacity: 1; r: 6; } }
@media (prefers-reduced-motion: reduce) {
  .hero-net .net-line, .hero-net .net-node { animation: none !important; }
}
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.page-hero .container { grid-template-columns: 1fr; text-align: left; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--teal); margin-bottom: 1rem; letter-spacing: .05em; }
.breadcrumb a { color: #b9c2e6; }
.breadcrumb a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { order: -1; min-height: 220px; }
}

/* Stats strip ---------------------------------------------------------- */
.stats-strip { background: var(--navy-900); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--teal); font-weight: 700; }
.stat-label { color: #a9b2d6; font-size: .88rem; margin-top: .35rem; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* Card grids ------------------------------------------------------------*/
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-dim); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-tag { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-deep); }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card-link { margin-top: auto; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.card-link:hover { color: var(--blue-deep); }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; flex-shrink: 0;
}

/* Process steps ---------------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; counter-reset: step; }
.step { border-left: 2px solid var(--border-dark); padding-left: 1.25rem; }
.step .step-num { font-family: var(--font-mono); color: var(--teal); font-size: .85rem; }
.step h3 { color: #fff; font-size: 1.1rem; margin: .4rem 0 .5rem; }
.step p { color: #a9b2d6; font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Testimonials ----------------------------------------------------------*/
.testimonial-card { background: #fff; border-radius: var(--radius-m); padding: 1.75rem; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }
.testimonial-card .stars { color: var(--amber); letter-spacing: .1em; margin-bottom: .6rem; }
.testimonial-person { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.testimonial-person img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: .92rem; }
.testimonial-person span { font-size: .8rem; color: var(--ink-faint); }

/* FAQ accordion -----------------------------------------------------------*/
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.02rem; color: var(--theme-text); }
.faq-q .plus { font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--ink-soft); font-size: .95rem; }
.faq-a-inner { padding-bottom: 1.25rem; }

/* Forms ------------------------------------------------------------------*/
.form-card { background: #fff; border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-soft); border: 1px solid var(--border-light); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--amber); }
.field input, .field textarea, .field select {
  width: 100%; padding: .8em .95em; border-radius: var(--radius-s);
  border: 1px solid var(--border-light); background: var(--paper); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,98,255,.15); background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: .9rem 1rem; border-radius: var(--radius-s); font-size: .9rem; margin-bottom: 1.2rem; }
.form-msg.success { background: rgba(22,217,192,.12); color: #0b7d6d; border: 1px solid rgba(22,217,192,.4); }
.form-msg.error { background: rgba(255,90,90,.1); color: #b32424; border: 1px solid rgba(255,90,90,.35); }

/* Contact info blocks ------------------------------------------------------*/
.contact-info-list { display: grid; gap: 1.25rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.contact-info-item h4 { margin: 0 0 .2rem; font-size: .95rem; color: #fff; }
.contact-info-item p, .contact-info-item a { color: #a9b2d6; font-size: .92rem; }
.map-embed { border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border-dark); margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* CTA banner ---------------------------------------------------------------*/
.cta-banner {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, var(--teal));
  border-radius: var(--radius-l);
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: .3rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; max-width: 480px; }

/* Newsletter -----------------------------------------------------------*/
.newsletter { background: var(--theme-footer-bg); color: #fff; }
.newsletter-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input { min-width: 260px; padding: .85em 1em; border-radius: 999px; border: 1px solid var(--border-dark); background: var(--navy-800); color: #fff; }
.newsletter-form input::placeholder { color: #7c86ab; }

/* Footer -------------------------------------------------------------------*/
.site-footer { background: var(--theme-footer-bg); color: #9aa6c4; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-dark); }
.footer-grid img { height: 30px; margin-bottom: 1rem; }
.footer-grid p { font-size: .9rem; }
.footer-col h5 { color: #fff; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .65rem; font-size: .9rem; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom .legal-links { display: flex; gap: 1.25rem; }
.social-row { display: flex; gap: .75rem; margin-top: 1rem; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { border-color: var(--teal); color: var(--teal); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* Back to top ---------------------------------------------------------- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--theme-button); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -10px rgba(53,98,255,.6);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* Utility -----------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small-note { font-size: .82rem; color: var(--ink-faint); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; background: rgba(53,98,255,.1); color: var(--blue-deep);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}

/* =========================== CHATBOT WIDGET =========================== */
.chat-toggle {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 600;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; border: none; box-shadow: 0 16px 32px -12px rgba(53,98,255,.55);
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle svg { width: 26px; height: 26px; }
.chat-toggle .close-icon { display: none; }
.chat-toggle.open .chat-icon { display: none; }
.chat-toggle.open .close-icon { display: block; }
.chat-window {
  position: fixed; right: 1.5rem; bottom: 5.6rem; z-index: 600;
  width: 360px; max-width: calc(100vw - 2rem); height: 500px; max-height: 70vh;
  background: #fff; border-radius: var(--radius-l); box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.98); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-window.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-header { background: var(--navy-950); color: #fff; padding: 1rem 1.25rem; display: flex; align-items: center; gap: .75rem; }
.chat-header .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(22,217,192,.2); }
.chat-header strong { display: block; font-size: .92rem; }
.chat-header span { display: block; font-size: .72rem; color: #a9b2d6; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem 1rem .5rem; display: flex; flex-direction: column; gap: .7rem; background: var(--paper); }
.chat-msg { max-width: 84%; padding: .65em .9em; border-radius: 14px; font-size: .88rem; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border-light); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .75rem; background: var(--paper); }
.chat-quick button { font-size: .74rem; padding: .4em .75em; border-radius: 999px; border: 1px solid var(--border-light); background: #fff; color: var(--blue-deep); }
.chat-quick button:hover { border-color: var(--blue); }
.chat-input-row { display: flex; gap: .5rem; padding: .85rem; border-top: 1px solid var(--border-light); background: #fff; }
.chat-input-row input { flex: 1; border: 1px solid var(--border-light); border-radius: 999px; padding: .7em 1.1em; font-size: .88rem; }
.chat-input-row input:focus { outline: none; border-color: var(--blue); }
.chat-input-row button { width: 42px; height: 42px; border-radius: 50%; background: var(--theme-button); color: #fff; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: chatBlink 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (max-width: 480px) {
  .chat-window { right: 1rem; left: 1rem; width: auto; bottom: 5rem; height: 65vh; }
  .chat-toggle { right: 1rem; bottom: 1rem; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}
