/* ================================================================
   AAYUNEX INNOVATIONS - Design System
   main.css - Orange flame + Navy blue brand, Plus Jakarta Sans headings
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ================================================================
   1. THEME: DARK (default)
================================================================ */
:root,
[data-theme="dark"] {
  --bg-primary:    #0F1824;
  --bg-secondary:  #141F2E;
  --bg-card:       #1A2840;
  --bg-card-hover: #1F304A;
  --bg-elevated:   #243854;
  --bg-glass:      rgba(15, 24, 36, 0.88);
  --bg-white:      #141F2E;
  --bg-white-alt:  #0F1824;

  --text-primary:        #C8DCEF;
  --text-secondary:      #7898B8;
  --text-heading:        #F2F8FF;
  --text-muted:          #526E88;
  --text-dark:           #F2F8FF;
  --text-dark-secondary: #A8C8E0;

  /* PRIMARY: Orange - the Flame */
  --orange:             #D96515;
  --orange-hover:       #C25510;
  --orange-deep:        #A84208;
  --orange-light:       #ED7B2E;
  --orange-soft:        #E88040;
  --orange-glow:        rgba(217, 101, 21, 0.13);
  --orange-glow-strong: rgba(217, 101, 21, 0.26);

  /* SECONDARY: Blue - the Ring/Authority */
  --blue:             #2B5EE8;
  --blue-hover:       #1A4DD0;
  --blue-deep:        #1240B0;
  --blue-light:       #5288FF;
  --blue-soft:        #7AADFF;
  --blue-glow:        rgba(43, 94, 232, 0.13);
  --blue-glow-strong: rgba(43, 94, 232, 0.27);

  /* Backward compat aliases */
  --accent-orange:           #D96515;
  --accent-orange-hover:     #C25510;
  --accent-orange-soft:      #E88040;
  --accent-orange-glow:      rgba(217, 101, 21, 0.13);
  --accent-blue:             #2B5EE8;
  --accent-blue-hover:       #1A4DD0;
  --accent-blue-deep:        #1240B0;
  --accent-blue-soft:        #7AADFF;
  --accent-blue-light:       #9EC4FF;
  --accent-blue-glow:        rgba(43, 94, 232, 0.13);
  --accent-blue-glow-strong: rgba(43, 94, 232, 0.27);
  --accent-teal:             #22D3EE;
  --accent-indigo:           #818CF8;

  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error:   #EF4444;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light:  rgba(255, 255, 255, 0.11);
  --border-medium: rgba(255, 255, 255, 0.17);
  --border-white:  rgba(255, 255, 255, 0.08);
  --border-dark:   rgba(0, 0, 0, 0.35);
  --border-orange: rgba(217, 101, 21, 0.22);
  --border-blue:   rgba(43, 94, 232, 0.22);

  --shadow-sm:       0 1px 4px rgba(0, 0, 0, 0.35);
  --shadow-md:       0 4px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg:       0 12px 50px rgba(0, 0, 0, 0.50);
  --shadow-xl:       0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-orange:   0 4px 22px rgba(217, 101, 21, 0.32);
  --shadow-orange-lg:0 8px 44px rgba(217, 101, 21, 0.18);
  --shadow-blue:     0 4px 22px rgba(43, 94, 232, 0.32);
  --shadow-blue-lg:  0 8px 42px rgba(43, 94, 232, 0.18);
  --shadow-card:     0 1px 4px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.07);

  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --container-max:    1280px;
  --container-narrow: 960px;
  --gutter:           1.5rem;
  --section-padding:  6rem;

  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-2xl:  18px;
  --radius-full: 9999px;

  --transition-fast:   140ms ease;
  --transition-base:   240ms ease;
  --transition-slow:   380ms ease;
  --transition-spring: 480ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 580ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-dropdown: 100;
  --z-navbar:   1000;
  --z-modal:    2000;
  --z-toast:    3000;
}

/* ================================================================
   2. THEME: LIGHT
================================================================ */
[data-theme="light"] {
  --bg-primary:    #F5F5F7;
  --bg-secondary:  #EAEAEE;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F8F8FA;
  --bg-elevated:   #E2E2E8;
  --bg-glass:      rgba(255, 255, 255, 0.95);
  --bg-white:      #FFFFFF;
  --bg-white-alt:  #F7F7FA;

  --text-primary:        #1C2B3A;
  --text-secondary:      #4B6278;
  --text-heading:        #0C1824;
  --text-muted:          #8296A8;
  --text-dark:           #0C1824;
  --text-dark-secondary: #2C4560;

  --orange:             #C8500F;
  --orange-hover:       #B24208;
  --orange-deep:        #9A3A07;
  --orange-light:       #DC6420;
  --orange-soft:        #CA5510;
  --orange-glow:        rgba(200, 80, 15, 0.09);
  --orange-glow-strong: rgba(200, 80, 15, 0.20);

  --blue:             #1A4DD0;
  --blue-hover:       #1440B8;
  --blue-deep:        #1035A0;
  --blue-light:       #2B60E0;
  --blue-soft:        #3A70E8;
  --blue-glow:        rgba(26, 77, 208, 0.09);
  --blue-glow-strong: rgba(26, 77, 208, 0.20);

  --accent-orange:           #C8500F;
  --accent-orange-hover:     #B24208;
  --accent-orange-soft:      #CA5510;
  --accent-orange-glow:      rgba(200, 80, 15, 0.09);
  --accent-blue:             #1A4DD0;
  --accent-blue-hover:       #1440B8;
  --accent-blue-deep:        #1035A0;
  --accent-blue-soft:        #3A70E8;
  --accent-blue-light:       #4A80F0;
  --accent-blue-glow:        rgba(26, 77, 208, 0.09);
  --accent-blue-glow-strong: rgba(26, 77, 208, 0.20);
  --accent-teal:   #0891B2;
  --accent-indigo: #4F46E5;

  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-error:   #DC2626;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light:  rgba(0, 0, 0, 0.12);
  --border-medium: rgba(0, 0, 0, 0.16);
  --border-white:  rgba(0, 0, 0, 0.06);
  --border-dark:   rgba(0, 0, 0, 0.14);
  --border-orange: rgba(200, 80, 15, 0.20);
  --border-blue:   rgba(26, 77, 208, 0.20);

  --shadow-sm:        0 1px 3px rgba(0,0,0,0.09), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:        0 4px 14px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.07);
  --shadow-lg:        0 10px 34px rgba(0,0,0,0.12);
  --shadow-xl:        0 20px 52px rgba(0,0,0,0.14);
  --shadow-orange:    0 4px 18px rgba(200, 80, 15, 0.26);
  --shadow-orange-lg: 0 8px 38px rgba(200, 80, 15, 0.16);
  --shadow-blue:      0 4px 18px rgba(26, 77, 208, 0.22);
  --shadow-blue-lg:   0 8px 38px rgba(26, 77, 208, 0.14);
  --shadow-card:      0 1px 4px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.05);
}


/* ================================================================
   3. RESET & BASE
================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

::selection { background-color: var(--orange); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }


/* ================================================================
   4. TYPOGRAPHY
================================================================ */
.headline-xl {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-heading);
}

.headline-lg {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.headline-md {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.headline-sm {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-heading);
}

.body-lg { font-size: 1.125rem; line-height: 1.75; color: var(--text-secondary); }
.body-md { font-size: 1rem;     line-height: 1.65; color: var(--text-secondary); }
.body-sm { font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); }

.label-md {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

[data-theme="light"] .label-md { color: var(--orange); }

/* Text utilities */
.text-orange   { color: var(--orange); }
.text-blue     { color: var(--blue-soft); }
.text-white    { color: var(--text-heading); }
.text-muted    { color: var(--text-secondary); }

[data-theme="light"] .text-blue { color: var(--blue); }

.text-gradient {
  background: linear-gradient(125deg, #ED7B2E 0%, #D96515 50%, #B84A08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(125deg, #D96520 0%, #C55210 55%, #A83C08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .text-orange { color: var(--orange); }


/* ================================================================
   5. LAYOUT
================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-padding) 0; }

.section-dark      { background-color: var(--bg-primary); }
.section-darker    { background-color: var(--bg-secondary); }
.section-light     { background-color: var(--bg-white); color: var(--text-dark); }
.section-light-alt { background-color: var(--bg-white-alt); color: var(--text-dark); }

.section-light .headline-xl,
.section-light .headline-lg,
.section-light .headline-md,
.section-light .headline-sm,
.section-light-alt .headline-xl,
.section-light-alt .headline-lg,
.section-light-alt .headline-md,
.section-light-alt .headline-sm { color: var(--text-dark); }

.section-light .body-lg,
.section-light .body-md,
.section-light-alt .body-lg,
.section-light-alt .body-md { color: var(--text-dark-secondary); }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 1rem; }
.gap-lg  { gap: 1.5rem; }
.gap-xl  { gap: 2rem; }
.gap-2xl { gap: 3rem; }

.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.mx-auto     { margin-left: auto; margin-right: auto; }
.max-w-lg    { max-width: 720px; }
.max-w-md    { max-width: 560px; }


/* ================================================================
   6. SECTION HEADER
================================================================ */
.section-header { margin-bottom: 3rem; }

.section-header.text-center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .label-md  { margin-bottom: 0.75rem; display: block; }
.section-header .headline-lg { margin-bottom: 1rem; }
.section-header .body-lg   { max-width: 600px; }
.section-header.text-center .body-lg { margin-left: auto; margin-right: auto; }


/* ================================================================
   7. BADGE
================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.badge-orange {
  background-color: var(--orange-glow);
  color: var(--orange-soft);
  border: 1px solid var(--border-orange);
}

.badge-blue {
  background-color: var(--blue-glow);
  color: var(--blue-soft);
  border: 1px solid var(--border-blue);
}

[data-theme="light"] .badge-orange {
  background-color: rgba(232, 96, 16, 0.08);
  color: var(--orange);
  border-color: rgba(232, 96, 16, 0.22);
}

[data-theme="light"] .badge-blue {
  background-color: rgba(26, 77, 208, 0.08);
  color: var(--blue);
  border-color: rgba(26, 77, 208, 0.22);
}

.badge-dark {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.badge-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

.badge-pulse::before {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}


/* ================================================================
   8. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Shimmer */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px var(--orange-glow-strong);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
  box-shadow: 0 6px 28px var(--orange-glow-strong);
  transform: translateY(-2px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background-color: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  background-color: var(--orange-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-heading);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange-soft);
  background-color: var(--orange-glow);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-outline,
[data-theme="light"] .btn-secondary {
  color: var(--text-dark);
  border-color: rgba(0,0,0,0.18);
}

[data-theme="light"] .btn-outline:hover,
[data-theme="light"] .btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background-color: rgba(232, 96, 16, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  padding: 0.5rem 0;
}

.btn-ghost:hover { color: var(--orange-soft); }
.btn-ghost .btn-arrow { transition: transform var(--transition-base); }
.btn-ghost:hover .btn-arrow { transform: translateX(5px); }

[data-theme="light"] .btn-ghost { color: var(--text-dark); }
[data-theme="light"] .btn-ghost:hover { color: var(--orange); }

.section-light .btn-secondary,
.section-light .btn-ghost,
.section-light-alt .btn-secondary,
.section-light-alt .btn-ghost { color: var(--text-dark); }

.section-light .btn-secondary:hover,
.section-light-alt .btn-secondary:hover {
  border-color: var(--orange);
  background-color: rgba(232,96,16,0.05);
}

.btn-lg   { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm   { padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.btn-icon { font-size: 1.1em; line-height: 0; }

.btn i, .btn svg { width: 18px; height: 18px; stroke-width: 2px; flex-shrink: 0; }
.btn-sm i, .btn-sm svg { width: 15px; height: 15px; }


/* ================================================================
   9. NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: 0.75rem var(--gutter);
  background: rgba(5, 10, 20, 0.70);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(245, 115, 32, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  padding: 0.4rem var(--gutter);
  background: rgba(5, 10, 20, 0.96);
  border-bottom-color: rgba(245, 115, 32, 0.14);
  box-shadow: 0 4px 32px rgba(0,0,0,0.45);
}

[data-theme="light"] .navbar {
  background: rgba(248, 250, 251, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 251, 0.97);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border-bottom-color: rgba(0,0,0,0.09);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  height: 64px;
  gap: 1.5rem;
  transition: height 0.4s ease;
}

.navbar.scrolled .navbar-inner { height: 54px; }

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: all var(--transition-spring);
}

.navbar-logo:hover { opacity: 0.9; }

.navbar-logo img {
  height: 36px;
  width: auto;
  transition: height 0.4s ease;
}

.navbar.scrolled .navbar-logo img { height: 30px; }

.navbar-logo .logo-text-accent { color: var(--orange-soft); }

[data-theme="light"] .navbar-logo .logo-text-accent { color: var(--orange); }

/* Desktop Links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  transition: all 0.22s ease;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--orange);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-links a:hover {
  color: var(--text-heading);
  background: rgba(255,255,255,0.04);
}

.navbar-links a:hover::after { transform: scaleX(1); }

.navbar-links a.active {
  color: var(--orange-soft);
  font-weight: 600;
  background: var(--orange-glow);
}

.navbar-links a.active::after { transform: scaleX(1); }

[data-theme="light"] .navbar-links a { color: var(--text-secondary); }
[data-theme="light"] .navbar-links a:hover { color: var(--text-dark); background: rgba(0,0,0,0.04); }
[data-theme="light"] .navbar-links a.active { color: var(--orange); background: rgba(232,96,16,0.07); }
[data-theme="light"] .navbar-links a::after { background: var(--orange); }

/* CTA */
.navbar-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

/* Theme Switcher — pill toggle */
.navbar-theme-switcher {
  display: flex;
  gap: 0;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px;
  margin-left: 0.5rem;
}

.theme-dot {
  height: 27px;
  min-width: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.18s ease;
}

.theme-dot::before {
  line-height: 1;
  font-style: normal;
}

.theme-dot[data-theme="light"]::before { content: '☀'; }
.theme-dot[data-theme="dark"]::before  { content: '☽'; }
.theme-dot[data-theme="orange"] { display: none; }

.theme-dot:hover { color: var(--text-primary); }

.theme-dot.active {
  background: rgba(255,255,255,0.12);
  color: var(--orange);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.08);
}

[data-theme="light"] .navbar-theme-switcher {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .theme-dot.active {
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
}

/* Mobile Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 2);
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 1px;
  transition: all 0.28s ease;
  transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(5px) translateX(5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-5px) translateX(5px); }

/* ── Mobile Menu Panel ───────────────────────────────────── */
.navbar-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 78vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-orange);
  z-index: calc(var(--z-navbar) + 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 2rem;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  box-shadow: -20px 0 64px rgba(0, 0, 0, 0.55);
}

.navbar-mobile-menu.open { transform: translateX(0); }

/* Orange top stripe */
.navbar-mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 55%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Header row */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.mobile-menu-logo img { height: 28px; width: auto; }
.mobile-menu-logo .logo-text-accent { color: var(--orange-soft); }
[data-theme="light"] .mobile-menu-logo .logo-text-accent { color: var(--orange); }

/* Close button — circular */
.navbar-mobile-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 50%;
  color: var(--orange-soft);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}
.navbar-mobile-close:hover {
  background: var(--orange-glow-strong);
  border-color: rgba(217, 101, 21, 0.42);
  transform: rotate(90deg) scale(1.1);
}
.navbar-mobile-close svg, .navbar-mobile-close i { width: 16px; height: 16px; }

/* Backdrop */
.navbar-mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-navbar);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.navbar-mobile-backdrop.open { opacity: 1; visibility: visible; }

/* ── Nav links ───────────────────────────────────────────── */
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.75rem 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.8125rem 0.875rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid transparent;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-nav a:active { transform: scale(0.97); }

/* Icon box */
.mnav-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mnav-icon svg, .mnav-icon i { width: 16px; height: 16px; stroke-width: 2px; }

/* Label */
.mnav-text {
  flex: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Chevron */
.mnav-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.mnav-chevron svg, .mnav-chevron i { width: 14px; height: 14px; stroke-width: 2.5px; }

/* Hover */
.mobile-menu-nav a:hover {
  color: var(--orange-soft);
  background: linear-gradient(130deg, rgba(217, 101, 21, 0.11) 0%, rgba(217, 101, 21, 0.04) 100%);
  border-color: rgba(217, 101, 21, 0.20);
}

/* Active */
.mobile-menu-nav a.active {
  color: var(--orange-soft);
  background: linear-gradient(130deg, rgba(217, 101, 21, 0.15) 0%, rgba(217, 101, 21, 0.06) 100%);
  border-color: rgba(217, 101, 21, 0.30);
}

.mobile-menu-nav a:hover .mnav-icon,
.mobile-menu-nav a.active .mnav-icon {
  background: rgba(217, 101, 21, 0.14);
  border-color: rgba(217, 101, 21, 0.30);
  color: var(--orange);
}

.mobile-menu-nav a:hover .mnav-chevron,
.mobile-menu-nav a.active .mnav-chevron {
  opacity: 1;
  transform: translateX(0);
  color: var(--orange-soft);
}

/* Light theme */
[data-theme="light"] .mobile-menu-nav a:hover {
  color: var(--orange);
  background: linear-gradient(130deg, rgba(197, 82, 16, 0.08) 0%, rgba(197, 82, 16, 0.03) 100%);
  border-color: rgba(197, 82, 16, 0.18);
}
[data-theme="light"] .mobile-menu-nav a.active {
  color: var(--orange);
  background: linear-gradient(130deg, rgba(197, 82, 16, 0.11) 0%, rgba(197, 82, 16, 0.05) 100%);
  border-color: rgba(197, 82, 16, 0.24);
}
[data-theme="light"] .mobile-menu-nav a:hover .mnav-icon,
[data-theme="light"] .mobile-menu-nav a.active .mnav-icon {
  background: rgba(197, 82, 16, 0.10);
  border-color: rgba(197, 82, 16, 0.25);
  color: var(--orange);
}
[data-theme="light"] .mnav-icon {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Stagger-in animation when menu opens */
@keyframes mnav-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.navbar-mobile-menu.open .mobile-menu-nav a {
  animation: mnav-in 0.32s ease both;
}
.navbar-mobile-menu.open .mobile-menu-nav a:nth-child(1) { animation-delay: 0.09s; }
.navbar-mobile-menu.open .mobile-menu-nav a:nth-child(2) { animation-delay: 0.14s; }
.navbar-mobile-menu.open .mobile-menu-nav a:nth-child(3) { animation-delay: 0.18s; }
.navbar-mobile-menu.open .mobile-menu-nav a:nth-child(4) { animation-delay: 0.22s; }
.navbar-mobile-menu.open .mobile-menu-nav a:nth-child(5) { animation-delay: 0.26s; }

/* Divider */
.navbar-mobile-menu .mobile-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1rem 1rem 0.875rem;
}

/* Contact button */
.navbar-mobile-menu .btn { margin: 0 0.75rem; justify-content: center; }

.mobile-theme-switcher {
  display: none;
  padding: 0.875rem 0.875rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.mobile-theme-switcher-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

/* Pill toggle container */
.mobile-theme-buttons {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.mobile-theme-btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0.5625rem 0;
  border-radius: 999px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.18s ease;
}

.mobile-theme-btn[data-theme="orange"] { display: none; }

.mobile-theme-btn::before {
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.mobile-theme-btn[data-theme="light"]::before { content: '☀'; }
.mobile-theme-btn[data-theme="dark"]::before  { content: '☽'; }

/* Hide old preview circle */
.mobile-theme-btn .theme-preview { display: none; }

.mobile-theme-btn .theme-name {
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.mobile-theme-btn:hover { background-color: rgba(255,255,255,0.06); }

.mobile-theme-btn.active {
  background-color: rgba(255,255,255,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.08);
}
.mobile-theme-btn.active::before { color: var(--orange); }
.mobile-theme-btn.active .theme-name { color: var(--orange); font-weight: 700; }

[data-theme="light"] .mobile-theme-buttons {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .mobile-theme-btn.active {
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.06);
}


/* ================================================================
   10. FOOTER
================================================================ */
.footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,115,32,0.5) 35%, rgba(43,94,232,0.4) 65%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand { max-width: 320px; }

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.footer-brand-logo img { height: 32px; width: auto; }

.footer-brand-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.5rem; }

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a i,
.footer-social a svg {
  width: 17px; height: 17px;
  stroke-width: 2px;
  stroke: currentColor;
  fill: none;
  display: block;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

[data-theme="light"] .footer-column h4 { color: var(--orange); }

.footer-column ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-column a { font-size: 0.875rem; color: var(--text-secondary); transition: all var(--transition-fast); }
.footer-column a:hover { color: var(--text-heading); padding-left: 5px; }

[data-theme="light"] .footer-column a:hover { color: var(--text-dark); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-bottom-links a:hover { color: var(--text-heading); }


/* ================================================================
   11. CARDS
================================================================ */

/* Feature Card */
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.feature-card:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-orange);
}

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

.feature-card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background-color: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange-soft);
  transition: all var(--transition-base);
  border: 1px solid var(--border-orange);
}

[data-theme="light"] .feature-card-icon { color: var(--orange); background: rgba(232,96,16,0.07); }

.feature-card:hover .feature-card-icon {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-orange);
  transform: scale(1.12) rotate(-5deg);
}

.feature-card-icon i, .feature-card-icon svg { width: 22px; height: 22px; stroke-width: 2px; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p { font-size: 0.9rem; line-height: 1.6; color: var(--text-secondary); }

.section-light .feature-card,
.section-light-alt .feature-card {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.section-light .feature-card:hover,
.section-light-alt .feature-card:hover {
  box-shadow: var(--shadow-orange);
  border-color: rgba(232,96,16,0.22);
}

.section-light .feature-card h3, .section-light-alt .feature-card h3 { color: var(--text-dark); }
.section-light .feature-card p, .section-light-alt .feature-card p { color: var(--text-dark-secondary); }

/* Achievement Card */
.achievement-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-orange);
}

.achievement-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--border-subtle);
}

.achievement-card-content { padding: 1.25rem; }
.achievement-card-content .badge { margin-bottom: 0.75rem; }

.achievement-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.achievement-card-content p { font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); }

/* Team Card */
.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--border-orange);
  box-shadow: var(--shadow-orange);
}

.team-card-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  background-color: var(--bg-elevated);
  border: 3px solid var(--border-light);
  transition: border-color var(--transition-base);
}

.team-card:hover .team-card-avatar { border-color: var(--orange); }
.team-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.team-card .team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

[data-theme="light"] .team-card .team-role { color: var(--orange); }

.team-card p { font-size: 0.875rem; line-height: 1.55; color: var(--text-secondary); margin-bottom: 1rem; }

.team-card .team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-soft);
  transition: color var(--transition-fast);
}

.team-card .team-linkedin:hover { color: var(--text-heading); }


/* ================================================================
   12. FORMS
================================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-secondary); opacity: 0.5; }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
  outline: none;
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B8BAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.section-light .form-input,
.section-light .form-textarea,
.section-light .form-select {
  background-color: var(--bg-elevated);
  border-color: var(--border-medium);
  color: var(--text-dark);
}


/* ================================================================
   13. STAT COUNTER
================================================================ */
.stat { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}


/* ================================================================
   14. LOGO STRIP
================================================================ */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1.5rem 0;
}

.logo-strip img {
  height: 36px;
  width: auto;
  opacity: 1;
  transition: all 0.3s ease;
  filter: none;
}

[data-theme="light"] .logo-strip img { filter: none; opacity: 1; }

.logo-strip img:hover { filter: drop-shadow(0 4px 8px rgba(245,115,32,0.18)); }

.logo-strip-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}


/* ================================================================
   15. SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }
.reveal-delay-4 { transition-delay: 0.46s; }
.reveal-delay-5 { transition-delay: 0.58s; }

.reveal-left {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateY(0); }

.reveal-right {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }


/* ================================================================
   16. DIVIDER
================================================================ */
.divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 2px;
  margin: 1.5rem 0;
}

.divider-center { margin-left: auto; margin-right: auto; }


/* ================================================================
   17. GLASS CARD
================================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-white);
  border-radius: var(--radius-lg);
}


/* ================================================================
   18. RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
  :root { --section-padding: 4.5rem; }
}

@media (max-width: 768px) {
  .navbar-links         { display: none; }
  .navbar-cta           { display: none; }
  .navbar-theme-switcher{ display: none; }
  .navbar-toggle        { display: flex; }
  .mobile-theme-switcher{ display: block; }

  .navbar { padding: 0.5rem var(--gutter); }
  .navbar-inner { height: 56px; }
  .navbar.scrolled .navbar-inner { height: 50px; }
  .navbar-logo { font-size: 0.9375rem; }
  .navbar-logo img { height: 30px; }
  .navbar.scrolled .navbar-logo img { height: 26px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  /* Footer - brand full-width, 3 link cols in a row below */
  .footer { padding: 3rem 0 0; }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    row-gap: 0;
    margin-bottom: 0;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "logo social" "desc social";
    column-gap: 2rem;
    row-gap: 0.75rem;
    align-items: start;
  }
  .footer-brand-logo { grid-area: logo; }
  .footer-brand > p  { grid-area: desc; margin-bottom: 0; font-size: 0.8125rem; }
  .footer-social     { grid-area: social; align-self: center; }

  .footer-column { padding-bottom: 2rem; }
  .footer-column:not(:last-child) { padding-right: 1rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.625rem;
    padding: 1.25rem 0;
  }
  .footer-bottom-links {
    gap: 1.5rem;
    justify-content: center;
  }

  :root { --section-padding: 3rem; --gutter: 1.25rem; }

  .section-header { margin-bottom: 2rem; }
  .section-header .body-lg { font-size: 1rem; }
  .container { padding: 0 1.25rem; }

  /* Logo strip on mobile - smaller gap and shorter images */
  .logo-strip { gap: 1.5rem; }
  .logo-strip img { height: 28px; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  :root { --gutter: 1rem; --section-padding: 2.5rem; }

  .headline-xl { font-size: 2.25rem; }
  .headline-lg { font-size: 1.75rem; }
  .headline-md { font-size: 1.375rem; }

  .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }

  .navbar { padding: 0.4rem var(--gutter); }
  .navbar-inner { height: 52px; }
  .navbar-logo img { height: 26px; }

  .container { padding: 0 1rem; }
  .body-lg { font-size: 1rem; }

  /* Footer at 480px - brand stacks single column, links still 3 cols */
  .footer-brand {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "desc" "social";
    row-gap: 0.875rem;
  }
  .footer-social { flex-direction: row; }
  .footer-column h4 { font-size: 0.6rem; letter-spacing: 0.10em; margin-bottom: 0.875rem; }
  .footer-column a { font-size: 0.8125rem; }
  .footer-bottom p, .footer-bottom-links a { font-size: 0.75rem; }
  .footer-bottom-links { gap: 1rem; }
  .footer-social a { width: 34px; height: 34px; }

  /* Logo strip */
  .logo-strip { gap: 1rem; }
  .logo-strip img { height: 24px; }
}


/* ================================================================
   HOVER: NONE - Disable sticky hover effects on touch devices
   Touch screens fire :hover on tap and keep it active until
   the next tap elsewhere, making lifted/highlighted cards look
   broken. This block resets all cosmetic hover transforms so
   only pointer devices (mice, trackpads) see them.
================================================================ */
@media (hover: none) {
  /* Buttons - preserve color, kill transforms */
  .btn:hover { transform: none; }

  /* Shared feature cards */
  .feature-card:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-card);
  }
  .feature-card:hover::before { opacity: 0; }
  .feature-card:hover .feature-card-icon {
    transform: none;
    background: var(--orange-glow);
    color: var(--orange-soft);
    border-color: var(--border-orange);
    box-shadow: none;
  }
  .section-light .feature-card:hover,
  .section-light-alt .feature-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-subtle);
  }

  /* Achievement + team cards */
  .achievement-card:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: none;
  }
  .team-card:hover {
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-card);
  }
  .team-card:hover .team-card-avatar { border-color: var(--border-subtle); }

  /* Logo strip images */
  .logo-strip img:hover { transform: none; filter: none; }

  /* Proof items */
  .proof-item:hover { background: transparent; }
  .proof-item:hover::after { transform: scaleX(0); }

  /* Nav links - keep text color but no underline slide or bg */
  .navbar-links a:hover { color: var(--text-secondary); background: transparent; }
  .navbar-links a:hover::after { transform: scaleX(0); }

  /* Footer links - no padding nudge */
  .footer-column a:hover { padding-left: 0; color: var(--text-muted); }
}


/* ================================================================
   19. GLOBAL KEYFRAMES & TRANSITIONS
================================================================ */
@keyframes rippleExpand {
  to { transform: scale(1); opacity: 0; }
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0);       opacity: 0.12; }
  25%       { transform: translate(14px, -20px); opacity: 0.55; }
  50%       { transform: translate(-10px, 12px); opacity: 0.22; }
  75%       { transform: translate(18px,  8px);  opacity: 0.65; }
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.4; }
  50%       { transform: scale(1.07); opacity: 0.15; }
}

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

@keyframes shimmerSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

body { animation: pageFadeIn 0.45s ease forwards; }

body,
.navbar, .footer, .hero,
.feature-card, .solution-card, .achievement-card, .team-card {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}


/* ================================================================
   SKELETON LOADING
   - html.page-loading added by JS before DOMContentLoaded
   - html.page-loading removed on window.load (all resources ready)
   - .skeleton-cover divs injected into key containers, fade out and
     are removed from DOM after their CSS transition completes
================================================================ */

@keyframes skeletonShimmer {
  from { background-position: -400px 0; }
  to   { background-position:  400px 0; }
}

/* All <img> tags show a shimmer background while their source loads.
   Once the image renders it covers the background naturally. */
html.page-loading img {
  background: linear-gradient(
    90deg,
    var(--bg-card)     0px,
    var(--bg-elevated) 80px,
    var(--bg-card)     160px
  );
  background-size: 400px 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

/* Elements that need position:relative to contain the cover overlay.
   Cards (feature-card, ach-card, etc.) already have it via their own CSS. */
html.page-loading .hero-content,
html.page-loading .hero-visual,
html.page-loading .proof-item,
html.page-loading .problem-item,
html.page-loading .problem-stat-highlight,
html.page-loading .logo-strip {
  position: relative;
  overflow: hidden;
}

/* The cover div itself */
.skeleton-cover {
  position: absolute;
  inset: 0;
  z-index: 50;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    var(--bg-card)     0px,
    var(--bg-elevated) 80px,
    var(--bg-card)     160px
  );
  background-size: 400px 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

/* Fade-out state: added by JS on window.load */
.skeleton-cover.sk-out {
  opacity: 0;
  pointer-events: none;
}
