/**
 * NumeraIQ Global Styles
 * Matching React index.css exactly
 */

/* ============================================
   CSS Custom Properties - Matching React :root
   ============================================ */

:root {
  /* Backgrounds */
  --cream: 40 23% 95%;
  --cream-dark: 38 18% 88%;
  --dark: 0 0% 4%;
  --dark-elevated: 0 0% 10%;

  /* Accent - Chartreuse/Lime */
  --lime: 68 100% 51%;
  --lime-hover: 68 100% 60%;
  --lime-muted: 68 50% 40%;

  /* Text */
  --text-dark: 0 0% 4%;
  --text-light: 0 0% 100%;
  --text-muted: 0 0% 42%;

  /* Data Visualization */
  --data-red: 0 100% 63%;
  --data-green: 145 100% 63%;
  --data-blue: 217 100% 63%;

  /* Semantic Tokens */
  --background: var(--cream);
  --foreground: var(--text-dark);
  --muted: var(--cream-dark);
  --muted-foreground: var(--text-muted);
  --border: 38 18% 85%;

  /* Typography - Base fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;

  /* Customizer Typography - Override these via WordPress Customizer */
  --numeraiq-header-font: var(--font-sans);
  --numeraiq-header-weight: 600;
  --numeraiq-body-font: var(--font-sans);
  --numeraiq-body-size: 16px;
  --numeraiq-code-font: var(--font-mono);
  --numeraiq-accent: hsl(var(--lime));
  --numeraiq-logo-height: 32px;
}

/* ============================================
   Base Reset
   box-sizing is safe globally; margin/padding
   reset is scoped to .wp-site-blocks so plugin
   elements (Borlabs, RankMath, etc.) injected
   outside the theme container are not affected.
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

:where(.wp-site-blocks) *,
:where(.wp-site-blocks) *::before,
:where(.wp-site-blocks) *::after {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--numeraiq-body-font, var(--font-sans));
  font-size: var(--numeraiq-body-size, 1rem);
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

::selection {
  background-color: hsl(var(--lime));
  color: hsl(var(--dark));
}

/* Scope element resets to theme container only.
   Use :where() for zero specificity so any component
   class (.btn-lime, .menu-link, etc.) always wins. */
:where(.wp-site-blocks) a { color: inherit; text-decoration: none; }
:where(.wp-site-blocks) img, :where(.wp-site-blocks) video { max-width: 100%; height: auto; display: block; }
:where(.wp-site-blocks) picture img {
    height: inherit;
    width: auto;
}
:where(.wp-site-blocks) button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================
   Typography - Matching React Exactly
   ============================================ */

/* Headlines - Use customizer variable with fallback */
.headline-hero {
  font-family: var(--numeraiq-header-font, var(--font-sans));
  font-weight: var(--numeraiq-header-weight, 600);
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(3rem, 8vw, 7rem);
}

.headline-section {
  font-family: var(--numeraiq-header-font, var(--font-sans));
  font-weight: var(--numeraiq-header-weight, 600);
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.headline-subsection {
  font-family: var(--numeraiq-header-font, var(--font-sans));
  font-weight: var(--numeraiq-header-weight, 600);
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* H1-H6 tags - Apply customizer header font */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--numeraiq-header-font, var(--font-sans));
  font-weight: var(--numeraiq-header-weight, 600);
}

/* Technical labels - Use code font */
.label-technical {
  font-family: var(--numeraiq-code-font, var(--font-mono));
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* Monospace elements */
.font-mono, code, pre, kbd, samp {
  font-family: var(--numeraiq-code-font, var(--font-mono));
}

/* Body text */
.body-large { font-size: 1.125rem; line-height: 1.75; }
.body-regular { font-size: 1rem; line-height: 1.75; }

/* ============================================
   Color Utilities
   ============================================ */

.text-dark { color: hsl(var(--dark)); }
.text-cream { color: hsl(var(--cream)); }
.text-lime {
  color: hsl(var(--lime));
  color: #D4FF00;
}
.text-text-light { color: hsl(var(--text-light)); }
.text-muted-foreground { color: hsl(var(--text-muted)); }

.text-dark\/20 { color: hsl(var(--dark) / 0.2); }
.text-dark\/30 { color: hsl(var(--dark) / 0.3); }
.text-dark\/40 { color: hsl(var(--dark) / 0.4); }
.text-dark\/50 { color: hsl(var(--dark) / 0.5); }
.text-dark\/60 { color: hsl(var(--dark) / 0.6); }
.text-dark\/70 { color: hsl(var(--dark) / 0.7); }
.text-text-light\/10 { color: hsl(var(--text-light) / 0.1); }
.text-text-light\/20 { color: hsl(var(--text-light) / 0.2); }
.text-text-light\/30 { color: hsl(var(--text-light) / 0.3); }
.text-text-light\/40 { color: hsl(var(--text-light) / 0.4); }
.text-text-light\/50 { color: hsl(var(--text-light) / 0.5); }
.text-text-light\/60 { color: hsl(var(--text-light) / 0.6); }
.text-text-light\/70 { color: hsl(var(--text-light) / 0.7); }
.text-text-light\/80 { color: hsl(var(--text-light) / 0.8); }
.text-cream\/60 { color: hsl(var(--cream) / 0.6); }
.text-cream\/80 { color: hsl(var(--cream) / 0.8); }

.bg-cream { background-color: hsl(var(--cream)); }
.bg-cream-dark { background-color: hsl(var(--cream-dark)); }
.bg-dark { background-color: hsl(var(--dark)); }
.bg-dark-elevated { background-color: hsl(var(--dark-elevated)); }
/* Lime background - ensure visibility */
.bg-lime {
  background-color: hsl(var(--lime)) !important;
  background-color: #D4FF00 !important;
}

/* Lime highlight text block - common pattern */
.bg-lime.text-dark,
h3.bg-lime,
span.bg-lime {
  background-color: #D4FF00 !important;
  color: hsl(var(--dark)) !important;
}

.bg-dark\/10 { background-color: hsl(var(--dark) / 0.1); }
.bg-dark\/50 { background-color: hsl(var(--dark) / 0.5); }
.bg-dark\/80 { background-color: hsl(var(--dark) / 0.8); }
.bg-lime\/5 { background-color: hsl(var(--lime) / 0.05); }
.bg-lime\/10 { background-color: hsl(var(--lime) / 0.1); }
.bg-lime\/20 { background-color: hsl(var(--lime) / 0.2); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: white; }

.border-dark { border-color: hsl(var(--dark)); }
.border-lime { border-color: hsl(var(--lime)); }
.border-text-light { border-color: hsl(var(--text-light)); }
.border-dark\/5 { border-color: hsl(var(--dark) / 0.05); }
.border-dark\/10 { border-color: hsl(var(--dark) / 0.1); }
.border-dark\/20 { border-color: hsl(var(--dark) / 0.2); }
.border-dark\/30 { border-color: hsl(var(--dark) / 0.3); }
.border-text-light\/10 { border-color: hsl(var(--text-light) / 0.1); }
.border-text-light\/20 { border-color: hsl(var(--text-light) / 0.2); }
.border-text-light\/30 { border-color: hsl(var(--text-light) / 0.3); }
.border-lime\/30 { border-color: hsl(var(--lime) / 0.3); }
.border-lime\/50 { border-color: hsl(var(--lime) / 0.5); }

/* ============================================
   Focus States
   ============================================ */

.focus\:outline-none:focus { outline: none; }
.focus\:border-lime:focus { border-color: #D4FF00; }
.focus\:ring-0:focus { box-shadow: none; }

/* ============================================
   Section Contexts
   ============================================ */

.section-dark {
  background-color: hsl(var(--dark));
  color: hsl(var(--text-light));
}

.section-dark .headline-section,
.section-dark .headline-subsection {
  color: hsl(var(--text-light));
}

.section-dark .label-technical {
  color: hsl(var(--lime));
}

.section-lime {
  background-color: hsl(var(--lime));
  color: hsl(var(--dark));
}

/* ============================================
   Buttons - Matching React Exactly
   ============================================ */

.btn-lime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: hsl(var(--lime));
  color: hsl(var(--dark));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lime:hover { background-color: hsl(var(--lime-hover)); }
.btn-lime:active { transform: scale(0.98); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: transparent;
  color: hsl(var(--text-light));
  border: 1px solid hsl(var(--text-light));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  background-color: hsl(var(--text-light));
  color: hsl(var(--dark));
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: transparent;
  color: hsl(var(--dark));
  border: 1px solid hsl(var(--dark));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-dark:hover {
  background-color: hsl(var(--dark));
  color: hsl(var(--text-light));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background-color: hsl(var(--dark));
  color: hsl(var(--text-light));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover { background-color: hsl(var(--dark-elevated)); }

/* Dark button (hero trial button) - matching React exactly */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: hsl(var(--dark));
  color: hsl(var(--cream));
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-dark:hover {
  background-color: hsl(var(--dark) / 0.9);
}

/* Trial trigger - inherits btn-dark styling */
.trial-trigger {
  /* Uses btn-dark class now */
}

/* ============================================
   Link Underline Effect
   ============================================ */

.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ============================================
   Glass Effects
   ============================================ */

.glass-light {
  background-color: hsl(var(--cream) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-dark {
  background-color: hsl(var(--dark) / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ============================================
   Layout Utilities
   ============================================ */

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-1\/2 { top: 50%; }
.-top-4 { top: -1rem; }
.-top-6 { top: -1.5rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-12 { bottom: 3rem; }
.-bottom-4 { bottom: -1rem; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.-top-6 { top: -1.5rem; }
.-left-\[10px\] { left: -10px; }
.-top-\[10px\] { top: -10px; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-5 { transform: translateX(1.25rem); }
.translate-y-5 { transform: translateY(1.25rem); }
.origin-top { transform-origin: top; }
.origin-center { transform-origin: center; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[100\] { z-index: 100; }

.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-px { width: 1px; }
.w-1 { width: 0.25rem; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-auto { width: auto; }
.w-1\/2 { width: 50%; }
.w-\[120px\] { width: 120px; }
.w-\[220px\] { width: 220px; }

.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-px { height: 1px; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-auto { height: auto; }
.h-\[120px\] { height: 120px; }
.h-\[160px\] { height: 160px; }
.h-\[400px\] { height: 400px; }
.h-\[450px\] { height: 450px; }
.h-\[60vh\] { height: 60vh; }

.min-h-\[80vh\] { min-height: 80vh; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-full { max-width: 100%; }
.max-h-\[70vh\] { max-height: 70vh; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-12 { padding-bottom: 3rem; }
.pl-4 { padding-left: 1rem; }
.pl-6 { padding-left: 1.5rem; }
.pr-4 { padding-right: 1rem; }
.pr-6 { padding-right: 1.5rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.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; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-20 > * + * { margin-top: 5rem; }

/* ============================================
   Typography Utilities
   ============================================ */

.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }
.whitespace-nowrap { white-space: nowrap; }

/* ============================================
   Border & Rounded
   ============================================ */

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.rounded-sm { border-radius: 0.125rem; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* ============================================
   Effects & Visibility
   ============================================ */

.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.opacity-0 { opacity: 0; }
.wp-site-blocks .invisible { visibility: hidden; }
.wp-site-blocks .hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.blur-xl { filter: blur(24px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.transition-all { transition-property: all; transition-timing-function: ease; transition-duration: 0.15s; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: ease; transition-duration: 0.15s; }
.transition-transform { transition-property: transform; transition-timing-function: ease; transition-duration: 0.15s; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }

.placeholder\:text-text-light\/30::placeholder { color: hsl(var(--text-light) / 0.3); }
.placeholder\:text-text-light\/50::placeholder { color: hsl(var(--text-light) / 0.5); }
.placeholder\:text-dark\/40::placeholder { color: hsl(var(--dark) / 0.4); }
.focus\:outline-none:focus { outline: none; }
.focus\:border-lime:focus { border-color: hsl(var(--lime)); }
.focus\:border-dark:focus { border-color: hsl(var(--dark)); }
.hover\:text-lime:hover { color: hsl(var(--lime)); }
.hover\:text-dark:hover { color: hsl(var(--dark)); }
.hover\:text-dark\/70:hover { color: hsl(var(--dark) / 0.7); }
.hover\:text-text-light:hover { color: hsl(var(--text-light)); }
.hover\:bg-dark\/90:hover { background-color: hsl(var(--dark) / 0.9); }
.hover\:border-lime\/50:hover { border-color: hsl(var(--lime) / 0.5); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }
.hover\:rotate-45:hover { transform: rotate(45deg); }

/* Group hover utilities */
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:text-lime { color: hsl(var(--lime)); }

/* ============================================
   Responsive Utilities
   ============================================ */

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:mt-0 { margin-top: 0; }
  .md\:h-12 { height: 3rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .wp-site-blocks .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
  .lg\:py-48 { padding-top: 12rem; padding-bottom: 12rem; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:right-12 { right: 3rem; }
  .lg\:text-sm { font-size: 0.875rem; }
  .lg\:text-base { font-size: 1rem; }
  .lg\:text-2xl { font-size: 1.5rem; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:mt-12 { margin-top: 3rem; }
  .lg\:mt-32 { margin-top: 8rem; }
  .lg\:mb-32 { margin-bottom: 8rem; }
  .lg\:h-\[450px\] { height: 450px; }
  .lg\:space-y-40 > * + * { margin-top: 10rem; }

  /* Process Section - desktop layout */
  .wp-site-blocks .hidden.lg\:flex { display: flex !important; }
  .wp-site-blocks .lg\:hidden { display: none !important; }
}

/* Mobile only - hide elements with lg:flex/lg:block that also have hidden */
.wp-site-blocks .hidden.lg\:flex,
.wp-site-blocks .hidden.lg\:block {
  display: none;
}

/* ============================================
   Arbitrary Width Values
   ============================================ */

.w-\[220px\] { width: 220px; }
.w-\[280px\] { width: 280px; }
.w-\[300px\] { width: 300px; }
.h-\[160px\] { height: 160px; }
.h-\[120px\] { height: 120px; }
.h-\[80px\] { height: 80px; }

/* ============================================
   Process Section Specific Styles
   ============================================ */

.process-panel {
  transition: border-color 0.3s ease;
}

.process-panel:hover {
  border-color: rgba(207, 255, 4, 0.4);
}

.process-panel-output {
  border-color: rgba(207, 255, 4, 0.3);
  background-color: rgba(207, 255, 4, 0.05);
}

.process-panel-output:hover {
  border-color: rgba(207, 255, 4, 0.6);
  background-color: rgba(207, 255, 4, 0.1);
}

.process-graphic svg {
  overflow: visible;
}

.process-connector-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-spinner {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.process-line-fill {
  height: 0;
  transition: height 0.5s ease;
}

.is-visible .process-line-fill {
  height: 100%;
}

/* ============================================
   Menu Overlay State
   ============================================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: hsl(var(--dark));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Menu close button - ensure visibility */
.menu-overlay [data-menu-close] {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  color: hsl(var(--text-light));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-overlay [data-menu-close]:hover {
  color: hsl(var(--lime));
}

.menu-overlay [data-menu-close] svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 1024px) {
  .menu-overlay [data-menu-close] {
    right: 3rem;
  }
}

/* ============================================
   Trial Modal State
   ============================================ */

.trial-modal {
  opacity: 0;
  visibility: hidden;
  transform: translate(20px, 20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.trial-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

/* Modal container styling */
.trial-modal > div {
  background-color: hsl(var(--cream));
  border: 1px solid hsl(var(--dark) / 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Modal header */
.trial-modal > div > div:first-child {
  background-color: hsl(var(--dark));
  color: hsl(var(--cream));
}

/* Modal form inputs - ensure white background */
.trial-modal input[type="email"],
.trial-modal input[type="text"] {
  background-color: white !important;
  border: 1px solid hsl(var(--dark) / 0.2);
  color: hsl(var(--dark));
}

.trial-backdrop {
  opacity: 0;
  visibility: hidden;
  background-color: hsl(var(--dark) / 0.8);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.trial-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Animation Keyframes
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.animate-bounce { animation: bounce 1.5s infinite; }
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; }

/* ============================================
   Scroll Progress
   ============================================ */

.scroll-progress {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 80vh;
  background-color: hsl(var(--dark) / 0.1);
  z-index: 50;
}

.scroll-progress::before,
.scroll-progress::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border: 1px solid hsl(var(--dark) / 0.3);
}

.scroll-progress::before { top: -12px; }
.scroll-progress::after { bottom: -12px; }

.scroll-progress-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: hsl(var(--lime));
  transform-origin: bottom;
}

/* ============================================
   Pricing Slider
   ============================================ */

.pricing-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: hsl(var(--dark) / 0.1);
  border-radius: 9999px;
  cursor: pointer;
}

.pricing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  background: hsl(var(--lime));
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 0 20px hsl(var(--lime) / 0.5);
}

.pricing-slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  background: hsl(var(--lime));
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px hsl(var(--lime) / 0.5);
}

/* ============================================
   Form Inputs
   ============================================ */

input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="search"],
textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--dark) / 0.2);
  background-color: hsl(var(--cream));
  color: hsl(var(--dark));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
  border-color: hsl(var(--lime));
  box-shadow: 0 0 0 3px hsl(var(--lime) / 0.1);
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--dark) / 0.4);
}

/* Menu overlay email input (transparent style) */
.menu-overlay input[type="email"] {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--text-light) / 0.3);
  border-radius: 0;
  padding: 0.75rem 0;
  color: hsl(var(--text-light));
}

.menu-overlay input[type="email"]:focus {
  border-color: hsl(var(--lime));
  box-shadow: none;
}

.menu-overlay input[type="email"]::placeholder {
  color: hsl(var(--text-light) / 0.5);
}

/* Dark section inputs */
.section-dark input[type="email"],
.section-dark input[type="text"] {
  background-color: transparent;
  border: 1px solid hsl(var(--text-light) / 0.3);
  color: hsl(var(--text-light));
}

.section-dark input::placeholder {
  color: hsl(var(--text-light) / 0.5);
}

/* White background inputs (trial modal) */
.bg-cream input[type="email"],
.bg-cream input[type="text"],
input.bg-white {
  background-color: white;
}

/* ============================================
   WordPress Block Editor Overrides
   ============================================ */

.wp-block-html {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wp-site-blocks > * {
  margin: 0 !important;
}

[data-section] {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

.entry-content > *,
.wp-block-post-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ============================================
   Visible State for GSAP Animations
   ============================================ */

.is-visible {
  opacity: 1 !important;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--cream-dark)); }
::-webkit-scrollbar-thumb { background: hsl(var(--dark) / 0.2); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--dark) / 0.4); }

/* ============================================
   Accessibility
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .wp-site-blocks *,
  .wp-site-blocks *::before,
  .wp-site-blocks *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   Plugin Compatibility
   Ensure plugin elements injected outside
   .wp-site-blocks are never hidden by theme CSS.
   ============================================ */

/* Borlabs Cookie – ensure the host containers are not
   hidden by any theme utility class.  Do NOT override
   children (#BorlabsCookieBox *) because Borlabs manages
   its own internal visibility via Shadow DOM / JS. */
#BorlabsCookieBox,
#BorlabsCookieBoxWrap,
#BorlabsCookieWidget {
  z-index: 999999 !important;
}
