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

:root {
  --bg: #070b16;
  --bg2: #0b1120;
  --panel: #0f1728;
  --line: rgba(166, 187, 229, 0.15);
  --text: #f4f7ff;
  --muted: #a2aec6;
  --blue: #60a5fa;
  --cyan: #48e0e6;
  --purple: #a78bfa;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 'DM Sans', sans-serif;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.13;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.8rem, 5.8vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.28rem; }

p {
  margin: 0 0 18px;
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin: auto;
}

.w-full {
  width: 100%;
}


.muted, .lead, .section-heading > p, .service-card > p, .project-content > p, .blog-card-content > p {
  color: var(--muted);
}

.lead {
  font-size: 1.12rem;
  max-width: 620px;
  line-height: 1.8;
}

.gradient-text {
  background: linear-gradient(100deg, #72b8ff 5%, #6be2e9 48%, #b39aff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ambient Background Lights */
.ambient {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.17;
  border-radius: 50%;
}

.ambient-one {
  width: 450px;
  height: 450px;
  background: #4b5eff;
  top: -180px;
  left: -160px;
}

.ambient-two {
  width: 500px;
  height: 500px;
  background: #11b8d1;
  top: 600px;
  right: -300px;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner,
.nav-wrap {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #1b70e6, #9a78ff);
  font: 800 20px 'Manrope', sans-serif;
  box-shadow: 0 0 25px rgba(73, 122, 255, 0.25);
}

.brand-mark span {
  color: #bdfaff;
  margin-left: -2px;
}

.brand-name {
  font: 800 17px 'Manrope', sans-serif;
  letter-spacing: 0.04em;
}

.brand-name small {
  display: block;
  font: 600 9px 'DM Sans', sans-serif;
  letter-spacing: 0.25em;
  color: #90a9d3;
  margin-top: 1px;
}

.brand-has-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-image {
  display: block;
  height: 38px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav > a,
.nav-dropdown-trigger {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
  color: #ffffff;
}

.main-nav > a.active::after,
.nav-dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

.dropdown-chevron {
  font-size: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  opacity: 0.7;
}

.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-dropdown.has-megamenu {
  position: relative;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Sleek Standard Dropdown Panel */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  transform: translateY(8px);
  min-width: 270px;
  white-space: normal;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.1);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-panel::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px; /* hover bridge */
}

.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown.is-hovered .dropdown-panel,
.nav-item-dropdown:focus-within .dropdown-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(3px);
}

.dropdown-item-icon {
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dropdown-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.dropdown-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}

.dropdown-item-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Mantravi High-Impact Mega Menu Panel */
.megamenu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(8px);
  width: min(840px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  white-space: normal;
  background: #080d1a;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.15);
  padding: 26px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 120;
}

.megamenu-panel::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px; /* hover bridge */
}

.nav-item-dropdown:hover .megamenu-panel,
.nav-item-dropdown.is-hovered .megamenu-panel,
.nav-item-dropdown:focus-within .megamenu-panel {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

.megamenu-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.megamenu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.megamenu-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #38bdf8;
  margin-bottom: 4px;
}

.megamenu-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.megamenu-view-all {
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}

.megamenu-view-all:hover {
  gap: 9px;
  color: #ffffff;
}

.megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.megamenu-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.22s ease;
  min-width: 0;
}

.megamenu-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.megamenu-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.megamenu-card:hover .megamenu-card-icon {
  transform: scale(1.08);
  background: #38bdf8;
  color: #030712;
}

.megamenu-card-content {
  flex: 1;
  min-width: 0;
}

.megamenu-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.megamenu-card-title strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.megamenu-badge {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.22);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.megamenu-card-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: #ffffff;
  color: #050505 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.header-cta-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.header-cta-btn .swap-text-button__icon {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.header-cta-btn:hover .swap-text-button__icon {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Sections & Typography */
.section {
  padding: 95px 0;
  position: relative;
}

.section-soft {
  background: linear-gradient(180deg, #0a1020, #0b1120 50%, #090e1b);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 95px 0 80px;
  min-height: 660px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #83baff;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #4ce4c0;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ce4c0;
}

.hero-kicker {
  color: #a9b8d5;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 13px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(110deg, #2875ee, #6e68f7 60%, #8e73fa);
  color: white;
  box-shadow: 0 10px 30px rgba(53, 103, 227, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(71, 120, 255, 0.4);
}

.btn-outline {
  border-color: rgba(154, 175, 214, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #e9efff;
}

.btn-outline:hover {
  border-color: #60a5fa;
  background: rgba(255, 255, 255, 0.06);
}

.trust-points {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #a7b6d1;
}

.trust-points span {
  color: #64e0c2;
}

/* Hero Art */
.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #426cff;
  filter: blur(110px);
  opacity: 0.23;
  z-index: -1;
}

.glass {
  background: linear-gradient(140deg, rgba(23, 36, 64, 0.9), rgba(12, 18, 34, 0.95));
  border: 1px solid rgba(182, 204, 255, 0.16);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.ai-window {
  width: min(430px, 100%);
  border-radius: 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: rotate(-2deg);
}

.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  color: #8da3c8;
  letter-spacing: 0.12em;
}

.live-tag {
  color: #65e4c0;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ai-core {
  text-align: center;
  padding: 34px 24px 26px;
}

.core-ring {
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(113, 191, 255, 0.4);
  background: radial-gradient(circle, rgba(34, 87, 183, 0.35), #111a32 65%);
  box-shadow: 0 0 45px rgba(71, 138, 255, 0.2);
  position: relative;
}

.core-symbol {
  font-size: 50px;
  color: #8adfff;
  text-shadow: 0 0 25px #56b8ff;
}

.workflow {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px;
  font-size: 9px;
  color: #b8c9e7;
}

.workflow span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(142, 171, 255, 0.12);
  border-radius: 50%;
  width: 440px;
  height: 440px;
  transform: rotateX(67deg) rotate(-25deg);
}

.orbit-b {
  width: 360px;
  height: 360px;
  transform: rotateY(67deg) rotate(28deg);
  border-color: rgba(101, 226, 227, 0.16);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 28, 48, 0.95);
  border: 1px solid rgba(166, 191, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
  border-radius: 14px;
  min-width: 220px;
}

.float-card-top { top: 54px; right: -10px; }
.float-card-bottom { bottom: 48px; left: -15px; }

.float-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(29, 94, 188, 0.35);
  color: #77c8ff;
  font-size: 18px;
}

.float-icon.purple {
  background: rgba(129, 92, 233, 0.35);
  color: #c6a9ff;
}

.float-card b, .float-card small { display: block; }
.float-card b { font-size: 11px; }
.float-card small { font-size: 10px; color: #8fa3c5; }
.float-status { font-size: 10px; color: #6ee7c1; margin-left: auto; font-weight: 700; }

/* Capabilities Strip */
.logo-strip {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.strip-inner {
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.strip-inner > span {
  font-size: 10px;
  color: #7284a5;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.strip-inner > div {
  font: 700 13px 'Manrope', sans-serif;
  color: #8796b3;
  letter-spacing: 0.08em;
}

/* Headings & Grid */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 35px;
  margin-bottom: 45px;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 650px;
}

.section-heading > p {
  max-width: 400px;
  font-size: 14px;
  margin: 0;
}

/* Services Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(18, 28, 46, 0.6), rgba(11, 17, 32, 0.7));
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.service-card:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 167, 255, 0.45);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(40, 117, 237, 0.2), rgba(146, 115, 255, 0.18));
  border: 1px solid rgba(127, 169, 255, 0.2);
  font-size: 22px;
  color: #8fcaff;
}

.card-index {
  font-size: 10px;
  color: #526788;
  letter-spacing: 0.12em;
}

.service-card h3 { font-size: 18px; }
.service-card > p { font-size: 13px; line-height: 1.7; min-height: 60px; }
.service-card ul { list-style: none; padding: 0; margin: 0 0 20px; color: #9baaca; font-size: 12px; }
.service-card li { margin: 7px 0; }
.service-card li:before { content: '↗'; color: #6ccde9; margin-right: 8px; }

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: #90c7ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.text-link:hover { color: #d1faff; }
.center-action { text-align: center; margin-top: 40px; }

/* AI Split Section */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-art {
  min-height: 440px;
  display: grid;
  place-items: center;
  position: relative;
}

.data-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(119, 157, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(119, 157, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse, black, transparent 70%);
}

.product-panel {
  width: min(460px, 100%);
  border-radius: 22px;
  padding: 24px;
  position: relative;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 11px;
  color: #8adfff;
  font-size: 20px;
}

.panel-head b { font-size: 13px; }
.panel-head small { font-size: 11px; color: #91a4c7; }
.panel-head .live-tag { margin-left: auto; }

.call-wave {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 24px 0 8px;
}

.call-wave span {
  height: var(--h, 25px);
  width: 5px;
  border-radius: 5px;
  background: linear-gradient(#76d8f0, #7775fa);
  box-shadow: 0 0 10px rgba(92, 174, 255, 0.2);
}

.call-wave span:nth-child(3n) { --h: 66px; }
.call-wave span:nth-child(4n) { --h: 42px; }
.call-wave span:nth-child(5n) { --h: 86px; }
.call-wave span:nth-child(2n) { --h: 32px; }
.call-wave span:nth-child(7n) { --h: 105px; }

.call-caption {
  text-align: center;
  font-size: 12px;
  color: #b4c4e1;
}

.integration-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.integration-pills span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 11px;
  color: #a8bddf;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.metric-row small { font-size: 10px; color: #879aba; }
.metric-row b { font-size: 13px; margin-top: 3px; }

.check-list {
  padding: 0;
  list-style: none;
  margin: 25px 0 30px;
  color: #c4d0e6;
  font-size: 14px;
}

.check-list li {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li:before {
  content: '✓';
  color: #6de2c1;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(66, 217, 178, 0.12);
  font-size: 12px;
  flex-shrink: 0;
}

.fine-print { font-size: 11px; color: #7284a5; margin-top: 14px; }

/* ------------------------------------------------------------- */
/* PORTFOLIO & CASE STUDY STYLES                                  */
/* ------------------------------------------------------------- */

/* Filter Controls */
.portfolio-controls-section {
  padding: 10px 0 25px;
}

.portfolio-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.portfolio-filter-btn,
.portfolio-tab-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(166, 187, 229, 0.18);
  background: #0c1424;
  color: #a8bcd8;
  font: 600 13px 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.portfolio-filter-btn:hover,
.portfolio-tab-link:hover {
  border-color: #60a5fa;
  color: #fff;
  background: #142038;
}

.portfolio-filter-btn.active,
.portfolio-tab-link.active {
  background: linear-gradient(110deg, #2563eb, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

/* Projects Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #0e1728;
  transition: transform 0.25s, border-color 0.25s;
}

.project-art {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(49, 101, 182, 0.36), transparent 55%),
              linear-gradient(135deg, #152d4e, #0d1427);
}

.project-art.has-cover {
  background: #0d1427;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .card-cover-img {
  transform: scale(1.05);
}

.project-mark {
  font-size: 72px;
  color: #9cdcff;
  text-shadow: 0 0 35px rgba(87, 157, 255, 0.5);
  position: relative;
}

.project-category {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #d1e5ff;
  background: rgba(8, 14, 28, 0.75);
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  font-weight: 700;
  max-width: calc(100% - 36px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.project-content p {
  font-size: 13px;
  min-height: 52px;
  line-height: 1.7;
}

/* Technology Tags */
.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 600;
  color: #a4beea;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 6px;
}

/* Empty State */
.portfolio-empty-state {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1 / -1;
  background: #0d1627;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  margin: 20px 0;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 14px;
  color: #60a5fa;
}

.portfolio-empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.portfolio-empty-state p {
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 20px;
}

/* ------------------------------------------------------------- */
/* CASE STUDY DETAIL PAGE                                        */
/* ------------------------------------------------------------- */

.case-study-hero {
  padding: 70px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse at 50% 0, rgba(37, 99, 235, 0.14), transparent 70%);
}

.breadcrumbs {
  font-size: 12px;
  color: #7f94b5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs a {
  color: #8fb9ed;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.category-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-pill {
  padding: 5px 14px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.category-pill:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  padding: 22px 24px;
  margin-top: 32px;
  background: rgba(16, 26, 44, 0.7);
  border: 1px solid rgba(166, 187, 229, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.project-meta-strip small {
  display: block;
  font-size: 10px;
  color: #7f94b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.project-meta-strip b {
  font-size: 13px;
  color: #f1f5ff;
  font-weight: 600;
}

.project-meta-strip b a {
  color: #60a5fa;
  text-decoration: underline;
}

.case-study-banner-wrap {
  margin-top: 40px;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(166, 187, 229, 0.15);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.case-study-hero-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 50px;
  align-items: start;
}

.case-study-card {
  padding: 32px;
  background: #0e1728;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 24px;
}

.case-study-card h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.case-study-card p {
  color: #c2d0e7;
  line-height: 1.85;
  font-size: 14px;
}

.results-card {
  background: linear-gradient(145deg, #101c30, #14223d);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.metrics-highlight-box {
  padding: 20px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #60a5fa;
  border-radius: 0 12px 12px 0;
  color: #e0ecff;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

.case-study-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.side-panel {
  padding: 26px;
  background: #0f182a;
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* ------------------------------------------------------------- */
/* BLOG CARDS & PROSE                                            */
/* ------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #0d1525;
  transition: transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.blog-cover {
  height: 170px;
  background: radial-gradient(circle at 50% 50%, rgba(103, 70, 165, 0.36), transparent 55%),
              linear-gradient(135deg, #172644, #0d1427);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-cover > b {
  font-size: 55px;
  color: #9cdcff;
}

.blog-cover > span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #9abce6;
}

.blog-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  font-size: 11px;
  color: #8298bc;
  margin-bottom: 10px;
}

.blog-card-content h3 { font-size: 17px; }
.blog-card-content p { font-size: 13px; line-height: 1.7; min-height: 55px; }

/* Prose / Article Typography */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  gap: 55px;
  align-items: start;
}

.prose > div, .article-body {
  font-size: 15px;
  color: #bdc9df;
  line-height: 1.9;
}

.prose h2, .article-body h2 {
  font-size: 26px;
  color: #f1f5ff;
  margin-top: 36px;
}

.prose h3, .article-body h3 {
  margin-top: 26px;
  color: #edf3ff;
}

.prose ul, .article-body ul {
  padding-left: 23px;
}

.article-hero {
  padding: 90px 0 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-narrow {
  max-width: 820px;
}

.article-body blockquote {
  border-left: 3px solid #6baaff;
  padding-left: 20px;
  color: #a8bce0;
  margin: 20px 0;
}

/* Call To Action Box */
.cta-section {
  padding: 45px 0 100px;
}

.cta-box {
  padding: 55px 60px;
  border-radius: 25px;
  border: 1px solid rgba(142, 178, 255, 0.2);
  background: radial-gradient(ellipse at 85% 15%, rgba(91, 108, 255, 0.12), transparent 45%),
              linear-gradient(130deg, #111c31, #0d1425);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  position: relative;
  overflow: hidden;
}

.cta-box h2 { max-width: 640px; }
.cta-box p { color: var(--muted); margin-bottom: 0; }

.cta-orb {
  position: absolute;
  right: 20%;
  bottom: -160px;
  width: 300px;
  height: 200px;
  background: rgba(79, 108, 255, 0.15);
  filter: blur(70px);
  pointer-events: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060a13;
  padding: 60px 0 25px;
}

.footer-inner {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.4fr;
  gap: 35px;
  padding-bottom: 45px;
}

.footer-top h4 {
  font-size: 14px;
  margin: 8px 0 18px;
}

.footer-top > div > a:not(.brand) {
  display: block;
  font-size: 13px;
  color: #9aaaca;
  margin: 10px 0;
}

.footer-top > div > a:not(.brand):hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  max-width: 320px;
  margin-top: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: #7183a2;
}

.footer-bottom span:last-child {
  display: flex;
  gap: 20px;
}

/* Forms */
.form-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info {
  border: 1px solid var(--line);
  background: #101a2c;
  border-radius: 20px;
  padding: 30px;
}

.contact-info a {
  display: block;
  color: #9bcaff;
  margin: 15px 0;
  font-size: 15px;
}

.form-card {
  border: 1px solid var(--line);
  background: #0e1728;
  border-radius: 20px;
  padding: 35px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  color: #bac9e3;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(154, 180, 224, 0.18);
  background: #080f1d;
  color: #f4f7ff;
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #65aaff;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.alert {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 13px;
}

.alert-error {
  background: #3c1b26;
  color: #ffc4d0;
  border: 1px solid #a4475b;
}

/* Page Hero */
.page-hero {
  padding: 95px 0 65px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse at 70% 10%, rgba(52, 90, 213, 0.12), transparent 55%);
}

.page-hero h1 {
  max-width: 950px;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
}

.page-hero .lead {
  max-width: 720px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Animation */
.reveal {
  animation: rise 0.65s both;
}

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

/* Responsive Media Queries */
/* Responsive Media Queries */
@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-nav { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .split-feature { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .case-study-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .project-grid, .listing-grid, .blog-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .cta-box { padding: 35px 25px; flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .project-meta-strip { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   MANTRAVI DESIGN SYSTEM & FULL-WIDTH SECTIONS
   ===================================================================== */

/* Mantravi Eyebrows, Buttons & Text Gradients */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.live-dot.pulse {
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.gradient-mantravi {
  background: linear-gradient(110deg, #60a5fa 0%, #38bdf8 45%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Mantravi Pill Action Buttons */
.swap-text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.swap-text-button__icon {
  display: inline-block;
  transition: transform 0.25s ease;
}

.swap-text-button:hover .swap-text-button__icon {
  transform: translate(2px, -2px);
}

.btn-mantravi-primary {
  padding: 13px 28px;
  background: #ffffff;
  color: #050505 !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-mantravi-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.24);
}

.btn-mantravi-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-mantravi-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-mantravi-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-mantravi-outline:hover {
  border-color: #38bdf8;
  color: #ffffff;
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

/* Headings Helpers */
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 680px;
  margin-bottom: 0;
}

.section-center-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-heading-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
}

/* ---------------------------------------------------------------------
   1. HERO MANTRAVI SECTION
   --------------------------------------------------------------------- */
.hero-mantravi {
  position: relative;
  background: #050505;
  overflow: hidden;
  padding: 50px 0 70px;
}

.hero-bg-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.orb-primary {
  width: 650px;
  height: 650px;
  background: #2563eb;
  top: -160px;
  left: 5%;
  opacity: 0.18;
}

.orb-secondary {
  width: 550px;
  height: 550px;
  background: #7c3aed;
  top: 120px;
  right: 5%;
  opacity: 0.15;
}

.glow-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 85%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 60px;
  align-items: center;
  min-height: 580px;
}

.hero-display-title {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: #ffffff;
}

.hero-lead-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 600px;
  margin-bottom: 34px;
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 44px;
}

.hero-trust-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: 'Manrope', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.metric-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
}

/* Mantravi HUD Visual Frame */
.hero-visual-frame {
  position: relative;
}

.mantravi-hud-card {
  background: rgba(13, 21, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-dots {
  display: flex;
  gap: 6px;
}

.hud-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hud-dots span:nth-child(1) { background: #ef4444; }
.hud-dots span:nth-child(2) { background: #f59e0b; }
.hud-dots span:nth-child(3) { background: #10b981; }

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hud-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.hud-body {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-stream-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace, sans-serif;
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hud-stream-line.active {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
}

.stream-time {
  color: #64748b;
  font-size: 11px;
}

.stream-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.stream-tag.tag-ai {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.stream-tag.tag-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.stream-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-stats-widget {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.widget-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.widget-box small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 4px;
}

.widget-box strong {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  color: #38bdf8;
}

.hud-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}

/* ---------------------------------------------------------------------
   2. INFINITE MARQUEE TICKER BAND
   --------------------------------------------------------------------- */
.hero-ticker-band {
  width: 100%;
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrapper {
  display: flex;
  width: max-content;
  overflow: hidden;
  user-select: none;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: marquee-scroll 32s linear infinite;
}

.hero-ticker-band:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
}

.ticker-pill:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ticker-icon {
  color: #38bdf8;
  font-size: 12px;
}

/* ---------------------------------------------------------------------
   3. "WHAT WE DO BEST" - STICKY 2-COLUMN SECTION
   --------------------------------------------------------------------- */
.services-modules-section {
  position: relative;
  background: #050505;
}

.services-modules-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
  align-items: flex-start;
}

.services-sticky-col {
  position: sticky;
  top: 110px;
}

.services-sticky-col .section-lead {
  margin-bottom: 30px;
}

.services-stack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-module-card {
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.service-module-card:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08);
}

.card-number-tag {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.3);
  letter-spacing: -0.05em;
  line-height: 1;
}

.service-module-card:hover .card-number-tag {
  color: #38bdf8;
}

.card-details .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #ffffff;
}

.card-details .card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 16px;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-pills span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.card-action-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #ffffff;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.service-module-card:hover .card-action-arrow {
  background: #ffffff;
  color: #050505;
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------
   4. "AI THAT FITS HOW YOU WORK" - TABBED SHOWCASE
   --------------------------------------------------------------------- */
.ai-tabs-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(30, 41, 59, 0.5) 0%, #050505 70%);
  position: relative;
}

.ai-tab-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
}

.ai-tab-btn {
  background: transparent;
  border: 0;
  padding: 10px 22px;
  border-radius: 9999px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ai-tab-btn:hover {
  color: #ffffff;
}

.ai-tab-btn.active {
  background: #ffffff;
  color: #050505;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}

.ai-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ai-feature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.border-glow-cyan { border-top: 2px solid #38bdf8; }
.border-glow-purple { border-top: 2px solid #c084fc; }
.border-glow-blue { border-top: 2px solid #60a5fa; }

.ai-feature-card:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.feature-top-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 14px;
}

.ai-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.ai-feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 24px;
  flex: 1;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill-list span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.ai-cta-row {
  text-align: center;
  margin-top: 48px;
}

/* ---------------------------------------------------------------------
   5. "WHERE IDEAS SHIP" - PORTFOLIO SHOWCASE
   --------------------------------------------------------------------- */
.portfolio-mantravi-section {
  background: #050505;
}

.portfolio-mantravi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.portfolio-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.portfolio-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.portfolio-art-wrap {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: #0b1120;
}

.portfolio-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-cover-img {
  transform: scale(1.04);
}

.portfolio-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(11, 17, 32, 0.95) 70%);
  position: relative;
}

.fallback-icon {
  font-size: 48px;
  color: #38bdf8;
  position: relative;
  z-index: 2;
}

.fallback-gradient-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #8b5cf6;
  filter: blur(80px);
  opacity: 0.3;
}

.portfolio-badges-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.badge-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-featured {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.portfolio-card-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-title {
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-title a {
  color: #ffffff;
  transition: color 0.2s;
}

.portfolio-title a:hover {
  color: #38bdf8;
}

.portfolio-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 20px;
  flex: 1;
}

.portfolio-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.portfolio-tech-pills span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.portfolio-view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  margin-top: auto;
  transition: gap 0.2s;
}

.portfolio-view-link:hover {
  gap: 12px;
  color: #7dd3fc;
}

/* ---------------------------------------------------------------------
   6. "WHAT OUR PARTNERS SAY" - TESTIMONIALS SECTION
   --------------------------------------------------------------------- */
.testimonials-mantravi-section {
  background: #050505;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.card-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.card-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #e2e8f0;
  font-style: normal;
  margin: 0;
  flex: 1;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 12px;
  color: #94a3b8;
}

/* ---------------------------------------------------------------------
   7. LATEST INSIGHTS (BLOG) SECTION
   --------------------------------------------------------------------- */
.insights-mantravi-section {
  background: #050505;
}

.blog-mantravi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-mantravi-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.blog-mantravi-card:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.blog-media-wrap {
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, rgba(11, 17, 32, 0.95) 70%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  position: relative;
}

.blog-badge-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
}

.blog-icon {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.3);
}

.blog-card-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta-line {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-title a {
  color: #ffffff;
  transition: color 0.2s;
}

.blog-title a:hover {
  color: #38bdf8;
}

.blog-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
  flex: 1;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #38bdf8;
  transition: gap 0.2s;
}

.blog-read-link:hover {
  gap: 10px;
}

/* ---------------------------------------------------------------------
   8. FULL-BLEED MANTRAVI CONSULTATION BANNER
   --------------------------------------------------------------------- */
.mantravi-cta-band {
  background: #050505;
  padding: 60px 0 100px;
}

.cta-mantravi-box {
  position: relative;
  border-radius: 28px;
  background: rgba(13, 21, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 70px 50px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.cta-glow-spotlight {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.3) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.cta-mantravi-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-heading {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 18px;
}

.cta-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 36px;
}

.cta-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   SLIDE-OVER MOBILE DRAWER NAVIGATION
   --------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none !important;
  }
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-drawer-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: #080d1a;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  visibility: hidden;
}

.mobile-drawer.open {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
}

.mobile-nav-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.mobile-nav-group.expanded {
  border-color: rgba(56, 189, 248, 0.25);
}

.mobile-nav-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-parent-row .mobile-nav-link {
  flex: 1;
}

.mobile-accordion-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.25s ease, color 0.2s ease;
}

.mobile-accordion-btn:hover {
  color: #ffffff;
}

.mobile-nav-group.expanded .mobile-accordion-btn {
  transform: rotate(180deg);
  color: #38bdf8;
}

.mobile-sub-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav-group.expanded .mobile-sub-drawer {
  display: flex;
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.mobile-sub-link:hover,
.mobile-sub-link.active {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  transform: translateX(3px);
}

.mobile-sub-icon {
  font-size: 14px;
  color: #38bdf8;
}

.mobile-sub-text {
  flex: 1;
}

.mobile-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(5, 9, 18, 0.6);
}

.mobile-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.mobile-contact-quick a {
  color: #94a3b8;
  transition: color 0.2s;
}

.mobile-contact-quick a:hover {
  color: #38bdf8;
}

/* ---------------------------------------------------------------------
   BOTTOM-RIGHT FLOATING "GET IN TOUCH" BUTTON
   --------------------------------------------------------------------- */
.floating-contact-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 60%, #38bdf8 100%);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
}

.floating-contact-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
}

.floating-contact-btn:active {
  transform: translateY(0) scale(0.98);
}

.floating-btn-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 9999px;
  border: 2px solid #38bdf8;
  animation: pulse-ring 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
  opacity: 0;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { opacity: 0.3; }
  100% { transform: scale(1.28); opacity: 0; }
}

.floating-btn-icon {
  font-size: 15px;
  display: grid;
  place-items: center;
}

.floating-btn-label {
  font-weight: 700;
}

.floating-btn-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.floating-contact-btn:hover .floating-btn-arrow {
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------------------
   GLASSMORPHIIC CONTACT MODAL POPUP
   --------------------------------------------------------------------- */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 3, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

.contact-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-card {
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #090e1b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 36px;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.12);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.contact-modal-overlay.open .contact-modal-card {
  transform: scale(1) translateY(0);
}

.contact-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-modal-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 6px 0 4px;
}

.contact-modal-desc {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0;
}

.contact-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.contact-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.contact-modal-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.5;
}

.contact-modal-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.contact-modal-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.quick-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.quick-form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-form-grid .field.full {
  grid-column: 1 / -1;
}

.quick-form-grid label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-form-grid input,
.quick-form-grid select,
.quick-form-grid textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s ease;
}

.quick-form-grid input:focus,
.quick-form-grid select:focus,
.quick-form-grid textarea:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.quick-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 14px;
  flex-wrap: wrap;
}

.quick-form-note {
  font-size: 12px;
  color: #94a3b8;
}

/* ---------------------------------------------------------------------
   COMPREHENSIVE FULL RESPONSIVE OVERRIDES
   --------------------------------------------------------------------- */

/* Prevent horizontal viewport overflow on all devices */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

/* 1. Large Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    width: min(100%, calc(100% - 36px));
  }

  .header-inner,
  .nav-wrap {
    width: calc(100% - 36px);
  }

  .main-nav {
    display: none !important;
  }

  .menu-toggle {
    display: flex !important;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0 40px;
  }

  .services-modules-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-sticky-col {
    position: static;
  }

  .ai-grid-cards {
    grid-template-columns: 1fr;
  }

  .portfolio-mantravi-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-mantravi-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 2. Tablets & Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .container {
    width: min(100%, calc(100% - 24px));
  }

  .header-inner,
  .nav-wrap {
    width: calc(100% - 24px);
    height: 70px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-name small {
    display: none;
  }

  .section {
    padding: 65px 0;
  }

  .hero-mantravi {
    padding: 40px 0 30px;
  }

  .hero-display-title {
    font-size: clamp(2.1rem, 7.5vw, 2.75rem);
    letter-spacing: -0.035em;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-trust-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .metric-divider {
    display: none;
  }

  .hero-hud-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .hud-telemetry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-module-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .card-action-arrow {
    display: none;
  }

  .cta-mantravi-box {
    padding: 40px 20px;
    border-radius: 22px;
  }

  .cta-heading {
    font-size: clamp(2rem, 6.5vw, 2.6rem);
  }

  .cta-button-row {
    flex-direction: column;
    width: 100%;
  }

  .cta-button-row a,
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .ai-tab-nav {
    border-radius: 16px;
    flex-direction: column;
    width: 100%;
  }

  .ai-tab-btn {
    width: 100%;
    text-align: center;
  }

  .floating-contact-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 13px;
  }

  .contact-modal-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .quick-form-grid {
    grid-template-columns: 1fr;
  }

  .quick-form-grid .field.full {
    grid-column: auto;
  }

  .quick-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-form-actions button {
    width: 100%;
    justify-content: center;
  }

  .quick-form-note {
    text-align: center;
  }

  .footer-inner {
    padding: 50px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    align-items: center;
  }
}

/* 3. Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .header-cta-btn {
    display: none !important;
  }

  h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.5rem, 5.5vw, 1.95rem);
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .floating-contact-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 12.5px;
  }

  .floating-contact-btn .floating-btn-arrow {
    display: none;
  }

  .contact-modal-title {
    font-size: 1.4rem;
  }

  .cta-mantravi-box {
    padding: 30px 16px;
  }
}




/* Accessibility: keep the interface calm for visitors who request reduced motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
