/* ============================================================
   NetCloud Global Services — site styles
   Direction: "midnight infrastructure" — deep navy, electric
   cyan signal accent, warm amber secondary. Technical grotesk
   display (Space Grotesk) + Inter body.
   ============================================================ */

:root {
  --ink:        #0a0f1c;   /* near-black navy base */
  --ink-2:      #111a2e;   /* raised panel */
  --ink-3:      #1a2740;   /* borders on dark */
  --paper:      #ffffff;
  --paper-2:    #f4f7fb;   /* light section */
  --paper-3:    #e9eff7;
  --cyan:       #24d3ee;   /* signal accent */
  --cyan-deep:  #0891b2;
  --amber:      #ffb454;   /* secondary accent */
  --text:       #1b2436;   /* body text on light */
  --text-mut:   #5a6782;
  --text-inv:   #c7d3e8;   /* body text on dark */
  --text-inv-2: #8595b4;
  --line:       #d9e2ee;
  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 18px 50px -20px rgba(10, 15, 28, 0.35);
  --maxw:       1160px;
  --font-disp:  'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:  'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-disp); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-disp);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cyan-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--cyan-deep); display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-disp); font-weight: 500; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #3ee0f7; box-shadow: 0 10px 30px -8px rgba(36, 211, 238, .55); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(199, 211, 232, .3); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 28, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-3);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(10, 15, 28, .96); box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-disp); font-weight: 600; font-size: 19px; color: #fff; letter-spacing: -.01em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 18px -6px rgba(36, 211, 238, .6);
}
.brand .mark span { transform: translateY(-1px); }
.brand b { color: var(--cyan); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-inv); font-size: 15px; font-weight: 450; transition: color .18s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -8%, rgba(36, 211, 238, .16), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(255, 180, 84, .10), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 96px 0 108px;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); color: #fff; margin: 20px 0 22px; }
.hero h1 .accent { color: var(--cyan); }
.hero p.lead { font-size: 19px; color: var(--text-inv); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; }
.hero-stats .stat b { font-family: var(--font-disp); font-size: 30px; color: #fff; display: block; }
.hero-stats .stat span { font-size: 13px; color: var(--text-inv-2); }

.hero-card {
  background: linear-gradient(160deg, rgba(26, 39, 64, .9), rgba(17, 26, 46, .9));
  border: 1px solid var(--ink-3); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card h4 { color: #fff; font-size: 17px; margin-bottom: 4px; }
.hero-card p { color: var(--text-inv-2); font-size: 13px; margin-bottom: 20px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  background: rgba(36, 211, 238, .1); color: var(--cyan);
  border: 1px solid rgba(36, 211, 238, .25);
}

/* ---------- generic section ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 16px 0 14px; }
.section-head p { color: var(--text-mut); font-size: 17px; }
.section-light { background: var(--paper-2); }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--paper-3); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--ink); color: var(--cyan); margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--text-mut); font-size: 15px; }
.card .more { display: inline-block; margin-top: 16px; font-family: var(--font-disp); font-size: 14px; color: var(--cyan-deep); font-weight: 500; }
.card .more::after { content: " →"; }

/* ---------- brand strip ---------- */
.brands { border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); background: var(--ink-2); padding: 30px 0; }
.brands .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.brands .lbl { font-family: var(--font-disp); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-inv-2); }
.brands .logo { font-family: var(--font-disp); font-weight: 600; font-size: 17px; color: var(--text-inv); opacity: .72; transition: opacity .2s, color .2s; }
.brands .logo:hover { opacity: 1; color: var(--cyan); }

/* ---------- deal-on tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 11px; }
.tag {
  font-family: var(--font-disp); font-size: 14px; font-weight: 500;
  padding: 10px 17px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); color: var(--text); transition: all .18s;
}
.tag:hover { border-color: var(--cyan); color: var(--cyan-deep); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(36,211,238,.14), transparent 55%),
    var(--ink);
  color: #fff; border-radius: 22px; padding: 56px; text-align: center; margin: 20px 0;
  border: 1px solid var(--ink-3);
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(36,211,238,.18), transparent 65%);
  bottom: -60%; left: 50%; transform: translateX(-50%); filter: blur(40px); pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--text-inv); font-size: 17px; max-width: 52ch; margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-2); padding: 62px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid var(--ink-3); }
.footer-grid h5 { font-family: var(--font-disp); color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-about p { font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.social { display: flex; gap: 12px; }
.social a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--ink-3); display: grid; place-items: center; color: var(--text-inv); transition: all .18s; }
.social a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 380px at 82% -20%, rgba(36,211,238,.14), transparent 60%),
    var(--ink);
  color: #fff; padding: 66px 0 58px;
}
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 12px; }
.page-hero p { color: var(--text-inv); font-size: 18px; max-width: 60ch; }
.breadcrumb { font-size: 13px; color: var(--text-inv-2); }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.info-item { display: flex; gap: 15px; margin-bottom: 26px; }
.info-item .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--paper-2); color: var(--cyan-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-item h4 { font-size: 16px; margin-bottom: 3px; }
.info-item p, .info-item a { color: var(--text-mut); font-size: 15px; }
.info-item a:hover { color: var(--cyan-deep); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; font-family: var(--font-disp); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--paper); transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(36, 211, 238, .16);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .req { color: #dc2626; }
.form-note { font-size: 12.5px; color: var(--text-mut); margin-top: 4px; }
.form-status { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f8f0; color: #0f7a4f; border: 1px solid #a7e3c7; }
.form-status.err { background: #fdecea; color: #b3261e; border: 1px solid #f2b8b2; }

/* ---------- value rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.checklist { list-style: none; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; margin-bottom: 15px; font-size: 16px; color: var(--text); }
.checklist li::before { content: "✓"; color: var(--cyan-deep); font-weight: 700; flex-shrink: 0; }

.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-band .num { font-family: var(--font-disp); font-size: 42px; color: var(--ink); }
.stat-band .num .u { color: var(--cyan-deep); }
.stat-band .lbl { color: var(--text-mut); font-size: 14px; margin-top: 4px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ADVANCED LAYER — page-load orchestration, bento, glass,
   gradient mesh, scroll motion, counters, magnetic hovers.
   ============================================================ */

/* Page-load reveal sequence (hero). Elements start hidden, cascade in. */
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.seq { opacity: 0; animation: riseIn .9s cubic-bezier(.2,.7,.2,1) forwards; }
.seq-1 { animation-delay: .05s; } .seq-2 { animation-delay: .18s; }
.seq-3 { animation-delay: .31s; } .seq-4 { animation-delay: .44s; }
.seq-5 { animation-delay: .57s; } .seq-6 { animation-delay: .70s; }

/* Gradient text */
.grad-text {
  background: linear-gradient(100deg, #24d3ee 0%, #7ce7f7 40%, #ffb454 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Animated gradient mesh backdrop */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh::before, .mesh::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(90px); opacity: .5; will-change: transform;
}
.mesh::before { background: radial-gradient(circle, rgba(36,211,238,.35), transparent 60%); top: -20%; right: -10%; animation: drift1 18s ease-in-out infinite; }
.mesh::after  { background: radial-gradient(circle, rgba(255,180,84,.22), transparent 60%); bottom: -25%; left: -10%; animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%,8%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8%,-6%) scale(1.1); } }

/* Glass panel */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  box-shadow: 0 20px 60px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: minmax(150px, auto); }
.bento .cell {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px;
  background: var(--ink-2); border: 1px solid var(--ink-3); color: #fff;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.bento .cell:hover { transform: translateY(-5px); border-color: rgba(36,211,238,.5); box-shadow: 0 24px 60px -28px rgba(36,211,238,.4); }
.bento .cell h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.bento .cell p { color: var(--text-inv-2); font-size: 14px; }
.bento .cell .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(36,211,238,.12); color: var(--cyan); margin-bottom: 16px; }
.bento .span-2 { grid-column: span 2; }
.bento .row-2 { grid-row: span 2; }
.bento .accent-cell { background: linear-gradient(150deg, #0e2b3a, #0a0f1c); }
.bento .glow { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(36,211,238,.25), transparent 70%); top: -60px; right: -60px; }

/* Magnetic / shine buttons */
.btn { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* Marquee brand strip */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Scroll-reveal variants */
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .7s ease, transform .7s ease; }
.reveal-scale.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1){transition-delay:.05s}
[data-stagger].in > *:nth-child(2){transition-delay:.13s}
[data-stagger].in > *:nth-child(3){transition-delay:.21s}
[data-stagger].in > *:nth-child(4){transition-delay:.29s}
[data-stagger].in > *:nth-child(5){transition-delay:.37s}
[data-stagger].in > *:nth-child(6){transition-delay:.45s}

/* Section divider glow line */
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, rgba(36,211,238,.5), transparent); border: 0; margin: 0; }

/* Tilt card wrapper */
.tilt { transition: transform .2s ease; transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .seq, .mesh::before, .mesh::after, .marquee-track { animation: none !important; opacity: 1 !important; }
  .seq { transform: none !important; }
  .reveal, .reveal-l, .reveal-r, .reveal-scale, [data-stagger] > * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .row-2 { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: span 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .hero-card { margin-top: 8px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--ink-3); padding: 8px 24px 18px;
  }
  .nav-links.open li { padding: 11px 0; border-bottom: 1px solid var(--ink-3); }
  .nav-toggle { display: block; }
  .cta-band, .cta-band { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  section { padding: 60px 0; }
  .nav-cta .btn:not(.nav-toggle) { display: none; }
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
:root { --chat-accent: #24d3ee; }
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--chat-accent); color: #05222b;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -10px rgba(36,211,238,.6);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: chatPop .4s ease .8s both;
}
@keyframes chatPop { from { transform: scale(0); } to { transform: scale(1); } }
.chat-launcher:hover { transform: scale(1.08) translateY(-2px); }
.chat-launcher.hidden { display: none; }

.chat-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 91;
  width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 48px);
  background: #fff; border-radius: 18px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 30px 80px -20px rgba(10,15,28,.5); border: 1px solid var(--line);
  animation: chatIn .28s cubic-bezier(.2,.7,.2,1);
}
.chat-panel.open { display: flex; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.chat-head {
  background: linear-gradient(135deg, #0f1b30, #0a0f1c); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.chat-head-title { font-family: var(--font-disp); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 3px rgba(53,208,127,.25); }
.chat-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; opacity: .8; }
.chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--paper-2); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.bot a { color: var(--cyan-deep); text-decoration: underline; }
.chat-msg.user { background: var(--chat-accent); color: #05222b; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-msg.typing { display: flex; gap: 4px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c4d6; animation: blink 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; margin-top: 2px; }
.chat-chip {
  font-family: var(--font-body); font-size: 13px; padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--chat-accent); color: var(--cyan-deep); cursor: pointer;
  transition: background .16s, color .16s;
}
.chat-chip:hover { background: var(--chat-accent); color: #05222b; }

.chat-input { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-family: var(--font-body); }
.chat-input input:focus { outline: none; border-color: var(--chat-accent); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--chat-accent); color: #05222b; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-input button:hover { filter: brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
  .chat-launcher, .chat-panel { animation: none !important; }
}
