/* Vedaverse Techx — Premium Agency Design System */
@import url('motion.css?v=14');
@import url('footer.css?v=7');
@import url('vectors.css?v=9');
@import url('welcome.css?v=9');
@import url('content-visibility.css?v=1');
@import url('brand-colors.css?v=2');

:root {
  --navy: #0F172A;
  --indigo: #4F46E5;
  --cyan: #06B6D4;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --bg: var(--gray-50);
  --bg-elevated: var(--white);
  --text: var(--navy);
  --text-secondary: #334155;
  --text-muted: #475569;
  --accent: #38BDF8;
  --accent-light: #7DD3FC;
  --accent-cyan: #0EA5E9;
  --accent-cyan-bright: #38BDF8;
  --border: rgba(226, 232, 240, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-solid: rgba(255, 255, 255, 0.92);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --header-height: 4.75rem;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Typography scale (+3px bump) */
  --type-header: clamp(2.0625rem, 4.2vw, 2.9375rem);
  --type-header-hero: clamp(2.3125rem, 5.4vw, 3.8125rem);
  --type-subheader: 1.25rem;
  --type-description: 1.0625rem;
  --type-lead: 1.125rem;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.14), transparent),
                   radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 23, 42, 0.06), transparent);

  --btn-primary-bg: #0f172a;
  --btn-primary-bg-hover: #1e293b;
  --btn-primary-color: #ffffff;
  --btn-primary-border: rgba(255, 255, 255, 0.08);
  --btn-primary-shadow: 0 2px 8px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.14);
  --btn-primary-shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.16), 0 14px 36px rgba(15, 23, 42, 0.2);
}

@media (min-width: 768px) {
  :root {
    --header-height: 5rem;
  }
}

.dark {
  --bg: #030712;
  --bg-elevated: #0F172A;
  --text: #F8FAFC;
  --text-secondary: #E2E8F0;
  --text-muted: #CBD5E1;
  --accent: #7DD3FC;
  --accent-light: #BAE6FD;
  --accent-cyan: #38BDF8;
  --accent-cyan-bright: #7DD3FC;
  --border: rgba(51, 65, 85, 0.6);
  --glass-bg: rgba(15, 23, 42, 0.82);
  --glass-border: rgba(51, 65, 85, 0.55);
  --glass-solid: rgba(15, 23, 42, 0.94);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.2), transparent),
                   radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 23, 42, 0.25), transparent);

  --btn-primary-bg: #f8fafc;
  --btn-primary-bg-hover: #ffffff;
  --btn-primary-color: #0f172a;
  --btn-primary-border: rgba(255, 255, 255, 0.14);
  --btn-primary-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --btn-primary-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
}

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

.hidden { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
}

p, li, blockquote {
  color: inherit;
}

strong {
  color: var(--text);
}

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* Glass */
.glass {
  background: var(--bg-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  color: var(--text);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              background 0.3s ease;
}

.glass-card .p-6,
.glass-card .p-8 {
  background: var(--glass-solid);
}

/* Media cards — flush image + content, no gap */
.glass-card--media,
.glass-card--split {
  padding: 0;
  display: block;
}

.glass-card--media .glass-card__body,
.glass-card--split .bento-split__content {
  background: transparent;
}

.glass-card--media .glass-card__body {
  padding: 1.5rem;
}

.glass-card--split .bento-split__content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-card__media {
  position: relative;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 10;
}

.glass-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card--media:hover .glass-card__media img {
  transform: scale(1.04);
}

/* Split layout — wide service cards */
.bento-split {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 768px) {
  .bento-split {
    flex-direction: row;
    align-items: stretch;
    min-height: 280px;
    height: 100%;
  }

  .bento-split--reverse {
    flex-direction: row-reverse;
  }

  .bento-split__content {
    flex: 1;
    min-width: 0;
  }

  .bento-split__media {
    flex: 0 0 44%;
    max-width: none;
    min-height: 100%;
    line-height: 0;
    overflow: hidden;
  }

  .bento-split__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .glass-card--split:hover .bento-split__media img {
    transform: scale(1.04);
  }
}

@media (max-width: 767px) {
  .bento-split__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    line-height: 0;
  }

  .bento-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.glass-card h6,
.glass-card a:not(.btn-primary):not(.btn-secondary) {
  color: var(--text);
}

.glass-card .text-muted,
.glass-card p {
  color: var(--text-muted);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.35);
}

/* Gradients */
.gradient-text {
  color: var(--accent-light);
  background: linear-gradient(135deg, var(--brand-sky-light, #7dd3fc) 0%, var(--brand-sky-dark, #0ea5e9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark .gradient-text {
  color: var(--accent-light);
  background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: var(--bg-elevated);
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bg-mesh {
  background-image: var(--gradient-hero);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: 1px solid var(--btn-primary-border);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--btn-primary-shadow);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.dark .btn-navy { background: white; color: var(--navy); }

/* Logo */
.site-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  z-index: 2;
  height: 100%;
  min-width: 0;
}

.site-brand__logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: 2.625rem;
  width: 9.75rem;
  aspect-ratio: 645 / 174;
}

.site-brand__logo .site-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  transform: translateY(0.5px);
}

.site-brand__logo--footer {
  height: 2.5rem;
  width: 9.25rem;
}

.site-brand__logo--footer .site-logo {
  transform: none;
  filter: brightness(1.05);
}

.site-logo--theme-dark {
  opacity: 0;
  visibility: hidden;
}

.site-logo--theme-light {
  opacity: 1;
  visibility: visible;
}

.dark .site-logo--theme-light {
  opacity: 0;
  visibility: hidden;
}

.dark .site-logo--theme-dark {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 768px) {
  .site-brand__logo {
    height: 2.625rem;
    width: 9.75rem;
  }

  .site-brand__logo--footer {
    height: 2.625rem;
    width: 10.25rem;
  }
}

/* Header — fixed + colored theme */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 3000;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: visible;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-navy, #0f172a) 0%,
    var(--brand-sky, #38bdf8) 50%,
    var(--brand-navy, #0f172a) 100%
  );
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dark .site-header {
  background: rgba(3, 7, 18, 0.9);
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(226, 232, 240, 0.95);
}

.site-header.scrolled::after {
  opacity: 0.65;
}

.dark .site-header.scrolled {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: rgba(51, 65, 85, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  
  .header-inner .site-brand {
    grid-column: 2 / 3;
    justify-self: center;
  }
  
  .header-inner .header-nav {
    display: none;
  }
  
  .header-inner .header-actions {
    display: contents;
  }
  
  .header-inner .header-actions .theme-toggle-btn {
    grid-column: 1 / 2;
    grid-row: 1;
    justify-self: start;
  }
  
  .header-inner .header-actions .header-cta {
    display: none;
  }
  
  .header-inner .header-actions .mobile-menu-btn {
    grid-column: 3 / 4;
    grid-row: 1;
    justify-self: end;
  }
}

@media (min-width: 768px) {
  .header-inner { padding: 0 2rem; }
}

.header-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    gap: 0.125rem;
  }
}

@media (min-width: 1280px) {
  .header-nav { gap: 0.5rem; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .header-actions { gap: 0.75rem; }
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}

.nav-link:hover {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.06);
}

.nav-link:hover::after {
  width: 1rem;
  opacity: 0.75;
}

.dark .nav-link {
  color: var(--text-muted);
}

.dark .nav-link:hover {
  color: #f8fafc;
  background: rgba(99, 102, 241, 0.14);
}

.dark .nav-link::after {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.dark .nav-link.active::after {
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 9999px;
  background: var(--navy);
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.nav-link.active {
  color: var(--navy);
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
}

.dark .nav-link.active {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.18);
}

.nav-link.active::after {
  width: 1.25rem;
  opacity: 1;
  background: var(--navy);
}

.has-mega {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Invisible bridge — keeps :hover active while moving from link to dropdown */
.has-mega::after {
  content: '';
  position: absolute;
  left: -1rem;
  right: -1rem;
  top: 100%;
  height: 1rem;
  z-index: 1099;
}

.nav-link-mega {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
  width: min(640px, calc(100vw - 2rem));
  z-index: 1100;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.mega-menu-inner {
  position: relative;
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.12);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  overflow: hidden;
}

.mega-menu-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg,
    #6366f1 0%,
    #06b6d4 25%,
    #a855f7 50%,
    #14b8a6 75%,
    #f59e0b 100%
  );
  opacity: 0.55;
  pointer-events: none;
}

.mega-item {
  --mega-color: #6366f1;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
  position: relative;
  z-index: 1;
}

.mega-menu-inner .mega-item:nth-child(6n + 1),
.mega-menu-inner .mega-item:nth-child(6n + 2),
.mega-menu-inner .mega-item:nth-child(6n + 3),
.mega-menu-inner .mega-item:nth-child(6n + 4),
.mega-menu-inner .mega-item:nth-child(6n + 5),
.mega-menu-inner .mega-item:nth-child(6n + 6) { --mega-color: var(--brand-sky, #38bdf8); }

.mega-item:hover {
  background: color-mix(in srgb, var(--mega-color) 10%, transparent);
}

.mega-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mega-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--mega-color) 28%, transparent);
  flex-shrink: 0;
  font-size: 1.125rem;
}

.site-header .header-cta {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-color);
  border: 1px solid var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-header .header-cta:hover {
  background: var(--btn-primary-bg-hover);
  box-shadow: var(--btn-primary-shadow-hover);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s;
}

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

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--bg-elevated);
  padding: 1rem 1.25rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding-top: calc(var(--header-height) + 0.5rem);
}

.mobile-nav-head .site-brand {
  flex: 1;
  min-width: 0;
  margin-right: 0.75rem;
}

.mobile-nav-head .site-brand__logo {
  height: 2.125rem;
  width: 7.875rem;
}

.mobile-nav-head {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}

.mobile-nav-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    #6366f1 0%,
    #06b6d4 25%,
    #a855f7 50%,
    #14b8a6 75%,
    #f59e0b 100%
  );
  opacity: 0.5;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover { color: var(--indigo); }

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.18);
}

.dark .mobile-menu-btn {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.65);
  color: #f1f5f9;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn .theme-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.theme-toggle-btn .theme-icon-sun {
  display: none;
}

.theme-toggle-btn .theme-icon-moon {
  display: block;
}

.dark .theme-toggle-btn .theme-icon-sun {
  display: block;
}

.dark .theme-toggle-btn .theme-icon-moon {
  display: none;
}

.theme-toggle-btn:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.2);
}

.dark .theme-toggle-btn {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.65);
  color: #f1f5f9;
}

.dark .theme-toggle-btn:hover {
  border-color: rgba(129, 140, 248, 0.65);
  background: rgba(51, 65, 85, 0.85);
  color: #ffffff;
}

.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }

/* Stats Counter */
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--accent-light);
  background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  gap: 0;
  position: relative;
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-timeline::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), var(--cyan));
    opacity: 0.3;
  }
}

.process-step {
  text-align: center;
  padding: 1rem;
  position: relative;
  cursor: default;
  transition: transform 0.3s ease;
}

.process-step:hover { transform: translateY(-4px); }

.process-dot {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--indigo);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.process-step:hover .process-dot,
.process-step.active .process-dot {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
}

/* FAQ Accordion */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
}

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--indigo);
}

.faq-item.open .faq-trigger svg { transform: rotate(180deg); }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-content {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Tech Stack */
.tech-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tech-logo:hover {
  border-color: var(--indigo);
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

/* Section spacing */
.section { padding: 5rem 0; }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-header);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: var(--type-subheader);
  line-height: 1.7;
  max-width: 42rem;
}

/* Service cards bento */
.bento-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(12, 1fr); }
}

.bento-span-8 { grid-column: span 12; }
.bento-span-4 { grid-column: span 12; }
.bento-span-6 { grid-column: span 12; }
.bento-span-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .bento-span-8 { grid-column: span 8; }
  .bento-span-4 { grid-column: span 4; }
  .bento-span-6 { grid-column: span 6; }
  .bento-span-12 { grid-column: span 12; }
}

.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 0;
}

@media (min-width: 768px) {
  .bento-stack {
    height: 100%;
  }

  .bento-stack .glass-card {
    flex: 1;
    min-height: 0;
  }
}

/* Portfolio filter */
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
}

/* Form */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Form validation */
.home-contact-form__alert {
  display: none;
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(254, 242, 242, 0.95);
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.5;
}

.dark .home-contact-form__alert {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.home-contact-form__alert.is-visible {
  display: block;
}

.home-contact-form__error {
  display: none;
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #dc2626;
}

.dark .home-contact-form__error {
  color: #f87171;
}

.home-contact-form__error.is-visible {
  display: block;
}

.home-contact-form__field--invalid .home-contact-form__input-wrap .home-contact-form__input,
.home-contact-form__field--invalid .home-contact-form__input-wrap .home-contact-form__textarea,
.home-contact-form__field--invalid .home-contact-form__input-wrap .home-contact-form__select {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.home-contact-form__field--invalid .home-contact-form__input-icon {
  color: #ef4444;
}

.home-contact-form__input:user-invalid:not(:focus) {
  border-color: var(--border);
}

/* Form success acknowledgement */
.home-contact-form.is-hidden {
  display: none !important;
}

.home-contact-form-success {
  display: none;
  position: relative;
  flex: 1;
  min-height: 100%;
  padding: 2.5rem 1.75rem;
  border-radius: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.06),
    0 24px 64px rgba(99, 102, 241, 0.08);
  overflow: hidden;
}

.home-contact-form-success.is-visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: contactSuccessIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dark .home-contact-form-success {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(51, 65, 85, 0.55);
}

.home-contact-form-success__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #a855f7, #14b8a6);
}

.home-contact-form-success__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(6, 182, 212, 0.12));
  color: #059669;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.18);
}

.dark .home-contact-form-success__icon {
  color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.14));
}

.home-contact-form-success__icon svg {
  width: 2rem;
  height: 2rem;
}

.home-contact-form-success__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.home-contact-form-success__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.home-contact-form-success__text {
  margin: 0;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-contact-form-success__meta {
  margin: 1.25rem 0 0;
  padding: 1rem 1.125rem;
  width: min(100%, 24rem);
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.dark .home-contact-form-success__meta {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.18);
}

.home-contact-form-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.home-contact-form-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-contact-form-success__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
}

.home-contact-form-success__btn--ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.home-contact-form-success__btn:hover {
  transform: translateY(-1px);
}

@keyframes contactSuccessIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-contact-form-success.is-visible {
    animation: none;
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Footer — see footer.css */

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1E1B4B 50%, #0F172A 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3), transparent 70%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
  pointer-events: none;
}

/* Testimonial */
.testimonial-card {
  padding: 2rem;
  height: 100%;
}

.testimonial-quote {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Industry pill */
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s ease;
  cursor: default;
}

.industry-pill:hover {
  border-color: var(--indigo);
  background: rgba(79, 70, 229, 0.06);
  transform: translateY(-2px);
}

/* Case study metric */
.metric-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 700;
}

.dark .metric-badge {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan-bright);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--indigo);
  color: white;
  z-index: 999;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* Image components */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

img {
  display: block;
  max-width: 100%;
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
}

.dark .img-frame { background: var(--gray-800); }

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-frame:hover::after { opacity: 1; }

.img-frame--hero { border-radius: 1.5rem; }

.img-frame--card { border-radius: 0; }

.img-frame--card-top {
  aspect-ratio: 16 / 10;
  line-height: 0;
  margin: 0;
  border-radius: 0;
}

.glass-card .img-frame--card-top {
  border-radius: 0;
}

.glass-card .img-frame--card-top + .p-6,
.glass-card .img-frame--card-top + .glass-card__body {
  margin-top: 0;
  padding-top: 1.5rem;
}

.img-frame--case {
  min-height: 280px;
}

@media (min-width: 1024px) {
  .img-frame--case { min-height: 100%; }
}

.hero-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  line-height: 0;
  margin-top: 0;
}

@media (min-width: 1024px) {
  .hero-visual {
    margin-top: 0;
  }
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--bg-elevated);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero-visual-badge p:first-child {
  color: var(--text);
  font-weight: 600;
}

.hero-visual-badge p:last-child {
  color: var(--text-muted);
}

.service-img {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(79, 70, 229, 0.2);
}

.avatar-lg {
  width: 3rem;
  height: 3rem;
}

.about-visual {
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-nav-sublink {
  display: block;
  padding: 0.5rem 0 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
  margin-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-sublink:hover {
  color: var(--accent-light);
  border-left-color: var(--accent-light);
}

.mobile-nav-services {
  margin-bottom: 0.5rem;
}

.theme-toggle-btn:focus-visible,
.mobile-menu-btn:focus-visible,
.nav-link:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ── Theme contrast utilities (light + dark) ── */
.text-theme { color: var(--text) !important; }
.text-theme-muted { color: var(--text-muted) !important; }
.text-theme-accent { color: var(--accent-light) !important; }

.text-indigo { color: var(--accent-light) !important; }

.hero-headline { color: var(--text); }

.hero-badge {
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.trust-logos span {
  color: var(--text-secondary);
  opacity: 1;
}

.mega-item .mega-desc { color: var(--text-muted); }

.mega-item strong { color: var(--text); }

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

.process-dot { color: var(--accent-light); }

.faq-trigger { color: var(--text); }

.cta-subtitle { color: #CBD5E1 !important; }

a.glass-card.group:hover h3,
.glass-card.group:hover h3,
.glass-card--media:hover h3,
.glass-card--split:hover h3,
.group:hover .group-hover\:text-indigo {
  color: var(--accent-light) !important;
}

.tag-accent {
  color: var(--accent-light);
  font-weight: 600;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

.mega-item:hover { background: rgba(79, 70, 229, 0.1); }

.dark .mega-item:hover { background: rgba(129, 140, 248, 0.12); }

/* ═══ Typography scale — headers, subheaders, descriptions ═══ */
.home-hero__title,
.page-hero .section-title,
.svc-page-hero__main .section-title,
.pg-hero .section-title {
  font-size: var(--type-header-hero);
}

.home-hero__lead,
.page-hero .section-subtitle,
.svc-page-hero__lead {
  font-size: calc(var(--type-description) + 0.125rem);
}

.page-home .home-pillar h3,
.page-home .home-service-card h3,
.page-home .home-process-step h3,
.page-home .home-tech-card h3,
.page-home .home-portfolio-card h3,
.page-home .home-testimonial-card h3,
.page-home .home-industry-item__name,
.page-site .glass-card h3,
.page-site .svc-block h3,
.page-site .pg-section h3,
.page-site .ui-icon-box h3 {
  font-size: var(--type-subheader);
}

.page-home .home-pillar p,
.page-home .home-service-card p,
.page-home .home-process-step p,
.page-home .home-tech-card p,
.page-home .home-portfolio-card p,
.page-home .home-testimonial-card p,
.page-home .home-trust-showcase__quote,
.page-home .home-cta p,
.page-home .home-contact-section__head .section-subtitle,
.page-site .glass-card p,
.page-site .pg-section p:not(.section-subtitle),
.page-site .svc-block p,
.page-site .cta-banner .cta-subtitle,
.ui-spotlight p {
  font-size: var(--type-description);
}

.home-mission-split__copy p {
  font-size: var(--type-lead);
  line-height: 1.85;
  color: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
