/* ==========================================================================
   INTTEGRIA GLOBAL PARTNERS — Design System
   Palette sampled from brand mark: ink navy #06102A, cyan #22C7F5, violet #7C50FA
   ========================================================================== */

:root{
  /* Brand */
  --ink:#06102A;
  --ink-soft:#3A4356;
  --ink-muted:#647089;
  --ink-faint:#8D96AA;

  --cyan:#1FBFEF;
  --violet:#7C50FA;
  --gradient: linear-gradient(120deg, var(--cyan), var(--violet));
  --gradient-soft: linear-gradient(120deg, rgba(31,191,239,.10), rgba(124,80,250,.10));

  /* Surfaces */
  --bg:#FFFFFF;
  --bg-alt:#F6F8FC;
  --bg-alt-2:#F0F3F9;
  --border:#E4E8F0;
  --border-strong:#D3D9E5;

  /* Semantic */
  --success:#1E9E6B;
  --warn:#B4772B;

  /* Type */
  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:'IBM Plex Mono', 'SFMono-Regular', monospace;

  /* Layout */
  --max:1240px;
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-sm: 0 1px 2px rgba(6,16,42,0.06), 0 1px 1px rgba(6,16,42,0.04);
  --shadow-md: 0 8px 24px rgba(6,16,42,0.08), 0 2px 6px rgba(6,16,42,0.05);
  --shadow-lg: 0 24px 64px rgba(6,16,42,0.14), 0 6px 16px rgba(6,16,42,0.06);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-soft);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
ul{margin:0; padding:0; list-style:none;}
h1,h2,h3,h4{margin:0; font-family:var(--font-display); color:var(--ink); font-weight:600; letter-spacing:-.01em;}
p{margin:0;}
::selection{background:rgba(124,80,250,.18); color:var(--ink);}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

.wrap{max-width:var(--max); margin:0 auto; padding:0 32px;}
@media (max-width:640px){ .wrap{padding:0 20px;} }

/* ---------- Utility ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--violet); font-weight:600; margin-bottom:16px;
}
.eyebrow::before{content:''; width:22px; height:1.5px; background:var(--gradient);}
.section{padding:96px 0;}
.section--tight{padding:64px 0;}
.section--alt{background:var(--bg-alt);}
.section-head{max-width:640px; margin-bottom:56px;}
.section-head h2{font-size:clamp(28px,4vw,42px); line-height:1.15;}
.section-head p{margin-top:16px; font-size:17px; color:var(--ink-muted); line-height:1.7;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:15px;
  padding:13px 26px; border-radius:999px; border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-gradient{ background:var(--gradient); color:#fff; }
.btn-gradient:hover{ transform:translateY(-2px); box-shadow:0 10px 26px rgba(124,80,250,.30); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--border-strong); }
.btn-outline:hover{ border-color:var(--ink); background:var(--bg-alt); }
.btn-sm{ padding:9px 18px; font-size:13.5px; }
.btn-block{ width:100%; }

.pill{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.05em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px; border:1px solid var(--border-strong); color:var(--ink-muted);
  background:#fff;
}

.chip{
  font-family:var(--font-mono); font-size:12.5px; color:var(--ink);
  border:1px solid var(--border-strong); background:var(--bg-alt);
  padding:7px 14px; border-radius:8px;
}

.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }

.reveal{opacity:1; transform:none;}
.reveal.pre{opacity:0; transform:translateY(16px); transition:opacity .65s ease, transform .65s ease;}
.reveal.pre.in{opacity:1; transform:translateY(0);}
.reveal-stagger > *{transition-delay:calc(var(--i, 0) * 70ms);}

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,.86); backdrop-filter:blur(10px) saturate(140%);
  border-bottom:1px solid var(--border);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:24px; }
.brand-lockup{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.brand-lockup img{ height:34px; width:auto; }
.brand-lockup .word{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--ink); letter-spacing:-.01em; }

.nav-main{ display:flex; align-items:center; gap:4px; }
.nav-main > li{ position:relative; }
.nav-link{
  display:flex; align-items:center; gap:5px;
  padding:9px 14px; border-radius:8px; font-size:14.5px; font-weight:500; color:var(--ink-soft);
  transition:background .18s ease, color .18s ease;
}
.nav-link:hover, .nav-link.is-active{ background:var(--bg-alt); color:var(--ink); }
.nav-link svg{ width:13px; height:13px; transition:transform .18s ease; }
.has-dropdown:hover .nav-link svg, .has-dropdown.open .nav-link svg{ transform:rotate(180deg); }

.dropdown{
  position:absolute; top:calc(100% + 10px); left:0; min-width:260px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-lg);
  padding:10px; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{
  display:flex; flex-direction:column; gap:2px; padding:10px 12px; border-radius:8px; color:var(--ink-soft);
}
.dropdown a:hover{ background:var(--bg-alt); color:var(--ink); }
.dropdown a strong{ font-size:14px; font-weight:600; color:var(--ink); }
.dropdown a span{ font-size:12.5px; color:var(--ink-muted); }

.nav-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-toggle{
  display:none; width:38px; height:38px; border-radius:8px; border:1px solid var(--border-strong);
  background:#fff; align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content:''; display:block; width:16px; height:1.6px; background:var(--ink); position:relative;
}
.nav-toggle span{ margin:4px 0; }

@media (max-width:980px){
  .nav-main{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-actions .btn-outline{ display:none; }
}

.mobile-panel{
  display:none; border-top:1px solid var(--border); background:#fff;
}
.mobile-panel.open{ display:block; }
.mobile-panel .wrap{ padding-top:14px; padding-bottom:20px; }
.mobile-panel a{ display:block; padding:12px 0; font-size:15.5px; color:var(--ink-soft); border-bottom:1px solid var(--border); }
.mobile-panel .sub{ padding-left:16px; font-size:14px; color:var(--ink-muted); }

/* ---------- Hero ---------- */
.hero{ padding:76px 0 40px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }

.hero-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:22px; }
.hero h1{ font-size:clamp(38px,5.4vw,58px); line-height:1.06; }
.hero h1 .accent{
  background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{ font-size:18px; color:var(--ink-muted); max-width:520px; margin-top:20px; line-height:1.7; }
.hero-actions{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }

.filing-launcher{
  margin-top:40px; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md); padding:8px; display:flex; gap:8px; flex-wrap:wrap;
}
.filing-launcher a{
  flex:1 1 150px; text-align:center; padding:14px 12px; border-radius:12px; font-size:13.5px; font-weight:600;
  color:var(--ink-soft); transition:background .18s ease, color .18s ease;
}
.filing-launcher a:hover{ background:var(--bg-alt); color:var(--ink); }
.filing-launcher a .ic{ display:block; font-family:var(--font-mono); font-size:11px; color:var(--violet); margin-bottom:6px; letter-spacing:.05em; }

.hero-trust{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.hero-trust .t{ font-family:var(--font-mono); font-size:12.5px; color:var(--ink-muted); display:flex; align-items:center; gap:8px; }
.hero-trust .t::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--gradient); }

.hero-visual{ position:relative; }
.hero-visual .panel{
  background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px;
  box-shadow:var(--shadow-lg);
}
.hero-visual .panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.hero-visual .panel-head .lbl{ font-family:var(--font-mono); font-size:11.5px; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.06em; }
.hero-visual .status{ font-family:var(--font-mono); font-size:11px; color:var(--success); display:flex; align-items:center; gap:6px; }
.hero-visual .status::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--success); }
.hero-visual .row{
  display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-bottom:1px solid var(--border);
  font-size:13.5px;
}
.hero-visual .row:last-child{ border-bottom:none; }
.hero-visual .row .name{ color:var(--ink); font-weight:600; }
.hero-visual .row .meta{ color:var(--ink-muted); font-family:var(--font-mono); font-size:12px; }
.badge-ok{
  font-family:var(--font-mono); font-size:10.5px; padding:3px 9px; border-radius:999px;
  background:rgba(30,158,107,.1); color:var(--success); font-weight:600;
}
.badge-progress{
  font-family:var(--font-mono); font-size:10.5px; padding:3px 9px; border-radius:999px;
  background:rgba(124,80,250,.1); color:var(--violet); font-weight:600;
}

/* ---------- Logo strip ---------- */
.trust-strip{ padding:34px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-strip .wrap{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.trust-strip .lbl{ font-family:var(--font-mono); font-size:11.5px; color:var(--ink-faint); text-transform:uppercase; letter-spacing:.08em; }
.trust-strip .marks{ display:flex; gap:32px; flex-wrap:wrap; }
.trust-strip .marks span{ font-family:var(--font-mono); font-size:13px; color:var(--ink-muted); }

/* ---------- Services grid ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .services-grid{ grid-template-columns:1fr; } }
.service-card{ padding:28px; }
.service-card .icon{
  width:44px; height:44px; border-radius:11px; background:var(--gradient-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-card .icon svg{ width:22px; height:22px; stroke:var(--violet); }
.service-card h3{ font-size:18px; margin-bottom:8px; }
.service-card p{ font-size:14px; color:var(--ink-muted); line-height:1.65; margin-bottom:14px; }
.service-card .lnk{ font-size:13.5px; font-weight:600; color:var(--ink); display:inline-flex; align-items:center; gap:6px; }
.service-card .lnk svg{ width:13px; height:13px; transition:transform .18s ease; }
.service-card:hover .lnk svg{ transform:translateX(3px); }

/* ---------- Framework sections (O2C / IIFTS) ---------- */
.framework{
  border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; background:#fff;
}
.framework-head{
  padding:36px 40px; border-bottom:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap;
}
.framework-head h3{ font-size:26px; }
.framework-head .tagline{ font-family:var(--font-mono); font-size:12.5px; color:var(--violet); text-transform:uppercase; letter-spacing:.06em; margin-top:8px; }
.framework-body{ padding:36px 40px; }

.flow-row{ display:flex; align-items:stretch; flex-wrap:wrap; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.flow-cell{ flex:1 1 150px; padding:20px 18px; border-right:1px solid var(--border); background:var(--bg-alt); }
.flow-cell:last-child{ border-right:none; }
.flow-cell .n{ font-family:var(--font-mono); font-size:11px; color:var(--violet); margin-bottom:8px; display:block;}
.flow-cell h4{ font-size:14.5px; margin-bottom:6px; }
.flow-cell p{ font-size:12.5px; color:var(--ink-muted); line-height:1.55; }
@media (max-width:760px){ .flow-cell{ border-right:none; border-bottom:1px solid var(--border);} }

.quad-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:8px; }
@media (max-width:760px){ .quad-grid{ grid-template-columns:repeat(2,1fr); } }
.quad-grid .q{ border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; background:var(--bg-alt); }
.quad-grid .q .t{ font-family:var(--font-mono); font-size:11px; color:var(--violet); text-transform:uppercase; letter-spacing:.05em; margin-bottom:8px; }
.quad-grid .q p{ font-size:13px; color:var(--ink-soft); line-height:1.6; }

/* ---------- Differentiation table ---------- */
.diff-table{ width:100%; border-collapse:collapse; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
.diff-table th, .diff-table td{ padding:16px 18px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
.diff-table thead th{ background:var(--bg-alt); font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-muted); font-weight:600; }
.diff-table td:first-child, .diff-table th:first-child{ font-weight:600; color:var(--ink); }
.diff-table tbody tr:last-child td{ border-bottom:none; }
.diff-table .col-us{ background:var(--gradient-soft); }
.diff-table tr:hover td{ background:var(--bg-alt); }
.diff-table tr:hover td.col-us{ background:rgba(124,80,250,.12); }
.diff-table-wrap{ overflow-x:auto; border-radius:var(--radius-md); }

/* ---------- Process steps ---------- */
.process{ display:flex; flex-direction:column; }
.process-step{
  display:grid; grid-template-columns:64px 1fr; gap:24px; padding:32px 0; border-bottom:1px solid var(--border);
}
.process-step:last-child{ border-bottom:none; }
.process-step .num{
  width:52px; height:52px; border-radius:14px; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:16px; font-weight:600;
}
.process-step h4{ font-size:19px; margin-bottom:8px; }
.process-step p{ font-size:14.5px; color:var(--ink-muted); max-width:600px; line-height:1.7; }

/* ---------- Stat / value cards ---------- */
.value-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; }
@media (max-width:900px){ .value-grid{ grid-template-columns:repeat(2,1fr); } }
.value-card{ background:#fff; padding:26px 22px; }
.value-card .k{ font-family:var(--font-mono); font-size:11px; color:var(--violet); text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.value-card h4{ font-size:16px; margin-bottom:6px; }
.value-card p{ font-size:13px; color:var(--ink-muted); line-height:1.6; }

/* ---------- CTA band ---------- */
.cta-band{
  border-radius:var(--radius-lg); background:var(--ink); color:#fff; padding:56px 48px;
  display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band::before{
  content:''; position:absolute; inset:0; background:var(--gradient); opacity:.14;
}
.cta-band h3{ color:#fff; font-size:28px; position:relative; max-width:480px; }
.cta-band p{ color:rgba(255,255,255,.7); margin-top:10px; position:relative; }
.cta-band .actions{ position:relative; display:flex; gap:12px; flex-wrap:wrap; }
.cta-band .btn-outline{ border-color:rgba(255,255,255,.3); color:#fff; }
.cta-band .btn-outline:hover{ background:rgba(255,255,255,.1); border-color:#fff; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--bg-alt); border-top:1px solid var(--border); padding:64px 0 32px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
@media (max-width:860px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand .brand-lockup{ margin-bottom:14px; }
.footer-brand p{ font-size:13.5px; color:var(--ink-muted); max-width:280px; line-height:1.7; }
.footer-col h5{ font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); margin-bottom:16px; }
.footer-col a{ display:block; font-size:14px; color:var(--ink-soft); padding:6px 0; }
.footer-col a:hover{ color:var(--violet); }
.footer-bottom{
  margin-top:48px; padding-top:24px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.footer-bottom p{ font-size:12.5px; color:var(--ink-faint); }
.footer-legal{ font-size:12px; color:var(--ink-faint); max-width:640px; line-height:1.7; margin-top:18px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding:64px 0 56px; border-bottom:1px solid var(--border); background:var(--bg-alt); }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-size:clamp(32px,4.6vw,48px); max-width:760px; }
.page-hero p{ margin-top:16px; font-size:16.5px; color:var(--ink-muted); max-width:600px; }
.breadcrumb{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); margin-bottom:18px; }
.breadcrumb a:hover{ color:var(--violet); }

/* ---------- Anchor offset for sticky header ---------- */
[id]{ scroll-margin-top:96px; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:48px; align-items:flex-start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-card{
  border:1px solid var(--border); border-radius:var(--radius-md); padding:22px 24px; margin-bottom:14px; display:flex; gap:16px;
}
.contact-info-card .icon{
  width:40px; height:40px; border-radius:10px; background:var(--gradient-soft); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.contact-info-card .icon svg{ width:19px; height:19px; stroke:var(--violet); }
.contact-info-card h4{ font-size:14.5px; margin-bottom:4px; }
.contact-info-card p{ font-size:13.5px; color:var(--ink-muted); }

.form-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:36px; box-shadow:var(--shadow-md);
}
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--ink); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--border-strong);
  font-family:var(--font-body); font-size:14.5px; color:var(--ink); background:#fff;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--violet); box-shadow:0 0 0 3px rgba(124,80,250,.14);
}
.field textarea{ resize:vertical; min-height:110px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:520px){ .field-row{ grid-template-columns:1fr; } }
.form-note{ font-size:12px; color:var(--ink-faint); margin-top:14px; line-height:1.6; }
.form-status{
  display:none; padding:12px 16px; border-radius:9px; font-size:13.5px; margin-bottom:16px;
}
.form-status.show{ display:block; }
.form-status.ok{ background:rgba(30,158,107,.1); color:var(--success); }
.form-status.err{ background:rgba(180,60,60,.1); color:#B43C3C; }

.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; padding:20px 0; display:flex; justify-content:space-between; align-items:center;
  background:none; border:none; font-size:15.5px; font-weight:600; color:var(--ink);
}
.faq-q svg{ width:16px; height:16px; flex-shrink:0; transition:transform .2s ease; stroke:var(--ink-muted); }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .28s ease; }
.faq-item.open .faq-a{ max-height:200px; }
.faq-a p{ padding-bottom:20px; font-size:14px; color:var(--ink-muted); line-height:1.7; max-width:620px; }

/* ---------- Chatbot widget ---------- */
.chat-launcher{
  position:fixed; right:24px; bottom:24px; z-index:300;
  width:58px; height:58px; border-radius:50%; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); border:none;
  transition:transform .2s ease;
}
.chat-launcher:hover{ transform:scale(1.06); }
.chat-launcher svg{ width:24px; height:24px; }
.chat-launcher .dot{
  position:absolute; top:-2px; right:-2px; width:13px; height:13px; border-radius:50%;
  background:var(--gradient); border:2px solid #fff;
}

.chat-panel{
  position:fixed; right:24px; bottom:96px; z-index:300; width:360px; max-width:calc(100vw - 40px);
  background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; height:0; opacity:0; overflow:hidden; pointer-events:none;
  transition:height .25s ease, opacity .2s ease;
}
.chat-panel.open{ height:min(520px, 70vh); opacity:1; pointer-events:auto; }
.chat-head{
  padding:16px 18px; background:var(--ink); color:#fff; display:flex; align-items:center; gap:12px; flex-shrink:0;
}
.chat-head .avatar{
  width:34px; height:34px; border-radius:50%; background:var(--gradient); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:14px;
}
.chat-head .info strong{ display:block; font-size:14px; }
.chat-head .info span{ display:block; font-size:11.5px; color:rgba(255,255,255,.65); }
.chat-body{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:12px; }
.msg{ max-width:82%; padding:10px 13px; border-radius:12px; font-size:13.5px; line-height:1.55; }
.msg.bot{ background:var(--bg-alt); color:var(--ink-soft); align-self:flex-start; border-bottom-left-radius:3px; }
.msg.user{ background:var(--ink); color:#fff; align-self:flex-end; border-bottom-right-radius:3px; }
.chat-quick{ display:flex; gap:8px; flex-wrap:wrap; padding:0 16px 12px; flex-shrink:0; }
.chat-quick button{
  font-size:12px; padding:7px 12px; border-radius:999px; border:1px solid var(--border-strong); background:#fff; color:var(--ink-soft);
}
.chat-quick button:hover{ border-color:var(--violet); color:var(--violet); }
.chat-input{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--border); flex-shrink:0; }
.chat-input input{
  flex:1; border:1px solid var(--border-strong); border-radius:999px; padding:10px 16px; font-size:13.5px; font-family:inherit;
}
.chat-input input:focus{ outline:none; border-color:var(--violet); }
.chat-input button{
  width:38px; height:38px; border-radius:50%; background:var(--ink); color:#fff; border:none; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.chat-input button svg{ width:15px; height:15px; }

@media (max-width:520px){
  .chat-panel{ right:16px; left:16px; width:auto; bottom:88px; }
  .chat-launcher{ right:16px; bottom:16px; }
}
