*, *::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;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none !important; color: inherit; }

/* ============================================================
   1. TAILWIND UTILITY CLASSES (Cross-Page Spec §0.2)
   ============================================================ */
.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: #ffffff; }
.mb-2 { margin-bottom: 0.5rem; }
.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-12 { margin-top: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }
.pb-12 { padding-bottom: 3rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-6 { padding: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.transition-colors { transition: color 0.3s; }

/* ============================================================
   2. SKIP LINK (Cross-Page Spec §9 Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #8b5cf6;
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus { top: 0; }

/* ============================================================
   3. FOCUS STATES (Cross-Page Spec §9)
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ============================================================
   5. AMBIENT BACKGROUND GLOWS
   ============================================================ */
.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;
}

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

/* Navigation CSS removed — handled by site-wide nav template */

/* ============================================================
   8. BUTTONS (System Record + Cross-Page Spec)
   ============================================================ */
.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: white; 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);
  transition: all 0.3s; cursor: pointer;
  text-decoration:none;
}
.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:hover .btn-arrow { transform: translateX(4px); }
.btn-arrow { transition: transform 0.3s; display: inline-block; }

.btn-secondary {
  position: relative; 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: white; background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible; transition: all 0.3s; cursor: pointer;
  text-decoration: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;
}
.btn-secondary:hover .btn-border-static { opacity: 0; }
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-secondary .border-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.btn-secondary .border-svg rect {
  fill: none; stroke-width: 1.5;
  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;
}
.btn-secondary:hover .btn-glow { opacity: 1; }
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   9. GLASSMORPHIC CARD (System Record §5.2)
   ============================================================ */
.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: 1.5rem;
  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 > * { position: relative; z-index: 1; }

/* Product images inside glass */
.glass img { padding: 1rem 0; }

/* ============================================================
   9b. FEATURE CARD — LIGHT GLASS (ge-feature-card-spec)
   Lighter variant: no blur/shadow at rest, lets neural canvas
   show through. Materialises on hover.
   ============================================================ */
.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;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  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::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;
}
.card-light:hover::before { opacity: 1; }
.card-light > * { position: relative; z-index: 1; }

/* Images inside light cards */
.card-light img { padding: 1rem 0; }

/* ============================================================
   10. CSS MASK GRADIENT ICONS (Cross-Page Spec §3)
   Icon tiers: default 2.5rem | .icon-mask-sm 2rem | concept 3rem (inline)
   ============================================================ */
.icon-mask {
  display: inline-block; 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;
}
.icon-mask-sm { width: 2rem; height: 2rem; }

/* Social icons & accreditation icons — handled by site-wide footer template */

/* ============================================================
   11. GRADIENT TEXT (Cross-Page Spec §2)
   ============================================================ */
.gradient-text {
  color: #8b5cf6; /* fallback */
  background: linear-gradient(90deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  color: #8b5cf6;
  background: linear-gradient(90deg, #8b5cf6 0%, #8b5cf6 40%, #00adff 75%, #00d9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   12. SECTION LAYOUTS
   ============================================================ */
section { position: relative; z-index: 10; }
.section-pad { padding: 5rem 0; }
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.grid-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.grid-hero {
  display: grid; grid-template-columns: 2fr 3fr;
  gap: 3rem; align-items: center;
}
.grid-3col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.grid-resources {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem;
}
/* Footer grid — handled by site-wide footer template */

/* Wider horizontal padding on laptop+ displays (Cross-Page Rule, est. L'Oréal case study) */
@media (min-width: 1200px) {
  .px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

@media (max-width: 900px) {
  .grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2col { grid-template-columns: 1fr; }
  .grid-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .glass > div[style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 500px) {
  .grid-3col { grid-template-columns: 1fr; }
}

/* ============================================================
   13. HERO IMAGE GLOW
   ============================================================ */
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(139,92,246,0.2) 0%,
    rgba(0,173,255,0.12) 40%,
    rgba(0,217,192,0.06) 65%,
    transparent 85%
  );
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   14. PRODUCT ACCORDION
   ============================================================ */
.accordion-item { margin-bottom: 0.75rem; }
.accordion-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 0.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.accordion-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
}
.accordion-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.3s ease;
}
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.accordion-panel.open { max-height: 800px; }
.accordion-panel-inner {
  padding: 1.5rem 0.5rem 0.5rem 0.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; align-items: start;
}

/* ============================================================
   15. PRODUCT FEATURE ROW
   ============================================================ */
.feature-row {
  display: flex; gap: 1rem; align-items: flex-start; padding: 0.75rem 0;
}
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(0,173,255,0.2));
  margin-bottom: 0;
}

/* ============================================================
   16. STATS SECTION
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-ring {
  width: 70px; height: 70px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-ring-inner {
  width: 54px; height: 54px; border-radius: 50%;
  background: #0d1a2d; display: flex; align-items: center; justify-content: center;
}
.stat-num-bad {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
  font-weight: 700; color: #8b5cf6;
}
.stat-num-good {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6, #00adff, #00d9c0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

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

/* ============================================================
   17. NEWSLETTER (Cross-Page Spec §7.2)
   ============================================================ */

/* Gradient border wrapper */
.newsletter-card-wrap {
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(139,92,246,.4), rgba(0,173,255,.25), rgba(0,217,192,.4));
  transition: all .5s cubic-bezier(.4,0,.2,1);
}
.newsletter-card-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35),
             0 0 20px rgba(139,92,246,.08);
}
/* Inner glass card — opaque base so gradient only shows as 2px border */
.newsletter-card-wrap .glass {
  background: linear-gradient(
    rgba(255,255,255,.05), rgba(255,255,255,.05)
  ), #0a1628;
  border: none;
  border-radius: 16px;
  transform: none !important;
}

/* Grid: pitch left, form right */
.newsletter-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* Left column (pitch) — centred flex stack */
.newsletter-pitch {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; height: 100%;
}

/* Envelope image */
.newsletter-img { margin-bottom: 1.5rem; }
.newsletter-img img {
  padding: 0 !important;
  width: 260px; max-width: 100%;
  filter: drop-shadow(0 0 20px rgba(139,92,246,.15))
         drop-shadow(0 0 40px rgba(0,173,255,.1));
  animation: envelope-glow 3s ease-in-out infinite;
}
@keyframes envelope-glow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(139,92,246,.15))
                      drop-shadow(0 0 40px rgba(0,173,255,.1)); }
  50%      { filter: drop-shadow(0 0 30px rgba(139,92,246,.25))
                      drop-shadow(0 0 50px rgba(0,173,255,.2)); }
}

/* Copy */
.newsletter-copy {
  font-size: 0.9rem; line-height: 1.6; color: #d1d5db; margin-bottom: 0;
}
.newsletter-privacy {
  font-size: 0.75rem; color: #9ca3af; margin-top: 0.75rem;
}
.newsletter-privacy a { color: #00adff; text-decoration: underline; }

/* Right column — form fills */
.newsletter-form-col {
  display: flex; align-items: center;
}

@media (max-width: 768px) {
  .newsletter-grid { grid-template-columns: 1fr; text-align: center; }
  .newsletter-img { margin: 0 auto 1rem; }
  .newsletter-img img { max-width: 160px !important; }
}

/* --- HubSpot Form Dark Theme: CSS Variables (penetrates iframe/Shadow DOM) --- */
:root {
  /* Global */
  --hsf-global__font-family: 'Inter', sans-serif;
  --hsf-global__font-size: 14px;
  --hsf-global__color: #d1d5db;
  --hsf-global-error__color: #f87171;

  /* Background — transparent to blend with glass card */
  --hsf-background__background-color: transparent;
  --hsf-background__border-color: transparent;
  --hsf-background__border-radius: 0px;
  --hsf-background__padding: 0px;

  /* Field Inputs */
  --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;

  /* Field Labels */
  --hsf-field-label__color: #d1d5db;
  --hsf-field-label__font-size: 14px;

  /* Submit Button */
  --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;

  /* Button Hover */
  --hsf-button--hover__background-color: #8b5cf6;
  --hsf-button--hover__color: #ffffff;
  --hsf-button--hover__border-color: #8b5cf6;

  /* Legal / Consent text */
  --hsf-legal-consent__color: #9ca3af;
  --hsf-legal-consent__font-size: 12px;

  /* Row spacing */
  --hsf-row__vertical-spacing: 16px;
  --hsf-module__vertical-spacing: 12px;

  /* Rich text / paragraph */
  --hsf-rich-text__color: #9ca3af;
  --hsf-rich-text__font-size: 12px;
}

/* ============================================================
   18. PRINCIPLE CARD LINK
   ============================================================ */
.principle-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: #00adff; position: relative;
}
.principle-link-text { position: relative;text-decoration:none; }
.principle-link-underline {
  position: absolute; bottom: -2px; left: 0; height: 1px;
  background: #00adff; width: 0; transition: width 0.3s ease;
}
.principle-link:hover .principle-link-underline { width: 100%; }
.principle-link .btn-arrow { transition: transform 0.3s; display: inline-block; }
.principle-link:hover .btn-arrow { transform: translateX(4px); }

/* Footer CSS removed — handled by site-wide footer template */

/* ============================================================
   20. RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 768px) {
  .text-5xl { font-size: 2.25rem; line-height: 2.5rem; }
  .text-4xl { font-size: 1.5rem; line-height: 2rem; }
  /* Reset hero image to contained on mobile */
}