:root {
  --sf: 'Space Grotesk', sans-serif;
  --bf: 'Inter', sans-serif;
  --deep-sea: #0a1628;
  --purple: #8b5cf6;
  --blue: #00adff;
  --mint: #00d9c0;
  --accent-text: #a78bfa;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;

  /* HubSpot Form Dark Theme — v2.0 updated values */
  --hsf-global__font-family: 'Inter', sans-serif;
  --hsf-global__font-size: 14px;
  --hsf-global__color: #d1d5db;
  --hsf-global-error__color: #f87171;
  --hsf-background__background-color: transparent;
  --hsf-background__border-color: transparent;
  --hsf-background__border-radius: 0px;
  --hsf-background__padding: 0px;
  --hsf-field-input__background-color: #1e2d45;
  --hsf-field-input__border-color: #2d3a4d;
  --hsf-field-input__border-radius: 8px;
  --hsf-field-input__color: #ffffff;
  --hsf-field-input__font-size: 16px;
  --hsf-field-input__placeholder-color: #6b7280;
  --hsf-field-label__color: #ffffff;
  --hsf-field-label__font-size: 13px;
  --hsf-button__background-color: #8b5cf6;
  --hsf-button__color: #ffffff;
  --hsf-button__border-color: #8b5cf6;
  --hsf-button__border-radius: 8px;
  --hsf-button__font-family: 'Inter', sans-serif;
  --hsf-button__font-size: 14px;
  --hsf-button__font-weight: 500;
  --hsf-button--hover__background-color: #9b6ff7;
  --hsf-button--hover__color: #ffffff;
  --hsf-button--hover__border-color: #9b6ff7;
  --hsf-legal-consent__color: #9ca3af;
  --hsf-legal-consent__font-size: 12px;
  --hsf-rich-text__color: #b6bcc5;
  --hsf-rich-text__font-size: 12px;
  --hsf-row__vertical-spacing: 16px;
  --hsf-module__vertical-spacing: 12px;
}

/* ========================================
   1. RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--bf);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-300);
  background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ========================================
   2. SKIP LINK
   ======================================== */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--purple); color: var(--white); padding: 12px 24px;
  border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ========================================
   3. FOCUS STATES
   ======================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   4. REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   5. TAILWIND UTILITY CLASSES
   ======================================== */
.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs  { font-size: 0.75rem; line-height: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-white { color: var(--white); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-6 { padding: 1.5rem; }
.pt-20 { padding-top: 5rem; }
.pb-12 { padding-bottom: 3rem; }
.pr-4 { padding-right: 1rem; }

.relative { position: relative; }
.z-10 { z-index: 10; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.hidden { display: none; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.pointer-events-none { pointer-events: none; }
.leading-relaxed { line-height: 1.625; }
.italic { font-style: italic; }
.transition-colors { transition: color 0.15s; }

/* ========================================
   6. GRADIENT TEXT
   ======================================== */
.gradient-text,
.grad-text {
  color: var(--purple); /* solid fallback */
  background: linear-gradient(90deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   7. GLASSMORPHIC CARD
   ======================================== */
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.glass:hover {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.glass:hover::before { opacity: 1; }
.glass > * { position: relative; z-index: 1; }
.glass img { padding: 1rem 0; }

/* ========================================
   7b. FEATURE CARD (LIGHT GLASS)
   Per ge-feature-card-spec. Lighter variant
   that lets neural canvas show through at rest.
   ======================================== */
.card-light {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-light:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
  transform: translateY(-2px);
}
.card-light .card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.card-light:hover .card-glow { opacity: 1; }
.card-light .card-inner {
  position: relative;
  z-index: 1;
}

/* ========================================
   8. HERO SECTION — v2.0 STRUCTURE
   ======================================== */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 2rem; /* Elementor nav handles its own spacing */
}

/* --- Hero Card: single glass with gradient outline --- */
.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  padding: 0;
  overflow: visible;          /* MUST be visible for gradient outline + scale */
  border: none;               /* gradient outline replaces this */
  position: relative;
}
/* Disable hover lift on hero card */
.hero-card:hover {
  transform: none;
  border: none;
}

/* Gradient outline via mask-composite */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(139,92,246,0.5),
    rgba(0,173,255,0.3),
    rgba(0,217,192,0.5)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* --- Left Zone --- */
.hero-zone-left {
  padding: 3.5rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  border-radius: 1rem 0 0 1rem;
  overflow: visible;           /* v2.0: visible for scale transform */
}

/* Hero image — Approach B (scale transform) */
.hero-image {
  width: 100%;
  object-fit: contain;
  transform: scale(1.07);
  transform-origin: center center;
}
.hero-image-container {
  margin-top: 1.5rem;
  padding: 1.5rem 0 1rem;
  width: 100%;
}
.hero-image-container img {
  padding: 0;                 /* override .glass img padding */
}

/* --- Right Zone --- */
.hero-zone-right {
  padding: 3.7rem 2.5rem 3.7rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  border-radius: 0 1rem 1rem 0;
  overflow: hidden;
}

/* --- Subtitle chevron animation --- */
@keyframes nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.arrow-nudge {
  animation: nudge-right 2s ease-in-out infinite;
  display: inline-block;
}

/* --- Scroll hint --- */
@keyframes nudge-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-hint {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; margin-top: 2rem;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.4s;
}
.scroll-hint span {
  font-family: var(--sf);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--gray-300);
}
.scroll-hint:hover span { color: var(--white); }
.scroll-hint svg {
  animation: nudge-down 2s ease-in-out infinite;
}

/* ========================================
   9. PRIMARY BUTTON
   ======================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--bf);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(139,92,246,0.8);
  border: 1px solid rgba(139,92,246,0.5);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
}
.btn .btn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #00adff);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn:hover .btn-fill { transform: translateX(0); }
.btn .btn-text,
.btn .btn-arrow { position: relative; z-index: 1; }
.btn .btn-arrow { transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ========================================
   10. SECONDARY BUTTON
   ======================================== */
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--bf);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  overflow: visible;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn-secondary .btn-border-static {
  position: absolute; inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-secondary:hover .btn-border-static { opacity: 0; }
.btn-secondary .border-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.btn-secondary .border-svg rect {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s ease-out;
}
.btn-secondary:hover .border-svg rect { stroke-dashoffset: 0; }
.btn-secondary .btn-glow {
  position: absolute; inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(139,92,246,0.3);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn-secondary:hover .btn-glow { opacity: 1; }
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-secondary .btn-text,
.btn-secondary .btn-arrow { position: relative; z-index: 1; }

/* ========================================
   11. CLIENT LOGOS — MARQUEE
   ======================================== */
.marquee-wrap {
  position: relative; overflow: hidden;
  margin-bottom: 3rem; border-radius: 8px;
}
.marquee-fade-l {
  position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(90deg, #0a1628 0%, transparent 100%); z-index: 2;
}
.marquee-fade-r {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(270deg, #0a1628 0%, transparent 100%); z-index: 2;
}
.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  width: max-content;
}
/* v2.0: pause on hover */
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  flex-shrink: 0; width: 100px; height: 100px;
  margin-right: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}
.marquee-item img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  opacity: 0.85;
  padding: 0;
}

/* ========================================
   12. TESTIMONIAL
   ======================================== */
.testimonial-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.testimonial-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
  flex-shrink: 0;
}
.testimonial-avatar-inner {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--deep-sea);
}
.testimonial-avatar-inner img {
  width: 100%; height: 100%; object-fit: cover; padding: 0;
}

/* ========================================
   13. DEMO STEPS
   ======================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps-grid { grid-template-columns: 1fr; } }

.icon-container {
  width: 4.5rem; height: 4.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,173,255,0.2));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem;
}
.icon-mask {
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* ========================================
   14. FAQ
   ======================================== */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-btn {
  width: 100%; text-align: left; padding: 1rem 0;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  font-family: var(--sf); color: var(--white); font-weight: 500;
  font-size: 1rem; line-height: 1.5;
}
.faq-icon {
  color: var(--mint); font-size: 1.5rem;
  transition: transform 0.3s; flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding-bottom: 1rem;
  font-family: var(--bf);
  font-size: 0.875rem; line-height: 1.25rem;
  color: var(--gray-300);
}

/* ========================================
   15. STATS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-value {
  font-family: var(--sf);
  font-size: 3rem; line-height: 1;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 30%, #00adff 60%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--purple);
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.6)) drop-shadow(0 0 24px rgba(139,92,246,0.4));
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--sf);
  font-size: 0.875rem; line-height: 1.25rem;
  color: var(--gray-300);
}

/* ========================================
   16. (Reserved — Resources/Newsletter sections built separately if needed)
   ======================================== */

/* ========================================
   18. FOOTER (placeholder — Elementor handles styling)
   ======================================== */
/* No footer CSS — built separately in Elementor */

/* ========================================
   19. AMBIENT BG
   ======================================== */
.ambient-glow {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.ambient-glow-1 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
}
.ambient-glow-2 {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.04) 0%, transparent 50%);
}

/* ========================================
   20. RESPONSIVE — v2.0 BREAKPOINTS
   ======================================== */
@media (min-width: 1200px) {
  .px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .hero { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (max-width: 768px) {
    .py-20 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-16 {
    padding-top: 1rem;
    padding-bottom: 2rem;
}
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-zone-left {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
  }
  .hero-zone-right {
    padding: 1.5rem;
    border-radius: 0 0 1rem 1rem;
  }
  .testimonial-wrap {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .text-5xl { font-size: 2.25rem; }
  .text-4xl { font-size: 1.875rem; line-height: 2.25rem; }
  .hero-image {
    transform: scale(1); /* reset scale on mobile */
  }
}