/* ===========================================
   Racery Front Page - REPL Version
   =========================================== */

/* ===========================================
   1. CSS VARIABLES
   =========================================== */
:root {
  /* Colors */
  --background: hsl(210 20% 98%);
  --foreground: hsl(222 47% 11%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222 47% 11%);
  --border: hsl(214 20% 90%);
  --input: hsl(214 20% 85%);
  --primary: hsl(168 76% 42%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 40% 96%);
  --secondary-foreground: hsl(222 47% 20%);
  --muted: hsl(210 40% 96%);
  --muted-foreground: hsl(215 16% 47%);
  --accent: hsl(262 83% 58%);
  --accent-foreground: hsl(0 0% 100%);

  /* Button colors */
  --btn-blue: hsl(220 70% 25%);
  --btn-blue-hover: hsl(220 70% 20%);
  --btn-yellow: hsl(45 90% 50%);
  --btn-yellow-hover: hsl(45 90% 45%);
  --emerald-400: hsl(158 64% 52%);
  --emerald-500-20: hsla(158 64% 42% / 0.2);

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  /* Shadows */
  --shadow-sm: 0 1px 2px -1px rgb(0 0 0 / 0.05), 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.2);
}

/* ===========================================
   2. BASE & RESET
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===========================================
   3. LAYOUT UTILITIES
   =========================================== */
.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: 36rem;
}

.container-md {
  max-width: 48rem;
}

.container-lg {
  max-width: 64rem;
}

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.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)); }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-1-5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

/* ===========================================
   4. SPACING UTILITIES
   =========================================== */
/* Padding */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.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; }
.pt-24 { padding-top: 6rem; }
.pt-32 { padding-top: 8rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pr-12 { padding-right: 3rem; }
.pt-2 { padding-top: 0.5rem; }

/* Margin */
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0-5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2rem; }
.mt-7 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.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-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mt-2-5 { margin-top: 0.625rem; }
.-mr-2 { margin-right: -0.5rem; }
.-translate-y-1-2 { transform: translateY(-50%); }
.-translate-x-1-2 { transform: translateX(-50%); }

/* ===========================================
   5. SIZING UTILITIES
   =========================================== */
/* Width */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.max-w-full { max-width: 100%; }
.max-w-80 { max-width: 80%; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* Bullet sizing */
.h-1-5 { height: 0.375rem; }
.w-1-5 { width: 0.375rem; }

/* Height */
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.min-h-72 { min-height: 4.5rem; }
.min-h-800 { min-height: 800px; }

/* Logo heights */
.logo-height { height: 72px; }

/* Back to top button */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--teal);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 100;
}
.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  color: blue;
}
.back-to-top-btn:hover {
  background: var(--blue);
}

/* ===========================================
   6. TYPOGRAPHY UTILITIES
   =========================================== */
/* Font Size */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-md { font-size: 0.925rem; 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.2; }
.text-7xl { font-size: 4.5rem; line-height: 1.1; }

/* Font Weight */
.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; }

/* Font Family */
.font-display { font-family: var(--font-display); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Text Style */
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* ===========================================
   7. COLOR UTILITIES
   =========================================== */
/* Text Colors */
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.text-slate-900 { color: hsl(222 47% 11%); }
.text-emerald-400 { color: var(--emerald-400); }

/* Background Colors */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-muted-30 { background-color: hsl(210 40% 96% / 0.3); }
.bg-primary { background-color: var(--primary); }
.bg-primary-10 { background-color: hsl(168 76% 42% / 0.1); }
.bg-emerald-500-20 { background-color: var(--emerald-500-20); }
.bg-card-60 { background-color: hsl(0 0% 100% / 0.6); }
.bg-background-80 { background-color: hsl(210 20% 98% / 0.8); }
.bg-background-95 { background-color: hsl(210 20% 98% / 0.95); }
.bg-background-10 { background-color: hsl(210 20% 98% / 0.1); }
.bg-white {background-color:white;}

/* Border Colors */
.border-border { border-color: var(--border); }
.border-border-50 { border-color: hsl(214 20% 90% / 0.5); }
.border-primary { border-color: var(--primary); }
.border-primary-20 { border-color: hsl(168 76% 42% / 0.2); }
.border-primary-30 { border-color: hsl(168 76% 42% / 0.3); }
.border-input { border-color: var(--input); }

/* ===========================================
   8. BORDER & RADIUS UTILITIES
   =========================================== */
.border { border-width: 1px; border-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; }
.border-l-2 { border-left: 2px solid; }
.border-0 { border-width: 0; }

.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: 9999px; }

/* ===========================================
   9. EFFECTS & SHADOWS
   =========================================== */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

.opacity-30 { opacity: 0.3; }
.opacity-35 { opacity: 0.35; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

.overflow-hidden { overflow: hidden; }

/* ===========================================
   10. POSITIONING
   =========================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.top-1-2 { top: 50%; }
.left-1-2 { left: 50%; }
.-top-4 { top: -1rem; }
.z-50 { z-index: 50; }

/* ===========================================
   11. TRANSITIONS
   =========================================== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ===========================================
   12. HOVER STATES
   =========================================== */
.hover-shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover-shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover-lift:hover { transform: translateY(-4px); }
.hover-scale:hover { transform: scale(1.1); }
.hover-opacity-100:hover { opacity: 1; }
.hover-text-foreground:hover { color: var(--foreground); }
.hover-text-primary-80:hover { color: hsl(168 76% 42% / 0.8); }
.hover-border-primary-50:hover { border-color: hsl(168 76% 42% / 0.5); }
.hover-text-primary:hover { color: var(--primary); }
.hover-underline:hover { text-decoration: underline; }

/* ===========================================
   13. GRADIENTS
   =========================================== */
.text-gradient {
  background: linear-gradient(135deg, hsl(210 90% 45%) 0%, hsl(230 70% 35%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-hero {
  background: linear-gradient(135deg, hsl(210 90% 45% / 0.1) 0%, hsl(230 70% 35% / 0.1) 100%);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, hsl(168 76% 42%) 0%, hsl(168 76% 36%) 100%);
}

.bg-gradient-accent {
  background: linear-gradient(135deg, hsl(262 83% 58%) 0%, hsl(262 83% 50%) 100%);
}

.bg-gradient-dark {
  background: linear-gradient(to bottom right, var(--foreground), hsl(222 47% 11% / 0.9));
}

.bg-gradient-to-b {
  background: linear-gradient(to bottom, transparent, var(--background) 50%, var(--background));
}

.bg-gradient-card {
  background: linear-gradient(to bottom right, hsl(168 76% 42% / 0.05), hsl(262 83% 58% / 0.05));
}

.bg-gradient-card-alt {
  background: linear-gradient(to right, hsl(168 76% 42% / 0.1), hsl(262 83% 58% / 0.1));
}

/* ===========================================
   14. COMPONENTS - BUTTONS
   =========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-blue {
  background-color: var(--btn-blue);
  color: white;
}

.btn-blue:hover {
  background-color: var(--btn-blue-hover);
}

.btn-yellow {
  background-color: var(--btn-yellow);
  color: hsl(222 47% 11%);
}

.btn-yellow:hover {
  background-color: var(--btn-yellow-hover);
}

.btn-primary {
  background: linear-gradient(135deg, hsl(168 76% 42%) 0%, hsl(168 76% 36%) 100%);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
}

/* ===========================================
   15. COMPONENTS - CARDS
   =========================================== */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 20px;
}

.card-content {
  padding: 3rem;
}

.card-gradient {
  background: linear-gradient(to bottom right, hsl(168 76% 42% / 0.05), hsl(262 83% 58% / 0.05));
  border-color: hsl(168 76% 42% / 0.2);
}

.card-transparent {
  background-color: hsl(0 0% 100% / 0.6);
  backdrop-filter: blur(8px);
  border-color: hsl(214 20% 90% / 0.5);
}

/* ===========================================
   16. COMPONENTS - ICONS
   =========================================== */
.icon {
  flex-shrink: 0;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 1.75rem; height: 1.75rem; }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
}

.icon-box-sm {
  width: 2rem;
  height: 2rem;
}

.icon-box-md {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-box-lg {
  width: 3.5rem;
  height: 3.5rem;
}

.icon-box-xl {
  width: 4rem;
  height: 4rem;
}

.icon-box-2xl {
  width: 5rem;
  height: 5rem;
}

/* ===========================================
   17. COMPONENTS - INPUTS
   =========================================== */
.input-search {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--input);
  background-color: var(--background);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  outline: none;
  transition: all 150ms ease;
}

.input-search:hover {
  border-color: hsl(168 76% 42% / 0.5);
}

.input-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.input-search::placeholder {
  color: var(--muted-foreground);
}

/* ===========================================
   18. SECTION STYLES
   =========================================== */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-lg {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(210 20% 98% / 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(214 20% 90% / 0.5);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hero */
.hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-size: 120%;
  background-position: center calc(0% - 15px);
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, hsl(210 20% 98% / 0.5) 50%, var(--background));
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid hsl(214 20% 90% / 0.5);
  background-color: hsl(210 40% 96% / 0.3);
}

/* ===========================================
   19. EXPANDABLE LIST
   =========================================== */
.expandable-list .expandable-item {
  display: none;
}

.expandable-list .expandable-item:nth-child(-n+2) {
  display: block;
}

.expandable-list[data-initial="3"] .expandable-item:nth-child(-n+3) {
  display: block;
}

.expandable-list[data-initial="4"] .expandable-item:nth-child(-n+4) {
  display: block;
}

.expandable-list.expanded .expandable-item {
  display: block;
}

.expand-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.5rem;
  cursor: pointer;
  transition: color 150ms ease;
}

.expand-toggle:hover {
  color: hsl(168 76% 42% / 0.8);
}

.expand-toggle .icon-up { display: none; }
.expandable-list.expanded .expand-toggle .icon-up { display: inline; }
.expandable-list.expanded .expand-toggle .icon-down { display: none; }
.expandable-list.expanded .expand-toggle .show-more { display: none; }
.expandable-list .expand-toggle .show-less { display: none; }
.expandable-list.expanded .expand-toggle .show-less { display: inline; }

/* ===========================================
   20. MOBILE MENU
   =========================================== */
.mobile-menu {
  display: none;
  background-color: hsl(210 20% 98% / 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(214 20% 90% / 0.5);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.mobile-menu-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.5rem 0;
}

/* ===========================================
   21. QUOTE STYLING
   =========================================== */
.quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(168 76% 42% / 0.3);
  margin-bottom: 1rem;
}

.quote-icon-sm {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
}

/* ===========================================
   22. STAT BOXES
   =========================================== */
.stat-box {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background-color: hsl(210 20% 98% / 0.1);
  backdrop-filter: blur(8px);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

/* ===========================================
   23. PRICING CARDS
   =========================================== */
.pricing-card {
  position: relative;
}

.pricing-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.pricing-badge {
  position: absolute;
  top: .5rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, hsl(168 76% 42%) 0%, hsl(168 76% 36%) 100%);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ===========================================
   24. LOGO BAR
   =========================================== */
.logo-item {
  height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 150ms ease;
}

.logo-item:hover {
  opacity: 1;
}

/* ===========================================
   25. TESTIMONIAL CARDS
   =========================================== */
.testimonial-card {
  height: 100%;
  background: linear-gradient(to bottom right, hsl(168 76% 42% / 0.05), hsl(262 83% 58% / 0.05));
  border-color: hsl(168 76% 42% / 0.2);
}

/* ===========================================
   27. QUIZ EMBED
   =========================================== */
.quiz-container {
  width: 100%;
  /* min-height: 800px; */
  display: flex;
  justify-content: center;
}

.quiz-container ins {
  display: block;
}

/* ===========================================
   28. MISC UTILITIES
   =========================================== */
.pointer-events-none { pointer-events: none; }
.object-contain { object-fit: contain; }
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Column layout */
.columns-1 { columns: 1; }
.break-inside-avoid { break-inside: avoid; }
.resource-list { column-gap: 3rem; }


/* ===========================================
  29. FEATURE SEARCH (Dropdown Menu Styles)
   =========================================== */

/* SEARCH WRAPPER */
#featured-search {
  position: relative;
}

.featured-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* INPUT */
.input-search {
  width: 100%;
  padding: 12px 44px 12px 12px; /* room for icon */
  font-size: 16px;
}

/* SUBMIT BUTTON (ICON HIT AREA) */
.featured-search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 3;
}

/* SVG ICON — CENTERED */
#featured-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 2;
}

/* DROPDOWN PANEL */
#featured-result {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  background: #f4f5f7;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  z-index: 20;
}

/* RESULT ROW */
#featured-result .race {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

#featured-result .race:hover {
  background: #e9ecef;
}

/* TITLE */
#featured-result .title {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ===========================================
   26. RESPONSIVE UTILITIES
   =========================================== */
@media (min-width: 640px) {
  .sm-flex-row { flex-direction: row; }
  .sm-hidden { display: none; }
  .sm-flex { display: flex; }
  .sm-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm-pt-32 { padding-top: 8rem; }
  .sm-pb-20 { padding-bottom: 5rem; }
  .sm-text-5xl { font-size: 3rem; }
  .sm-text-lg { font-size: 1.125rem; }
  .sm-text-sm { font-size: 0.875rem; }
  .sm-p-5 { padding: 1.25rem; }
  .sm-w-280 { width: 280px; }
  .sm-text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 768px) {
  .md-flex { display: flex; }
  .md-hidden { display: none; }
  .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-4xl { font-size: 2.25rem; }
  .md-text-5xl { font-size: 3rem; }
  .md-text-7xl { font-size: 4.5rem; line-height: 4.5rem;}
  .md-text-2xl { font-size: 1.5rem; }
  .md-gap-16 { gap: 4rem; }
  .md-py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md-mb-16 { margin-bottom: 4rem; }
  .md-columns-2 { columns: 2; }
  .md-flex-row { flex-direction: row; }
  .md-mb-12 { margin-bottom: 3rem; }
  .md-pb-12 { padding-bottom: 3rem; }
  .md-pb-24 { padding-bottom: 6rem; }
  .md-pt-12 { padding-top: 3rem; }
  .md-pt-24 { padding-top: 6rem; }
  .md-py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .logo-item { height: 84px; }
}

@media (min-width: 1024px) {
  .lg-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .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-scale-105 { transform: scale(1.05); }
}

#login_logout .dropdown-menu {
  position: absolute !important;
  top: 3.7rem !important;
}

.login_logout_container {
  display: inline-block !important;
}

#login_icon {
  display: inline-block !important;
  float: right !important;
}

@media (max-width: 850px) {
  #login_logout {
    position: absolute !important;
    top: 0rem !important;
    right: 1rem !important;
  }
}
