@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --font-body: Inter, system-ui, -apple-system, sans-serif;
  --font-heading: Inter, system-ui, -apple-system, sans-serif;
  --font-family: var(--font-body);

  --bg: #07070a;
  --surface: #0f0f14;
  --surface-elevated: #13131a;
  --text: #E6E8F0;
  --muted: #8892A4;
  --dim: #5A6272;
  --border: rgba(255, 255, 255, 0.07);
  --grid: rgba(255, 255, 255, 0.03);

  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --bg-card: #141414;
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --text-dim: var(--dim);
  --accent: var(--text);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grid-color: var(--grid);

  --c-bg: var(--bg);
  --c-surface: var(--surface);
  --c-card: var(--surface-elevated);
  --c-border: var(--border);
  --c-text: var(--text);
  --c-muted: var(--muted);
  --c-dim: var(--dim);
  --c-violet: #7f63f6;
  --c-cyan: #00d4ff;
  --c-blue: #3b82f6;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --prose-width: 650px;
}

html[data-theme="light"] {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --dim: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --grid: rgba(15, 23, 42, 0.05);

  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --text-dim: var(--dim);
  --accent: var(--text);
  --grid-color: var(--grid);

  --c-bg: var(--bg);
  --c-surface: var(--surface);
  --c-card: var(--surface-elevated);
  --c-border: rgba(15, 23, 42, 0.06);
  --c-text: var(--text);
  --c-muted: var(--muted);
  --c-dim: var(--dim);
}

/* ==========================================================================
   8. THEME SYSTEM (Consolidated Light Theme)
   ========================================================================== */

/* Variables and High-Priority Overrides for Light Theme */
body.light-theme {
  --bg: #F8FAFC;
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --text: #0F172A;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --muted: #475569;
  --dim: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.05);
  --grid-color: rgba(15, 23, 42, 0.06);

  background-color: var(--bg) !important;
  color: var(--text) !important;
}

/* Force Global Forced Overrides */
body.light-theme .section,
body.light-theme section,
body.light-theme .hero,
body.light-theme .trust-strip,
body.light-theme .logos-carousel-section,
body.light-theme .reviews-section,
body.light-theme .legal-section,
body.light-theme .section-rocket,
body.light-theme .faq-section,
body.light-theme .cs-hero {
  background-color: var(--bg) !important;
}

/* Navigation & Toggle */
body.light-theme .nav {
  background: rgba(248, 250, 252, 0.92) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.light-theme .nav-cta {
  background: var(--accent-gradient) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px -4px rgba(59, 130, 246, 0.5) !important;
}

body.light-theme .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -4px rgba(59, 130, 246, 0.6) !important;
}

body.light-theme .nav-container {
  color: var(--text-primary) !important;
}

body.light-theme .nav-link {
  color: var(--text-primary) !important;
}

body.light-theme .theme-toggle {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.2) !important;
}

body.light-theme .theme-icon-on { display: none !important; }
body.light-theme .theme-icon-off { display: inline-flex !important; }

/* Grid Backgrounds */
body.light-theme .hero-grid-bg,
body.light-theme .bg-grid-pattern,
body.light-theme .cs-hero-grid,
body.light-theme .roadmap-game {
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px), 
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px) !important;
}

/* Logo Visibility Fix (Make Black) */
body.light-theme .nav-logo img,
body.light-theme .footer-logo img,
body.light-theme .logo img,
body.light-theme [class*="logo"] img {
  filter: brightness(0) !important;
  opacity: 1 !important;
}

/* Roadmap Fixes (How We Work) */
body.light-theme .roadmap-game {
  background-color: var(--bg) !important;
}

/* Why Section Fixes */
body.light-theme .why-display-panel {
  background: #FFFFFF !important;
  border-color: var(--border) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.light-theme .why-panel-title {
  color: #0F172A !important;
}

body.light-theme .why-list-styled li {
  color: #334155 !important;
}

body.light-theme .abstract-graph {
  background: rgba(15, 23, 42, 0.02) !important;
  border-radius: 8px;
  padding: 10px;
}

/* Scroll to Top Button Standardization */
html[data-theme="light"] #scrollToTopBtn,
body.light-theme #scrollToTopBtn,
html[data-theme="light"] .custom-scroll-top-btn,
body.light-theme .custom-scroll-top-btn,
html[data-theme="light"] .back-to-top,
body.light-theme .back-to-top {
  background: linear-gradient(135deg, #3b82f6 0%, #7f63f6 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 34px -22px rgba(79, 70, 229, 0.72), 0 0 28px -20px rgba(59, 130, 246, 0.95) !important;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999 !important;
}

html[data-theme="light"] #scrollToTopBtn svg,
body.light-theme #scrollToTopBtn svg,
html[data-theme="light"] #scrollToTopBtn i,
body.light-theme #scrollToTopBtn i,
html[data-theme="light"] .custom-scroll-top-btn svg,
body.light-theme .custom-scroll-top-btn svg,
html[data-theme="light"] .custom-scroll-top-btn i,
body.light-theme .custom-scroll-top-btn i,
html[data-theme="light"] .back-to-top svg,
body.light-theme .back-to-top svg,
html[data-theme="light"] .back-to-top i,
body.light-theme .back-to-top i {
  color: #FFFFFF !important;
  font-size: 20px;
}

html[data-theme="light"] #scrollToTopBtn:hover,
body.light-theme #scrollToTopBtn:hover,
html[data-theme="light"] .custom-scroll-top-btn:hover,
body.light-theme .custom-scroll-top-btn:hover,
html[data-theme="light"] .back-to-top:hover,
body.light-theme .back-to-top:hover {
  background: linear-gradient(135deg, #2563eb 0%, #6d5dfc 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
}

html[data-theme="light"] #scrollToTopBtn:hover svg,
body.light-theme #scrollToTopBtn:hover svg,
html[data-theme="light"] #scrollToTopBtn:hover i,
body.light-theme #scrollToTopBtn:hover i,
html[data-theme="light"] .custom-scroll-top-btn:hover svg,
body.light-theme .custom-scroll-top-btn:hover svg,
html[data-theme="light"] .custom-scroll-top-btn:hover i,
body.light-theme .custom-scroll-top-btn:hover i,
html[data-theme="light"] .back-to-top:hover svg,
body.light-theme .back-to-top:hover svg,
html[data-theme="light"] .back-to-top:hover i,
body.light-theme .back-to-top:hover i {
  color: #FFFFFF !important;
}


body.light-theme .roadmap-title {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: #0F172A !important;
}

body.light-theme .roadmap-subtitle {
  color: var(--text-secondary) !important;
}

body.light-theme .step-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

body.light-theme .step-text {
  color: var(--text-secondary) !important;
}

body.light-theme .step-mini-ui {
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
}

body.light-theme .game-path-svg {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05)) !important;
  opacity: 0.8 !important;
}

/* Specific Section: Why Pro Visualizers */
body.light-theme .why-card,
body.light-theme .why-tab-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

body.light-theme .why-sidebar button {
  color: var(--dim) !important;
}

body.light-theme .why-sidebar button.active {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

/* Global Effects Cleanup */
body.light-theme * {
  text-shadow: none !important;
}

body.light-theme .glow,
body.light-theme [class*="glow"] {
  display: none !important;
  background: transparent !important;
}

/* Card Standardization */
body.light-theme .card,
body.light-theme .service-card,
body.light-theme .faq-item,
body.light-theme .roi-card,
body.light-theme .calc-card,
body.light-theme .feature-card,
body.light-theme .proof-card,
body.light-theme .cs-card,
body.light-theme .cs-float-card,
body.light-theme .testimonial-main-box,
body.light-theme .team-card,
body.light-theme .problem-card,
body.light-theme .benefit-block,
body.light-theme [class*="bg-[#0A0A0A]"],
body.light-theme [class*="bg-[#0F0F0F]"],
body.light-theme [class*="bg-[#111]"],
body.light-theme [class*="bg-black/40"] {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* Headings Contrast Improvement */
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4 {
  color: var(--text-primary) !important;
}

body.light-theme .grad-heading,
body.light-theme .hero-title .grad,
body.light-theme .training-hero-title .grad,
body.light-theme .c-hero-h1 .grad,
body.light-theme .legal-title,
body.light-theme .cs-hero-title {
  background: linear-gradient(130deg, var(--text-primary) 0%, #7f63f6 55%, var(--c-cyan) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Handle white-text helper classes in light mode */
body.light-theme :is(h1, h2, h3, h4, h5, h6)[class*="text-white"],
body.light-theme :is(p, li, blockquote, dt, dd, small, label, span, strong)[class*="text-white"] {
  color: var(--text) !important;
}

body.light-theme [class*="text-gray-200"],
body.light-theme [class*="text-gray-400"],
body.light-theme [class*="text-gray-500"],
body.light-theme [class*="text-gray-600"],
body.light-theme [class*="text-zinc"] {
  color: var(--muted) !important;
}

/* Border Replacement for Light Theme */
body.light-theme [class*="border-[#222]"],
body.light-theme [class*="border-black"],
body.light-theme [class*="border-gray-800"],
body.light-theme [class*="border-gray-900"],
body.light-theme [class*="border-[#333]"],
body.light-theme [class*="border-white/10"] {
  border-color: var(--border) !important;
}

/* Footer Implementation (Refactor & Reinforce) */
body.light-theme .footer-v3 {
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
  padding: 4rem 0 2rem;
}

body.light-theme .footer-main-block {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 3rem;
  border-radius: 0 !important;
}

body.light-theme .footer-divider-vertical {
  background: var(--border) !important;
}

body.light-theme .footer-bottom-bar {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border) !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

body.light-theme .footer-nav-col h4 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

body.light-theme .footer-nav-col a {
  color: var(--muted) !important;
}

body.light-theme .footer-nav-col a:hover {
  color: var(--text-primary) !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.4rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
}

h2 {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
}

h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

p {
  max-width: 650px;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select,
option {
  font: inherit;
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

svg text {
  font-family: inherit;
}

b,
strong {
  color: var(--text-primary);
}

.text-lg {
  font-size: 18px;
}

.text-sm {
  font-size: 14px;
  color: var(--text-secondary);
}

.text-base {
  font-size: 1rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.text-muted {
  color: var(--text-secondary);
}

.text-dim {
  color: var(--text-dim);
}

.text-violet {
  color: var(--c-violet);
}

.text-cyan {
  color: var(--c-cyan);
}

.text-blue {
  color: var(--c-blue);
}

.grad-heading {
  background: linear-gradient(130deg, var(--text-primary) 0%, #c4b5ff 50%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: var(--space-md);
}

.eyebrow-label::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--c-violet);
  border-radius: 2px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.section-gap {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section-gap-sm {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-violet), transparent);
  border: none;
  margin: var(--space-md) 0;
}

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

.font-heading,
.font-body,
.font-inter,
.font-sans {
  font-family: inherit !important;
}

.nav-links a,
.nav-cta,
.footer-v3,
.footer-v3 * {
  font-family: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(59, 130, 246, 0.4);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-off {
  display: none;
}

.theme-icon-on {
  display: inline-flex;
}

/* Dark Theme Footer Defaults */
.footer-v3 {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main-block {
  display: flex;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 4rem;
}

.footer-divider-vertical {
  width: 1px;
  background: var(--border);
}

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

/* ==========================================================================
   9. LIGHT THEME REFINEMENTS
   Keep structure identical to dark theme while softening surfaces for light
   ========================================================================== */

html[data-theme="light"] body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

html[data-theme="light"] .nav {
  background: rgba(248, 250, 252, 0.92) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .theme-toggle {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.22) !important;
}

html[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 14px 28px -18px rgba(15, 23, 42, 0.26) !important;
}

html[data-theme="light"] .nav-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #7f63f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  box-shadow: 0 16px 34px -22px rgba(79, 70, 229, 0.65), 0 0 24px -18px rgba(59, 130, 246, 0.9) !important;
}

html[data-theme="light"] .nav-cta:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04);
  box-shadow: 0 20px 40px -22px rgba(79, 70, 229, 0.75), 0 0 30px -18px rgba(59, 130, 246, 0.95) !important;
}

html[data-theme="light"] .btn-primary,
body.light-theme .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #7f63f6 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  box-shadow: 0 16px 34px -22px rgba(79, 70, 229, 0.65), 0 0 24px -18px rgba(59, 130, 246, 0.9) !important;
}

html[data-theme="light"] .btn-primary:hover,
body.light-theme .btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 20px 40px -22px rgba(79, 70, 229, 0.75), 0 0 30px -18px rgba(59, 130, 246, 0.95) !important;
}

html[data-theme="light"] .nav-logo img {
  /* Light theme logo recolor skipped because current logo asset is raster/static. */
  filter: brightness(0) contrast(1.05) !important;
  opacity: 1 !important;
}

html[data-theme="light"] .hero-grid-bg,
html[data-theme="light"] .bg-grid-pattern,
html[data-theme="light"] .cs-hero-grid,
html[data-theme="light"] .roadmap-game {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
}

html[data-theme="light"] .trust-strip,
html[data-theme="light"] .reviews-section,
html[data-theme="light"] .section-rocket,
html[data-theme="light"] .faq-section,
html[data-theme="light"] .legal-section,
html[data-theme="light"] .cs-hero,
html[data-theme="light"] .roadmap-game {
  background-color: var(--bg) !important;
}

html[data-theme="light"] .services,
html[data-theme="light"] .final-cta,
html[data-theme="light"] .v1-stats-bar-wrapper {
  background: var(--bg-secondary) !important;
}

html[data-theme="light"] .trust-strip::before,
html[data-theme="light"] .final-cta::before,
html[data-theme="light"] .footer-v3::before,
html[data-theme="light"] .why-display-panel::before {
  display: none !important;
}

html[data-theme="light"] .hero-title .grad,
html[data-theme="light"] .training-hero-title .grad,
html[data-theme="light"] .c-hero-h1 .grad {
  display: inline-block;
  background: linear-gradient(130deg, #0f172a 0%, #7f63f6 55%, #00b8f0 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .dashboard-mockup,
html[data-theme="light"] .why-display-panel,
html[data-theme="light"] .diagnosis-text,
html[data-theme="light"] .diagnosis-conclusion,
html[data-theme="light"] .data-flow-visual,
html[data-theme="light"] .step-card,
html[data-theme="light"] .why-tab,
html[data-theme="light"] .why-tab-content,
html[data-theme="light"] .chart-container,
html[data-theme="light"] .kpi-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] .mockup-header,
html[data-theme="light"] .step-mini-ui,
html[data-theme="light"] .abstract-graph {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .why-tab {
  color: var(--muted) !important;
}

html[data-theme="light"] .why-tab:hover,
html[data-theme="light"] .why-tab.active {
  color: var(--text) !important;
  background: #ffffff !important;
  border-right-color: #3b82f6 !important;
}

html[data-theme="light"] .why-panel-title,
html[data-theme="light"] .conclusion-text,
html[data-theme="light"] .roadmap-title,
html[data-theme="light"] .mockup-title,
html[data-theme="light"] .kpi-value {
  color: var(--text) !important;
}

html[data-theme="light"] .roadmap-subtitle,
html[data-theme="light"] .step-text,
html[data-theme="light"] .why-list-styled li,
html[data-theme="light"] .diagnosis-intro,
html[data-theme="light"] .diagnosis-list,
html[data-theme="light"] .flow-label,
html[data-theme="light"] .trust-label,
html[data-theme="light"] .trust-subtitle,
html[data-theme="light"] .trust-context {
  color: var(--muted) !important;
}

html[data-theme="light"] .client-logo,
html[data-theme="light"] .logo-marquee-track .client-logo,
html[data-theme="light"] .logo-marquee .client-logo,
html[data-theme="light"] .logo-marquee-wrapper .client-logo {
  filter: none !important;
  opacity: 1 !important;
}

html[data-theme="light"] .footer-v3 {
  background: var(--bg) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .footer-main-block {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -34px rgba(15, 23, 42, 0.18) !important;
  padding: 2rem 2.5rem !important;
  margin-bottom: 2.5rem !important;
}

html[data-theme="light"] .footer-logo-circular {
  filter: brightness(0.2) contrast(1.15) !important;
  opacity: 0.92 !important;
}

html[data-theme="light"] .footer-divider-vertical {
  background: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .footer-nav-grid {
  padding-top: 2.5rem !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  margin-bottom: 2.5rem !important;
}

html[data-theme="light"] .footer-nav-col:not(:last-child)::after {
  background: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .footer-nav-col h4,
html[data-theme="light"] .footer-company-name,
html[data-theme="light"] .footer-gst,
html[data-theme="light"] .story-title {
  color: var(--text) !important;
}

html[data-theme="light"] .footer-nav-col a,
html[data-theme="light"] .story-text,
html[data-theme="light"] .footer-copyright-left {
  color: var(--muted) !important;
}

html[data-theme="light"] .footer-bottom-bar {
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  margin-top: 0 !important;
  padding-top: 2rem !important;
}

/* Services Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
}

.nav-dropdown.is-current > .nav-dropdown-trigger,
.nav-dropdown:hover > .nav-dropdown-trigger,
.nav-dropdown:focus-within > .nav-dropdown-trigger {
  color: var(--text-primary);
}

.nav-dropdown.is-current > .nav-dropdown-trigger::after,
.nav-dropdown:hover > .nav-dropdown-trigger::after,
.nav-dropdown:focus-within > .nav-dropdown-trigger::after {
  width: 100%;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 1100;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 18px;
  background: rgba(8, 15, 30, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 60px -34px rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.services-dropdown {
  width: min(760px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) 1px minmax(0, 0.6fr);
  align-items: stretch;
  gap: 16px;
  padding: 14px;
  transform: translate(-38%, 10px);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 16px;
}

.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown:focus-within .services-dropdown {
  transform: translate(-38%, 0);
}

@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .nav-dropdown:hover .services-dropdown {
    transform: translate(-38%, 0);
  }
}

.services-featured-offer {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  margin-left: 0 !important;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08)),
    rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.services-featured-offer::after {
  content: none !important;
  display: none !important;
}

.services-featured-offer:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.11)),
    rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px -30px rgba(59, 130, 246, 0.85);
}

.services-featured-kicker {
  display: block;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.services-featured-title {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.services-featured-description {
  display: block;
  margin-bottom: 16px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.82rem;
  line-height: 1.55;
}

.services-featured-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.services-featured-offer[aria-current="page"] {
  border-color: rgba(96, 165, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(139, 92, 246, 0.13)),
    rgba(255, 255, 255, 0.05);
}

.services-dropdown-divider {
  display: block;
  width: 1px;
  min-height: 100%;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.22), transparent);
}

.services-dropdown-list {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.nav-dropdown-item {
  display: block;
  margin-left: 0 !important;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.nav-dropdown-item + .nav-dropdown-item {
  margin-top: 6px;
}

.nav-dropdown-menu .nav-dropdown-item::after {
  content: none !important;
  display: none !important;
}

.nav-dropdown-menu .nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -28px rgba(2, 6, 23, 0.8);
}

.nav-dropdown-title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  color: #f8fafc;
}

.nav-dropdown-description {
  display: block;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.78);
}

.nav-dropdown-item[aria-current="page"] {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.22);
}

.nav-dropdown-item[aria-current="page"] .nav-dropdown-title {
  color: #ffffff;
}

.nav-dropdown-item[aria-current="page"] .nav-dropdown-description {
  color: rgba(226, 232, 240, 0.88);
}

html[data-theme="light"] .nav-dropdown.is-current > .nav-dropdown-trigger,
body.light-theme .nav-dropdown.is-current > .nav-dropdown-trigger,
html[data-theme="light"] .nav-dropdown:hover > .nav-dropdown-trigger,
body.light-theme .nav-dropdown:hover > .nav-dropdown-trigger,
html[data-theme="light"] .nav-dropdown:focus-within > .nav-dropdown-trigger,
body.light-theme .nav-dropdown:focus-within > .nav-dropdown-trigger {
  color: var(--text) !important;
}

html[data-theme="light"] .nav-dropdown-menu,
body.light-theme .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .services-featured-offer,
body.light-theme .services-featured-offer {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06)),
    #ffffff;
  border-color: rgba(37, 99, 235, 0.14);
  box-shadow: 0 18px 34px -30px rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .services-featured-offer:hover,
body.light-theme .services-featured-offer:hover {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.11), rgba(124, 58, 237, 0.08)),
    #ffffff;
  border-color: rgba(37, 99, 235, 0.22);
}

html[data-theme="light"] .services-featured-kicker,
body.light-theme .services-featured-kicker {
  color: #2563eb;
}

html[data-theme="light"] .services-featured-title,
body.light-theme .services-featured-title {
  color: #0f172a;
}

html[data-theme="light"] .services-featured-description,
body.light-theme .services-featured-description {
  color: #475569;
}

html[data-theme="light"] .services-featured-cta,
body.light-theme .services-featured-cta {
  color: #111827;
}

html[data-theme="light"] .services-featured-offer[aria-current="page"],
body.light-theme .services-featured-offer[aria-current="page"] {
  border-color: rgba(37, 99, 235, 0.26);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.08)),
    #ffffff;
}

html[data-theme="light"] .services-dropdown-divider,
body.light-theme .services-dropdown-divider {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.14), transparent);
}

html[data-theme="light"] .nav-dropdown-menu .nav-dropdown-item:hover,
body.light-theme .nav-dropdown-menu .nav-dropdown-item:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .nav-dropdown-title,
body.light-theme .nav-dropdown-title {
  color: #111827;
}

html[data-theme="light"] .nav-dropdown-description,
body.light-theme .nav-dropdown-description {
  color: #475569;
}

html[data-theme="light"] .nav-dropdown-item[aria-current="page"],
body.light-theme .nav-dropdown-item[aria-current="page"] {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
}

html[data-theme="light"] .nav-dropdown-item[aria-current="page"] .nav-dropdown-title,
body.light-theme .nav-dropdown-item[aria-current="page"] .nav-dropdown-title {
  color: #111827;
}

html[data-theme="light"] .nav-dropdown-item[aria-current="page"] .nav-dropdown-description,
body.light-theme .nav-dropdown-item[aria-current="page"] .nav-dropdown-description {
  color: #475569;
}

@media (max-width: 900px) {
  .nav-dropdown-menu {
    width: min(340px, calc(100vw - 24px));
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .services-dropdown {
    width: min(640px, calc(100vw - 32px));
    transform: translate(-34%, 10px);
  }

  .nav-dropdown:focus-within .services-dropdown {
    transform: translate(-34%, 0);
  }

}

@media (max-width: 1080px) and (min-width: 901px) and (hover: hover) {
  .nav-dropdown:hover .services-dropdown {
    transform: translate(-34%, 0);
  }
}

/* ==========================================================================
   10. MOBILE EXPERIENCE UPGRADE
   Shared mobile navigation, spacing, buttons, and footer structure.
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

.mobile-nav-actions,
.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

.mobile-menu-open,
.mobile-menu-open body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav {
    height: 68px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }

  .nav-container {
    height: 68px !important;
    padding: 0 16px !important;
    gap: 12px !important;
  }

  .nav-logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav-logo img {
    height: 30px !important;
    max-width: min(210px, 54vw);
    object-fit: contain;
    object-position: left center;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .mobile-nav-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
  }

  .mobile-nav-actions .theme-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.24s ease, opacity 0.2s ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px -28px rgba(0, 0, 0, 0.8);
    outline: none;
  }

  .nav-mobile-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-mobile-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-mobile-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 68px 0 0;
    z-index: 998;
    display: block;
    background: rgba(2, 6, 23, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
  }

  .mobile-menu {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    z-index: 1001;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  }

  .nav-mobile-open .mobile-menu,
  .nav-mobile-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mobile-open .mobile-menu {
    transform: translateY(0) scale(1);
  }

  .mobile-menu-panel {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(8, 15, 30, 0.96);
    box-shadow: 0 30px 70px -38px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .mobile-menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    margin-bottom: 8px;
  }

  .mobile-menu-kicker {
    color: rgba(226, 232, 240, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-menu-home {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 650;
  }

  .mobile-menu-links {
    display: grid;
    gap: 8px;
  }

  .mobile-menu-link,
  .mobile-menu-summary,
  .mobile-menu-cta {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.25;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }

  .mobile-menu-link[aria-current="page"],
  .mobile-menu-service[aria-current="page"] {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(59, 130, 246, 0.12);
  }

  .mobile-menu-link:hover,
  .mobile-menu-summary:hover,
  .mobile-menu-service:hover,
  .mobile-menu-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-menu-link:focus,
  .mobile-menu-summary:focus,
  .mobile-menu-service:focus,
  .mobile-menu-cta:focus {
    outline: none;
  }

  .mobile-menu-link:focus-visible,
  .mobile-menu-summary:focus-visible,
  .mobile-menu-service:focus-visible,
  .mobile-menu-cta:focus-visible {
    box-shadow: 0 0 0 2px rgba(127, 99, 246, 0.38);
  }

  .mobile-menu-group {
    border-radius: 14px;
  }

  .mobile-menu-group summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-summary-icon {
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.7;
    transition: transform 0.22s ease;
  }

  .mobile-menu-group[open] .mobile-menu-summary-icon {
    transform: rotate(225deg) translateY(-1px);
  }

  .mobile-menu-services {
    display: grid;
    gap: 8px;
    padding: 8px 0 2px;
  }

  .mobile-menu-service {
    display: block;
    padding: 13px 14px;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  }

  .mobile-menu-service-title {
    display: block;
    margin-bottom: 5px;
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.25;
  }

  .mobile-menu-service-description {
    display: block;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .mobile-menu-featured-offer {
    background:
      linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.08)),
      rgba(255, 255, 255, 0.035);
    border-color: rgba(96, 165, 250, 0.22);
  }

  .mobile-menu-service-kicker {
    display: block;
    margin-bottom: 7px;
    color: #93c5fd;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .mobile-menu-service-cta {
    display: inline-block;
    margin-top: 10px;
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .mobile-menu-cta {
    justify-content: center;
    margin-top: 12px;
    background: var(--accent-gradient);
    border-color: transparent;
    color: #ffffff;
    min-height: 46px;
  }

  html[data-theme="light"] .mobile-menu-toggle,
  body.light-theme .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.24);
  }

  html[data-theme="light"] .mobile-menu-backdrop,
  body.light-theme .mobile-menu-backdrop {
    background: rgba(15, 23, 42, 0.28);
  }

  html[data-theme="light"] .mobile-menu-panel,
  body.light-theme .mobile-menu-panel {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 30px 70px -42px rgba(15, 23, 42, 0.42);
  }

  html[data-theme="light"] .mobile-menu-panel-header,
  body.light-theme .mobile-menu-panel-header {
    border-bottom-color: rgba(15, 23, 42, 0.08);
  }

  html[data-theme="light"] .mobile-menu-kicker,
  body.light-theme .mobile-menu-kicker {
    color: #64748b;
  }

  html[data-theme="light"] .mobile-menu-link,
  html[data-theme="light"] .mobile-menu-summary,
  html[data-theme="light"] .mobile-menu-service,
  body.light-theme .mobile-menu-link,
  body.light-theme .mobile-menu-summary,
  body.light-theme .mobile-menu-service {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
  }

  html[data-theme="light"] .mobile-menu-service-description,
  body.light-theme .mobile-menu-service-description {
    color: #64748b;
  }

  html[data-theme="light"] .mobile-menu-featured-offer,
  body.light-theme .mobile-menu-featured-offer {
    background:
      linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06)),
      #ffffff;
    border-color: rgba(37, 99, 235, 0.14);
  }

  html[data-theme="light"] .mobile-menu-service-kicker,
  body.light-theme .mobile-menu-service-kicker {
    color: #2563eb;
  }

  html[data-theme="light"] .mobile-menu-service-cta,
  body.light-theme .mobile-menu-service-cta {
    color: #0f172a;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 34px;
    --space-xl: 56px;
  }

  .container,
  .section-container,
  .cs-container {
    width: min(100% - 32px, var(--container-width, 1200px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  section,
  .section,
  .section-rocket,
  .cs-section-full,
  .training-section {
    scroll-margin-top: 82px;
  }

  h1,
  .hero-title,
  .training-hero-title,
  .c-hero-h1,
  .cs-hero-title {
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }

  p,
  li {
    overflow-wrap: break-word;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .nav-cta,
  .mobile-menu-cta,
  .c-hero-cta,
  .pricing-btn,
  .hero-actions a,
  .final-cta a {
    min-height: 44px !important;
    padding: 0.72rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
  }

  .hero-actions,
  .cta-actions,
  .final-cta-actions {
    gap: 0.75rem !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions a {
    width: 100%;
    max-width: 330px;
    justify-content: center;
    text-align: center;
  }

  .footer-v3 {
    padding: 3rem 0 1.5rem !important;
  }

  .footer-main-block {
    flex-direction: column !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 18px !important;
  }

  .footer-brand-side {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .footer-logo-circular {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
  }

  .footer-brand-info {
    min-width: 0;
  }

  .footer-company-name {
    font-size: 1rem !important;
    line-height: 1.25 !important;
  }

  .footer-gst,
  .footer-credibility,
  .story-text {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
  }

  .footer-divider-vertical {
    display: none !important;
  }

  .footer-story-side {
    width: 100% !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid var(--border) !important;
  }

  .story-title {
    margin-bottom: 0.5rem !important;
    font-size: 0.98rem !important;
  }

  .footer-nav-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0.5rem 0 1.25rem !important;
    margin-bottom: 0 !important;
    border-top: 0 !important;
  }

  .footer-nav-col {
    position: relative !important;
    padding: 1.1rem 0 !important;
    border-top: 1px solid var(--border) !important;
  }

  .footer-nav-col::after {
    display: none !important;
  }

  .footer-nav-col h4 {
    margin-bottom: 0.65rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.09em !important;
  }

  .footer-nav-col ul,
  .footer-nav-col ul[style] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.42rem !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-nav-col li {
    margin: 0 !important;
  }

  .footer-nav-col a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    margin-top: 0 !important;
    padding-top: 1.25rem !important;
  }

  .footer-copyright-left,
  .footer-motto-right {
    text-align: left !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 420px) {
  .nav-container {
    padding: 0 12px !important;
  }

  .nav-logo img {
    max-width: 50vw;
    height: 28px !important;
  }

  .mobile-nav-actions {
    gap: 6px;
  }

  .mobile-nav-actions .theme-toggle,
  .mobile-menu-toggle {
    width: 38px !important;
    height: 38px !important;
  }

  .container,
  .section-container,
  .cs-container {
    width: min(100% - 24px, var(--container-width, 1200px)) !important;
  }
}

@media (max-width: 768px) {
  .c-hero {
    padding: calc(var(--nav-height, 72px) + 2.25rem) 0 3.5rem !important;
  }

  .c-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .c-hero-h1 {
    font-size: clamp(2.15rem, 10vw, 3rem) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
  }

  .c-hero-sub {
    font-size: 0.98rem !important;
    line-height: 1.65 !important;
  }

  .c-hero-vis {
    height: auto !important;
    min-height: 310px !important;
    transform: none !important;
  }

  .vis-card {
    max-width: 88vw !important;
  }

  .kpi-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  .contact-grid,
  .outcome-grid,
  .ind-grid,
  .method-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .glass-form,
  .aside-contact,
  .benefit-block,
  .outcome-card,
  .topmate-strip {
    padding: 1.25rem !important;
    border-radius: 18px !important;
  }

  .final-cta {
    padding: 4rem 0 !important;
  }

  .final-h2 {
    font-size: clamp(1.9rem, 8vw, 2.35rem) !important;
    line-height: 1.12 !important;
  }

  .legal-hero {
    padding: calc(var(--nav-height, 72px) + 2.5rem) 0 3.5rem !important;
  }

  .legal-container,
  .legal-content {
    width: min(100% - 32px, 980px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .legal-title,
  .legal-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
  }

  .legal-subtitle,
  .legal-hero p {
    font-size: 0.96rem !important;
    line-height: 1.65 !important;
  }

  .legal-section {
    padding: 3rem 0 !important;
    overflow: hidden !important;
  }

  .legal-section-block {
    padding: 1.25rem !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 420px) {
  .c-hero-h1 {
    font-size: clamp(2rem, 10vw, 2.55rem) !important;
  }

  .c-hero-vis {
    min-height: 280px !important;
  }

  .kpi-bar {
    grid-template-columns: 1fr !important;
  }

  .legal-container,
  .legal-content {
    width: min(100% - 24px, 980px) !important;
  }
}

/* ==========================================================================
   11. PRODUCTION RESPONSIVENESS & INTERACTION HARDENING
   Shared final pass for deployment-grade consistency.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overscroll-behavior-x: none;
}

a,
button,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg,
video,
canvas {
  height: auto;
}

:focus-visible {
  outline: 2px solid rgba(127, 99, 246, 0.72);
  outline-offset: 3px;
}

.nav a:focus-visible,
.nav button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible,
.faq-question:focus-visible,
.tab-btn:focus-visible,
.step-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(127, 99, 246, 0.34) !important;
}

.container,
.section-container,
.cs-container,
.hero-content,
.hero-visual,
.card,
.service-card,
.comparison-card,
.diagnosis-card,
.transformation-panel,
.step-panel,
.faq-item,
.footer-nav-col {
  min-width: 0;
}

.hero-title,
.section-title,
.section-title-alt,
.cs-hero-title,
.training-hero-title,
.legal-title,
.c-hero-h1 {
  text-wrap: balance;
}

.section-description,
.section-lead,
.hero-description,
.hero-subtitle,
.faq-header-title p,
.story-text {
  text-wrap: pretty;
}

@media (min-width: 1440px) {
  .container,
  .section-container,
  .cs-container {
    max-width: min(var(--container-width, 1200px), calc(100vw - 96px));
  }
}

@media (max-width: 1280px) {
  .hero-title,
  .training-hero-title,
  .cs-hero-title,
  .c-hero-h1 {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .c-hero-inner,
  .contact-grid,
  .milestone-container,
  .ownership-proof-shell {
    min-width: 0;
  }

  .nav-dropdown-menu,
  .services-dropdown {
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .cta-actions,
  .final-cta-actions,
  .cao-hero-actions,
  .cao-cta-actions {
    width: 100%;
  }

  .hero-actions a,
  .cta-actions a,
  .final-cta-actions a,
  .btn-primary,
  .btn-secondary {
    white-space: normal;
  }

  .timeline-stepper,
  .transformation-tabs,
  .faq-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-header-rocket,
  .faq-header-title {
    margin-bottom: 2.25rem !important;
  }

  .mobile-menu {
    left: 8px;
    right: 8px;
  }

  .mobile-menu-panel {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


