/* =================================================================
   REBASE - Premium Design System - WCAG 2.1 AA Compliant
   World-class CSS for Energy Sector Innovation
   ================================================================= */

/* =================================================================
   1. CSS RESET & FOUNDATION
   ================================================================= */

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: inherit;
  background-color: #ffffff;
  color: #0f172a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* =================================================================
   2. PREMIUM COLOR SYSTEM
   ================================================================= */

:root {
  /* Brand Colors */
  --rebase-dark: #0A1931;
  --rebase-blue: #0057FF;
  --rebase-cyan: #00D1D1;
  --rebase-orange: #FF6B00;
  
  /* Neutral Palette */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Spacing System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;
  --space-32: 8rem;
  --space-48: 12rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
   3. LAYOUT SYSTEM
   ================================================================= */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

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

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

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

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

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }

/* Grid */
.grid { display: 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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.inline { display: inline; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-20 { top: var(--space-20); }
.top-40 { top: 10rem; }
.bottom-10 { bottom: var(--space-10); }
.bottom-20 { bottom: var(--space-20); }
.left-1\/2 { left: 50%; }
.left-4 { left: var(--space-4); }
.left-10 { left: var(--space-10); }
.right-4 { right: var(--space-4); }
.right-10 { right: var(--space-10); }
.z-\[1\] { z-index: 1; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: var(--space-1); }
.w-4 { width: var(--space-4); }
.w-6 { width: var(--space-6); }
.w-10 { width: var(--space-10); }
.w-16 { width: var(--space-16); }
.w-48 { width: 12rem; }
.w-72 { width: 18rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1 { height: var(--space-1); }
.h-2 { height: var(--space-2); }
.h-4 { height: var(--space-4); }
.h-5 { height: var(--space-5); }
.h-6 { height: var(--space-6); }
.h-8 { height: var(--space-8); }
.h-10 { height: var(--space-10); }
.h-12 { height: var(--space-12); }
.h-16 { height: var(--space-16); }
.h-48 { height: 12rem; }
.h-72 { height: 18rem; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* =================================================================
   4. TYPOGRAPHY SYSTEM
   ================================================================= */

/* Font Family */
.font-sans { font-family: 'Inter', system-ui, sans-serif; }

/* Font Size */
.text-xs { font-size: var(--text-xs); line-height: 1rem; }
.text-sm { font-size: var(--text-sm); line-height: 1.25rem; }
.text-base { font-size: var(--text-base); line-height: 1.5rem; }
.text-lg { font-size: var(--text-lg); line-height: 1.75rem; }
.text-xl { font-size: var(--text-xl); line-height: 1.75rem; }
.text-2xl { font-size: var(--text-2xl); line-height: 2rem; }
.text-3xl { font-size: var(--text-3xl); line-height: 2.25rem; }
.text-4xl { font-size: var(--text-4xl); line-height: 2.5rem; }
.text-5xl { font-size: var(--text-5xl); line-height: 1; }
.text-6xl { font-size: var(--text-6xl); line-height: 1; }
.text-7xl { font-size: var(--text-7xl); line-height: 1; }

/* Font Weight */
.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-black { font-weight: 900; }

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

/* Line Height */
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

/* Letter Spacing */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* =================================================================
   5. COLOR UTILITIES
   ================================================================= */

/* Background Colors */
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-700 { background-color: var(--slate-700); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-slate-900 { background-color: var(--slate-900); }
.bg-rebase-dark { background-color: var(--rebase-dark); }
.bg-rebase-blue { background-color: var(--rebase-blue); }
.bg-rebase-cyan { background-color: var(--rebase-cyan); }
.bg-rebase-orange { background-color: var(--rebase-orange); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-cyan-100 { background-color: #cffafe; }
.bg-cyan-200 { background-color: #a5f3fc; }
.bg-orange-100 { background-color: #fed7aa; }
.bg-orange-200 { background-color: #fdba74; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-100 { --tw-gradient-from: #dbeafe; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-cyan-100 { --tw-gradient-from: #cffafe; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-orange-100 { --tw-gradient-from: #fed7aa; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-slate-100 { --tw-gradient-from: var(--slate-100); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-blue-200 { --tw-gradient-to: #bfdbfe; }
.to-cyan-200 { --tw-gradient-to: #a5f3fc; }
.to-orange-200 { --tw-gradient-to: #fdba74; }
.to-slate-200 { --tw-gradient-to: var(--slate-200); }

/* Background Opacity */
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-slate-900\/50 { background-color: rgba(15, 23, 42, 0.5); }
.bg-rebase-dark\/95 { background-color: rgba(10, 25, 49, 0.95); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }

/* Background Gradients */
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.from-black\/40 { --tw-gradient-from: rgba(0, 0, 0, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-transparent { --tw-gradient-via: transparent; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to); }
.to-black\/30 { --tw-gradient-to: rgba(0, 0, 0, 0.3); }

/* Text Colors */
.text-white { color: #ffffff; }
.text-white\/95 { color: rgba(255, 255, 255, 0.95); }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-rebase-dark { color: var(--rebase-dark); }
.text-rebase-blue { color: var(--rebase-blue); }
.text-rebase-cyan { color: var(--rebase-cyan); }
.text-rebase-orange { color: var(--rebase-orange); }
.text-green-300 { color: #86efac; }
.text-red-300 { color: #fca5a5; }

/* Border Colors */
.border-transparent { border-color: transparent; }
.border-white { border-color: #ffffff; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/50 { border-color: rgba(255, 255, 255, 0.5); }
.border-slate-200 { border-color: var(--slate-200); }
.border-slate-700 { border-color: var(--slate-700); }
.border-gray-500 { border-color: #6b7280; }
.border-rebase-blue { border-color: var(--rebase-blue); }
.border-green-500\/30 { border-color: rgba(34, 197, 94, 0.3); }
.border-red-500\/30 { border-color: rgba(239, 68, 68, 0.3); }

/* =================================================================
   6. SPACING SYSTEM
   ================================================================= */

/* Padding */
.p-1 { padding: var(--space-1); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }
.px-0 { padding-left: 0; padding-right: 0; }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-28 { padding-top: var(--space-28); padding-bottom: var(--space-28); }
.pt-8 { padding-top: var(--space-8); }
.pt-20 { padding-top: var(--space-20); }
.pt-32 { padding-top: var(--space-32); }
.pb-16 { padding-bottom: var(--space-16); }
.pb-20 { padding-bottom: var(--space-20); }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-3 { margin-left: var(--space-3); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-16 { margin-bottom: var(--space-16); }

/* Space Between */
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: var(--space-8); }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: var(--space-2); }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: var(--space-6); }

/* =================================================================
   7. BORDERS & EFFECTS
   ================================================================= */

/* Border Width */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

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

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1)); }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-50 { opacity: 0.5; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* Blend Modes */
.mix-blend-screen { mix-blend-mode: screen; }

/* Filters */
.filter { filter: var(--tw-filter); }
.blur-xl { --tw-blur: blur(24px); filter: var(--tw-filter); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

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

/* Transform */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.-translate-x-1\/2 { --tw-translate-x: -50%; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* =================================================================
   8. INTERACTIVE STATES
   ================================================================= */

/* Transitions */
.transition-none { transition-property: none; }
.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Hover States */
.hover\:bg-opacity-90:hover { background-color: rgba(0, 87, 255, 0.9); }
.hover\:bg-rebase-blue:hover { background-color: var(--rebase-blue); }
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-slate-600:hover { background-color: var(--slate-600); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-rebase-blue:hover { color: var(--rebase-blue); }
.hover\:text-rebase-cyan:hover { color: var(--rebase-cyan); }
.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:shadow-2xl:hover { box-shadow: var(--shadow-2xl); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.5); }
.focus\:ring-rebase-blue:focus { --tw-ring-color: var(--rebase-blue); }

/* Form Controls */
.resize-none { resize: none; }
.placeholder-slate-400::placeholder { color: var(--slate-400); }

/* =================================================================
   9. CUSTOM COMPONENTS
   ================================================================= */

/* Glass Morphism Header */
.glass {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05),
              0 1px 2px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
              0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, #0A1931 0%, #0057FF 50%, #00D1D1 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  position: relative;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Grid Pattern */
.grid-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 87, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 87, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #4DC3FF 0%, #00F5F5 50%, #FFB366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: brightness(1.2);
  text-shadow: 0 0 40px rgba(77, 195, 255, 0.5);
}

/* Animated Blob */
.animate-blob {
  animation: blob 8s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all var(--transition-slow);
  border: 1px solid rgba(226, 232, 240, 0.3);
  position: relative;
  overflow: hidden;
}

/* Card Glow Effect */
.card-glow {
  position: relative;
  background: white;
  transition: all var(--transition-slow);
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 87, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

.card-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 87, 255, 0.2), rgba(0, 209, 209, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card-glow:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-glow:hover::after {
  opacity: 1;
}

@keyframes gradientRotate {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform var(--transition-slow),
              box-shadow var(--transition-slow);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
              0 10px 20px -5px rgba(0, 87, 255, 0.1);
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Title & Subtitle */
.hero-title {
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 1rem 0 3rem 0;
  padding: 1rem 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 1;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
  color: rgba(241, 245, 249, 1);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.6s;
  animation-fill-mode: both;
}

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

/* Navigation Links */
.nav-link {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rebase-blue), var(--rebase-cyan));
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--rebase-blue);
}

.nav-link:hover::after {
  width: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.05);
}

/* CTA Button */
.cta-button {
  background: var(--rebase-blue);
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px 0 rgba(0, 87, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 87, 255, 0.3),
              0 5px 10px rgba(0, 87, 255, 0.2);
  background: linear-gradient(135deg, var(--rebase-blue), var(--rebase-cyan));
}

/* Cookie Banner */
#cookie-banner {
  transition: transform var(--transition-slower);
  transform: translateY(100%);
  box-shadow: 0 -4px 20px 0 rgba(0, 0, 0, 0.1);
}

#cookie-banner.active {
  transform: translateY(0);
}

/* Mobile Menu */
#mobile-menu {
  transition: all var(--transition-base);
}

#mobile-menu a {
  font-weight: 500;
  color: var(--slate-600);
  transition: all var(--transition-fast);
}

#mobile-menu a:hover {
  color: var(--rebase-blue);
  background-color: rgba(0, 87, 255, 0.05);
}

/* Scroll Indicator */
.scroll-indicator {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* About Text */
.about-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--rebase-blue), var(--rebase-cyan));
  border-radius: 6px;
  border: 3px solid var(--slate-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0047d0, #00b8b8);
}

/* Aspect Ratio */
.aspect-w-4 {
  position: relative;
  padding-bottom: 75%;
}

.aspect-h-3 {
  height: 0;
}

.aspect-w-4 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* =================================================================
   10. RESPONSIVE DESIGN
   ================================================================= */

/* Small (640px) */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:mt-0 { margin-top: 0; }
  .sm\:px-0 { padding-left: 0; padding-right: 0; }
  .sm\:px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
  .sm\:px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
  .sm\:py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .sm\:pt-24 { padding-top: var(--space-24); }
  .sm\:pb-20 { padding-bottom: var(--space-20); }
  .sm\:mb-6 { margin-bottom: var(--space-6); }
  .sm\:mb-10 { margin-bottom: var(--space-10); }
  .sm\:text-base { font-size: var(--text-base); line-height: 1.5rem; }
  .sm\:text-lg { font-size: var(--text-lg); line-height: 1.75rem; }
  .sm\:text-4xl { font-size: var(--text-4xl); line-height: 2.5rem; }
  .sm\:max-w-2xl { max-width: 42rem; }
  .sm\:h-10 { height: var(--space-10); }
  .sm\:w-72 { width: 18rem; }
  .sm\:h-72 { height: 18rem; }
  .sm\:left-10 { left: var(--space-10); }
  .sm\:right-10 { right: var(--space-10); }
}

/* Medium (768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:gap-16 { gap: var(--space-16); }
  .md\:text-left { text-align: left; }
  .md\:text-5xl { font-size: var(--text-5xl); line-height: 1; }
  .md\:text-7xl { font-size: var(--text-7xl); line-height: 1; }
  .md\:py-28 { padding-top: var(--space-28); padding-bottom: var(--space-28); }
  .md\:p-10 { padding: var(--space-10); }
  .md\:h-12 { height: var(--space-12); }
}

/* Large (1024px) */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:text-left { text-align: left; }
  .lg\:justify-end { justify-content: flex-end; }
  .lg\:px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }
  .lg\:pt-32 { padding-top: var(--space-32); }
  .lg\:pb-24 { padding-bottom: var(--space-24); }
  .lg\:text-xl { font-size: var(--text-xl); line-height: 1.75rem; }
  .lg\:text-6xl { font-size: var(--text-6xl); line-height: 1; }
  .lg\:max-w-3xl { max-width: 48rem; }
  .lg\:h-12 { height: var(--space-12); }
  .lg\:h-20 { height: var(--space-20); }
}

/* Extra Large (1280px) */
@media (min-width: 1280px) {
  .xl\:text-base { font-size: var(--text-base); line-height: 1.5rem; }
  .xl\:text-7xl { font-size: var(--text-7xl); line-height: 1; }
  .xl\:pt-48 { padding-top: var(--space-48); }
  .xl\:pb-32 { padding-bottom: var(--space-32); }
  .xl\:px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
  .xl\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
  .xl\:space-x-10 > :not([hidden]) ~ :not([hidden]) { margin-left: var(--space-10); }
}

/* =================================================================
   11. UTILITY CLASSES
   ================================================================= */

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

/* User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* 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-width: 0;
}

/* Print */
@media print {
  .print\:hidden { display: none; }
}

/* =================================================================
   12. ANIMATIONS
   ================================================================= */

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

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

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

.animate-slide-down {
  animation: slideDown 0.5s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Additional Animation Classes */
.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* =================================================================
   13. ACCESSIBILITY ENHANCEMENTS FOR WCAG 2.1 AA
   ================================================================= */

/* Skip link */
.focus\:not-sr-only:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Enhanced focus indicators - high contrast outline */
.focus\:ring-2:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Ensure proper color contrast for text elements */
.text-slate-600 {
  color: #475569; /* Updated for better contrast ratio 4.5:1 on white */
}

.text-slate-700 {
  color: #334155; /* High contrast 7:1 ratio */
}

.text-slate-400 {
  color: #9ca3af; /* Updated for better contrast on dark backgrounds */
}

/* Enhanced focus ring for better visibility */
.focus\:ring-rebase-blue:focus {
  box-shadow: 0 0 0 2px #0057FF;
}

.focus\:ring-white:focus {
  box-shadow: 0 0 0 2px #ffffff;
}

/* Ensure form elements have proper contrast */
input:focus, textarea:focus, button:focus, select:focus {
  outline: 2px solid #0057FF;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .text-slate-600 {
    color: #1e293b;
  }
  
  .text-slate-700 {
    color: #0f172a;
  }
  
  .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  .border-white\/20 {
    border-color: rgba(255, 255, 255, 0.3);
  }
}

/* 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;
    scroll-behavior: auto !important;
  }
}

/* =================================================================
   END OF PREMIUM CSS SYSTEM
   ================================================================= */

/* -----------------------------------------------------------------
   Hotfix: Prevent hero heading clipping on large breakpoints
   Reason: responsive font-size utilities (e.g., xl:text-7xl) set
   line-height: 1, which can visually crop tall glyphs/diacritics on
   multi-line headings. We enforce a safer line-height for .hero-title
   after all utilities so it wins in the cascade.
------------------------------------------------------------------ */
.hero-title {
  line-height: 1.18 !important; /* keep legible spacing on all sizes */
  overflow: visible;
}

@media (min-width: 1280px) {
  .hero-title { line-height: 1.16 !important; }
}