/* ================================================================
   Connie Michelle Consulting — styles.css  v3.0
   Digital Luxury | Glass · Glow · Motion · 3D
   ================================================================ */

/* ── CSS @property for animated conic gradient border ──────────── */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ── Design tokens ──────────────────────────────────────────────── */
:root {
  /* Backgrounds — near-pure black */
  --bg:        #030305;
  --surface:   #07070e;
  --surface-2: #0c0c1a;
  --surface-3: #111128;

  /* Text */
  --text:  #ede8ff;
  --muted: #8878aa;

  /* Borders */
  --line:        rgba(255, 255, 255, 0.07);
  --line-bright: rgba(255, 255, 255, 0.13);

  /* Brand — electric purple only */
  --blue:      #9333ea;
  --blue-dim:  rgba(147, 51, 234, 0.12);
  --blue-mid:  rgba(147, 51, 234, 0.28);
  --gold:      #c084f5;
  --gold-hover:#a855f7;
  --gold-dim:  rgba(192, 132, 245, 0.12);
  --gold-mid:  rgba(192, 132, 245, 0.24);
  --teal:      #c084f5;
  --neon:      #e879f9;

  /* Glass */
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-hover:  rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.10);

  /* Shadows / glows */
  --shadow:    0 40px 100px rgba(0, 0, 0, 0.80);
  --shadow-sm: 0 8px 40px rgba(0, 0, 0, 0.60);
  --glow-gold: 0 0 60px rgba(147, 51, 234, 0.55), 0 0 120px rgba(168, 85, 247, 0.22);
  --glow-blue: 0 0 60px rgba(147, 51, 234, 0.55), 0 0 120px rgba(168, 85, 247, 0.22);

  /* Layout */
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w:     1200px;
}

/* ── Keyframe animations ────────────────────────────────────────── */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.60; transform: scale(1); }
  50%       { opacity: 0.90; transform: scale(1.08); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px rgba(192,132,245,0.7); transform: scale(1); }
  50%       { box-shadow: 0 0 14px rgba(192,132,245,1), 0 0 28px rgba(147,51,234,0.8); transform: scale(1.45); }
}
@keyframes shimmer-sweep {
  0%   { left: -120%; }
  100% { left: 160%; }
}
@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes border-rotate {
  to { --angle: 360deg; }
}
@keyframes circuit-pulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.38; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes step-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(147,51,234,0.22); }
  50%       { box-shadow: 0 0 0 4px rgba(192,132,245,0.18), 0 0 28px rgba(192,132,245,0.7), 0 0 60px rgba(147,51,234,0.35); }
}
@keyframes result-stat-pop {
  0%   { filter: drop-shadow(0 0 0px rgba(192,132,245,0)); }
  30%  { filter: drop-shadow(0 0 14px rgba(232,121,249,0.9)) drop-shadow(0 0 30px rgba(192,132,245,0.6)); }
  100% { filter: drop-shadow(0 0 6px rgba(192,132,245,0.35)); }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a       { color: inherit; text-decoration: none; }
p       { margin: 0; }
ul, ol  { margin: 0; padding: 0; list-style: none; }
img     { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #e879f9 0%, #c084f5 30%, #a855f7 65%, #7c3aed 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease infinite;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h3 { font-size: 1.1rem; font-weight: 700; }

/* ── Accessibility ──────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #07111e;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Utilities ──────────────────────────────────────────────────── */
.container {
  width: min(var(--max-w), calc(100% - 3rem));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulse-dot 2.8s ease-in-out infinite;
}

/* ── Scroll reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay  { transition-delay: 0.16s; }
.reveal-delay2 { transition-delay: 0.28s; }
.reveal-delay3 { transition-delay: 0.40s; }

/* ── Buttons ────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s, color 0.22s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.button-gold {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-gold);
}
.button-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.30), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.button-gold:hover,
.button-gold:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 60px rgba(147, 51, 234, 0.70), 0 0 80px rgba(192,132,245,0.25);
}
.button-gold:hover::before {
  animation: shimmer-sweep 0.65s ease forwards;
}

.button-outline {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border-color: var(--glass-border);
}
.button-outline:hover,
.button-outline:focus-visible {
  background: rgba(168,85,247,0.10);
  border-color: rgba(168,85,247,0.50);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168,85,247,0.22);
}

.button-sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.86rem;
}

.button-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.button-ghost:hover,
.button-ghost:focus-visible {
  color: var(--text);
  background: transparent;
  border-color: transparent;
}

/* ── Button orbit tracer ───────────────────────────────────────── */
.btn-orbit {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  padding: 2px;
  overflow: hidden;
  vertical-align: middle;
}
.btn-orbit-beam {
  position: absolute;
  /* large square centered so it hits all four corners when rotated */
  width: 200%;
  height: 200%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    transparent 74%,
    rgba(200, 215, 255, 0.30) 80%,
    rgba(230, 238, 255, 0.90) 86%,
    rgba(255, 255, 255, 1.00) 89%,
    rgba(230, 238, 255, 0.90) 92%,
    rgba(200, 215, 255, 0.30) 96%,
    transparent 100%
  );
  animation: orbit-spin 2.8s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.btn-orbit > .button {
  position: relative;
  z-index: 1;
}

/* ── Stat marquee strip ────────────────────────────────────────── */
.stat-marquee {
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(147, 51, 234, 0.18);
  border-bottom: 1px solid rgba(147, 51, 234, 0.18);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(147, 51, 234, 0.06) 20%,
    rgba(192, 132, 245, 0.08) 50%,
    rgba(147, 51, 234, 0.06) 80%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.stat-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}
.sm-item {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.sm-sep {
  color: var(--blue);
  opacity: 0.55;
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding: 0.85rem 1.5rem;
  transition: background 0.3s, border-bottom 0.3s;
}
.site-header.scrolled {
  background: rgba(3, 3, 5, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.site-header.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 20%, var(--gold) 50%, var(--blue) 80%, transparent 100%);
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.brand-copy {
  display: grid;
  gap: 0.06rem;
}
.brand-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.brand-copy span {
  font-size: 0.72rem;
  color: var(--muted);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: filter 0.35s ease, transform 0.35s ease;
}
.brand-logo:hover {
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.75));
  transform: scale(1.05);
}
.footer-brand .brand-logo {
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a:not(.button) {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.site-nav a:not(.button)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--neon));
  transition: width 0.3s ease;
}
.site-nav a:not(.button):hover { color: var(--text); }
.site-nav a:not(.button):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll-spy active nav link */
.site-nav a:not(.button)[aria-current="true"] {
  color: var(--text);
}
.site-nav a:not(.button)[aria-current="true"]::after {
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--neon));
}

/* ================================================================
   GRID LINES
   ================================================================ */
.grid-lines {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   CURSOR GLOW
   ================================================================ */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07), transparent 68%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
  will-change: left, top;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: 12rem 0 9rem;
  overflow: hidden;
  z-index: 1;
}



.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  will-change: transform;
}
.hero-glow-1 {
  width: 80vw;
  height: 80vw;
  top: -40%;
  left: -20%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.30), transparent 60%);
  animation: glow-breathe 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 60vw;
  height: 60vw;
  top: -5%;
  right: -15%;
  background: radial-gradient(circle, rgba(79, 38, 184, 0.40), transparent 60%);
  animation: glow-breathe 15s ease-in-out infinite 2s;
}
.hero-glow-3 {
  width: 45vw;
  height: 45vw;
  bottom: -15%;
  left: 25%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.15), transparent 60%);
  animation: glow-breathe 18s ease-in-out infinite 4s;
}

/* ── Hero layout ─────────────────────────────────────────── */
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-circuit {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-circuit g {
  animation: circuit-pulse 5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  text-align: center;
}

.hero-inner h1 {
  white-space: nowrap;
  font-size: clamp(1.6rem, 4.2vw, 3.6rem);
  margin-bottom: 0;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-logo {
  display: block;
  height: 180px;
  width: auto;
  margin: 2rem auto 2.5rem;
  filter: drop-shadow(0 0 24px rgba(192, 132, 245, 0.45));
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.75;
  margin: 0 auto 2rem;
}
.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Hero stats bar ─────────────────────────────────────────── */
.hero-bar {
  display: flex;
  margin: 3rem 0;
  padding: 1.75rem 2.5rem;
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
}
.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 2rem;
  border-right: 1px solid var(--line-bright);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child  { border-right: none; }
.hero-stat strong {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-plus { color: var(--gold); }
.hero-stat span {
  font-size: 0.70rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── Trust strip ─────────────────────────────────────────────── */
.trust-strip {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(168,85,247,0.03);
  position: relative;
  z-index: 1;
}
.trust-strip p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ================================================================
   SECTIONS — base
   ================================================================ */
.section { padding: 6.5rem 0; position: relative; z-index: 1; }

.section-dark {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* Dot-grid pattern on dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(168,85,247,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.section-dark > .container { position: relative; z-index: 1; }

.section-head {
  max-width: 680px;
  margin-bottom: 4rem;
}
.section-head h2 { margin-bottom: 1.1rem; }
.section-head p  { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }

/* ================================================================
   CARD TRACER — mouse-following border glow
   ================================================================ */
.card-tracer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(147, 51, 234, 0.15),
    transparent 65%
  );
  z-index: 0;
}
.service-card:hover .card-tracer,
.package-card:hover .card-tracer,
.testimonial-card:hover .card-tracer,
.process-step:hover .card-tracer,
.insight-card:hover .card-tracer,
.highlight-card:hover .card-tracer {
  opacity: 1;
}
/* Ensure card children render above tracer */
.service-card > *:not(.card-tracer),
.package-card > *:not(.card-tracer),
.testimonial-card > *:not(.card-tracer),
.process-step > *:not(.card-tracer),
.insight-card > *:not(.card-tracer),
.highlight-card > *:not(.card-tracer) {
  position: relative;
  z-index: 1;
}

/* ================================================================
   SERVICES
   ================================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
}

/* Bento asymmetric: first card spans 2 cols, 5th card is taller */
.service-grid .service-card:nth-child(1) {
  grid-column: span 2;
}
.service-grid .service-card:nth-child(5) {
  grid-row: span 2;
}

.service-card {
  position: relative;
  padding: 2.25rem 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.25), 0 20px 60px rgba(0,0,0,0.45);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}

/* Animated gradient top edge */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--neon), var(--teal), var(--blue));
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Inner glow on hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(168, 85, 247, 0.38);
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 70px rgba(168,85,247,0.18);
  outline: none;
}
.service-card:hover::before,
.service-card:focus-visible::before { opacity: 1; animation: gradient-flow 3s linear infinite; }
.service-card:hover::after,
.service-card:focus-visible::after  { opacity: 1; }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(147,51,234,0.25) 0%, rgba(192,132,245,0.10) 100%);
  border: 1px solid rgba(168,85,247,0.30);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 0 24px rgba(147,51,234,0.15);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(147,51,234,0.40) 0%, rgba(192,132,245,0.20) 100%);
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 0 36px rgba(168,85,247,0.40);
  transform: scale(1.1) rotate(-3deg);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-copy p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.about-copy h2 { margin-bottom: 1.5rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-aside { display: grid; gap: 1.25rem; }

.highlight-card {
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.highlight-card:hover { border-color: rgba(168,85,247,0.28); }
.highlight-card h3 {
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.check-list { display: grid; gap: 0.9rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.93rem;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.pull-quote {
  margin: 0;
  padding: 2rem;
  background: var(--gold-dim);
  border: 1px solid rgba(192,132,245,0.20);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  right: 1.25rem;
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.10;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.pull-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.9rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.pull-quote cite {
  font-size: 0.87rem;
  font-weight: 700;
  font-style: normal;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

/* ================================================================
   PACKAGES
   ================================================================ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.25), 0 20px 60px rgba(0,0,0,0.45);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
  overflow: hidden;
  transform-style: preserve-3d;
}
.package-card:not(.package-featured):hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
/* Animated conic gradient border on featured */
.package-featured {
  border: none;
  background: var(--surface-2);
  z-index: 0;
}
.package-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(from var(--angle), #7c3aed 0%, #9333ea 25%, #c084f5 50%, #e879f9 75%, #7c3aed 100%);
  z-index: -1;
  animation: border-rotate 4s linear infinite;
}
.package-featured::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: var(--surface-2);
  z-index: -1;
}

.package-badge {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.32rem 1.1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(212,168,83,0.42);
}

.package-tier {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.package-head { margin-bottom: 1.5rem; }
.package-head h3 { font-size: 1.1rem; line-height: 1.4; }

.package-features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}
.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.package-features li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 700;
  margin-top: 0.05rem;
}

.package-cta { margin-top: auto; }
.package-price {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.87rem;
  font-style: italic;
}

.packages-note {
  padding: 1.25rem 1.5rem;
  background: var(--gold-dim);
  border: 1px solid rgba(192, 132, 245, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
  line-height: 1.65;
}

/* ================================================================
   PROCESS
   ================================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
/* Connector line between steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-mid), var(--gold-mid), var(--blue-mid), transparent);
  pointer-events: none;
  z-index: 0;
}
.process-step {
  padding: 2rem 1.75rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.process-step:hover {
  border-color: rgba(168,85,247,0.32);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.42), 0 0 40px rgba(168,85,247,0.12);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--gold-dim));
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  border: 1px solid rgba(192,132,245,0.28);
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(168,85,247,0.22);
}
.process-step.visible .step-num {
  animation: step-glow 2.8s ease-in-out infinite;
}
.process-step h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.process-step p  { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(147,51,234,0.38);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 50px rgba(147,51,234,0.15);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  right: 1.5rem;
  font-size: 6rem;
  color: var(--blue);
  opacity: 0.10;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.10em;
  margin-bottom: 1.35rem;
}
blockquote {
  margin: 0 0 1.75rem;
  flex: 1;
}
blockquote p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}
.testimonial-card footer { display: grid; gap: 0.2rem; }
.testimonial-card footer strong { font-size: 0.93rem; color: var(--text); }
.testimonial-card footer span  { font-size: 0.8rem;  color: var(--muted); }

/* ================================================================
   INSIGHTS
   ================================================================ */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.insight-card:hover {
  border-color: rgba(168,85,247,0.28);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.42);
}
.insight-tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.30rem 0.9rem;
  background: var(--blue-dim);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(168,85,247,0.20);
}
.insight-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
  flex: 1;
}
.insight-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.insight-coming {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  margin-top: auto;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-container { max-width: 820px; }
.faq-list { display: grid; gap: 0.85rem; }

.faq-item {
  padding: 1.65rem 1.75rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(168,85,247,0.32); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.25s;
  background: var(--gold-dim);
  border-radius: 50%;
  border: 1px solid rgba(192,132,245,0.20);
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.faq-body p { color: var(--muted); font-size: 0.95rem; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-section {
  background: linear-gradient(180deg, var(--bg), var(--surface));
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--muted); margin-bottom: 2rem; font-size: 1.02rem; }

.contact-methods {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.contact-method:hover {
  border-color: rgba(168,85,247,0.38);
  background: rgba(168,85,247,0.07);
  transform: translateX(4px);
}
.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--blue-dim);
  color: var(--teal);
  flex-shrink: 0;
}
.contact-method-icon svg { width: 1.15rem; height: 1.15rem; }
.contact-method-text { display: grid; gap: 0.1rem; }
.contact-method-text strong { font-size: 0.9rem; color: var(--text); }
.contact-method-text span  { font-size: 0.83rem; color: var(--muted); }

.contact-location {
  color: var(--muted);
  font-size: 0.87rem;
}

/* Form */
.contact-form-wrap {
  padding: 2.75rem;
  background: var(--glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 100px rgba(0,0,0,0.50), 0 0 80px rgba(168,85,247,0.08);
}
.contact-form h3 { margin-bottom: 1.75rem; font-size: 1.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.req { color: var(--gold); }
.form-optional { font-weight: 400; font-style: italic; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(123, 144, 168, 0.55); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(168,85,247,0.60);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.14);
}
.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b90a8' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-field select option { background: var(--surface-2); color: var(--text); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  text-align: center;
  color: var(--muted);
  min-height: 1.4rem;
}
.form-status.success { color: var(--teal); }
.form-status.error   { color: #f87171; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  padding: 4.5rem 0 2.5rem;
  background: #020205;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 320px;
}
.footer-nav {
  display: flex;
  gap: 4rem;
}
.footer-nav > div {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}
.footer-nav-head {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--muted); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ================================================================
   GRAIN TEXTURE
   ================================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Large tablet ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }

  .package-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .package-featured { order: -1; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }
}

/* ── Tablet ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-bar { flex-wrap: wrap; }
  .hero-stat {
    flex: 0 0 50%;
    padding: 1rem 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero-stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 1.5rem; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }

  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Collapse hero 2-col on tablet — hero-visual is absolute background, no change needed */

  .service-grid { grid-template-columns: 1fr 1fr; }
  /* Reset bento spans on tablet */
  .service-grid .service-card:nth-child(1) { grid-column: span 1; }
  .service-grid .service-card:nth-child(5) { grid-row: span 1; }

  .testimonial-grid,
  .insight-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .container { width: calc(100% - 2rem); }
  .section   { padding: 4.5rem 0; }
  .hero      { padding: 7rem 0 4rem; }
  .cursor-glow { display: none; }

  /* Mobile navigation overlay */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(3, 3, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.button) {
    font-size: 1.3rem;
    color: var(--text);
  }

  /* Hero */
  .hero-lead  { font-size: 1rem; }

  /* Grids */
  .service-grid { grid-template-columns: 1fr; }
  .service-grid .service-card:nth-child(1),
  .service-grid .service-card:nth-child(5) { grid-column: span 1; grid-row: span 1; }
  .testimonial-grid,
  .insight-grid { grid-template-columns: 1fr; }

  .package-grid { max-width: 100%; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }

  /* Footer */
  .footer-nav { flex-direction: column; gap: 2rem; }
}

/* ── Small mobile ──────────────────────────────────────────────── */
@media (max-width: 420px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: center; }
}

/* ================================================================
   CREDENTIALS CARD
   ================================================================ */
.credentials-card { padding: 1.75rem; }

.credentials-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.credentials-list li strong { color: var(--text); }
.cred-icon { flex-shrink: 0; font-size: 0.85rem; line-height: 1.5; }

.licensed-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.1rem;
  background: rgba(168,85,247,0.09);
  border: 1px solid rgba(168,85,247,0.28);
  border-radius: var(--radius);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ================================================================
   FORMSPREE AJAX — success / error states
   ================================================================ */
.fs-success-msg:empty,
.fs-form-error:empty { display: none; }

.fs-success-msg {
  padding: 1rem 1.25rem;
  background: rgba(155, 77, 202, 0.09);
  border: 1px solid rgba(155, 77, 202, 0.30);
  border-radius: 12px;
  color: var(--teal);
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.fs-form-error {
  padding: 0.85rem 1.25rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 12px;
  color: #f87171;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.field-error[data-fs-error] {
  display: block;
  margin-top: 0.3rem;
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 600;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1) !important;
}

/* ─────────────────────────────────────────────────────────────────
   SCROLL PROGRESS BAR
───────────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #9333ea, #c084f5, #e879f9);
  box-shadow: 0 0 10px rgba(192, 132, 245, 0.7), 0 0 20px rgba(192, 132, 245, 0.4);
  z-index: 9999;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────────────────────────────
   TYPEWRITER WORD IN HERO
───────────────────────────────────────────────────────────────── */
#typewriter-word {
  display: inline-block;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  position: relative;
}
#typewriter-word::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: var(--neon);
  animation: tw-blink 0.75s step-end infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes tw-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tw-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
#typewriter-word.tw-exit  { animation: tw-out 0.22s ease-in  forwards; }
#typewriter-word.tw-enter { animation: tw-in  0.28s ease-out forwards; }

/* ─────────────────────────────────────────────────────────────────
   MAGNETIC BUTTONS
───────────────────────────────────────────────────────────────── */
.magnetic {
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              color 0.25s ease;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────
   FLOATING BOOK A CALL PILL
───────────────────────────────────────────────────────────────── */
.float-pill {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.5),
              0 8px 32px rgba(0, 0, 0, 0.45);
  z-index: 8000;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  pointer-events: none;
}
.float-pill.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: pill-pulse 2.5s ease-in-out infinite;
}
.float-pill:hover {
  background: linear-gradient(135deg, #9333ea, #c084f5);
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 0 0 6px rgba(147, 51, 234, 0.15),
              0 12px 40px rgba(0, 0, 0, 0.5);
  animation: none;
}
.float-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e879f9;
  box-shadow: 0 0 6px #e879f9;
  flex-shrink: 0;
  animation: dot-ping 1.5s ease-in-out infinite;
}
@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.4), 0 8px 32px rgba(0,0,0,0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(147, 51, 234, 0),  0 8px 32px rgba(0,0,0,0.45); }
}
@keyframes dot-ping {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}
@media (max-width: 480px) {
  .float-pill { bottom: 1.2rem; right: 1.2rem; font-size: 0.82rem; padding: 0.6rem 1rem; }
}

/* =================================================================
   CLIENT PORTAL SECTION
================================================================= */
.portal-section {
  background: var(--bg);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}
.portal-card {
  position: relative;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.portal-card:hover {
  border-color: rgba(192, 132, 245, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(147, 51, 234, 0.12);
}
.portal-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.portal-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.portal-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}
.portal-actions {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.portal-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.portal-note a {
  color: var(--gold);
  text-decoration: none;
}
.portal-note a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   MERCH SECTION
================================================================= */
.merch-section {
  background: var(--surface);
}

/* Promo block (replaces dynamic product grid on homepage) */
.merch-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 1rem 0;
}
.merch-promo-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.merch-promo-text p {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}
.merch-promo-badges {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.merch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.22);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  .merch-promo { grid-template-columns: 1fr; gap: 2rem; }
}


.merch-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.merch-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(192,132,245,0.2);
  border-top-color: #c084f5;
  border-radius: 50%;
  animation: merch-spin 0.7s linear infinite;
}
@keyframes merch-spin {
  to { transform: rotate(360deg); }
}
.merch-error {
  text-align: center;
  padding: 3rem 0;
  color: var(--muted);
}
.merch-error a { color: var(--gold); }

/* Product grid */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2rem;
}
.merch-card {
  display: flex;
  flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.merch-card:hover {
  border-color: rgba(192,132,245,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(147,51,234,0.14);
}
.merch-card-img-wrap {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.merch-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.merch-card:hover .merch-card-img-wrap img {
  transform: scale(1.06);
}
.merch-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(147,51,234,0.06) 0%, rgba(232,121,249,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.merch-card-placeholder::after {
  content: "CMC";
  font-weight: 900;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #c084f5, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
}
.merch-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.merch-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.merch-card-price {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}
.merch-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.merch-card:hover .merch-card-cta {
  color: var(--gold);
}
.merch-cta-row {
  text-align: center;
  margin-top: 0.5rem;
}
@media (max-width: 1024px) {
  .merch-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 420px) {
  .merch-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   AURORA HEADLINE
================================================================= */
@keyframes aurora-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.aurora-headline {
  background: linear-gradient(
    270deg,
    #ffffff 0%,
    #c084f5 20%,
    #e879f9 40%,
    #ffffff 55%,
    #9333ea 70%,
    #c084f5 85%,
    #ffffff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aurora-shift 6s ease infinite;
}

/* =================================================================
   CASE STUDIES / RESULTS
================================================================= */
.results-section {
  background: var(--bg);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}
.result-card {
  position: relative;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(147,51,234,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.result-card:hover {
  border-color: rgba(192,132,245,0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(147,51,234,0.14);
}
.result-industry {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(192,132,245,0.1);
  border: 1px solid rgba(192,132,245,0.2);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}
.result-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.result-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.result-num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #c084f5, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-card.visible .result-num {
  animation: result-stat-pop 1.8s ease-out forwards;
}
.result-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.result-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.result-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}
.results-cta {
  text-align: center;
}
@media (max-width: 900px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   LEAD MAGNET POPUP
================================================================= */
.lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(3,3,5,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lm-fade-in 0.4s ease;
}
.lm-overlay[hidden] { display: none; }
@keyframes lm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lm-card {
  position: relative;
  background: rgba(10,5,20,0.97);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 24px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(192,132,245,0.08);
  animation: lm-slide-up 0.45s cubic-bezier(.34,1.2,.64,1);
}
@keyframes lm-slide-up {
  from { transform: translateY(24px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.lm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease, background 0.2s ease;
}
.lm-close:hover { color: #fff; background: rgba(255,255,255,0.12); }
.lm-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(192,132,245,0.1);
  border: 1px solid rgba(192,132,245,0.25);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.lm-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 0.85rem;
}
.lm-title span {
  background: linear-gradient(135deg, #c084f5, #e879f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lm-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}
.lm-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lm-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  padding-left: 1.4rem;
  position: relative;
}
.lm-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084f5, #e879f9);
}
.lm-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.lm-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.92rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}
.lm-input::placeholder { color: rgba(255,255,255,0.3); }
.lm-input:focus { border-color: rgba(192,132,245,0.6); }
.lm-submit { width: 100%; justify-content: center; }
.lm-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin: 0;
}
@media (max-width: 480px) {
  .lm-card { padding: 2rem 1.5rem 1.5rem; }
  .lm-title { font-size: 1.5rem; }
}

/* =================================================================
   SOCIAL PROOF TOAST
================================================================= */
.sp-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9996;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10,5,20,0.95);
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(.34,1.2,.64,1);
}
.sp-toast.sp-toast--visible {
  transform: translateX(0);
}
.sp-toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333ea, #e879f9);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.sp-toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sp-toast-body strong {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
}
.sp-toast-body span {
  font-size: 0.78rem;
  color: var(--muted);
}
.sp-toast-time {
  font-size: 0.7rem !important;
  color: rgba(255,255,255,0.3) !important;
}
@media (max-width: 480px) {
  .sp-toast { left: 1rem; max-width: calc(100vw - 2rem); }
}

/* =================================================================
   CMC CHATBOT
================================================================= */
/* Trigger button */
.cmc-chat-trigger {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #9333ea 0%, #c084f5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(147, 51, 234, 0.5);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s ease;
}
.cmc-chat-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.65);
}
.cmc-chat-trigger:active {
  transform: scale(0.95);
}
.cmc-chat-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.cmc-chat-trigger-icon[hidden] { display: none; }
.cmc-trigger-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 0 6px rgba(192,132,245,0.45));
}
.cmc-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e879f9;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: badge-pop 0.4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badge-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Chat window */
.cmc-chat {
  position: fixed;
  bottom: 7rem;
  right: 1.5rem;
  z-index: 9997;
  width: 360px;
  max-height: 520px;
  border-radius: 20px;
  background: rgba(10, 5, 20, 0.92);
  border: 1px solid rgba(147, 51, 234, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,132,245,0.1);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.34,1.2,.64,1), opacity 0.25s ease;
}
.cmc-chat--open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.cmc-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 1rem 1rem;
  background: linear-gradient(135deg, rgba(147,51,234,0.2) 0%, rgba(232,121,249,0.08) 100%);
  border-bottom: 1px solid rgba(147,51,234,0.15);
  flex-shrink: 0;
}
.cmc-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(192,132,245,0.4);
  flex-shrink: 0;
}
.cmc-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cmc-chat-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cmc-chat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.cmc-chat-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cmc-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,0.8);
  animation: dot-ping 2s ease-in-out infinite;
}
.cmc-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 0.3rem;
  border-radius: var(--radius);
  display: flex;
  transition: color 0.2s ease, background 0.2s ease;
}
.cmc-chat-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Messages */
.cmc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.cmc-chat-messages::-webkit-scrollbar { width: 4px; }
.cmc-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(147,51,234,0.35);
  border-radius: 2px;
}

.cmc-msg {
  display: flex;
  animation: msg-in 0.3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cmc-msg--bot  { justify-content: flex-start; }
.cmc-msg--user { justify-content: flex-end; }

.cmc-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}
.cmc-msg--bot .cmc-bubble {
  background: rgba(147,51,234,0.15);
  border: 1px solid rgba(147,51,234,0.2);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
}
.cmc-msg--user .cmc-bubble {
  background: linear-gradient(135deg, #9333ea 0%, #c084f5 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing dots */
.cmc-typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
}
.cmc-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(192,132,245,0.7);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.cmc-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.cmc-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.5; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* Suggestions */
.cmc-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
  flex-shrink: 0;
}
.cmc-sugg {
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.28);
  color: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.cmc-sugg:hover {
  background: rgba(147,51,234,0.3);
  border-color: rgba(192,132,245,0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* Input row */
.cmc-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(147,51,234,0.12);
  flex-shrink: 0;
}
.cmc-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 24px;
  padding: 0.55rem 1rem;
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cmc-chat-input::placeholder { color: rgba(255,255,255,0.3); }
.cmc-chat-input:focus {
  border-color: rgba(192,132,245,0.55);
  background: rgba(255,255,255,0.09);
}
.cmc-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #9333ea 0%, #c084f5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cmc-chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(147,51,234,0.5);
}
.cmc-chat-send:active {
  transform: scale(0.94);
}

@media (max-width: 480px) {
  .cmc-chat { width: calc(100vw - 2rem); right: 1rem; bottom: 6rem; max-height: 440px; }
  .cmc-chat-trigger { bottom: 4.8rem; right: 1rem; }
}
