/* ============================================
   WERQ LABS - Custom Styles
   Brand system, component overrides, utilities
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
/* --- CSS Custom Properties --- */
:root {
  /* Primary (Logo Blue) */
  --color-primary: #3B63CF;
  --color-primary-dark: #2D4EA6;
  --color-primary-light: #5B82E0;
  --color-primary-50: rgba(59, 99, 207, 0.08);
  --color-primary-100: rgba(59, 99, 207, 0.15);

  /* WerqAI Accent */
  --color-werqai: #0EA5E9;
  --color-werqai-dark: #0284C7;

  /* CTA Enterprise Green */
  --color-cta: #3B63CF;
  --color-cta-dark: #2D4EA6;
  --color-cta-light: #5B82E0;
  --color-cta-2: #10B981;
  --color-cta-dark-2: #059669;
  --color-cta-light-2: #34D399;

  /* Dark Backgrounds */
  --bg-darkest: #060A13;
  --bg-dark: #0A0F1C;
  --bg-dark-card: #111827;
  --bg-dark-elevated: #1A1F2E;
  --bg-dark-border: #1E293B;

  /* Light Backgrounds */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-light-alt: #F1F5F9;
  --border-light: #E2E8F0;

  /* Text */
  --text-white: #FFFFFF;
  --text-light: #E5E7EB;
  --text-muted: #9CA3AF;
  --text-dark: #111827;
  --text-dark-secondary: #374151;
  --text-dark-muted: #6B7280;
  --font-head: 'Space Grotesk', sans-serif;

  /* Semantic */
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Spacing */
  --section-pad-desktop: 100px;
  --section-pad-tablet: 80px;
  --section-pad-mobile: 64px;

  /* Border */
  --border-bright: rgba(255, 255, 255, 0.13);

  /* Nav */
  --nav-height: 80px;
  --nav-height-mobile: 64px;
}

/* --- Base Resets --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Skip Navigation (Accessibility) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }
}

/* --- Section Spacing --- */
.section {
  padding: var(--section-pad-mobile) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--section-pad-tablet) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--section-pad-desktop) 0;
  }
}

/* --- Section Headers --- */
.section-overline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-overline--werqai {
  color: var(--color-werqai);
}

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  text-transform: capitalize;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-title .accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-werqai) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title .accent--werqai {
  background: linear-gradient(135deg, var(--color-werqai) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 720px;
}

.section--light .section-title {
  color: var(--text-dark);
}

.section--light .section-subtitle {
  color: var(--text-dark-muted);
}

/* --- Navigation (new panel-based nav) --- */

/* --- Announcement Marquee --- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-cta-2);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  height: var(--announcement-height, 36px);
  transition: transform 0.3s ease;
}

.announcement-bar--hidden {
  transform: translateY(-100%);
}

.announcement-bar__track {
  display: flex;
  animation: marquee 30s linear infinite;
}

.announcement-bar__track:hover {
  animation-play-state: paused;
}

.announcement-bar__item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 600;
  color: #022C22;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-shadow: none;
}

.auto-carousel .announcement-bar__item {
  width: auto;
  padding: 0px;
  height: 50px;
  gap: 16px;
  cursor: pointer;
}

.auto-carousel .announcement-bar__item img{
  padding: 6px 12px;
  background: #fafafa;
  border-radius: 0.35rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announcement-bar__item span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #022C22;
  border-radius: 50%;
  opacity: 0.7;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 1050;
  height: var(--nav-h, 68px);
  background: rgba(6, 10, 19, .96);
  border-bottom: 1px solid var(--bg-dark-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: top .3s ease, box-shadow .3s ease;
}

.navbar.scrolled {
  top: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-right: 48px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

/* Desktop menu */
.menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  height: var(--nav-h, 68px);
  flex: 1;
}

.menu-item {
  position: static;
  display: flex;
  align-items: center;
}

.menu-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 15px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .01em;
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s;
  font-family: var(--font-body, 'Inter', sans-serif);
  position: relative;
}

.menu-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .25s ease;
}

.menu-item.open .menu-trigger::after,
.menu-trigger:hover::after {
  transform: scaleX(1);
}

.menu-trigger:hover,
.menu-item.open .menu-trigger {
  color: var(--text-white);
}

.menu-trigger.ai-t {
  color: var(--color-werqai);
  font-weight: 600;
}

.menu-trigger.ai-t:hover,
.menu-item.open .menu-trigger.ai-t {
  color: #38BDF8;
}

.menu-trigger.ai-t::after {
  background: #38BDF8;
}

.menu-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform .2s;
  flex-shrink: 0;
  opacity: .7;
}

.menu-item.open .menu-trigger svg {
  transform: rotate(180deg);
}

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  top: calc(var(--nav-h, 68px) + 36px);
  background: rgba(0, 0, 0, .5);
  z-index: 98;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Mega panels */
.panel {
  position: fixed;
  top: calc(var(--nav-h, 68px) + 36px);
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-dark-border);
  z-index: 99;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7);
  display: none;
  animation: panelIn .2s ease;
}

.panel.active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-body {
  max-height: calc(100vh - var(--nav-h, 68px) - 36px - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-dark-border) transparent;
}

.p-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 40px 24px;
}

/* Panel footer */
.p-footer {
  border-top: 1px solid var(--bg-dark-border);
  max-width: 1400px;
  margin: 0 auto;
  padding: 13px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-footer p {
  font-size: 13px;
  color: var(--text-muted);
}

.p-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border: 1px solid var(--bg-dark-border);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  transition: all .2s;
  white-space: nowrap;
}

.p-footer-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: var(--color-primary-50);
}

/* Category label */
.cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-dark-border);
}

.cat.ai {
  color: #38BDF8;
}

/* Link list */
.llist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.llist a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: all .15s ease;
  line-height: 1.4;
}

.llist a:hover {
  background: var(--color-primary-50);
  color: var(--text-white);
  padding-left: 14px;
}

.llist a .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
  white-space: nowrap;
}

/* ── Reusable llist sub-item (desktop inline flyout) ── */
.llist-has-sub {
  position: relative;
}

.llist-has-sub > .llist-sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.llist-arr {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0;
  color: var(--color-primary-light);
  transition: opacity .15s, transform .15s;
}

.llist-has-sub:hover .llist-arr {
  opacity: 1;
  transform: translateX(2px);
}

/* Flyout sub-list */
.llist-sub {
  position: absolute;
  left: calc(100% + 0px);
  top: 0;
  min-width: 200px;
  list-style: none;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--bg-dark-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
  z-index: 300;
}

.llist-has-sub:hover > .llist-sub,
.llist-has-sub:focus-within > .llist-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.llist-sub li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .15s ease;
}

.llist-sub li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-dark-border);
  flex-shrink: 0;
  transition: background .15s;
}

.llist-sub li a:hover {
  background: var(--color-primary-50);
  color: var(--text-white);
  padding-left: 16px;
}

.llist-sub li a:hover::before {
  background: var(--color-primary-light);
}

.badge-green {
  background: rgba(16, 185, 129, .15);
  color: #34D399;
}

.badge-blue {
  background: var(--color-primary-100);
  color: var(--color-primary-light);
}

.badge-ai {
  background: rgba(14, 165, 233, .12);
  color: #38BDF8;
}

/* Link grid (2-col) */
.lgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  list-style: none;
}

.lgrid li a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  transition: all .15s;
}

.lgrid li a:hover {
  background: var(--color-primary-50);
}

.lgrid .lg-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: 3px;
  display: block;
}

.lgrid .lg-name {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color .15s;
}

.lgrid li a:hover .lg-name {
  color: var(--text-white);
}

/* Industry grid */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  list-style: none;
}

.ind-grid>li>a,
.ind-grid .ind-sub-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .15s;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.ind-grid>li>a:hover,
.ind-grid .ind-sub-trigger:hover,
.ind-has-sub:hover>.ind-sub-trigger {
  background: var(--color-primary-50);
  color: var(--text-white);
}

.ind-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-dark-border);
  flex-shrink: 0;
  transition: background .15s;
}

.ind-grid>li>a:hover .ind-dot,
.ind-has-sub:hover .ind-dot {
  background: var(--color-primary-light);
}

.ind-has-sub {
  position: relative;
}

.ind-has-sub .ind-sub-trigger {
  justify-content: space-between;
}

.ind-has-sub .ind-sub-trigger .arr {
  font-size: 14px;
  color: var(--text-dark-muted);
  transition: color .15s;
}

.ind-has-sub:hover .arr {
  color: var(--color-primary-light);
}

/* Fly-out */
.ind-flyout {
  position: absolute;
  left: calc(100% + 0px);
  top: -8px;
  min-width: 210px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--bg-dark-border);
  border-radius: 10px;
  padding: 6px;
  display: none;
  z-index: 200;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  animation: flyIn .15s ease;
}

@keyframes flyIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ind-has-sub:hover .ind-flyout {
  display: block;
}

.ind-flyout a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all .15s;
}

.ind-flyout a:hover {
  background: var(--color-primary-50);
  color: var(--text-white);
  padding-left: 16px;
}

/* Product cards */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.prod-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prod-card:hover {
  border-color: rgba(59, 99, 207, .4);
  background: rgba(59, 99, 207, .05);
  transform: translateY(-2px);
}

.prod-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--color-primary-100);
  border: 1px solid rgba(59, 99, 207, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.prod-card h4 {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-white);
}

.prod-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.prod-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--color-primary-light);
  font-weight: 500;
  transition: gap .15s;
}

.prod-card:hover .prod-link {
  gap: 8px;
}

/* Promo / Featured cards */
.feat-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.feat-thumb {
  border-radius: 8px;
  height: 110px;
  background: linear-gradient(135deg, rgba(59, 99, 207, .2), rgba(14, 165, 233, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.feat-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, .12);
  color: #38BDF8;
}

.feat-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.45;
}

.feat-card p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feat-card a.read {
  font-size: 13px;
  color: var(--color-primary-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.promo-card {
  background: linear-gradient(135deg, rgba(59, 99, 207, .14), rgba(14, 165, 233, .08));
  border: 1px solid rgba(59, 99, 207, .25);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.promo-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.promo-card .promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  transition: background .2s;
  width: fit-content;
}

.promo-card .promo-btn:hover {
  background: var(--color-primary-dark);
}

.trust-logos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.trust-chip {
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--bg-dark-border);
  border-radius: 4px;
  color: var(--text-dark-muted);
}

/* About snapshot */
.about-snapshot {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-box {
  background: var(--color-primary-50);
  border: 1px solid rgba(59, 99, 207, .15);
  border-radius: 9px;
  padding: 12px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary-light);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Resources */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-pill {
  padding: 6px 13px;
  border: 1px solid var(--bg-dark-border);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: all .15s;
  cursor: pointer;
  background: none;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.tool-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  background: var(--color-primary-50);
}

.sub-email {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.sub-email input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark-border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-white);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}

.sub-email input:focus {
  border-color: var(--color-primary);
}

.sub-email input::placeholder {
  color: var(--text-dark-muted);
}

.sub-email button {
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
  font-family: inherit;
}

.sub-email button:hover {
  background: var(--color-primary-dark);
}

/* WerqAI hero link */
.ai-hero-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: rgba(14, 165, 233, .09);
  border: 1px solid rgba(14, 165, 233, .2);
  font-size: 14px;
  color: #38BDF8;
  font-weight: 600;
  transition: all .2s;
  margin-bottom: 10px;
}

.ai-hero-link:hover {
  background: rgba(14, 165, 233, .15);
  border-color: rgba(14, 165, 233, .35);
}

.ai-hero-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: calc(var(--nav-height-mobile, 64px) + 36px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 1500;
  padding: 0 0 100px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
  border-top: 1px solid var(--bg-dark-border);
}

body:has(.navbar.scrolled) .mobile-nav {
  top: calc(var(--nav-height-mobile, 64px));
}

.mobile-nav.open {
  transform: translateX(0);
}

.mob-item {
  border-bottom: 1px solid var(--bg-dark-border);
}

.mob-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.mob-trigger.ai-t {
  color: var(--color-werqai);
}

.mob-trigger svg {
  transition: transform .25s;
  flex-shrink: 0;
}

.mob-trigger[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.mob-sub {
  display: none;
  padding: 0 20px 14px 28px;
}

.mob-sub.open {
  display: block;
}

.mob-sub a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.mob-sub a:last-child {
  border-bottom: none;
}

.mob-sub a:hover {
  color: var(--text-white);
}

/* Mobile 3rd level */
.mob-sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.mob-sub-trigger[aria-expanded=true] {
  color: var(--color-primary-light);
}

.mob-sub-trigger[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.mob-sub-trigger svg {
  width: 13px;
  height: 13px;
  transition: transform .25s;
}

.mob-3rd {
  display: none;
  padding-left: 14px;
  margin-bottom: 4px;
}

.mob-3rd.open {
  display: block;
}

.mob-3rd a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-dark-muted);
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.mob-3rd a:hover {
  color: var(--text-white);
}

.mob-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-dark-border);
  z-index: 1000;
}

.mob-cta .btn-cta {
  width: 100%;
  justify-content: center;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1023px) {
  .menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-right .btn-cta {
    display: none;
  }
}

@media (min-width: 1024px) {

  .hamburger,
  .mobile-nav,
  .mob-cta {
    display: none !important;
  }
}

/* --- Legacy dropdown classes kept for compatibility --- */
.dropdown--industries {
  min-width: 600px;
  max-width: 720px;
}

.dropdown--industries .dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* CTA Button (Nav) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-cta);
  /* color: #022C22; */
  color: var(--bg-white);
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
  border: 2px solid var(--color-cta);
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--color-cta-dark);
  box-shadow: 0 4px 15px rgba(16, 27, 185, 0.3);
  transform: translateY(-1px);
}

.btn-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-cta:hover svg {
  transform: translateX(3px);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--border-bright);
  color: var(--text-white);
  font-size: 15px;
  text-transform: capitalize;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--border-bright);
  color: white;
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  text-transform: capitalize;
  color: var(--color-cta);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: var(--color-primary-light);
}

.btn-ghost svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h, 68px) + 36px + 40px);
  padding-bottom: 80px;
  background: var(--bg-darkest);
  overflow: hidden;
}

.hero__overline span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  animation: pulse 2s ease-in-out infinite;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(6, 10, 19, 0.25) 0%, rgba(6, 10, 19, 0.18) 40%, rgba(6, 10, 19, 0.4) 100%),
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(59, 99, 207, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 99, 207, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 99, 207, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-primary-50);
  border: 1px solid rgba(59, 99, 207, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--color-primary);
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  text-align: center;
  max-width: 1200px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 4rem;
  }
}

.hero__title .accent,
.accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-werqai) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 1000px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__description {
    font-size: 1.125rem;
  }
}

.werqai-bg {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

/* LEFT IMAGE */
.werqai-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: url('/images/hero/fractal-glass.jpg') center/cover no-repeat;
  z-index: 0;
}

/* FADE BLEND (important for premium look) */
.werqai-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(10, 15, 28, 0.2) 0%,
      rgba(10, 15, 28, 0.6) 45%,
      rgba(10, 15, 28, 1) 55%);
  z-index: 1;
}

/* Ensure content stays above */
.werqai-bg .container {
  position: relative;
  z-index: 2;
}

#cases-heading {
  color: var(--text-dark);
}

#cases-heading+p {
  color: var(--text-dark-muted);
}

/* .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-dark-border);
}

.hero__trust-item {
  text-align: center;
}

.hero__trust-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
}

.hero__trust-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
} */

.hero__stats {
  display: flex;
  gap: 0;
  justify-content: center;
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  margin-top: 2rem;
}

.hero__stat {
  flex: 1;
  padding: 20px 36px;
  text-align: center;
  border-right: 1px solid var(--border-bright);
}

.hero__stat:last-child {
  border-right: none;
}

.hero__stat-n {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
}

.hero__stat-l {
  font-size: 12px;
  text-wrap: nowrap;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Service Pillar Cards --- */
.pillar-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 99, 207, 0.1);
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: 12px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.pillar-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-white);
}

.pillar-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

/* --- Stats Section --- */
.stats-bar {
  background: var(--color-cta);
}

.stat-item {
  text-align: center;
  padding: 16px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-number .stat-suffix {
  color: var(--text-white);
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* --- Case Study Cards --- */
.case-study-card {
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 400px;
  background: var(--bg-dark-card);
  /* border: 1px solid var(--bg-dark-border); */
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.case-study-card__image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.case-study-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--bg-dark-card));
}

.case-study-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.case-study-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-werqai);
  margin-bottom: 8px;
}

.case-study-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 10px;
}

.case-study-card__text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0px;
  flex: 1;
}

.case-study-card__stats {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-dark-border);
}

.case-study-card__stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-cta);
}

.case-study-card__stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Carousel --- */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  scroll-behavior: smooth;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track>* {
  scroll-snap-align: start;
}

.carousel__nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.carousel__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-cta);
  border-radius: 50%;
  color: var(--color-cta);
  transition: all 0.2s ease;
}

.carousel__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-50);
}

/* --- Testimonials --- */
/* --- Testimonial Grid --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  padding: 32px;
}

.testimonial-card__quote {
  font-size: 32px;
  color: var(--color-primary-50);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary);
}

.testimonial-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Logo Marquee --- */
.logo-marquee {
  overflow: hidden;
  padding: 24px 0;
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 30s linear infinite;
}

.logo-marquee__track:hover {
  animation-play-state: paused;
}

.logo-marquee__item {
  flex-shrink: 0;
  opacity: 0.4;
  filter: grayscale(100%) brightness(2);
  transition: all 0.3s ease;
  height: 32px;
}

.logo-marquee__item:hover {
  opacity: 0.8;
  filter: grayscale(0%) brightness(1);
}

/* --- Tech Tabs --- */
.tech-tabs {
  display: flex;
  gap: 32px;
}

@media (max-width: 767px) {
  .tech-tabs {
    flex-direction: column;
  }
}

.tech-tabs__list {
  display: flex;
  background: var(--color-primary-50);
  backdrop-filter: blur(11.4px);
  -webkit-backdrop-filter: blur(11.4px);
  padding: 8px;
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  min-width: 260px;
  list-style: none;
}

@media (max-width: 767px) {
  .tech-tabs__list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .tech-tabs__list::-webkit-scrollbar {
    display: none;
  }
}

.tech-tabs__tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tech-tabs__tab:hover {
  color: var(--text-white);
  background: var(--color-primary-50);
}

.tech-tabs__tab--active {
  color: var(--text-white);
  background: var(--color-primary-50);
  border-left-color: var(--color-primary);
}

@media (max-width: 767px) {
  .tech-tabs__tab {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
  }

  .tech-tabs__tab--active {
    border-bottom-color: var(--color-primary);
  }
}

.tech-tabs__content {
  flex: 1;
}

.tech-tabs__panel {
  display: none;
  height: 100%;
}

.tech-tabs__panel--active {
  display: block;
}

.tech-tabs__panel h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tech-tabs__panel p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.tech-capabilities {
  list-style: none;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.5;
}

.tech-capabilities li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-light);
}

/* --- Industry Tabs --- */
.industry-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  /* overflow-x: auto; */
  scrollbar-width: none;
  padding-bottom: 8px;
  margin-bottom: 32px;
}

.industry-tabs::-webkit-scrollbar {
  display: none;
}

.industry-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.industry-tab:hover {
  border-color: var(--color-primary);
  color: var(--text-light);
}

.industry-tab--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.industry-content {
  display: none;
}

.industry-content--active {
  display: block;
}

/* --- Industry Panel (Featured Layout) --- */
.industry-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .industry-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.industry-panel__image {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .industry-panel__image {
    min-height: 400px;
  }
}

.industry-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.industry-panel__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .industry-panel__body {
    padding: 40px;
  }
}

.industry-panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.industry-panel__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.industry-panel__solutions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.industry-panel__solution {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
}

.industry-panel__solution svg {
  flex-shrink: 0;
}

/* --- Awards Grid --- */
.award-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.award-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.award-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.award-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.award-card__org {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--bg-dark-border);
}

.faq-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.faq-item__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 36px;
}

.faq-item__question {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.4;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__answer-inner {
  padding: 0 0 20px 52px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Contact Section --- */
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 8px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-muted);
}

.contact-form__textarea {
  min-height: 120px;
  resize: vertical;
}

/* --- Contact Popup / Modal --- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal--open {
  display: flex;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  padding: 32px;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1;
}

.contact-modal--open .contact-modal__dialog {
  transform: scale(1);
  opacity: 1;
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.contact-modal__close:hover {
  background: var(--color-primary-50);
  color: var(--text-white);
}

.contact-modal__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-modal__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-modal .contact-form__group {
  margin-bottom: 16px;
}

.contact-modal .contact-form__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-modal__trust {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.contact-modal__trust svg {
  display: inline;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
  color: var(--color-cta);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- Cookie Consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--bg-dark-elevated);
  border-top: 1px solid var(--bg-dark-border);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-consent--visible {
  transform: translateY(0);
}

.cookie-consent__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent__text {
  flex: 1;
  font-size: 14px;
  color: var(--text-light);
  min-width: 280px;
}

.cookie-consent__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cookie-consent__btn--accept {
  background: var(--color-cta);
  color: var(--text-white);
}

.cookie-consent__btn--accept:hover {
  background: var(--color-cta-dark);
}

.cookie-consent__btn--reject {
  background: transparent;
  border: 1px solid var(--bg-dark-border);
  color: var(--text-light);
}

.cookie-consent__btn--reject:hover {
  border-color: var(--text-muted);
}

/* --- Live Chat Widget --- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: none;
}

.chat-widget__trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 99, 207, 0.4);
  transition: all 0.2s ease;
}

.chat-widget__trigger:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.chat-widget__trigger svg {
  width: 24px;
  height: 24px;
}

.chat-widget__window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  height: 480px;
  background: var(--bg-dark-elevated);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chat-widget__window--open {
  display: flex;
}

.chat-widget__header {
  padding: 16px 20px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-widget__header-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.chat-widget__header-status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.chat-widget__close {
  color: white;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.chat-widget__close:hover {
  opacity: 1;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-msg--bot {
  background: var(--bg-dark-card);
  color: var(--text-light);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-msg--user {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-widget__input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--bg-dark-border);
  display: flex;
  gap: 8px;
}

.chat-widget__input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 8px;
  color: var(--text-white);
  font-size: 14px;
  font-family: inherit;
}

.chat-widget__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.chat-widget__send {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-widget__send:hover {
  background: var(--color-primary-dark);
}

/* --- Footer --- */
.footer {
  background: var(--bg-darkest);
  border-top: 1px solid var(--bg-dark-border);
}

.footer__top {
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .footer__brand {
    grid-column: 1 / 2;
  }
}

.footer__brand-logo {
  margin-bottom: 16px;
}

.footer__brand-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bg-dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.footer__col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-white);
}

.footer__bottom {
  padding: 24px 0;
  border-top: 1px solid var(--bg-dark-border);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--text-light);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Compliance Badges --- */
.compliance-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.compliance-badge:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 99, 207, 0.1);
}

.compliance-badge__icon {
  color: var(--color-primary);
}

.compliance-badge__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.compliance-badge__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-cta);
}

/* --- Compliance Cards --- */
.compliance-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.compliance-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 99, 207, 0.08);
}

.compliance-card__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary-50);
  position: absolute;
  top: 20px;
  right: 24px;
}

.compliance-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  padding-right: 48px;
}

.compliance-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}

.compliance-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compliance-card__tags span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  background: var(--color-primary-50);
  border-radius: 4px;
}

/* --- Compliance Stats Bar --- */
.compliance-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: url(../images/hero/04.jpg) no-repeat center/cover;
  border: 1px solid var(--bg-dark-border);
  border-radius: 16px;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.compliance-stats-bar__item {
  text-align: center;
  padding: 8px 28px;
}

.compliance-stats-bar__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.3;
}

.compliance-stats-bar__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.compliance-stats-bar__divider {
  width: 1px;
  height: 40px;
  background: var(--bg-dark-border);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .compliance-stats-bar {
    flex-direction: column;
    gap: 8px;
  }

  .compliance-stats-bar__divider {
    width: 60px;
    height: 1px;
  }

  .compliance-stats-bar__item {
    padding: 12px 0;
  }
}

/* --- Compliance Accordion --- */
.compliance-item {
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.compliance-item:hover {
  border-color: rgba(59, 99, 207, 0.3);
}

.compliance-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: var(--bg-dark-card);
}

.compliance-item__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  min-width: 28px;
}

.compliance-item__title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.compliance-item__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.compliance-item--open .compliance-item__icon {
  transform: rotate(180deg);
}

.compliance-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.compliance-item__body-inner {
  padding: 0 24px 18px 68px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Loudbol CTA Banner --- */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-werqai) 100%);
  border-radius: 20px;
  padding: 60px 40px;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h40M20 0v40' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: capitalize;
  color: white;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .cta-banner__title {
    font-size: 2.5rem;
  }
}

.cta-banner__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: white;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.cta-banner__btn:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-bright);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  overflow: hidden;
}

.pillar {
  background: var(--bg-dark);
  padding: 48px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar:hover {
  background: rgba(59, 99, 207, 0.04);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar__num {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pillar__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-primary-100);
  border: 1px solid rgba(59, 99, 207, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary-light);
}

.pillar__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 12px;
}

.pillar__text {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pillar__list {
  font-size: 0.875rem;
  list-style-type: disc;
  padding-left: 1.25rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--text-light);
}

.pillar__link {
  font-size: 13px;
  color: var(--color-primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.pillar__link:hover {
  gap: 10px;
}

.pillar__link svg {
  transition: transform 0.2s;
}

.pillar__link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .hero__stats {
    flex-wrap: wrap;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────── SECURITY STAT BAR ──────────────────── */
.security-bar {
  display: flex;
  gap: 0;
  margin-top: 48px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.security-bar-item {
  flex: 1;
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.security-bar-item:last-child {
  border-right: none;
}

.security-bar-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.security-bar-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================
   TESTIMONIAL SECTION STYLES
   ============================================ */

.testimonial-card {
  position: relative;
  background: var(--bg-darkest);
  border: 1px solid var(--bg-dark-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

/* Hover (optional but recommended) */
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

/* Quote text */
.testimonial-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* Profile */
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar */
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Name */
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

/* Role */
.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================
       FAQ
    ============================================= */
.faq-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .faq-cols {
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
  }
}

.faq-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

@media (max-width: 1023px) {
  .faq-sidebar {
    position: static;
    margin-bottom: 40px;
  }
}

/* =============================================
       CTA BANNER - DARK GRADIENT
    ============================================= */
.android-cta-banner {
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark-border);
  border-radius: 20px;
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.android-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(59, 99, 207, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.android-cta-banner__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 16px;
  position: relative;
}

.android-cta-banner__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
}

.android-cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
}

@media (max-width: 640px) {
  .android-cta-banner {
    padding: 48px 24px;
  }
}

/* --- Utility: Focus Visible --- */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

/* ============================================
       MARKET BANNER
    ============================================ */

.market-banner {
  background: var(--bg-white);
  overflow: hidden;
  position: relative;
}

.market-banner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 340px;
}

/* ---- LEFT: Content ---- */
.market-banner__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px 56px 60px;
  position: relative;
  z-index: 2;
  background: var(--bg-white);
}

.market-banner__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
}

.market-banner__logo-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.market-banner__logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.market-banner__logo-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-banner__logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--text-dark-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.market-banner__heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.market-banner__subtext {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-dark-secondary);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 36px;
}

.market-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 13px 30px;
  background: var(--color-primary);
  color: var(--text-white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 99, 207, 0.30);
  white-space: nowrap;
}

.market-banner__cta:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 99, 207, 0.42);
}

.market-banner__cta svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.market-banner__cta:hover svg {
  transform: translateX(4px);
}

/* ---- RIGHT: Visual / Geometric ---- */
.market-banner__visual {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  /* Yellow - same as Appinventiv */
  min-height: 340px;
}

/* White diagonal wedge cutting in from left */
.market-banner__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-white);
  clip-path: polygon(0 0, 22% 0, 8% 100%, 0 100%);
  z-index: 2;
}

/* Person / hero image container */
.market-banner__img-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-42%);
  z-index: 3;
  width: 68%;
  max-width: 520px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.market-banner__hero-img {
  width: 100%;
  height: 110%;
  max-height: 380px;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* Fade out at feet */
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* ============================================
       RESPONSIVE
    ============================================ */
@media (max-width: 1024px) {
  .market-banner__content {
    padding: 48px 40px 48px 44px;
  }
}

@media (max-width: 768px) {
  .market-banner__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .market-banner__content {
    padding: 48px 24px 40px;
    border-bottom: 1px solid var(--border-light);
  }

  .market-banner__visual {
    min-height: 260px;
  }

  .market-banner__img-wrap {
    max-width: 260px;
  }

  .market-banner__hero-img {
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .market-banner__heading {
    font-size: 1.75rem;
  }

  .market-banner__visual {
    min-height: 220px;
  }
}

/* ====================================================
       SECTION: HOW WE WORK
       Horizontal process timeline
    ==================================================== */
.how-section {
  background: var(--bg-dark);
  padding: 100px 0;
}

.how__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 64px;
  position: relative;
}

@media (min-width: 768px) {
  .how__timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .how__timeline.fr3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Connecting line */
@media (min-width: 768px) {
  .how__timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 5%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), rgba(59, 99, 207, 0.2));
    z-index: 0;
  }
}

.how-step {
  padding: 0 24px 48px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .how-step {
    padding: 0 20px 0;
  }
}

.how-step__dot {
  width: 56px;
  height: 56px;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.how-step:hover .how-step__dot {
  border-color: var(--color-primary);
  background: var(--color-primary-dim);
}

.how-step__index {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.how-step__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.how-step__body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   RESPONSIVE OVERRIDES - Mobile & Tablet
   ============================================ */

/* --- Services Panel (mega menu) responsive --- */
@media (max-width: 1279px) {
  #panel-services .p-inner {
    grid-template-columns: repeat(2, 1fr) 220px !important;
    gap: 20px !important;
  }
}

@media (max-width: 1023px) {
  #panel-services .p-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #panel-services .promo-card {
    display: none;
  }

  .p-inner {
    padding: 20px;
  }

  .p-footer {
    padding: 12px 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Industry grid in panel */
  .ind-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product grid in panel */
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .ind-grid {
    grid-template-columns: 1fr;
  }

  .prod-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Announcement Bar overflow --- */
@media (max-width: 767px) {
  .announcement-bar {
    height: auto;
    min-height: var(--announcement-height, 36px);
  }

  .announcement-bar__item {
    gap: 16px;
    padding: 0 16px;
    font-size: 12px;
  }
}

/* --- Hero Title Scaling --- */
@media (max-width: 480px) {
  .android-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .android-hero__badge {
    font-size: 10px;
    padding: 5px 12px;
  }

  .android-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .android-hero__actions .btn-cta,
  .android-hero__actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .android-hero__stats {
    flex-direction: column;
    max-width: 100%;
  }

  .android-hero__stat {
    border-right: none;
    border-bottom: 1px solid var(--bg-dark-border);
    padding: 14px 20px;
  }

  .android-hero__stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .android-hero {
    padding-top: calc(var(--nav-height-mobile) + var(--announcement-height, 36px) + 40px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .android-hero__breadcrumb {
    margin-bottom: 20px;
  }

  .android-hero__title {
    margin-bottom: 20px;
  }

  .android-hero__actions {
    margin-bottom: 36px;
  }
}

/* --- Industries Mosaic --- */
@media (max-width: 479px) {
  .industries-mosaic {
    grid-template-columns: 1fr;
  }
}

/* --- Footer Grid --- */
@media (max-width: 479px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__top {
    padding: 48px 0 32px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* --- Section Title & Subtitle Scaling --- */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 48px 0;
  }
}

/* --- FAQ Columns (already handled but ensure mobile is good) --- */
@media (max-width: 767px) {
  .faq-cols {
    gap: 24px;
  }

  .faq-sidebar {
    margin-bottom: 24px;
  }
}

/* --- How We Work Timeline --- */
@media (max-width: 767px) {
  .how-section {
    padding: 64px 0;
  }

  .how__timeline {
    margin-top: 40px;
  }

  .how-step {
    padding: 0 0 32px;
    border-left: 1px solid var(--bg-dark-border);
    padding-left: 24px;
    margin-left: 28px;
  }

  .how-step__dot {
    position: absolute;
    left: -28px;
    top: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .how-step__title {
    padding-top: 4px;
  }
}

/* --- Buttons on small screens --- */
@media (max-width: 480px) {
  .btn-cta,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* --- CTA Banner responsive --- */
@media (max-width: 480px) {
  .android-cta-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .android-cta-banner__actions .btn-cta,
  .android-cta-banner__actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Navbar responsive enhancements --- */
@media (max-width: 1023px) {
  .navbar {
    height: var(--nav-height-mobile, 64px);
  }

  .overlay {
    top: calc(var(--nav-height-mobile, 64px) + 36px);
  }

  .navbar.scrolled + .overlay,
  .navbar.scrolled ~ .overlay {
    top: var(--nav-height-mobile, 64px);
  }
}

/* --- Container padding tightening on small screens --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

/* --- Market Banner responsive enhancements --- */
@media (max-width: 480px) {
  .market-banner__content {
    padding: 36px 16px 32px;
  }

  .market-banner__cta {
    width: 100%;
    justify-content: center;
  }
}
/* ═══════════════════════════════════════
   MOBILE RESPONSIVE FIXES — May 2026
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .panel .p-inner {
    max-width: 100%;
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .contact-modal__dialog {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 12px 12px 0 0;
    max-height: 90vh;
    overflow-y: auto;
  }
  .footer__bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer__legal {
    justify-content: center;
  }
  .mob-cta .btn-cta {
    padding: 14px 28px;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .navbar .nav-inner {
    padding: 0 16px;
  }
}
