/* ============================================================
   Pulsar — Digital Marketing Agency Template
   Palette: void #0f0b1e / violet #a855f7 / cyan #22d3ee
   ============================================================ */
:root {
  --void: #0f0b1e;
  --void-2: #171130;
  --void-3: #201743;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --paper: #faf9fd;
  --tint: #f3f0fa;
  --ink: #1d1832;
  --muted: #5f5a75;
  --line: #e7e2f2;
  --radius: 16px;
  --shadow: 0 16px 44px rgba(31, 17, 64, .12);
  --grad: linear-gradient(100deg, #a855f7, #ec4899 55%, #f59e0b);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--violet); margin-bottom: .8rem;
}
.lead { font-size: 1.13rem; color: #b9b3d4; margin: 1.2rem 0 1.8rem; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.on-dark { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; padding: .9rem 1.8rem; border-radius: 12px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s, box-shadow .18s, filter .18s;
  font-family: var(--font-display);
}
.btn:hover { transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { filter: brightness(1.1); box-shadow: 0 12px 30px rgba(168, 85, 247, .4); }
.btn-dark-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-dark-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-outline { border-color: var(--violet); color: var(--violet); }
.btn-outline:hover { background: rgba(168,85,247,.08); }
.btn-sm { padding: .55rem 1.2rem; font-size: .87rem; }
.btn-block { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 11, 30, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .95rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.brand-dot { color: var(--cyan); }
.brand-mark { display: grid; place-items: center; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; font-size: .93rem; color: #cfc9e6; }
.nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* Hero */
.hero { position: relative; background: var(--void); color: #fff; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.hero-glow-a { width: 520px; height: 520px; background: #6d28d9; top: -180px; right: -120px; }
.hero-glow-b { width: 420px; height: 420px; background: #0e7490; bottom: -160px; left: -120px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; padding: 5rem 0 3.5rem; }
.pill {
  display: inline-block; font-size: .82rem; font-weight: 600; color: #d8ceff;
  background: rgba(168,85,247,.14); border: 1px solid rgba(168,85,247,.35);
  padding: .35rem .95rem; border-radius: 999px; margin-bottom: 1.3rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: .84rem; color: #8d86ab; }

/* Dashboard mock */
.hero-art { position: relative; }
.dash {
  background: var(--void-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.dash-head {
  display: flex; align-items: center; gap: .45rem; padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #f87171; } .dot-y { background: #fbbf24; } .dot-g { background: #34d399; }
.dash-title { margin-left: .6rem; font-size: .78rem; color: #8d86ab; font-family: var(--font-display); }
.dash-body { padding: 1.3rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: var(--void-3); border-radius: 12px; padding: .8rem .95rem; }
.kpi-label { display: block; font-size: .7rem; color: #8d86ab; text-transform: uppercase; letter-spacing: .07em; }
.kpi strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--cyan); }
.kpi:first-child strong { color: var(--violet); }
.kpi:last-child strong { color: #f59e0b; }
.dash-chart { width: 100%; }
.float-chip {
  position: absolute; background: #fff; color: var(--ink); border-radius: 999px;
  padding: .55rem 1.05rem; font-size: .8rem; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0,0,0,.35); animation: floaty 5s ease-in-out infinite;
}
.chip-a { top: -16px; left: -10px; }
.chip-b { bottom: -14px; right: -6px; animation-delay: 2.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Logos */
.logos { padding: 1.5rem 0 3.2rem; position: relative; }
.logos-label { font-size: .7rem; letter-spacing: .22em; color: #6c6590; font-weight: 700; }
.logos-row {
  display: flex; gap: 2.6rem; flex-wrap: wrap; margin-top: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #4d4670;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--void); color: #cfc9e6; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); margin-top: .7rem; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; transition: transform .2s, box-shadow .2s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.45rem; margin-bottom: 1.1rem;
}
.si-a { background: #f3e8ff; } .si-b { background: #fce7f3; } .si-c { background: #cffafe; }
.si-d { background: #fef3c7; } .si-e { background: #e0e7ff; } .si-f { background: #dcfce7; }
.svc-card h3 { margin-bottom: .5rem; }
.svc-card > p { color: var(--muted); font-size: .92rem; margin-bottom: .9rem; }
.svc-card ul { list-style: none; }
.svc-card li { font-size: .86rem; color: var(--ink); padding-left: 1.4rem; position: relative; margin-bottom: .4rem; }
.svc-card li::before { content: "▸"; position: absolute; left: 0; color: var(--violet); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.step {
  background: var(--void-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--violet); transform: translateY(-5px); }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.step h3 { color: #fff; margin: .6rem 0 .5rem; font-size: 1.05rem; }
.step p { font-size: .88rem; color: #9d96bd; }
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 2.6rem;
}
.stat span { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #fff; }
.stat p { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8d86ab; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.4rem; text-align: center; transition: transform .2s, box-shadow .2s;
}
.tm-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tm-avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 1.1rem;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.ta-a { background: linear-gradient(140deg, #a855f7, #6d28d9); }
.ta-b { background: linear-gradient(140deg, #ec4899, #be185d); }
.ta-c { background: linear-gradient(140deg, #22d3ee, #0e7490); }
.ta-d { background: linear-gradient(140deg, #f59e0b, #b45309); }
.tm-card h3 { font-size: 1.05rem; }
.tm-card p { color: var(--muted); font-size: .86rem; margin-top: .2rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 2.2rem 1.9rem; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-featured { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px;
}
.price-card h3 { font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price { font-family: var(--font-display); margin: .7rem 0 .3rem; color: var(--muted); }
.price span { font-size: 2.5rem; font-weight: 700; color: var(--ink); }
.price-sub { font-size: .87rem; color: var(--muted); margin-bottom: 1.4rem; }
.price-card ul { list-style: none; margin-bottom: 1.7rem; }
.price-card li { font-size: .9rem; padding: .45rem 0 .45rem 1.7rem; position: relative; border-bottom: 1px dashed var(--line); }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: .5rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #f3e8ff; color: var(--violet);
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
}

/* Quote cards */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; }
.quote-metric { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; }
.quote-card blockquote { font-size: .95rem; color: var(--ink); margin-bottom: 1rem; }
.quote-card figcaption { font-size: .84rem; color: var(--muted); }
.quote-card figcaption strong { color: var(--ink); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.6rem; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-thumb { height: 150px; display: flex; align-items: flex-end; padding: 1rem; margin-bottom: 1.1rem; }
.blog-thumb span {
  background: rgba(255,255,255,.94); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px;
}
.bt-a { background: linear-gradient(140deg, #6d28d9, #a855f7); }
.bt-b { background: linear-gradient(140deg, #be185d, #ec4899); }
.bt-c { background: linear-gradient(140deg, #0e7490, #22d3ee); }
.blog-card time { font-size: .76rem; font-weight: 600; color: var(--violet); text-transform: uppercase; letter-spacing: .08em; padding: 0 1.4rem; }
.blog-card h3 { font-size: 1.02rem; padding: .45rem 1.4rem 0; }
.blog-card h3 a:hover { color: var(--violet); }

/* CTA */
.cta { background: var(--void); position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 80% 20%, rgba(168,85,247,.25), transparent),
              radial-gradient(500px 260px at 15% 85%, rgba(34,211,238,.18), transparent);
}
.cta-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.cta-copy p { color: #b9b3d4; margin-top: .8rem; }
.cta-form { display: grid; gap: .9rem; }
.cta-form input {
  font: inherit; padding: .85rem 1.05rem; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff;
  transition: border-color .15s;
}
.cta-form input::placeholder { color: #8d86ab; }
.cta-form input:focus { outline: none; border-color: var(--violet); }
.form-note { color: #34d399; font-weight: 600; font-size: .9rem; }

/* Footer */
.footer { background: #0a0716; color: #8d86ab; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin-bottom: .9rem; }
.footer a { display: block; margin-bottom: .5rem; }
.footer a:hover { color: var(--cyan); }
.brand-footer { margin-bottom: .9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.07); padding: 1.3rem 0; font-size: .82rem;
}
.footer-bottom a { display: inline; }

/* AI Demo section */
.ai-section {
  position: relative; overflow: hidden; color: #b9b3d4;
  background: linear-gradient(165deg, #0a0716 0%, var(--void) 50%, #1a1136 100%);
}
.ai-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.ai-glow-a { width: 540px; height: 540px; background: rgba(109,40,217,.4); top: -200px; right: -140px; }
.ai-glow-b { width: 460px; height: 460px; background: rgba(14,116,144,.4); bottom: -200px; left: -160px; }
.ai-container { position: relative; }
.ai-section .section-head p:last-child { color: #8d86ab; }
.ai-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #d8b4fe; background: rgba(168,85,247,.14); border: 1px solid rgba(168,85,247,.45);
  padding: .45rem 1.05rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.ai-panel {
  display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 22px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(168,85,247,.35);
  box-shadow: 0 40px 90px rgba(0,0,0,.5); backdrop-filter: blur(8px);
}
.ai-tools { padding: 2.2rem 2rem; }
.ai-label { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.ai-chips button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #d5cfec;
  font: inherit; font-size: .84rem; font-weight: 600;
  padding: .5rem 1rem; border-radius: 999px; cursor: pointer; transition: all .18s ease;
}
.ai-chips button:hover { border-color: rgba(168,85,247,.7); color: #fff; transform: translateY(-1px); }
.ai-chips button.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(168,85,247,.45); }
.ai-field { display: grid; gap: .45rem; font-size: .82rem; font-weight: 600; color: #a79fc9; margin-bottom: 1.2rem; }
.ai-field textarea {
  font: inherit; font-weight: 500; color: #fff; padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  background: rgba(10,7,22,.6); resize: vertical; min-height: 96px; transition: border-color .15s, box-shadow .15s;
}
.ai-field textarea::placeholder { color: #6c6590; }
.ai-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
.ai-generate {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; width: 100%;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: #fff;
  background: var(--grad);
  border: 0; border-radius: 12px; padding: .95rem 1.5rem; cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.ai-generate:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168,85,247,.5); filter: brightness(1.08); }
.ai-generate:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }
.ai-disclaimer { margin-top: 1rem; font-size: .76rem; color: #6c6590; line-height: 1.5; }

.ai-output { display: flex; flex-direction: column; background: #090614; border-left: 1px solid rgba(255,255,255,.08); min-height: 400px; }
.ai-output-bar {
  display: flex; align-items: center; gap: .45rem; padding: .85rem 1.2rem;
  background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07);
}
.ai-dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-dot:nth-child(1) { background: #f87171; } .ai-dot:nth-child(2) { background: #fbbf24; } .ai-dot:nth-child(3) { background: #34d399; }
.ai-output-title { margin-left: .6rem; font-size: .76rem; color: #6c6590; letter-spacing: .05em; }
.ai-tag {
  margin-left: auto; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.45); padding: .2rem .6rem; border-radius: 6px;
}
.ai-output-body { flex: 1; padding: 1.5rem 1.6rem; font-size: .93rem; line-height: 1.7; color: #c6c0dd; }
.ai-output-body h4 {
  font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 .7rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ai-output-body p { margin-bottom: .5rem; }
.ai-output-body ul { margin: .6rem 0 .8rem 1.2rem; }
.ai-output-body li { margin-bottom: .45rem; }
.ai-output-body em { color: #8d86ab; font-size: .82rem; }
.ai-output-body strong { color: #fff; }
.ai-output-body.is-streaming > * { animation: aiFadeUp .55s ease both; }
@keyframes aiFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai-empty { text-align: center; padding: 3rem 1rem; color: #6c6590; }
.ai-empty-icon {
  width: 58px; height: 58px; margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: #d8b4fe;
  background: rgba(168,85,247,.14); border: 1px solid rgba(168,85,247,.4);
  animation: aiBreathe 3s ease-in-out infinite;
}
@keyframes aiBreathe { 50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(168,85,247,.35); } }
.ai-skel { display: grid; gap: .9rem; padding-top: .4rem; }
.ai-skel span {
  display: block; height: 13px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255,255,255,.06) 25%, rgba(168,85,247,.35) 50%, rgba(255,255,255,.06) 75%);
  background-size: 200% 100%; animation: aiShimmer 1.2s linear infinite;
}
.ai-skel span.short { width: 55%; }
@keyframes aiShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ai-output-foot {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.07); font-size: .72rem; color: #6c6590;
}
.ai-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34,211,238,.5); animation: aiPulse 1.6s infinite;
}
@keyframes aiPulse { 70% { box-shadow: 0 0 0 7px rgba(34,211,238,0); } }
@media (max-width: 960px) {
  .ai-output { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); min-height: 340px; }
  .ai-tools { padding: 1.7rem 1.4rem; }
}

/* Floating AI chat */
.ai-fab-wrap { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; }
.ai-fab {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px rgba(168,85,247,.5); transition: transform .18s;
}
.ai-fab::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(168,85,247,.55); animation: fabRing 2.4s ease-out infinite;
}
@keyframes fabRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.ai-fab:hover { transform: scale(1.07) rotate(8deg); }
.ai-fab-dot {
  position: absolute; top: 3px; right: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: #22d3ee; border: 2px solid #fff; z-index: 2;
}
.ai-chat {
  width: min(370px, calc(100vw - 2rem)); background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15,11,30,.45); border: 1px solid var(--line);
  margin-bottom: .9rem; overflow: hidden; display: flex; flex-direction: column;
  animation: chatIn .28s cubic-bezier(.34,1.4,.64,1); transform-origin: bottom right;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.ai-chat[hidden] { display: none !important; }
.ai-chat-head {
  background: linear-gradient(120deg, var(--void), var(--void-3)); color: #fff;
  padding: .95rem 1.05rem; display: flex; align-items: center; gap: .7rem;
}
.ai-chat-avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(168,85,247,.5);
}
.ai-chat-head-info { flex: 1; min-width: 0; }
.ai-chat-head-info strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.ai-chat-head-info span { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: #8d86ab; }
.ai-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.ai-chat-close { background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; opacity: .8; }
.ai-chat-close:hover { opacity: 1; }
.ai-chat-msgs { height: 280px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .65rem; background: var(--tint); }
.ai-msg {
  max-width: 88%; padding: .7rem .9rem; border-radius: 14px; font-size: .86rem; line-height: 1.45;
  animation: msgIn .3s ease both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.ai-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.ai-msg.user { background: var(--violet); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.ai-wait { display: flex; gap: .32rem; align-items: center; padding: .85rem 1rem; }
.ai-wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: tDots 1.1s ease-in-out infinite; }
.ai-wait span:nth-child(2) { animation-delay: .15s; }
.ai-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes tDots { 30% { transform: translateY(-5px); opacity: .5; } }
.ai-chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: #fff; }
.ai-chat-form input {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; font: inherit; font-size: .88rem;
  transition: border-color .15s;
}
.ai-chat-form input:focus { outline: none; border-color: var(--violet); }
.ai-chat-form button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--grad); color: #fff;
  font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: transform .15s;
}
.ai-chat-form button:hover { transform: scale(1.08); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .cta-inner, .ai-panel { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .svc-grid, .quote-grid, .blog-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .steps, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--void-2); border-bottom: 1px solid rgba(255,255,255,.08); padding: .6rem 4%;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; }
  .nav .btn { margin: .6rem 0 1rem; text-align: center; }
  .nav-toggle { display: block; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .svc-grid, .quote-grid, .blog-grid, .price-grid, .steps, .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 3.2rem 0 2.5rem; }
  .chip-a { left: 0; } .chip-b { right: 0; }
}
