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

/* ==========================================
   AdOpsGuy Refreshed Visual UI System
   Infinite Logo News Ticker • SVG Brand Matrix • Live RTB Status
   ========================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #09090b;
  --bg-card-dark: #121215;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border: #e2e8f0;
  --border-dark: #09090b;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

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

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
  transition: background-color 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  background-color: var(--bg-dark);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--text-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
  left: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-dark);
  background-color: var(--bg-dark);
  color: #ffffff;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.btn:hover {
  background-color: #ffffff;
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.925rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.775rem;
}

/* Sections */
.section-padding {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin: 0 auto;
}

/* Clean Hero Brand Badge (Logo Only, Larger, Transparent BG) */
.hero-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  margin-bottom: 1.75rem;
  box-shadow: none;
  border: none;
}

.hero-brand-badge img {
  height: 72px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

/* Hero Box */
.hero-card-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3.5rem 3rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.hero-headline {
  font-size: 3.25rem;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 720px;
  margin-bottom: 2.25rem;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* INFINITE ANIMATED LOGO NEWS TICKER MARQUEE */
.ticker-news-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-surface);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: 100%;
  margin: 2rem 0 0 0;
}

.ticker-news-bar::before, .ticker-news-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ticker-news-bar::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.ticker-news-bar::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: tickerScroll 24s linear infinite;
  will-change: transform;
}

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.ticker-item img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  object-fit: contain;
}

/* SVG BRAND LOGO MATRIX CARDS */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.svg-logo-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.svg-logo-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

.brand-real-logo {
  max-width: 130px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.logo-fallback {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.svg-logo-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}


/* Sub-Hero Banner Box */
.sub-hero-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.75rem 2.5rem;
  margin: 2rem 0 1rem;
  box-shadow: var(--shadow-sm);
}

.sub-hero-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 0.85rem;
}

.sub-hero-desc {
  font-size: 1.05rem;
  max-width: 750px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb-bar a {
  color: var(--text-primary);
}

/* Homepage Visual Gateway Cards */
.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(34, 197, 94, 0.1);
  border-color: var(--border-dark);
}

.card-image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  filter: grayscale(70%);
}

.portal-card:hover .card-image-wrap img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.portal-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.icon-badge-box {
  width: 42px;
  height: 42px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.icon-badge-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  stroke-width: 2;
  fill: none;
}

.portal-card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portal-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.portal-link {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-link:hover {
  text-decoration: underline;
}

/* Service Main Block Cards */
.services-stack {
  display: flex;
  gap: 2rem;
}

@media (max-width: 992px) {
  .services-stack {
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

@media (min-width: 993px) {
  .services-stack {
    flex-direction: column;
  }
}

.service-wire-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-wire-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(59, 130, 246, 0.1);
  border-color: var(--border-dark);
}

.service-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(75%);
  transition: var(--transition);
}

.service-wire-block:hover .service-card-image {
  filter: grayscale(0%);
}

.service-card-body {
  padding: 2.5rem;
}

.service-header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.service-wire-block h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.service-wire-block .lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  max-width: 820px;
}

.sub-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.sub-card-item {
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
}

.sub-card-item .num-badge {
  font-size: 0.725rem;
  font-weight: 900;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.sub-card-item h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.sub-card-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.know-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-dark);
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-dark);
  color: #ffffff;
  transition: var(--transition);
}

.know-more-btn:hover {
  background-color: #ffffff;
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Visual Step Flow Graphic Cards */
.pipeline-wire-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.pipeline-wire-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.15rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: var(--transition);
}

.pipeline-wire-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}

.pipeline-wire-card.highlight {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pipeline-wire-card.highlight h4, 
.pipeline-wire-card.highlight p {
  color: var(--text-primary);
}

.flow-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.pipeline-wire-card:hover .flow-step-icon {
  background-color: #eff6ff;
  border-color: #2563eb;
}

.pipeline-wire-card.highlight .flow-step-icon {
  background-color: #eff6ff;
  border-color: #2563eb;
}

.icon-badge-box img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.flow-step-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.step-no {
  font-size: 0.725rem;
  font-weight: 900;
  display: inline-block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  background-color: #eff6ff;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.pipeline-wire-card.highlight .step-no {
  background-color: #2563eb;
  color: #ffffff;
}

.pipeline-wire-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pipeline-wire-card p {
  font-size: 0.8rem;
}

/* Visual Channel & Format Icon Cards */
.channel-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.channel-icon-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.channel-icon-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
}

.channel-icon-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.channel-icon-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Interactive Testimonial Slider Carousel */
.slider-container {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Refined Testimonials Grid & Card System */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card-wire {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.testimonial-card-wire:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.rating-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-quote-text {
  font-size: 0.975rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-footer-flex {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.author-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.author-info-box {
  display: flex;
  flex-direction: column;
}

.author-name-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

.author-domain-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-weight: 600;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active {
  background-color: var(--bg-dark);
  transform: scale(1.2);
}

/* Tabbed Switcher (RTB Exchange Page) */
.tabs-navigation {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
}

.tab-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.tab-btn.active {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Feature 3 Col Cards */
.cards-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-wire-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-wire-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
}

.feature-wire-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.feature-wire-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  flex-grow: 1;
}

.check-wire-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.check-wire-list li {
  font-size: 0.85rem;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.45rem;
  color: var(--text-secondary);
}

.check-wire-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--text-primary);
}

/* CTA Wire Banner */
.cta-wire-banner {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3.5rem;
}

.cta-wire-content h3 {
  color: #ffffff;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.cta-wire-content p {
  color: #a1a1aa;
  font-size: 0.95rem;
}

/* Filter Bar */
.filter-wire-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.filter-wire-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-wire-btn:hover, .filter-wire-btn.active {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

/* Split Calculator & Contact */
.split-wire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.wire-box-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.wire-box-container h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.range-wrap {
  margin-bottom: 1.5rem;
}

.range-wrap label {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--bg-dark);
}

.num-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-weight: 800;
  width: 120px;
  background-color: var(--bg-subtle);
}

.num-box input {
  border: none;
  background: none;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.res-wire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.res-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  text-align: center;
  background-color: var(--bg-main);
}

.res-card.highlight {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.res-card.highlight .res-val, .res-card.highlight .res-lbl {
  color: #ffffff;
}

.res-lbl {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}

.res-val {
  font-size: 1.4rem;
  font-weight: 900;
  display: block;
}

.res-extra {
  font-size: 0.775rem;
  font-weight: 800;
}

.form-wire {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 0.875rem;
  outline: none;
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--bg-dark);
}

/* Footer */
.footer-wire {
  border-top: 1px solid var(--border);
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col p, .footer-col a {
  color: #e4e4e7;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 0.45rem;
}

.footer-btm {
  border-top: 1px solid #27272a;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.825rem;
  color: #a1a1aa;
}

/* Mobile Viewport Polish & Responsive Layout Fixes */
@media (max-width: 992px) {
  .portal-cards-grid, .sub-cards-grid, .cards-3col-grid, .partner-logo-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-wire-row {
    grid-template-columns: 1fr;
  }

  .split-wire-grid {
    grid-template-columns: 1fr;
  }

  .tabs-navigation {
    flex-direction: column;
  }

  .cta-wire-banner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

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

@media (max-width: 768px) {
  .btn, .btn-lg {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    padding: 0.75rem 1.15rem;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .section-padding {
    padding: 1.75rem 0;
  }

  .hero-card-box {
    padding: 1.75rem 1.15rem;
    margin: 1rem 0;
  }

  .hero-headline {
    font-size: 2rem;
  }

  .sub-hero-card {
    padding: 1.5rem 1.15rem;
    margin: 1rem 0;
  }

  .sub-hero-title {
    font-size: 1.65rem;
  }

  .portal-card-body, .service-card-body, .wire-box-container {
    padding: 1.25rem 1.15rem;
  }

  .sub-cards-grid {
    gap: 0.75rem;
  }

  .sub-card-item {
    padding: 1rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 61px;
    left: 0;
    width: 100%;
    height: calc(100vh - 61px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .slider-container {
    padding: 2rem 1.25rem;
  }

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

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* ==========================================
   POLISH ADDON STYLES
   ========================================== */

/* 1. Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #09090b 0%, #2563eb 50%, #22c55e 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* 2. Gradient Headline Text */
.gradient-text {
  background: linear-gradient(135deg, #09090b 0%, #2563eb 50%, #09090b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Hero Subtle Grid Overlay */
.hero-card-box {
  position: relative;
  overflow: hidden;
}

.hero-card-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.hero-card-box > * {
  position: relative;
  z-index: 1;
}

/* 4. Interactive Cursor Spotlight on Cards */
.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.08), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* 6. Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: #ffffff;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: #2563eb;
  border-color: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* ==========================================
   BENTO CARD GRID SYSTEM
   ========================================== */

/* Bento Grid for 3-column portal cards */
@media (min-width: 993px) {
  .portal-cards-grid.bento-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }

  .portal-cards-grid.bento-grid .portal-card:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  .portal-cards-grid.bento-grid .portal-card:nth-child(1) .card-image-wrap {
    height: auto;
    flex-grow: 1;
    min-height: 300px;
  }

  .portal-cards-grid.bento-grid .portal-card:nth-child(1) .portal-card-body {
    flex-grow: 0;
  }
}

/* Bento grid for feature cards (service detail pages) */
.bento-3col {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 993px) {
  .bento-3col.bento-feature {
    grid-template-columns: 1.5fr 1fr 1fr;
    grid-template-rows: auto;
  }

  .bento-3col.bento-feature > *:nth-child(1) {
    grid-row: 1 / 2;
  }
}

@media (max-width: 992px) {
  .bento-3col {
    grid-template-columns: 1fr;
  }
}

/* Bento pipeline grid (RTB Exchange flow) */
.bento-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 992px) {
  .bento-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-pipeline > *:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .bento-pipeline {
    grid-template-columns: 1fr;
  }

  .bento-pipeline > *:last-child {
    grid-column: auto;
  }
}

/* ==========================================
   CARD SLIDER / CAROUSEL SYSTEM
   ========================================== */

.card-slider-wrapper {
  position: relative;
}

.card-slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: 1.5rem 0;
  margin: -1.5rem 0;
}

.card-slider-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card-slider-track > * {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}

/* Slider Navigation */
.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-family: Arial, sans-serif;
  color: var(--text-primary);
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 0.8;
  padding-bottom: 3px;
}

.slider-btn:hover {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
  transform: scale(1.08);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background-color: var(--bg-dark);
  transform: scale(1.35);
  width: 22px;
  border-radius: 4px;
}

/* Mobile: 1 card per slide */
@media (max-width: 768px) {
  .card-slider-track > * {
    flex: 0 0 100% !important;
  }

  .card-slider-track {
    gap: 1rem;
  }
}

/* Tablet: 2 cards per slide */
@media (min-width: 769px) and (max-width: 992px) {
  .card-slider-track > * {
    flex: 0 0 calc(50% - 0.75rem) !important;
  }

  .card-slider-track.services-stack > * {
    flex: 0 0 100% !important;
  }
}

/* Desktop: show all, no slider arrows needed */
@media (min-width: 993px) {
  .slider-nav {
    display: none;
  }

  .card-slider-viewport {
    overflow: visible;
  }

  .card-slider-track {
    flex-wrap: wrap;
    transform: none !important;
  }

  .card-slider-track > * {
    flex: 0 0 calc(33.333% - 1rem);
  }

  .card-slider-track .service-wire-block {
    flex: 0 0 100%;
  }
}

/* Touch/swipe hint for mobile */
@media (max-width: 992px) {
  .card-slider-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(248, 250, 252, 0.7));
    pointer-events: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    z-index: 2;
  }
}

/* Command Palette Trigger */
.cmd-k-trigger {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.cmd-k-trigger:hover {
  background-color: var(--bg-dark);
  color: #ffffff;
  border-color: var(--bg-dark);
}

.cmd-k-trigger kbd {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  font-size: 0.675rem;
  font-family: var(--font-family);
  color: var(--text-muted);
}

.cmd-k-trigger:hover kbd {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: transparent;
}

/* Command Palette Overlay */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cmd-palette-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-palette-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 580px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.25s ease;
}

.cmd-palette-overlay.active .cmd-palette-card {
  transform: translateY(0);
}

.cmd-input-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cmd-input-header input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-family);
  font-size: 1rem;
  background: transparent;
  color: var(--text-primary);
}

.cmd-input-header kbd {
  font-size: 0.7rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.cmd-item:hover {
  background-color: var(--bg-subtle);
}

.cmd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* FAQ Accordion Styling */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  user-select: none;
}

.faq-header:hover {
  background-color: var(--bg-subtle);
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.faq-item.active .faq-body {
  max-height: 250px;
  padding: 0 1.5rem 1.5rem;
}


