/* ==========================================================================
   Studio-D — shared stylesheet (magma theme)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #eef4ff;
  --card: #f7fbff;
  --card-hover: #eaf2ff;
  --border: rgba(15, 23, 42, 0.10);
  --ember: #2f6fed;
  --gold: #1d4ed8;
  --gold-light: #3b82f6;
  --text: #0f172a;
  --text-muted: #5b6b85;
  --radius: 10px;
  --max-width: 1180px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle, rgba(94, 160, 255, 0.28) 0%, transparent 38%),
    radial-gradient(circle, rgba(178, 140, 255, 0.22) 0%, transparent 38%),
    radial-gradient(circle, rgba(255, 170, 210, 0.16) 0%, transparent 40%),
    radial-gradient(circle, rgba(110, 200, 255, 0.22) 0%, transparent 42%);
  background-size: 65% 65%, 60% 60%, 70% 70%, 65% 65%;
  background-position: 8% 12%, 92% 18%, 25% 92%, 85% 85%;
  background-attachment: fixed;
  animation: swirlBg 50s ease-in-out infinite alternate;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@keyframes swirlBg {
  0%   { background-position: 8% 12%,  92% 18%, 25% 92%, 85% 85%; }
  20%  { background-position: 22% 28%, 76% 6%,  42% 82%, 68% 96%; }
  40%  { background-position: 14% 38%, 84% 32%, 32% 66%, 92% 72%; }
  60%  { background-position: 4% 22%,  96% 26%, 18% 90%, 74% 82%; }
  80%  { background-position: 18% 8%,  80% 12%, 38% 78%, 60% 68%; }
  100% { background-position: 8% 12%,  92% 18%, 25% 92%, 85% 85%; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

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

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section { padding: 96px 0; }
.section-alt { background: rgba(238, 244, 255, 0.55); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; animation: fadeInUp 0.8s ease-out both; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.3px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, #bfe0ff, #6fa8ff 55%, #3d7dfd);
  color: #0d2a63;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: btnFlicker 3.4s ease-in-out infinite, borderShine 2.6s ease-in-out infinite;
}
.btn-gold:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.18) drop-shadow(0 0 14px rgba(58, 125, 255, 0.65)); }

.cta-float { animation: btnFlicker 3.4s ease-in-out infinite, borderShine 2.6s ease-in-out infinite; }

@keyframes borderShine {
  0%   { border-color: rgba(47, 111, 237, 0.9); }
  33%  { border-color: rgba(120, 170, 255, 0.95); }
  66%  { border-color: rgba(20, 45, 95, 0.85); }
  100% { border-color: rgba(47, 111, 237, 0.9); }
}

@keyframes btnFlicker {
  0%   { box-shadow: 0 0 7px 0px rgba(47, 111, 237, 0.25), 0 0 2px rgba(15, 45, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
  22%  { box-shadow: 0 0 10px 1px rgba(47, 111, 237, 0.35), 0 0 3px rgba(15, 45, 110, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
  40%  { box-shadow: 0 0 5px 0px rgba(47, 111, 237, 0.18), 0 0 2px rgba(15, 45, 110, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
  58%  { box-shadow: 0 0 11px 2px rgba(47, 111, 237, 0.38), 0 0 4px rgba(15, 45, 110, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
  76%  { box-shadow: 0 0 6px 0px rgba(47, 111, 237, 0.22), 0 0 2px rgba(15, 45, 110, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
  100% { box-shadow: 0 0 7px 0px rgba(47, 111, 237, 0.25), 0 0 2px rgba(15, 45, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -6px 10px rgba(0, 0, 0, 0.15); }
}

.btn-outline { background: transparent; color: var(--text); border-color: rgba(15, 23, 42, 0.2); transition: transform 0.15s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); box-shadow: 0 0 18px 3px rgba(90, 155, 255, 0.5); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(31, 41, 55, 0.06);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--max-width); margin: 0 auto;
}

.logo-mark { height: 46px; display: block; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  background:
    radial-gradient(circle at 78% 60%, rgba(47, 111, 237, 0.16) 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 15% 20%, rgba(150, 200, 255, 0.08) 0%, rgba(255, 255, 255, 0) 40%);
}

.hero-inner { max-width: 680px; margin: 0 auto; text-align: center; animation: fadeInUp 0.9s ease-out both; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #1d4ed8, #3d7dfd 55%, #6fa8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(61, 125, 253, 0.4);
}
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  padding: 84px 0 60px; text-align: center;
  background:
    radial-gradient(circle at 80% 30%, rgba(47, 111, 237, 0.16) 0%, rgba(255, 255, 255, 0) 45%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold-light); font-weight: 700; }
.stat .label { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

/* ---------- Cards / Grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; text-align: center; }

.card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
  padding: 34px 28px; transition: transform 0.2s ease, background 0.2s ease;
  animation: fadeInUp 0.7s ease-out both, emberBorder 5s ease-in-out infinite;
  text-align: center;
}
.card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.68); }

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes emberBorder {
  0%   { border-color: rgba(47, 111, 237, 0.16); box-shadow: 0 0 0 rgba(47, 111, 237, 0); }
  50%  { border-color: rgba(90, 155, 255, 0.55); box-shadow: 0 0 16px 1px rgba(47, 111, 237, 0.22); }
  100% { border-color: rgba(47, 111, 237, 0.16); box-shadow: 0 0 0 rgba(47, 111, 237, 0); }
}

.grid-3 .card:nth-child(2) { animation-delay: 1.1s; }
.grid-3 .card:nth-child(3) { animation-delay: 2.2s; }
.grid-3 .card:nth-child(4) { animation-delay: 0.6s; }
.grid-3 .card:nth-child(5) { animation-delay: 1.7s; }
.grid-2 .card:nth-child(2) { animation-delay: 1.4s; }

.card-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(47, 111, 237, 0.14); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin: 0 auto 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-photo {
  margin: -34px -28px 22px; aspect-ratio: 16/10; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-photo img { transform: scale(1.06); }

/* ---------- Pricing ---------- */

.price-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
  padding: 40px 30px; display: flex; flex-direction: column; position: relative;
  animation: fadeInUp 0.7s ease-out both;
}
.price-card.featured {
  border-color: var(--ember);
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.10), var(--card) 40%);
  transform: scale(1.03);
}
.price-card .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--ember)); color: #050b18;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; padding: 5px 14px;
  border-radius: 20px; text-transform: uppercase;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-head); font-size: 2.4rem; color: var(--gold-light); margin: 14px 0; }
.price-card .price small { font-size: 0.95rem; color: var(--text-muted); font-weight: 400; }
.price-card .desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 30px; flex-grow: 1; text-align: left; }
.price-card li {
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
  color: var(--text-muted); display: flex; gap: 10px;
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before { content: '✓'; color: var(--gold); font-weight: 700; }

/* ---------- Case study / portfolio ---------- */

.case-study {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.case-study .shot { aspect-ratio: 4/3; overflow: hidden; }
.case-study .shot img { width: 100%; height: 100%; object-fit: cover; }
.case-study .info { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.case-study .tag {
  display: inline-block; background: rgba(47, 111, 237, 0.14); color: var(--gold-light);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; width: fit-content;
}
.case-study h3 { font-size: 1.5rem; margin-bottom: 12px; }
.case-study p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
.case-study .stats-row { display: flex; gap: 32px; margin-top: 20px; }
.case-study .stats-row .num { font-family: var(--font-head); color: var(--gold-light); font-size: 1.6rem; font-weight: 700; }
.case-study .stats-row .label { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- Testimonials ---------- */

.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.testimonial .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p.quote { color: var(--text); font-size: 0.98rem; margin-bottom: 20px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #050b18; font-size: 0.9rem; overflow: hidden; flex-shrink: 0;
}
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial .name { font-weight: 600; font-size: 0.92rem; }
.testimonial .role { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, #eef4ff, #dbe9ff 60%, #ffffff);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); margin-bottom: 30px; }

/* ---------- Forms ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 6px;
  padding: 13px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--ember);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.form-success {
  display: none; background: rgba(47, 111, 237, 0.12); border: 1px solid var(--ember);
  color: var(--gold-light); padding: 14px 18px; border-radius: 6px; margin-bottom: 20px; font-size: 0.92rem;
}
.form-success.show { display: block; }

.info-list { display: flex; flex-direction: column; gap: 26px; align-items: center; }
.info-list .item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.info-list .icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: rgba(47, 111, 237, 0.14); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.info-list h4 { font-size: 1rem; margin-bottom: 4px; }
.info-list p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- About / Values ---------- */

.values-list { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.value-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.value-item .num { font-family: var(--font-head); color: var(--gold); font-size: 1.4rem; font-weight: 700; min-width: 40px; }
.value-item h4 { margin-bottom: 6px; }
.value-item p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; text-align: center; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-logo { height: 34px; margin: 0 auto 14px; }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex;
  justify-content: center; text-align: center; color: var(--text-muted); font-size: 0.82rem; flex-wrap: wrap; gap: 18px;
}

/* ---------- Before / After ---------- */

.before-after {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeInUp 0.8s ease-out both;
}

.ba-item { flex: 1; min-width: 0; }

.ba-tag {
  display: inline-block;
  background: rgba(47, 111, 237, 0.14);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.ba-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 8px 32px rgba(31, 41, 55, 0.08);
}

.ba-photo img { width: 100%; height: 100%; object-fit: cover; }

.ba-arrow {
  flex-shrink: 0;
  font-size: 2.8rem;
  color: var(--gold-light);
  text-shadow: 0 0 16px rgba(90, 155, 255, 0.6);
}

@media (max-width: 720px) {
  .before-after { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); }
}

/* ---------- Floating CTA ---------- */

.cta-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #bfe0ff, #6fa8ff 55%, #3d7dfd); color: #0d2a63;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 14px 22px; border-radius: 50px; font-weight: 700; font-size: 0.92rem;
  transition: transform 0.2s ease;
}
.cta-float:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.18) drop-shadow(0 0 14px rgba(58, 125, 255, 0.65)); }

@media (max-width: 560px) { .cta-float { right: 16px; bottom: 16px; padding: 13px 18px; font-size: 0.85rem; } }


/* ---------- Intro Video ---------- */

.video-intro-text {
  text-align: center;
  color: #000000;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-family: var(--font-head);
  margin-bottom: 16px;
}

.video-frame {
  max-width: 645px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  animation: fadeInUp 0.7s ease-out both;
}
.video-frame video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  display: block; background: #0f172a;
}
.video-frame-hero { margin: 28px auto 30px; }

/* ---------- Chatbot ---------- */

.chatbot { position: fixed; left: 24px; bottom: 24px; z-index: 210; }

.chatbot-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, #bfe0ff, #6fa8ff 55%, #3d7dfd);
  color: #0d2a63; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(47, 111, 237, 0.35);
  animation: btnFlicker 3.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.chatbot-toggle:hover { transform: translateY(-3px) scale(1.05); }
.chatbot-toggle.active { transform: scale(0.94); }

.chatbot-panel {
  position: absolute; left: 0; bottom: 74px;
  width: 340px; max-height: 480px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.chatbot-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: rgba(255, 255, 255, 0.4); border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.chatbot-title-wrap { display: flex; flex-direction: column; gap: 2px; }
.chatbot-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.chatbot-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; display: inline-block; }
.chatbot-subtitle { font-size: 0.72rem; color: var(--text-muted); padding-left: 16px; }
.chatbot-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 0.95rem; padding: 4px; line-height: 1;
}
.chatbot-close:hover { color: var(--text); }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  min-height: 180px; max-height: 260px;
}
.chatbot-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45;
}
.chatbot-msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.7); border-bottom-left-radius: 4px; color: var(--text); }
.chatbot-msg.bot a { color: var(--ember); text-decoration: underline; }
.chatbot-msg.user {
  align-self: flex-end; background: linear-gradient(135deg, #bfe0ff, #6fa8ff 55%, #3d7dfd);
  color: #0d2a63; border-bottom-right-radius: 4px;
}
.chatbot-msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 16px; }
.chatbot-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
  animation: chatTyping 1.1s ease-in-out infinite;
}
.chatbot-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-msg.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chatbot-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chatbot-chip {
  background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.7); color: var(--text-muted);
  font-size: 0.78rem; padding: 7px 12px; border-radius: 20px; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chatbot-chip:hover { border-color: var(--ember); color: var(--ember); }

.chatbot-input-row {
  display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.6);
}
.chatbot-input-row input {
  flex: 1; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 20px;
  padding: 10px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.88rem;
}
.chatbot-input-row input:focus { outline: none; border-color: var(--ember); }
.chatbot-input-row button {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex-shrink: 0;
  background: linear-gradient(135deg, #bfe0ff, #6fa8ff 55%, #3d7dfd); color: #0d2a63;
  cursor: pointer; font-size: 0.95rem;
}

@media (max-width: 560px) {
  .chatbot { left: 16px; bottom: 16px; }
  .chatbot-toggle { width: 52px; height: 52px; }
  .chatbot-panel { width: calc(100vw - 32px); left: -8px; bottom: 66px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .case-study { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-alt);
    flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .logo-mark { height: 36px; }
  .nav-cta { gap: 8px; flex-wrap: wrap; }
  .nav-cta .btn { padding: 9px 14px; font-size: 0.78rem; white-space: nowrap; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .section { padding: 64px 0; }
}
