/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090f;
  --bg-2: #0f0f1a;
  --bg-3: #141428;
  --surface: #1a1a2e;
  --surface-2: #16213e;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(108,99,255,0.4);

  --primary: #6C63FF;
  --primary-light: #8B83FF;
  --primary-dark: #5248CC;
  --accent: #00D4AA;
  --accent-2: #FF6B6B;

  --text: #f0f0f8;
  --text-muted: #8888aa;
  --text-faint: #44445a;

  --gradient: linear-gradient(135deg, #6C63FF, #00D4AA);
  --gradient-soft: linear-gradient(135deg, rgba(108,99,255,.15), rgba(0,212,170,.1));

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.25);

  --nav-h: 116px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--sm { padding: 9px 20px; font-size: 13px; }
.btn--lg { padding: 14px 28px; font-size: 15px; }
.btn--xl { padding: 17px 36px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; border-radius: var(--radius-sm); }

.btn--primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9,9,15,0.7);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(9,9,15,0.96);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(108,99,255,0.25), 0 8px 32px rgba(0,0,0,0.6);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 20px;
}
.logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text strong { color: var(--primary-light); }
.logo-img {
  height: 108px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.logo-img--footer {
  height: 92px;
  max-width: 300px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1) opacity(0.9);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.mt-1 { margin-top: 12px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,99,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,0.6), transparent);
  top: -200px; left: -180px;
  animation-delay: 0s;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,170,0.5), transparent);
  top: 5%; right: -120px;
  animation-delay: 3s;
}
.hero__orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(108,99,255,0.4), transparent);
  bottom: 5%; left: 35%;
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label { font-size: 13px; color: var(--text-muted); }
.stat__divider { width: 1px; height: 40px; background: var(--border); }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text-faint), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== TRUST ===== */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.trust__label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 24px;
}
.trust__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust__logo {
  color: var(--text-faint);
  transition: color var(--transition);
}
.trust__logo:hover { color: var(--text-muted); }

/* ===== SECTION COMMON ===== */
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(108,99,255,0.18), rgba(0,212,170,0.1));
  border: 1px solid rgba(108,99,255,0.35);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 16px rgba(108,99,255,0.15);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== PORTFOLIO / FILTERS ===== */
.portfolio {
  padding: 100px 0;
  background: var(--bg);
}

.filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filters__group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filters__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.filter-tab.active {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 12px rgba(108,99,255,0.3);
}

.filters__info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 4px;
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.reset-btn:hover { border-color: var(--border-hover); color: var(--primary-light); }

/* ===== AGENT CARDS ===== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.agent-card {
  background: rgba(26,26,46,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.agent-card:hover {
  border-color: rgba(108,99,255,0.45);
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(108,99,255,0.2), var(--shadow-glow), var(--shadow);
  background: rgba(26,26,46,0.95);
}
.agent-card:hover::before { opacity: 1; }

.agent-card.hidden {
  display: none;
}

.agent-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agent-card__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge--nexus {
  background: rgba(108,99,255,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(108,99,255,0.2);
}

.agent-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-card__icon svg { width: 20px; height: 20px; }

.icon--sales   { background: rgba(108,99,255,0.15); color: #8B83FF; }
.icon--finance { background: rgba(0,212,170,0.12);  color: #00D4AA; }
.icon--ops     { background: rgba(255,107,107,0.12); color: #FF8888; }
.icon--support { background: rgba(59,200,255,0.12);  color: #5BC8FF; }
.icon--it      { background: rgba(255,200,50,0.12);  color: #FFD166; }
.icon--hr      { background: rgba(200,100,255,0.12); color: #CC88FF; }
.icon--legal   { background: rgba(255,160,50,0.12);  color: #FFA040; }

.agent-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.agent-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.agent-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--text-muted);
}

.agent-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.agent-card__cta:hover { color: var(--accent); gap: 8px; }

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.no-results svg { opacity: 0.3; }

/* ===== HOW WE WORK ===== */
.how-we-work {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 56px;
}

.step {
  flex: 1;
  min-width: 200px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step__num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  display: block;
}

.step__content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step__content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-faint);
  padding: 0 8px;
  align-self: center;
  flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.cta-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.6), transparent);
  top: -200px; right: -100px;
}
.cta-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.5), transparent);
  bottom: -100px; left: -100px;
}

.cta-card {
  position: relative;
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108,99,255,0.35);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  box-shadow: 0 0 80px rgba(108,99,255,0.25), 0 0 40px rgba(0,212,170,0.1), var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.cta-card__icon {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.cta-card__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-card__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-card__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 32px;
}

/* Founder card */
.founder-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(108,99,255,0.06);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
}

.founder-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(108,99,255,0.4);
  flex-shrink: 0;
}

.founder-card__body { flex: 1; }

.founder-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.founder-card__title {
  font-size: 12px;
  color: var(--primary-light);
  line-height: 1.4;
  margin-bottom: 10px;
}

.founder-card__bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.founder-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0A66C2;
  background: rgba(10,102,194,0.1);
  border: 1px solid rgba(10,102,194,0.25);
  border-radius: 100px;
  padding: 5px 12px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.founder-card__linkedin:hover {
  background: rgba(10,102,194,0.2);
  border-color: #0A66C2;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact__detail-icon {
  width: 36px; height: 36px;
  background: rgba(108,99,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* FORM */
.contact__form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: all var(--transition);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group select option { background: var(--surface); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,0.05);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-group--checkbox { flex-direction: row; align-items: flex-start; gap: 12px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.link { color: var(--primary-light); text-decoration: underline; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__top { grid-template-columns: 1fr; }
  .step__arrow { display: none; }
  .steps { gap: 16px; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__stats { gap: 20px; }
  .stat__divider { display: none; }

  .agents-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: flex-start; }
  .filters__info { order: -1; }

  .cta-card { padding: 40px 24px; }
  .cta-card__actions { flex-direction: column; align-items: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px; }

  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .steps { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .cta-card__title { font-size: 1.4rem; }
  .footer__links { grid-template-columns: 1fr; }
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.service-card {
  background: rgba(20,20,40,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: rgba(108,99,255,0.45);
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px rgba(108,99,255,0.2), var(--shadow-glow), var(--shadow);
  background: rgba(26,26,46,0.95);
}
.service-card:hover::before { opacity: 1; }

.service-card__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}
.type--workshop  { background: rgba(108,99,255,0.12); color: var(--primary-light); border: 1px solid rgba(108,99,255,0.25); }
.type--governance{ background: rgba(0,212,170,0.1);   color: var(--accent);         border: 1px solid rgba(0,212,170,0.25); }
.type--alm       { background: rgba(255,200,50,0.1);  color: #FFD166;               border: 1px solid rgba(255,200,50,0.25); }
.type--consulting{ background: rgba(200,100,255,0.1); color: #CC88FF;               border: 1px solid rgba(200,100,255,0.25); }

.service-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-card__icon svg { width: 24px; height: 24px; }
.icon--workshop  { background: rgba(108,99,255,0.15); color: #8B83FF; }
.icon--gov       { background: rgba(0,212,170,0.12);  color: #00D4AA; }
.icon--alm-icon  { background: rgba(255,200,50,0.12); color: #FFD166; }
.icon--consult   { background: rgba(200,100,255,0.12);color: #CC88FF; }

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.service-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.service-card__features li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gradient);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.service-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.service-card__cta:hover { color: var(--accent); gap: 8px; }

/* Badge alias */
.badge--makeflow {
  background: rgba(108,99,255,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(108,99,255,0.2);
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== CHAT WIDGET ===== */
#chatWidget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chat-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(108,99,255,0.5), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(108,99,255,0.65);
}
.chat-btn__icon { color: white; transition: opacity 0.2s, transform 0.2s; position: absolute; }
.chat-btn__icon--close { opacity: 0; transform: rotate(-90deg); }
.chat-btn.open .chat-btn__icon--open  { opacity: 0; transform: rotate(90deg); }
.chat-btn.open .chat-btn__icon--close { opacity: 1; transform: rotate(0deg); }

.chat-btn__badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: var(--accent-2);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.chat-btn__badge.hidden { display: none; }

.chat-panel {
  width: 360px;
  max-height: 520px;
  background: rgba(15,15,26,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(108,99,255,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  transform-origin: bottom right;
}
.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,212,170,0.1));
  border-bottom: 1px solid rgba(108,99,255,0.15);
  flex-shrink: 0;
}
.chat-header__avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
}
.chat-header__info { flex: 1; }
.chat-header__info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.chat-status { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.chat-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
.chat-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 6px;
  display: flex; align-items: center; transition: color var(--transition);
}
.chat-close:hover { color: var(--text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(108,99,255,0.3); border-radius: 99px; }

.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.chat-msg--bot { align-self: flex-start; }
.chat-msg--user { align-self: flex-end; flex-direction: row-reverse; }

.chat-msg__bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
}
.chat-msg--bot .chat-msg__bubble {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.18);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-msg__bubble {
  background: var(--gradient);
  border-bottom-right-radius: 4px;
  color: white;
}

/* Typing indicator */
.chat-msg--typing .chat-msg__bubble {
  padding: 12px 16px;
}
.typing-dots {
  display: flex; gap: 4px; align-items: center;
}
.typing-dots span {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: typeDot 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typeDot {
  0%,80%,100% { opacity: 0.3; transform: scale(0.8); }
  40%         { opacity: 1;   transform: scale(1); }
}

.chat-quick {
  padding: 0 12px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}
.chat-quick-btn {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--primary-light);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.chat-quick-btn:hover {
  background: rgba(108,99,255,0.2);
  border-color: var(--primary);
  color: white;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
#chatInput {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 9px 16px;
  outline: none;
  transition: border-color 0.2s;
}
#chatInput::placeholder { color: var(--text-faint); }
#chatInput:focus { border-color: rgba(108,99,255,0.5); }

.chat-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(108,99,255,0.4); }

@media (max-width: 480px) {
  #chatWidget { bottom: 16px; right: 16px; }
  .chat-panel { width: calc(100vw - 32px); }
}
