/* ============================================================
   EXERGINNO — Design System
   Theme: Thermal Dynamics / Molten Industrial
   Hot (fire/copper/orange) × Cold (steel blue/ice/navy)
   ============================================================ */

/* ==========================================================
   1. CUSTOM PROPERTIES (Design Tokens)
   ========================================================== */

:root {
  /* ---- Hot Palette (Warm) ---- */
  --hot-50: #fff5f0;
  --hot-100: #ffe4d6;
  --hot-200: #ffc8a8;
  --hot-300: #ffa67a;
  --hot-400: #ff7d4a;
  --hot-500: #f47920;
  --hot-600: #d4621a;
  --hot-700: #a84c15;
  --hot-800: #7a3510;
  --hot-900: #1a0a00;

  /* ---- Cold Palette (Cool) ---- */
  --cold-50: #f0f7ff;
  --cold-100: #d6eaff;
  --cold-200: #a8d4fa;
  --cold-300: #7abcf5;
  --cold-400: #4ca0f0;
  --cold-500: #1a3a5c;
  --cold-600: #15304d;
  --cold-700: #10253d;
  --cold-800: #0b1a2e;
  --cold-900: #050d1a;

  /* ---- Core Brand Colors ---- */
  --steel: #2d4a6b;
  --steel-light: #3d5a7b;
  --steel-dark: #1d3a5b;
  --ice: #e8f4fd;
  --ice-dark: #c8dcef;
  --ember: #f47920;
  --ember-light: #ff8f3a;
  --ember-dark: #d4621a;
  --ash: #0f1a2e;
  --ash-light: #1a2a3e;
  --white: #ffffff;
  --black: #050a14;

  /* ---- Gray Scale ---- */
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #d9dce4;
  --gray-300: #c0c6d4;
  --gray-400: #a0a8b8;
  --gray-500: #6b7281;
  --gray-600: #535a69;
  --gray-700: #3f4554;
  --gray-800: #2a2f3d;
  --gray-900: #181c26;

  /* ---- Gradients ---- */
  --gradient-hot: linear-gradient(135deg, #f47920, #ff6b35, #1a0a00);
  --gradient-cold: linear-gradient(135deg, #1a3a5c, #0f1a2e, #050d1a);
  --gradient-thermal: linear-gradient(90deg, #f47920 0%, #ff6b35 25%, #2d4a6b 50%, #1a3a5c 75%, #050d1a 100%);
  --gradient-thermal-diagonal: linear-gradient(135deg, #f47920 0%, #ff6b35 30%, #2d4a6b 60%, #1a3a5c 100%);

  /* ---- Typography ---- */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --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: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;

  --leading-tight: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* ---- Spacing ---- */
  --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-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(5, 10, 20, 0.08);
  --shadow-md: 0 4px 12px rgba(5, 10, 20, 0.12);
  --shadow-lg: 0 8px 30px rgba(5, 10, 20, 0.18);
  --shadow-xl: 0 16px 48px rgba(5, 10, 20, 0.25);
  --glow-ember: 0 0 20px rgba(244, 121, 32, 0.35), 0 0 60px rgba(244, 121, 32, 0.12);
  --glow-ice: 0 0 20px rgba(26, 58, 92, 0.35), 0 0 60px rgba(26, 58, 92, 0.12);
  --glow-ember-sm: 0 0 10px rgba(244, 121, 32, 0.25);
  --glow-ice-sm: 0 0 10px rgba(26, 58, 92, 0.25);

  /* ---- Transitions ---- */
  --transition-fast: 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-modal: 40;
  --z-toast: 50;
}


/* ==========================================================
   2. RESET & BASE
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-100);
  background-color: var(--ash);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); }
h4 { font-size: var(--text-3xl); }
h5 { font-size: var(--text-2xl); }
h6 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-4); }
a { color: var(--ember); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--ember-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

::selection {
  background: var(--ember);
  color: var(--white);
}

::-moz-selection {
  background: var(--ember);
  color: var(--white);
}


/* ==========================================================
   3. CONTAINER & LAYOUT
   ========================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1440px;
}

.section {
  padding: var(--space-20) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.flex-wrap { flex-wrap: wrap; }
.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); }


/* ==========================================================
   4. BACKGROUNDS
   ========================================================== */

.bg-ash { background-color: var(--ash); }
.bg-ash-light { background-color: var(--ash-light); }
.bg-ember { background-color: var(--ember); }
.bg-ember-dark { background-color: var(--ember-dark); }
.bg-steel { background-color: var(--steel); }
.bg-steel-dark { background-color: var(--steel-dark); }
.bg-ice { background-color: var(--ice); }
.bg-white { background-color: var(--white); }
.bg-black { background-color: var(--black); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-gray-900 { background-color: var(--gray-900); }
.bg-transparent { background-color: transparent; }


/* ==========================================================
   5. TEXT COLORS
   ========================================================== */

.text-ember { color: var(--ember); }
.text-steel { color: var(--steel); }
.text-ash { color: var(--ash); }
.text-ice { color: var(--ice); }
.text-white { color: var(--white); }
.text-black { color: var(--black); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }


/* ==========================================================
   6. BORDERS
   ========================================================== */

.border-ember { border: 1px solid var(--ember); }
.border-ember-2 { border: 2px solid var(--ember); }
.border-steel { border: 1px solid var(--steel); }
.border-steel-2 { border: 2px solid var(--steel); }
.border-ice { border: 1px solid var(--ice); }
.border-gray-700 { border: 1px solid var(--gray-700); }
.border-gray-800 { border: 1px solid var(--gray-800); }
.border-transparent { border: 1px solid transparent; }
.border-none { border: none; }

.border-t { border-top: 1px solid var(--gray-800); }
.border-b { border-bottom: 1px solid var(--gray-800); }


/* ==========================================================
   7. GRADIENTS
   ========================================================== */

.gradient-hot {
  background: var(--gradient-hot);
}

.gradient-cold {
  background: var(--gradient-cold);
}

.gradient-thermal {
  background: var(--gradient-thermal);
}

.gradient-thermal-diagonal {
  background: var(--gradient-thermal-diagonal);
}

/* Text gradients — clip to text */
.text-gradient-hot {
  background: var(--gradient-hot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cold {
  background: var(--gradient-cold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-thermal {
  background: var(--gradient-thermal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ==========================================================
   8. THERMAL DIVIDE — HOT/COLD SPLIT
   ========================================================== */

.thermal-divide {
  display: flex;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.thermal-divide__hot {
  flex: 1;
  background: linear-gradient(135deg, #f47920 0%, #ff6b35 50%, #a84c15 100%);
  position: relative;
}

.thermal-divide__cold {
  flex: 1;
  background: linear-gradient(135deg, #1a3a5c 0%, #0f1a2e 50%, #050d1a 100%);
  position: relative;
}

.thermal-divide__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Diagonal split variant */
.thermal-divide--diagonal {
  background: var(--gradient-thermal-diagonal);
}

/* Full hero split */
.hero-split {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-thermal-diagonal);
  opacity: 0.9;
  z-index: 0;
}

.hero-split > * {
  position: relative;
  z-index: 1;
}

.hero-split__hot {
  flex: 1;
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-split__cold {
  flex: 1;
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}


/* ==========================================================
   9. GLASS & METALLIC EFFECTS
   ========================================================== */

.glass-card {
  background: rgba(15, 26, 46, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(15, 26, 46, 0.75);
  border-color: rgba(244, 121, 32, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.glass-card--cold:hover {
  border-color: rgba(45, 74, 107, 0.3);
  box-shadow: var(--glow-ice);
}

.metallic-border {
  position: relative;
  border-radius: var(--radius-xl);
}

.metallic-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(244, 121, 32, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(45, 74, 107, 0.4) 50%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(244, 121, 32, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


/* ==========================================================
   10. GLOWS
   ========================================================== */

.glow-ember {
  box-shadow: var(--glow-ember);
}

.glow-ice {
  box-shadow: var(--glow-ice);
}

.glow-ember-sm {
  box-shadow: var(--glow-ember-sm);
}

.glow-ice-sm {
  box-shadow: var(--glow-ice-sm);
}


/* ==========================================================
   11. ANIMATIONS & KEYFRAMES
   ========================================================== */

@keyframes heat-wave {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-3px) scale(1.01);
    opacity: 0.8;
  }
  50% {
    transform: translateY(0) scale(0.99);
    opacity: 0.5;
  }
  75% {
    transform: translateY(2px) scale(1.005);
    opacity: 0.7;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(244, 121, 32, 0.3); }
  50% { box-shadow: 0 0 25px rgba(244, 121, 32, 0.6); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-left {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

.heat-wave {
  animation: heat-wave 3s ease-in-out infinite;
}

.heat-wave--fast {
  animation: heat-wave 1.5s ease-in-out infinite;
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.float {
  animation: float 4s ease-in-out infinite;
}

/* Scroll reveal animations (triggered via IntersectionObserver JS) */
.animate-fade-up {
  animation: fade-up 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

.animate-slide-left {
  opacity: 0;
  animation: slide-left 0.6s ease-out forwards;
}

.animate-slide-right {
  opacity: 0;
  animation: slide-right 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scale-in 0.5s ease-out forwards;
}

/* Stagger children */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

.animate-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   12. FROST & PATTERN OVERLAYS
   ========================================================== */

.frost-pattern {
  position: relative;
}

.frost-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.015) 10px,
    rgba(255, 255, 255, 0.015) 11px
  );
  pointer-events: none;
  z-index: 1;
}

.frost-pattern--subtle::after {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.008) 20px,
    rgba(255, 255, 255, 0.008) 21px
  );
}

/* Grid pattern overlay */
.grid-pattern {
  position: relative;
}

.grid-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}


/* ==========================================================
   13. BADGES & TAGS
   ========================================================== */

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(45, 74, 107, 0.3), rgba(15, 26, 46, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pill-tag--hot {
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.2), rgba(168, 76, 21, 0.3));
  border-color: rgba(244, 121, 32, 0.3);
  color: var(--ember);
}

.pill-tag--cold {
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.3), rgba(5, 13, 26, 0.4));
  border-color: rgba(45, 74, 107, 0.3);
  color: var(--ice);
}

.pill-tag--active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--white);
}

.pill-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-ember-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge--hot {
  background: rgba(244, 121, 32, 0.15);
  color: var(--ember);
  border: 1px solid rgba(244, 121, 32, 0.25);
}

.badge--cold {
  background: rgba(45, 74, 107, 0.2);
  color: var(--ice);
  border: 1px solid rgba(45, 74, 107, 0.3);
}

.badge--new {
  background: rgba(244, 121, 32, 0.2);
  color: var(--ember-light);
  animation: pulse-glow 2s ease-in-out infinite;
}


/* ==========================================================
   14. SECTION DIVIDERS
   ========================================================== */

.section-divider {
  width: 100%;
  height: 1px;
  position: relative;
  margin: var(--space-16) 0;
}

.section-divider--gradient {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(244, 121, 32, 0.2) 20%,
    rgba(244, 121, 32, 0.4) 40%,
    rgba(45, 74, 107, 0.4) 60%,
    rgba(45, 74, 107, 0.2) 80%,
    transparent 100%
  );
}

.section-divider--glow {
  height: 2px;
  background: transparent;
  box-shadow: 0 0 15px rgba(244, 121, 32, 0.2);
  border: none;
}

.section-divider__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ash);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-divider__icon svg {
  width: 20px;
  height: 20px;
  color: var(--ember);
}


/* ==========================================================
   15. BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn--xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-lg);
}

/* Primary — Ember/Hot */
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(244, 121, 32, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ember-light), var(--ember));
  box-shadow: 0 6px 25px rgba(244, 121, 32, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(244, 121, 32, 0.3);
}

/* Secondary — Steel/Cold */
.btn-secondary {
  background: linear-gradient(135deg, var(--steel), var(--steel-dark));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(45, 74, 107, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--steel-light), var(--steel));
  box-shadow: 0 6px 25px rgba(45, 74, 107, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--gray-200);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(244, 121, 32, 0.08);
  transform: translateY(-2px);
}

/* Outline variants */
.btn-outline-ember {
  background: transparent;
  color: var(--ember);
  border-color: var(--ember);
}

.btn-outline-ember:hover {
  background: var(--ember);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-steel {
  background: transparent;
  color: var(--ice);
  border-color: var(--steel);
}

.btn-outline-steel:hover {
  background: var(--steel);
  color: var(--white);
  transform: translateY(-2px);
}

/* Full width */
.btn--block {
  width: 100%;
}

/* Disabled state */
.btn:disabled,
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon button (circular) */
.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 26, 46, 0.4);
  color: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-icon:hover {
  background: rgba(244, 121, 32, 0.15);
  border-color: var(--ember);
  color: var(--ember);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}


/* ==========================================================
   16. NAVIGATION
   ========================================================== */

.nav-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base);
}

.nav-blur--scrolled {
  background: rgba(5, 10, 20, 0.95);
  border-bottom-color: rgba(244, 121, 32, 0.15);
}

.nav-blur__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  max-width: 1280px;
  margin: 0 auto;
}

.nav-blur__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wider);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-blur__logo:hover {
  color: var(--ember);
}

.nav-blur__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-blur__link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-blur__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-blur__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-blur__link:hover::after {
  width: 60%;
}

.nav-blur__link--active {
  color: var(--ember);
}

.nav-blur__link--active::after {
  width: 60%;
  background: var(--ember);
}

/* Mobile menu toggle */
.nav-blur__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  cursor: pointer;
}

.nav-blur__toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav open states */
.nav-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-8);
  gap: var(--space-2);
  z-index: var(--z-nav);
  overflow-y: auto;
}

.nav-open .nav-blur__link {
  font-size: var(--text-2xl);
  padding: var(--space-4);
  border-bottom: 1px solid var(--gray-800);
}

.menu-open .menu-icon__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-icon__bar:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-icon__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation overlay */
.overlay-visible {
  display: block !important;
}

/* ==========================================================
   16b. LANGUAGE SWITCHER
   ========================================================== */

.lang-switcher-item {
  list-style: none;
  margin-left: var(--space-2);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(244, 121, 32, 0.15);
  border-color: var(--ember);
  color: var(--ember);
}

.lang-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ==========================================================
   16c. COOKIE CONSENT BANNER
   ========================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background: var(--ash-light);
  border-top: 1px solid var(--gray-700);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  box-shadow: 0 -8px 30px rgba(5, 10, 20, 0.5);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.cookie-banner p {
  font-size: var(--text-sm);
  color: var(--gray-300);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-btn {
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-accept {
  background: var(--ember);
  color: var(--white);
}

.cookie-accept:hover {
  background: var(--ember-light);
}

.cookie-decline {
  background: transparent;
  color: var(--gray-400);
  border-color: var(--gray-700);
}

.cookie-decline:hover {
  border-color: var(--gray-500);
  color: var(--white);
}

.cookie-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4);
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   16d. FORM STATUS & FIELD ERRORS
   ========================================================== */

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  transition: all var(--transition-base);
}

.form-status.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-status.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.form-status.form-loading {
  background: rgba(244, 121, 32, 0.05);
  border: 1px solid rgba(244, 121, 32, 0.15);
  color: var(--gray-300);
}

.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ==========================================================
   16e. NAV OVERLAY (mobile background)
   ========================================================== */

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(5, 10, 20, 0.6);
}
   ========================================================== */

/* Project cards */
.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ash-light);
  border: 1px solid var(--gray-800);
  transition: all var(--transition-base);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 121, 32, 0.3);
  box-shadow: 0 12px 40px rgba(5, 10, 20, 0.4), var(--glow-ember-sm);
}

.project-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: var(--space-6);
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.project-card__description {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.2), rgba(15, 26, 46, 0.6));
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

/* Product cards */
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ash-light);
  border: 1px solid var(--gray-800);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(244, 121, 32, 0.25);
  box-shadow: 0 8px 30px rgba(5, 10, 20, 0.35);
  transform: translateY(-3px);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--gray-800);
}

.product-card__body {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-2);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-800);
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  color: var(--ember);
}

/* Service card */
.service-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.1), rgba(45, 74, 107, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.2), rgba(45, 74, 107, 0.2));
  border-color: rgba(244, 121, 32, 0.2);
  box-shadow: var(--glow-ember-sm);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--ember);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.service-card__description {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
}


/* ==========================================================
   18. TIMELINE (Services Page)
   ========================================================== */

.timeline {
  position: relative;
  padding-left: var(--space-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--ember) 0%,
    var(--steel) 50%,
    transparent 100%
  );
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-12);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-12) + 7px);
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--ember);
  border: 3px solid var(--ash);
  box-shadow: 0 0 0 2px var(--ember), var(--glow-ember-sm);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline__item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--ember), 0 0 20px rgba(244, 121, 32, 0.4);
}

.timeline-dot--cold {
  background: var(--steel);
  box-shadow: 0 0 0 2px var(--steel), var(--glow-ice-sm);
}

.timeline__item:hover .timeline-dot--cold {
  box-shadow: 0 0 0 3px var(--steel), 0 0 20px rgba(45, 74, 107, 0.4);
}

.timeline-line {
  position: absolute;
  left: calc(-1 * var(--space-12) + 15px);
  top: 22px;
  width: 2px;
  bottom: 0;
  background: linear-gradient(180deg, var(--ember), var(--steel));
  opacity: 0.3;
}

.timeline__content {
  background: rgba(15, 26, 46, 0.5);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.timeline__item:hover .timeline__content {
  border-color: rgba(244, 121, 32, 0.2);
  background: rgba(15, 26, 46, 0.7);
}

.timeline__date {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.timeline__text {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
}


/* ==========================================================
   19. FOOTER
   ========================================================== */

.footer-dark {
  background: var(--black);
  border-top: 1px solid var(--gray-800);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.footer-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(244, 121, 32, 0.3) 30%,
    rgba(45, 74, 107, 0.3) 70%,
    transparent 100%
  );
}

.footer-dark__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-dark__brand {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-wider);
  color: var(--white);
  margin-bottom: var(--space-4);
  display: block;
  text-transform: uppercase;
}

.footer-dark__description {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  max-width: 320px;
}

.footer-dark__heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wide);
  color: var(--white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
}

.footer-dark__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-dark__link {
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: all var(--transition-fast);
  position: relative;
  width: fit-content;
}

.footer-dark__link::before {
  content: '→';
  opacity: 0;
  margin-right: 0;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-dark__link:hover {
  color: var(--ember);
  padding-left: var(--space-3);
}

.footer-dark__link:hover::before {
  opacity: 1;
  margin-right: var(--space-1);
}

.footer-dark__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer-dark__social {
  display: flex;
  gap: var(--space-3);
}

.footer-dark__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-800);
  color: var(--gray-500);
  transition: all var(--transition-fast);
}

.footer-dark__social-link:hover {
  border-color: var(--ember);
  color: var(--ember);
  background: rgba(244, 121, 32, 0.1);
  transform: translateY(-2px);
}

.footer-dark__social-link svg {
  width: 16px;
  height: 16px;
}


/* ==========================================================
   20. HOVER STATES
   ========================================================== */

.hover\:bg-ember:hover { background-color: var(--ember); }
.hover\:bg-ember-dark:hover { background-color: var(--ember-dark); }
.hover\:bg-steel:hover { background-color: var(--steel); }
.hover\:bg-steel-dark:hover { background-color: var(--steel-dark); }
.hover\:bg-ash-light:hover { background-color: var(--ash-light); }
.hover\:bg-gray-800:hover { background-color: var(--gray-800); }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }

.hover\:text-ember:hover { color: var(--ember); }
.hover\:text-ember-light:hover { color: var(--ember-light); }
.hover\:text-steel:hover { color: var(--steel); }
.hover\:text-white:hover { color: var(--white); }
.hover\:text-ice:hover { color: var(--ice); }

.hover\:border-ember:hover { border-color: var(--ember); }
.hover\:border-steel:hover { border-color: var(--steel); }

.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-1:hover { transform: translateY(-2px); }
.hover\:-translate-y-2:hover { transform: translateY(-4px); }

.hover\:shadow-lg:hover { box-shadow: var(--shadow-lg); }
.hover\:glow-ember:hover { box-shadow: var(--glow-ember); }
.hover\:glow-ice:hover { box-shadow: var(--glow-ice); }


/* ==========================================================
   21. FORM ELEMENTS
   ========================================================== */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--white);
  background: rgba(15, 26, 46, 0.5);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-600);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1), var(--glow-ember-sm);
  background: rgba(15, 26, 46, 0.8);
}

.form-input--error {
  border-color: #ef4444;
}

.form-error {
  font-size: var(--text-xs);
  color: #ef4444;
  margin-top: var(--space-1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8bdc9' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}


/* ==========================================================
   22. RESPONSIVE UTILITIES
   ========================================================== */

/* Hide on mobile */
.hide-mobile { display: revert; }
.show-mobile { display: none; }

/* Hide on tablet */
.hide-tablet { display: revert; }
.show-tablet { display: none; }

/* Hide on desktop */
.hide-desktop { display: none; }
.show-desktop { display: revert; }

/* Responsive container padding */
@media (max-width: 640px) {
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-12) 0; }
  .section--lg { padding: var(--space-16) 0; }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hide-mobile { display: none !important; }
  .show-mobile { display: revert !important; }

  .hero-split { flex-direction: column; }
  .hero-split__hot,
  .hero-split__cold { padding: var(--space-8) var(--space-4); }

  .footer-dark__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-dark__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .nav-blur__links { display: none; }
  .nav-blur__toggle { display: flex; }

  .thermal-divide { flex-direction: column; }

  .timeline { padding-left: var(--space-10); }

  .btn--xl {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .container { padding: 0 var(--space-5); }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .hide-tablet { display: none !important; }
  .show-tablet { display: revert !important; }

  .footer-dark__grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
}

/* Desktop */
@media (min-width: 1025px) {
  .hide-desktop { display: none !important; }
  .show-desktop { display: revert !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}


/* ==========================================================
   23. CUSTOM SCROLLBAR
   ========================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ash);
  border: 1px solid var(--gray-800);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--steel), var(--ember-dark));
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-800);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--steel-light), var(--ember));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--steel) var(--ash);
}


/* ==========================================================
   24. MISC & HELPER UTILITIES
   ========================================================== */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; top: 0; z-index: var(--z-sticky); }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.overflow-hidden { overflow: hidden; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.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: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.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-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.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); }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }

.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; }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.tracking-widest { letter-spacing: var(--tracking-widest); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-700);
  border-top-color: var(--ember);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-800) 25%,
    var(--gray-700) 50%,
    var(--gray-800) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
  margin: var(--space-8) 0;
}

/* Thermal gradient divider bar */
.thermal-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--ember), var(--steel), var(--ash));
  border: none;
}

/* Corner accent decoration */
.corner-accent {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--ember);
  opacity: 0.3;
}

.corner-accent--tl {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner-accent--tr {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner-accent--bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner-accent--br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Print styles */
@media print {
  .nav-blur,
  .footer-dark,
  .btn { display: none !important; }
  body { background: white; color: black; }
}


/* ==========================================================
   25. SECTION THEME VARIANTS
   ========================================================== */

/* Hot-themed section */
.section--hot {
  background: linear-gradient(180deg, rgba(244, 121, 32, 0.05), transparent);
}

.section--hot .section__title {
  color: var(--ember);
}

/* Cold-themed section */
.section--cold {
  background: linear-gradient(180deg, rgba(26, 58, 92, 0.08), transparent);
}

.section--cold .section__title {
  color: var(--ice);
}

/* Split-themed section */
.section--thermal {
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.03) 0%, transparent 50%, rgba(26, 58, 92, 0.05) 100%);
}

/* Section title with decorative line */
.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-400);
  max-width: 640px;
  line-height: var(--leading-relaxed);
}

.section__subtitle--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__header {
  margin-bottom: var(--space-12);
  text-align: center;
}

.section__header--left {
  text-align: left;
}


/* ==========================================================
   26. COUNTER / STATS
   ========================================================== */

.stat-item {
  text-align: center;
  padding: var(--space-6);
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-wide);
  background: var(--gradient-thermal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-item__label {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: var(--space-2);
}


/* ==========================================================
   27. TESTIMONIAL CARDS
   ========================================================== */

.testimonial-card {
  background: rgba(15, 26, 46, 0.4);
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: rgba(244, 121, 32, 0.15);
  transform: translateY(-3px);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--gray-300);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--ember);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: var(--space-2);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--gray-700);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--white);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--gray-500);
}


/* ==========================================================
   28. FEATURE GRID
   ========================================================== */

.feature-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(244, 121, 32, 0.1), rgba(45, 74, 107, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-item__icon svg {
  width: 22px;
  height: 22px;
  color: var(--ember);
}

.feature-item__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
  text-transform: uppercase;
}

.feature-item__text {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: var(--leading-relaxed);
}


/* ==========================================================
   29. MODAL / OVERLAY
   ========================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.modal-overlay--open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--ash-light);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.modal-overlay--open .modal {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal__close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}


/* ==========================================================
   30. NOTIFICATION / TOAST
   ========================================================== */

.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  padding: var(--space-4) var(--space-6);
  background: var(--ash-light);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-spring);
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  border-left: 3px solid #22c55e;
}

.toast--error {
  border-left: 3px solid #ef4444;
}

.toast--info {
  border-left: 3px solid var(--ember);
}
