/* ===================================================================
   0. RESET & BASE — matches cross-page spec §0.4
   =================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #d1d5db;
  background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================================================
   0.1 — SKIP LINK (cross-page spec §9)
   =================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: #8b5cf6;
  color: #fff;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===================================================================
   0.2 — FOCUS & REDUCED MOTION (cross-page spec §9)
   =================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
  border-radius: 4px;
}
@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;
  }
}

/* ===================================================================
   1. TAILWIND UTILITY EQUIVALENTS (cross-page spec §0.1–§0.3)
   Never use bare element selectors. Every size includes line-height.
   =================================================================== */
.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.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: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

.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; }

.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; }

.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

.w-full { width: 100%; }

.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; }
.max-w-md  { max-width: 28rem; margin-left: auto; margin-right: auto; }

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

/* ===================================================================
   3. NEURAL BACKGROUND CANVAS
   =================================================================== */
#neuralCanvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ===================================================================
   4. NAVIGATION — built separately in Elementor
   =================================================================== */

/* ===================================================================
   5. BUTTONS — cross-page spec §0.10, system-of-record §5.1
   =================================================================== */

/* --- PRIMARY --- */
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: #ffffff; text-decoration: none;
  background: rgba(139,92,246,0.8);
  border: 1px solid rgba(139,92,246,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.3);
}
.btn-primary .btn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #8b5cf6, #00adff);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover .btn-fill { transform: translateX(0); }
.btn-primary .btn-text,
.btn-primary .btn-arrow { position: relative; z-index: 1; }
.btn-primary .btn-arrow {
  transition: transform 0.3s;
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* --- SECONDARY — removed (nav built separately). Defined in cross-page spec §0.10 if needed. --- */

/* ===================================================================
   6. GLASSMORPHIC CARD — system-of-record §5.2
   =================================================================== */
.glass {
  position: relative; overflow: hidden;
  border-radius: 1rem;
  padding: 1.5rem;
  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);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.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::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  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::before { opacity: 1; }
.glass > * { position: relative; z-index: 1; }
.glass img { padding: 1rem 0; }

/* ===================================================================
   7. GRADIENT TEXT — cross-page spec §2
   Fallback #8b5cf6 scores 4.28:1 on dark bg — passes AA Large (3.0:1)
   but fails AA Normal (4.5:1). Only use on text ≥18.66px bold or ≥24px.
   =================================================================== */
.gradient-text {
  color: #8b5cf6; /* solid fallback — WCAG */
  background: linear-gradient(90deg, #8b5cf6 0%, #8b5cf6 40%, #00adff 75%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-full {
  color: #8b5cf6;
  background: linear-gradient(90deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================================
   8. ACCENT TEXT — cross-page spec §1
   Inline accents use WCAG-compliant Periwinkle Purple tint
   =================================================================== */
.accent-text { color: #a78bfa; }

/* ===================================================================
   9. SECTIONS
   =================================================================== */
section { position: relative; z-index: 10; }

/* --- HERO --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 2rem; /* Elementor nav adds its own spacing above */
}
.hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  padding: 0;
  overflow: visible;
  border: none;
  position: relative;
}
.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;
}
.hero-card:hover { transform: none; border: none; }
.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: hidden;
}
.hero-zone-right {
  padding: 2rem 2.5rem 2rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
  border-radius: 0 1rem 1rem 0;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
}
.hero-image-container {
  margin-top: 0.25rem;
  width: 100%;
}

/* --- CLIENT MARQUEE --- */
.marquee-container {
  position: relative; overflow: hidden;
  border-radius: 8px; margin-bottom: 3rem;
}
.marquee-fade-left {
  position: absolute; left: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(90deg, #0a1628, transparent);
  z-index: 2;
}
.marquee-fade-right {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(270deg, #0a1628, transparent);
  z-index: 2;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-container: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;
  padding: 0; /* override glass img padding */
}

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

/* --- STEPS GRID --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-trigger {
  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: 'Space Grotesk', sans-serif;
}
.faq-trigger span:first-child {
  color: #ffffff; font-weight: 500; padding-right: 1rem;
  font-size: 1rem; line-height: 1.5rem;
}
.faq-icon {
  color: #8b5cf6; font-size: 1.5rem;
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.faq-item.open .faq-body { max-height: 500px; }
.faq-body p {
  color: #d1d5db; font-size: 0.875rem; line-height: 1.25rem;
  padding-bottom: 1rem; font-family: 'Inter', sans-serif;
}

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

/* ===================================================================
   FOOTER — built separately in Elementor
   =================================================================== */

/* ===================================================================
   10. HUBSPOT FORM — cross-page spec §8
   =================================================================== */
:root {
  --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: rgba(255, 255, 255, 0.1);
  --hsf-field-input__border-color: rgba(255, 255, 255, 0.2);
  --hsf-field-input__border-radius: 8px;
  --hsf-field-input__color: #ffffff;
  --hsf-field-input__font-size: 16px;
  --hsf-field-input__placeholder-color: #9ca3af;
  --hsf-field-label__color: #d1d5db;
  --hsf-field-label__font-size: 14px;
  --hsf-button__background-color: rgba(139, 92, 246, 0.8);
  --hsf-button__color: #ffffff;
  --hsf-button__border-color: rgba(139, 92, 246, 0.5);
  --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: #8b5cf6;
  --hsf-button--hover__color: #ffffff;
  --hsf-button--hover__border-color: #8b5cf6;
  --hsf-legal-consent__color: #9ca3af;
  --hsf-legal-consent__font-size: 12px;
  --hsf-rich-text__color: #9ca3af;
  --hsf-rich-text__font-size: 12px;
  --hsf-row__vertical-spacing: 16px;
  --hsf-module__vertical-spacing: 12px;
}

/* ===================================================================
   11. RESPONSIVE — cross-page spec §10
   =================================================================== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .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-row { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .text-5xl { font-size: 2.25rem; line-height: 2.5rem; }
  .text-4xl { font-size: 1.875rem; line-height: 2.25rem; }
  .hero-image { max-height: 240px; }
}
@media (max-width: 500px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   12. STEP ICONS
   =================================================================== */

/* ===================================================================
   12a. FEATURE CARD (LIGHT GLASS) — ge-feature-card-spec
   Lighter variant: no blur/shadow at rest, lets neural canvas show.
   Materialises into full glassmorphic treatment on hover.
   =================================================================== */
.card-light {
  position: relative;
  overflow: hidden;
  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;
  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;
}
.step-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 1rem;
}
.step-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;
}
.step-icon-container img {
  width: 2.5rem; height: 2.5rem;
  padding: 0;
}

/* ===================================================================
   13. PAGE-END SPACER — cross-page spec §12
   =================================================================== */
/* page-end spacer uses inline style per cross-page spec §12 */

/* ===================================================================
   14. ARROW NUDGE 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;
}
@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.hidden { opacity: 0; pointer-events: none; }
.scroll-hint span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem; line-height: 1.25rem;
  color: #d1d5db;
  transition: color 0.2s;
}
.scroll-hint:hover span { color: #ffffff; }
.scroll-hint svg {
  animation: nudge-down 2s ease-in-out infinite;
  transition: opacity 0.2s;
}
.scroll-hint:hover svg { opacity: 0.6; }