/* ============================================
   MAIN.CSS - Inhertzweb WP Theme Complete
   Tailwind CSS compiled + Design Tokens + Animations
   ============================================ */

/* Import Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* Import Inter Font (all weights) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================
   TAILWIND CSS - Core Styles
   ============================================ */

/* Preflight styles */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: currentColor;
}

::before,
::after {
  --tw-content: '';
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-feature-settings: normal;
  font-variation-settings: normal;
}

body {
  margin: 0;
  line-height: inherit;
}

/* ============================================
   1. DESIGN TOKENS - CSS Custom Properties
   ============================================ */

:root {
  /* COLORS - Primary Palette */
  --color-primary: #4A95FF;
  --color-secondary: #5DA3FF;
  --color-accent: #2A77FE;
  --color-accent-green: #00D4AA;
  --color-accent-green-hover: #00b896;
  --color-accent-orange: #FF6B35;
  --color-accent-orange-dark: #e55a24;

  /* COLORS - Dark Theme */
  --color-bg-dark: #0a0e15;
  --color-bg-dark-alt: #0f1320;
  --color-bg-card: #131820;
  --color-bg-card-hover: #1a1f2a;
  --color-border-dark: #1f2938;
  --color-border-light: #2a3a4d;

  /* COLORS - Text */
  --color-text-dark: #111827;
  --color-text-light: #f1f5f9;
  --color-text-muted: #9ca3af;
  --color-text-secondary: rgba(255, 255, 255, 0.8);
  --color-text-tertiary: rgba(255, 255, 255, 0.7);
  --color-text-quaternary: rgba(255, 255, 255, 0.6);
  --color-text-faint: rgba(255, 255, 255, 0.4);

  /* COLORS - Misc */
  --color-bg-white: #FFFFFF;
  --color-border: #E5E7EB;

  /* SPACING - 8pt Grid System */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 60px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* TYPOGRAPHY - Font Family */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-mono: 'Courier New', monospace;

  /* TYPOGRAPHY - Font Sizes */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 32px;
  --font-size-4xl: 40px;
  --font-size-5xl: 48px;
  --font-size-6xl: 56px;
  --font-size-7xl: 64px;

  /* TYPOGRAPHY - Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;

  /* TYPOGRAPHY - Line Heights */
  --line-height-tight: 1.15;
  --line-height-normal: 1.25;
  --line-height-relaxed: 1.5;
  --line-height-loose: 1.65;
  --line-height-looser: 1.7;

  /* BORDERS & RADIUS */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-2xl: 20px;
  --border-radius-full: 9999px;
}

/* ============================================
   2. TAILWIND UTILITY CLASSES - Essential Set
   ============================================ */

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.contents { display: contents; }
.list-item { display: list-item; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.max-w-6xl { max-width: 64rem; }

/* Positioning */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { inset: 0; }

/* Z-index */
.z-50 { z-index: 50; }
.z-40 { z-index: 40; }

/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.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-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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.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; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }
.mt-30 { margin-top: 7.5rem; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.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; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Background Colors */
.bg-orange-500 { background-color: #f97316; }
.bg-green-500 { background-color: #22c55e; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-600 { background-color: #2563eb; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.bg-red-500 { background-color: #ef4444; }
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }

.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-slate-800 {
  --tw-gradient-from: #1e293b;
  --tw-gradient-to: rgb(30 41 59 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-slate-900 {
  --tw-gradient-to: #0f172a;
}

/* Text Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-green-400 { color: #4ade80; }
.text-red-500 { color: #ef4444; }
.text-orange-500 { color: #f97316; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight { line-height: 1.15; }
.leading-normal { line-height: 1.25; }
.leading-relaxed { line-height: 1.5; }
.leading-loose { line-height: 1.75; }

/* Border */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }

/* Border Radius */
.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* Effects */
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Hover states */
.hover\:bg-blue-400:hover { background-color: #60a5fa; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:text-blue-400:hover { color: #60a5fa; }
.hover\:text-green-400:hover { color: #4ade80; }
.hover\:text-white:hover { color: #ffffff; }

/* Focus states */
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

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

/* Form elements */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

input[type='text'],
input[type='email'],
input[type='number'],
input[type='range'],
textarea,
select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5rem;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='number']:focus,
input[type='range']:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input[type='range'] {
  accent-color: #3b82f6;
}

button {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  opacity: 0.9;
}

/* Links */
a {
  color: inherit;
  text-decoration: inherit;
}

/* Lists */
.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-8 > * + * { margin-top: 2rem; }

/* ============================================
   3. RESPONSIVE MEDIA QUERIES
   ============================================ */

@media (min-width: 768px) {
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:inline-block { display: inline-block; }
}

@media (max-width: 767px) {
  .md\:hidden { display: none !important; }
}

/* ============================================
   4. ANIMATIONS & KEYFRAMES
   ============================================ */

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

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* Stagger animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   5. GLOBAL STYLES
   ============================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #0a0e15 0%, #0f1320 100%);
  background-attachment: fixed;
  color: #c0c5ce;
  line-height: 1.5;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Mobile responsive headings */
@media (max-width: 767px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.875rem; }
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   6. UTILITY CLASSES FOR WIDGETS
   ============================================ */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

/* Aspect Ratio */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Additional Colors */
.bg-red-900 { background-color: #7f1d1d; }
.bg-red-950 { background-color: #450a0a; }
.bg-green-900 { background-color: #14532d; }
.bg-green-950 { background-color: #052e16; }
.border-red-800 { border-color: #991b1b; }
.border-green-800 { border-color: #166534; }
.text-red-400 { color: #f87171; }
.text-green-400 { color: #4ade80; }
.text-gray-200 { color: #e5e7eb; }
.text-gray-300 { color: #d1d5db; }
.from-red-900 { --tw-gradient-from: #7f1d1d; --tw-gradient-to: rgb(127 29 29 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-red-950 { --tw-gradient-to: #450a0a; }
.from-green-900 { --tw-gradient-from: #14532d; --tw-gradient-to: rgb(20 83 45 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-green-950 { --tw-gradient-to: #052e16; }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-to: rgb(59 130 246 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.hover\:from-blue-600:hover { --tw-gradient-from: #2563eb; }
.hover\:to-blue-700:hover { --tw-gradient-to: #1d4ed8; }

/* Range input styling */
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #3b82f6;
  cursor: pointer;
  border: 2px solid #1e293b;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

input[type='range']::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #3b82f6;
  cursor: pointer;
  border: 2px solid #1e293b;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

input[type='range']::-webkit-slider-runnable-track {
  height: 0.5rem;
  background-color: #334155;
  border-radius: 9999px;
}

input[type='range']::-moz-range-track {
  height: 0.5rem;
  background-color: #334155;
  border-radius: 9999px;
  border: none;
}

/* Appearance */
.appearance-none { appearance: none; }

/* Ring */
.focus\:ring-1:focus {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.ring-blue-500 { --tw-ring-color: rgb(59, 130, 246 / 0.5); }

/* Outline */
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Placeholder */
.placeholder-gray-500::placeholder { color: #6b7280; }

/* Select styling */
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5rem 1.5rem;
  padding-right: 2.5rem;
  appearance: none;
}

/* Output styling */
output {
  display: inline-block;
}

/* Modal styles */
.ihw-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.ihw-modal.hidden {
  display: none !important;
}

.ihw-modal-content {
  background-color: #0f172a;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  max-width: 500px;
  width: 100%;
  margin: 1rem;
}

/* Additional spacing utilities */
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }

.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }

/* Hero section */
.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: #9ca3af;
  margin-bottom: 2rem;
}

/* Stats card */
.stats-card {
  background-color: #131820;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #1f2938;
  text-align: center;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stats-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.875rem;
  color: #9ca3af;
  font-weight: 500;
}

/* ============================================
   FLUENT FORMS STYLING
   ============================================ */

.fluentform form {
  display: flex;
  flex-direction: column;
}

.ff-el-input--text,
.ff-el-input--email,
.ff-el-textarea,
.ff-el-select select,
.ff-el-input-group input,
.fluent-control input[type="text"],
.fluent-control input[type="email"],
.fluent-control textarea,
.fluent-control select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #2a3a4d;
  border-radius: 0.5rem;
  background-color: #131820;
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ff-el-input--text:focus,
.ff-el-input--email:focus,
.ff-el-textarea:focus,
.ff-el-select select:focus,
.ff-el-input-group input:focus,
.fluent-control input[type="text"]:focus,
.fluent-control input[type="email"]:focus,
.fluent-control textarea:focus,
.fluent-control select:focus {
  outline: none;
  border-color: #4A95FF;
  background-color: #1a1f2e;
  box-shadow: 0 0 0 3px rgba(74, 149, 255, 0.1);
}

.ff-el-textarea,
.fluent-control textarea {
  resize: vertical;
  min-height: 150px;
}

/* Form labels */
.ff-el-label,
.fluent-form label,
.ff_form_group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  text-transform: capitalize;
}

.ff_form_group {
  margin-bottom: 1.5rem;
}

/* Select styling for Fluent Forms */
.ff-el-select,
.fluent-control select {
  position: relative;
}

.ff-el-select select,
.fluent-control select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234A95FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ff-el-select select:hover,
.fluent-control select:hover {
  border-color: #4A95FF;
  background-color: #1a1f2e;
}

.ff-el-select select option,
.fluent-control select option {
  background-color: #131820;
  color: #f1f5f9;
  padding: 0.5rem;
}

.ff-el-select select option:checked,
.fluent-control select option:checked {
  background: linear-gradient(#4A95FF, #4A95FF);
  background-color: #4A95FF;
  color: #ffffff;
}

/* Form submit button */
.ff-btn-submit,
.ff-form-submit,
.ff-el-submit button,
.fluent-form button[type="submit"],
.fluent-form .ff-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #4A95FF, #5DA3FF);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 149, 255, 0.3);
  width: 100%;
  margin-top: 1rem;
}

.ff-btn-submit:hover,
.ff-form-submit:hover,
.ff-el-submit button:hover,
.fluent-form button[type="submit"]:hover,
.fluent-form .ff-btn:hover {
  background: linear-gradient(135deg, #5DA3FF, #6DB5FF);
  box-shadow: 0 6px 20px rgba(74, 149, 255, 0.4);
  transform: translateY(-2px);
}

.ff-btn-submit:active,
.ff-form-submit:active,
.ff-el-submit button:active,
.fluent-form button[type="submit"]:active,
.fluent-form .ff-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(74, 149, 255, 0.2);
}

/* Error messages */
.ff-form-error,
.ff-el-form-error,
.fluent-form .has-error,
.fluent-form .error-message {
  color: #FF6B35;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

.ff-el-input--text.has-error,
.ff-el-input--email.has-error,
.ff-el-textarea.has-error,
.fluent-form .has-error input,
.fluent-form .has-error textarea,
.fluent-form .has-error select {
  border-color: #FF6B35 !important;
}

/* Success message */
.ff-form-success,
.ff-form-complete,
.ff-success-message,
.fluent-form .success-message {
  background-color: rgba(0, 212, 170, 0.1);
  border: 1px solid #00D4AA;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  color: #00D4AA;
  font-size: 0.875rem;
}

/* Fieldset styling */
.ff-form-fieldset,
.fluent-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Radio and checkbox styling */
.ff-el-input--radio,
.ff-el-input--checkbox,
.fluent-form input[type="radio"],
.fluent-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #4A95FF;
}

.ff-el-input--radio + label,
.ff-el-input--checkbox + label,
.fluent-form input[type="radio"] + label,
.fluent-form input[type="checkbox"] + label {
  margin-left: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

/* ============================================
   FLUENT FORMS ANIMATIONS & EFFECTS
   ============================================ */

/* Field animation on focus */
@keyframes fieldFocus {
  from {
    transform: translateY(0);
    opacity: 0.95;
  }
  to {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.ff-el-input--text:focus,
.ff-el-input--email:focus,
.ff-el-textarea:focus {
  animation: fieldFocus 0.3s ease-out;
}

/* Label animation */
@keyframes labelSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ff_form_group label,
.ff-el-label {
  animation: labelSlide 0.3s ease-out;
}

/* Success animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ff-form-success,
.ff-success-message {
  animation: slideDown 0.3s ease-out;
}

/* Ripple effect on button */
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 149, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 149, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 149, 255, 0);
  }
}

.ff-btn-submit:active,
.ff-form-submit:active,
.ff-el-submit button:active,
.fluent-form button[type="submit"]:active {
  animation: ripple 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .ff-btn-submit,
  .ff-form-submit,
  .ff-el-submit button,
  .fluent-form button[type="submit"],
  .fluent-form .ff-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Stack layout on mobile */
  .ff_form_group {
    margin-bottom: 1rem;
  }

  .ff-el-input--text,
  .ff-el-input--email,
  .ff-el-textarea,
  .ff-el-select select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Accessibility improvements */
.ff-el-input--text:focus,
.ff-el-input--email:focus,
.ff-el-textarea:focus,
.ff-el-select select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  .ff-el-input--text,
  .ff-el-input--email,
  .ff-el-textarea,
  .ff-el-select select {
    border-width: 2px;
  }

  .ff-btn-submit,
  .ff-form-submit,
  .ff-el-submit button,
  .fluent-form button[type="submit"],
  .fluent-form .ff-btn {
    border: 2px solid #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   THEME COMPONENTS
   ============================================ */

/* Alternating section backgrounds */
.bg-dark     { background: #0a0e15; }
.bg-dark-alt { background: #0f1320; }

/* CTA Buttons */
.cta-primary {
  background: linear-gradient(135deg, #4A95FF 0%, #00b896 100%);
  color: #0a0e15;
  font-weight: 700;
}
.cta-primary:hover {
  background: linear-gradient(135deg, #00e8bc 0%, #00cc9f 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.25);
}
.cta-secondary {
  background: transparent;
  border: 2px solid #4A95FF;
  color: #4A95FF;
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta-secondary:hover {
  background: #4A95FF;
  color: #0a0e15;
}

/* Cards */
.glass-panel {
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.dark-card {
  background: linear-gradient(135deg, #131820 0%, #1a1f2a 100%);
  border: 1px solid #1f2938;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark-card:hover {
  border-color: #3a3f48;
  background: linear-gradient(135deg, #1a1f2a 0%, #1f2228 100%);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.result-card {
  background: linear-gradient(135deg, #131820 0%, #1a1f2a 100%);
  border: 1px solid #1f2938;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.result-card:hover {
  border-color: #4A95FF;
  box-shadow: 0 0 20px rgba(74, 149, 255, 0.1);
}

/* Glow effects */
.hover-glow:hover { box-shadow: 0 0 30px rgba(74, 149, 255, 0.2); }
.radial-glow-primary { position: relative; }
.radial-glow-primary::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0) 70%);
  z-index: -1; border-radius: 50%;
}
.radial-glow-accent { position: relative; }
.radial-glow-accent::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0) 70%);
  z-index: -1; border-radius: 50%;
}
.text-glow-primary { text-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 0 40px rgba(0, 212, 170, 0.2); }
.text-glow-accent  { text-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2); }

/* Section backgrounds */
.section-dark { background: linear-gradient(180deg, #0f1320 0%, #0a0e15 100%); }

/* Button animation */
.btn-animate { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-animate:hover  { transform: translateY(-2px); }
.btn-animate:active { transform: translateY(0); }

/* Transition */
.transition-smooth { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* FAQ Accordion */
.faq-item { cursor: pointer; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-item.open .faq-arrow  { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

/* Testimonials */
.testimonial-card { border: 2px solid #1f2938; transition: all 0.3s; }
.testimonial-card:hover { border-color: #4A95FF; }

/* Keyframes */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Animation utilities */
.animate-fade-in-up     { animation: fadeInUp 0.8s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.8s ease-out forwards; }
.animate-scale-in       { animation: scaleIn 0.6s ease-out forwards; }
.animate-float          { animation: float 3s ease-in-out infinite; }

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Header logo sizing */
#header-nav .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
}

#header-nav .custom-logo-link {
  display: inline-block;
}

/* Footer logo sizing - responsive */
footer .custom-logo {
  max-height: 32px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  footer .custom-logo {
    max-height: 48px;
  }
}

/* Primary menu styling */
#menu-primary {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  gap: 2rem;
}

#menu-primary > li {
  position: relative;
  list-style: none !important;
}

#menu-primary a {
  display: block;
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

#menu-primary > li > a:hover {
  color: #4A95FF;
}

/* Submenu styling */
#menu-primary > li {
  position: relative;
}

#menu-primary .sub-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  list-style: none !important;
  background: #131820;
  border: 1px solid #1f2938;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem !important;
  margin: 0 !important;
  min-width: 220px;
  display: none !important;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Invisible bridge between parent and submenu */
#menu-primary > li:hover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  z-index: 999;
}

#menu-primary .sub-menu.open {
  display: flex !important;
}

/* Mobile menu styling */
#menu-mobile {
  list-style: none !important;
}

#menu-mobile > li {
  list-style: none !important;
  border-bottom: 1px solid #1f2938;
}

#menu-mobile > li:last-child {
  border-bottom: none;
}

#menu-mobile li a {
  display: block;
  padding: 1rem 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
}

#menu-mobile li a:hover {
  color: #4A95FF;
  padding-left: 1.25rem;
}

#menu-mobile .sub-menu {
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0.5rem 0 !important;
  margin-left: 1rem !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#menu-mobile .sub-menu li a {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #7a8ca8;
}

#menu-mobile .sub-menu li a:hover {
  color: #4A95FF;
}

#menu-primary .sub-menu li {
  display: block !important;
  list-style: none !important;
}

#menu-primary .sub-menu li a {
  padding: 0.5rem 0.75rem;
  color: #9ca3af;
  font-size: 0.95rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

#menu-primary .sub-menu li a:hover {
  color: #4A95FF;
  background: rgba(74, 149, 255, 0.1);
}

/* ============================================
   RESPONSIVE HEADER - Mobile/Desktop Breakpoints
   ============================================ */

/* Hide utility - always hides regardless of viewport and state */
.hidden {
  display: none !important;
}

#mobile-menu.hidden {
  display: none !important;
}

#mobile-menu {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Desktop (md: 768px+) */
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }

  .md\:flex {
    display: flex !important;
  }

  .md\:block {
    display: block !important;
  }

  .md\:gap-0 {
    gap: 0 !important;
  }

  .md\:px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .md\:flex-row {
    flex-direction: row !important;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .md\:hidden {
    display: block !important;
  }

  .md\:flex {
    display: none !important;
  }

  .md\:block {
    display: none !important;
  }
}

/* ============================================
   PAGINATION
   ============================================ */

.page-numbers {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-numbers li {
  display: inline-block !important;
  margin: 0 !important;
}

.page-numbers a,
.page-numbers span.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0 0.5rem !important;
  background: #131820 !important;
  border: 1px solid #1f2938 !important;
  border-radius: 0.375rem !important;
  color: #9ca3af !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.page-numbers a:hover {
  background: #4A95FF !important;
  color: #0a0e15 !important;
  border-color: #4A95FF !important;
}

.page-numbers .current {
  background: #4A95FF !important;
  color: #0a0e15 !important;
  border-color: #4A95FF !important;
  font-weight: 700 !important;
}

.page-numbers span.dots {
  display: inline-flex !important;
  align-items: center !important;
  height: 2.5rem !important;
  color: #9ca3af !important;
}

/* Article prose styles */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.5rem 0 1rem 0;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }
.prose h5 { font-size: 1.125rem; }
.prose h6 { font-size: 1rem; }

/* Responsive prose headings on mobile */
@media (max-width: 767px) {
  .prose h2 { font-size: 1.25rem; }
  .prose h3 { font-size: 1.125rem; }
  .prose h4 { font-size: 1rem; }
}

.prose p {
  margin: 1rem 0;
  line-height: 1.7;
  color: #9ca3af;
}

.prose strong {
  color: #f1f5f9;
  font-weight: 700;
}

.prose em {
  color: #f1f5f9;
  font-style: italic;
}

.prose a {
  color: #4A95FF;
  text-decoration: underline;
}

.prose a:hover {
  color: #5DA3FF;
}

.prose ul {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style-type: disc;
  list-style-position: outside;
}

.prose ol {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style-type: decimal;
  list-style-position: outside;
}

.prose ul li,
.prose ol li {
  margin: 0.5rem 0;
  line-height: 1.7;
  color: #9ca3af;
}

/* Blockquote styles */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #4A95FF;
  background-color: rgba(74, 149, 255, 0.05);
  border-radius: 0.25rem;
  font-style: italic;
  color: #c0c5ce;
}

.prose blockquote p {
  margin: 0;
  color: #c0c5ce;
}

/* Image styles */
.prose img {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
  border: 1px solid #1f2938;
  transition: all 0.3s ease;
}

.prose img:hover {
  border-color: #4A95FF;
  box-shadow: 0 0 20px rgba(74, 149, 255, 0.1);
}

/* Code blocks */
.prose code {
  background-color: #131820;
  color: #4A95FF;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.prose pre {
  background-color: #0f1320;
  border: 1px solid #1f2938;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  color: #9ca3af;
  padding: 0;
}

/* Print styles */
@media print {
  .hidden-print { display: none !important; }
}
