/* ==========================================================================
   SYNCSTAC DESIGN SYSTEM
   Bespoke Obsidian Luxury • 3D Spatial WebGL • Less is More
   Inspired by: Astrik, Chipsa, Apple, Linear
   ========================================================================== */

:root {
  --bg-deep: #050508;
  --bg-surface: #09090f;
  --bg-card: #0e0e17;
  --bg-card-hover: #161624;
  --bg-card-glass: rgba(14, 14, 23, 0.65);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  /* Brand Facet Palette (Logo Match: Neon Violet & Metallic Silver) */
  --accent-purple: #7c3aed;
  --accent-violet: #6d28d9;
  --accent-light: #c084fc;
  --accent-neon: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.25);
  --accent-glow-strong: rgba(168, 85, 247, 0.55);
  
  --silver-bright: #ffffff;
  --silver-chrome: #e2e8f0;
  --silver-muted: #94a3b8;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.11);
  --border-glow: rgba(168, 85, 247, 0.42);
  --border-highlight: rgba(255, 255, 255, 0.22);
  
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --container-max: 1320px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Brand Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: 16px;
  position: relative;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .section-title {
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}

/* Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  z-index: 999999;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  transition: width 0.1s ease-out;
}

/* Subtle Neon Purple Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(124, 58, 237, 0.03) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #f1f5f9 45%, #c084fc 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-silver {
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ==========================================================================
   PRELOADER (Luxury Brand Mark with Subtle Neon Glow)
   ========================================================================== */
.site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.site-preloader.loaded {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 440px;
  width: 90%;
  text-align: center;
}

.preloader-logo-wrap {
  position: relative;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo {
  height: 95px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 35px rgba(124, 58, 237, 0.4));
  animation: preloaderPulse 2.4s ease-in-out infinite;
}

.preloader-glow-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  filter: blur(24px);
  z-index: 1;
  animation: ringBreathe 2.4s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.5)) drop-shadow(0 0 28px rgba(124, 58, 237, 0.3));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 24px rgba(192, 132, 252, 0.75)) drop-shadow(0 0 45px rgba(168, 85, 247, 0.55));
  }
}

@keyframes ringBreathe {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 0.95; transform: scale(1.25); }
}

.preloader-progress-container {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.85);
  border-radius: 999px;
  transition: width 0.1s ease-out;
}

.preloader-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.preloader-status {
  color: var(--text-sub);
  font-weight: 500;
}

.preloader-percent {
  color: var(--accent-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   FULL-WIDTH LUXURY HEADER & SERVICES MEGA-MENU
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 78px;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(5, 5, 8, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 12px rgba(255, 255, 255, 0.28));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand-logo-link:hover .nav-logo {
  filter: drop-shadow(0 2px 18px rgba(168, 85, 247, 0.65));
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-light);
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
  border-radius: 2px;
}

.dropdown-chevron {
  transition: transform 0.25s ease;
}

.nav-dropdown-wrapper:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-light);
}

/* Mega-Menu Dropdown Container */
.nav-dropdown-wrapper {
  position: relative;
}

.mega-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 860px;
  background: rgba(9, 9, 15, 0.98);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 22px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1001;
}

.nav-dropdown-wrapper:hover .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

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

.mega-kicker {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
}

.mega-subkicker {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sub);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

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

.mega-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.035);
  background: rgba(255, 255, 255, 0.012);
}

.mega-item:hover {
  background: rgba(168, 85, 247, 0.09);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mega-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #c084fc;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 750;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mega-item:hover .mega-idx {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.mega-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mega-title {
  font-size: 0.89rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.mega-item:hover .mega-title {
  color: #ffffff;
}

.mega-desc {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.mega-item:hover .mega-desc {
  color: #e2e8f0;
}

.mega-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--text-sub);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mega-item:hover .mega-arrow {
  opacity: 1;
  color: #ffffff;
  background: rgba(168, 85, 247, 0.35);
  transform: translateX(0);
}

.mega-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.mega-footer a {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mega-footer a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.mega-footer span {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

.btn-header-cta {
  padding: 9px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #050508 !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 8, 0.98);
  backdrop-filter: blur(30px);
  border-top: 1px solid var(--border-subtle);
  padding: 30px 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  z-index: 999;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-cta {
  color: var(--accent-light) !important;
  font-weight: 700;
}

/* ==========================================================================
   HERO SECTION (THEATRICAL VOLUMETRIC LIGHT BEAM + HIGH-IMPACT 3D BRAND STAGE)
   Directly matching user inspiration (media_1791530884834_ffcb9280.png)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px 20px;
  overflow: hidden;
  background: #050508;
}

/* Volumetric Theatrical Light Beam (Prominently illuminating right corner 3D stage) */
.hero-volumetric-beam {
  position: absolute;
  top: -20%;
  right: -2%;
  width: 52vw;
  max-width: 860px;
  height: 140vh;
  background: radial-gradient(ellipse 65% 58% at 82% 32%, rgba(216, 180, 254, 0.32) 0%, rgba(168, 85, 247, 0.22) 28%, rgba(124, 58, 237, 0.08) 55%, transparent 75%);
  filter: blur(54px);
  transform: rotate(-22deg);
  pointer-events: none;
  z-index: 1;
  animation: beamBreathe 10s ease-in-out infinite alternate;
}

.hero-caustic-streak {
  position: absolute;
  top: -25%;
  right: 6%;
  width: 340px;
  height: 150vh;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30) 0%, rgba(216, 180, 254, 0.16) 32%, transparent 65%);
  filter: blur(40px);
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.hero-deep-shadow-vignette {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #050508 0%, #050508 40%, rgba(5, 5, 8, 0.85) 56%, rgba(5, 5, 8, 0.12) 82%, rgba(5, 5, 8, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

@keyframes beamBreathe {
  0% { opacity: 0.85; transform: rotate(-22deg) scale(0.98); }
  100% { opacity: 1.0; transform: rotate(-20deg) scale(1.03); }
}

/* Three.js 3D WebGL Canvas */
#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 3;
  pointer-events: none;
  min-height: calc(100vh - 160px);
}

.hero-side-content {
  pointer-events: auto;
  max-width: 620px;
  text-align: left;
  z-index: 4;
}

/* Minimal Hero Branding & Typography */
.hero-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  margin-bottom: 20px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-light);
}

.hero-clean-title {
  font-size: clamp(2.5rem, 4.4vw, 4.0rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero-clean-desc {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 520px;
  letter-spacing: -0.01em;
}

/* Minimal Luxury CTAs */
.hero-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: #ffffff;
  color: #050508 !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-bottom-bar {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}

.hero-scroll-minimal {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  pointer-events: auto;
  transition: color 0.2s;
}

.hero-scroll-minimal:hover {
  color: var(--accent-light);
}

.hero-scroll-minimal .scroll-arrow {
  color: var(--accent-light);
  animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ==========================================================================
   METRICS TICKER STRIP (Authentic SyncStac Milestones)
   ========================================================================== */
.ticker-strip {
  background: rgba(11, 11, 18, 0.85);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 0;
  position: relative;
  z-index: 4;
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.ticker-card {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  border-right: 1px solid var(--border-subtle);
}

.ticker-card:last-child {
  border-right: none;
}

.ticker-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.ticker-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION COMMON WRAPPERS
   ========================================================================== */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-dark {
  background-color: var(--bg-deep);
}

.section-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   ABOUT / TRUST INTRO SECTION (3 Core Pillars + Milestone Card)
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 36px;
  margin-bottom: 50px;
}

.intro-narrative {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 44px;
}

.intro-headline {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.intro-body {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.intro-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.intro-milestone-card {
  background: linear-gradient(145deg, rgba(14, 14, 23, 0.95), rgba(20, 16, 32, 0.95));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-big-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.stat-big-number {
  font-size: 3.8rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-big-plus {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-light);
}

.milestone-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.milestone-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.milestone-metric-rows {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.m-row-label {
  color: var(--text-sub);
}

.m-row-val {
  font-weight: 700;
  color: #ffffff;
}

.m-row-val.highlight {
  color: var(--accent-light);
}

/* 3 Focus Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 34px 28px;
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pillar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pillar-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: monospace;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.pillar-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   STICKY STACKING SERVICES CARDS (On-Scroll Layered Deck Animation)
   Matches ammar.webpixora.com reference (media_1794542631225_01bc5314.png)
   ========================================================================== */
.showcase-stack-section {
  position: relative;
  padding: 100px 0 130px 0;
  background: #050508;
  overflow: visible;
}

.stack-track {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto 0;
  --stack-gap: 340px;
}

.stack-track::after {
  content: '';
  display: block;
  height: 6rem;
}

.stack-card {
  position: sticky;
  width: 100%;
  min-height: clamp(400px, 34vw, 480px);
  display: grid;
  grid-template-columns: 53% 47%;
  background: rgba(13, 12, 20, 0.98);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px -25px rgba(0, 0, 0, 0.95), 0 0 40px rgba(168, 85, 247, 0.08);
  top: var(--t);
  margin-bottom: calc(var(--stack-gap) - var(--t));
  transform-origin: center top;
  transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.25s ease-out;
  will-change: transform, box-shadow;
}

/* Staggered sticky top offsets */
.stack-card:nth-child(1) { --t: 90px; z-index: 1; }
.stack-card:nth-child(2) { --t: 112px; z-index: 2; }
.stack-card:nth-child(3) { --t: 134px; z-index: 3; }
.stack-card:nth-child(4) { --t: 156px; z-index: 4; }
.stack-card:nth-child(5) { --t: 178px; z-index: 5; }
.stack-card:nth-child(6) { --t: 200px; z-index: 6; }

/* Depth veil driven by on-scroll calculation */
.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: #050508;
  opacity: var(--veil, 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stack-card:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 45px 95px -20px rgba(0, 0, 0, 1), 0 0 50px rgba(168, 85, 247, 0.25);
}

.stack-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #09090f;
}

.stack-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card:hover .stack-media img {
  transform: scale(1.05);
}

.stack-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(13, 12, 20, 0.85) 100%),
              linear-gradient(180deg, transparent 65%, rgba(13, 12, 20, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
}

.stack-body {
  padding: clamp(2.2rem, 4vw, 3.6rem) clamp(2rem, 3.6vw, 3.4rem) 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.stack-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin-bottom: 1.2rem;
}

.stack-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #a855f7, #60a5fa);
  border-radius: 2px;
}

.stack-title {
  color: #ffffff;
  font-weight: 850;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.stack-desc {
  color: #94a3b8;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 1.4rem;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.stack-pills span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.stack-footer {
  position: absolute;
  left: clamp(2rem, 3.6vw, 3.4rem);
  right: clamp(2rem, 3.6vw, 3.4rem);
  bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.stack-tag {
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.stack-plus {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stack-plus:hover {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #ffffff;
  border-color: #c084fc;
  transform: translate(2px, -2px) scale(1.1);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.55);
}

@media (max-width: 860px) {
  .stack-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .stack-media {
    height: 220px;
    min-height: 220px;
  }
  .stack-body {
    padding: 1.8rem 1.6rem 5rem;
  }
  .stack-footer {
    left: 1.6rem;
    right: 1.6rem;
    bottom: 1.4rem;
  }
}

/* ==========================================================================
   HIGH-TECH 3D FLIP CARD SERVICES SECTION (Used on services.html deep-dive)
   ========================================================================== */
.services-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

/* 3D Perspective Card Container */
.flip-card-wrapper {
  perspective: 1200px;
  min-height: 440px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.2, 0.85, 0.4, 1.15);
  border-radius: 22px;
}

.flip-card-wrapper.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Front Face Styling */
.flip-card-front {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.flip-card-wrapper:hover .flip-card-front {
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.15);
}

.card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #09090f;
}

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

.flip-card-wrapper:hover .card-img {
  transform: scale(1.05);
}

.card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.1) 0%, rgba(14, 14, 23, 0.85) 85%, var(--bg-card) 100%);
}

.card-number-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
}

.card-front-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.service-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.service-pill-tags span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

.flip-prompt-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.flip-prompt-btn {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.flip-prompt-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  transform: scale(1.03);
}

.service-explore-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 3D Back Face Styling (Detailed Tech Specs & Architecture) */
.flip-card-back {
  background: linear-gradient(155deg, #120e24, #0b0b14);
  border: 1px solid var(--border-glow);
  transform: rotateY(180deg);
  padding: 30px 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(168, 85, 247, 0.1);
  justify-content: space-between;
}

.back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.back-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.08em;
}

.back-unflip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-unflip-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.back-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
}

.back-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.back-specs-list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.back-spec-bullet {
  color: var(--accent-light);
  font-size: 0.95rem;
}

.back-action-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-back-action {
  background: #ffffff;
  color: #050508 !important;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-back-action:hover {
  background: var(--silver-bright);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   INTERACTIVE AD SPEND & ROI CALCULATOR SECTION
   (Full 12 Niche Boxes, Platform Split, Target Slider, Real-Time ROAS)
   ========================================================================== */
.ad-calc-section {
  padding: 120px 0;
  background: #07070d;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.ad-calc-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.ad-calc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ad-calc-badge-dot {
  width: 7px;
  height: 7px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 8px #a855f7;
}

.ad-calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.ad-calc-controls {
  padding: 44px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ad-calc-step-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.step-num {
  color: var(--accent-light);
  font-family: monospace;
}

.ad-calc-options-grid {
  display: grid;
  gap: 12px;
}

.ad-calc-options-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.ad-calc-options-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.ad-calc-card-radio {
  cursor: pointer;
  position: relative;
}

.ad-calc-card-radio input {
  display: none;
}

.ad-calc-radio-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.ad-calc-card-radio input:checked + .ad-calc-radio-content {
  background: rgba(168, 85, 247, 0.16);
  border-color: var(--accent-light);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.ad-calc-radio-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  margin-bottom: 6px;
  transition: all 0.2s ease;
}

.ad-calc-card-radio:hover .ad-calc-radio-icon {
  background: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
  color: #ffffff;
}

.ad-calc-card-radio input:checked + .ad-calc-radio-content .ad-calc-radio-icon {
  background: var(--accent-purple);
  border-color: var(--accent-light);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.ad-calc-radio-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

.ad-calc-radio-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Custom Niche Search Input */
.ad-calc-niche-input-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.88rem;
  margin-top: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.ad-calc-niche-input-box:focus {
  border-color: var(--accent-purple);
}

.ad-calc-niche-hint {
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* Conversion Slider */
.ad-calc-slider-val {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.current-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.current-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.ad-calc-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  outline: none;
  margin-bottom: 14px;
}

.ad-calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c084fc;
  cursor: pointer;
  box-shadow: 0 0 12px #a855f7;
  border: 2px solid #ffffff;
}

.ad-calc-presets {
  display: flex;
  gap: 8px;
}

.ad-calc-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ad-calc-preset-btn.active, .ad-calc-preset-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
}

/* Results Panel (Right Column) */
.ad-calc-results {
  background: linear-gradient(160deg, #100d1e, #090912);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ad-calc-currency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ad-calc-cur-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.ad-calc-cur-btn.active {
  background: #ffffff;
  color: #050508;
  border-color: #ffffff;
}

.ad-calc-big-spend {
  margin-bottom: 24px;
}

.ad-calc-spend-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ad-calc-spend-amount {
  font-size: 3.2rem;
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.ad-calc-spend-period {
  font-size: 0.82rem;
  color: var(--accent-light);
}

/* Split Progress Bar */
.ad-calc-split-wrap {
  margin-bottom: 28px;
}

.ad-calc-split-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ad-calc-split-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
}

.ad-calc-bar-meta {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  transition: width 0.3s;
}

.ad-calc-bar-google {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 0.3s;
}

/* 4 Metrics Tiles Grid */
.ad-calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.ad-calc-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.ad-calc-tile-label {
  font-size: 0.72rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ad-calc-tile-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.ad-calc-tile-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ad-calc-inquire-btn,
.ad-calc-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff !important;
  font-weight: 750;
  font-size: 0.94rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
  margin-bottom: 12px;
}

.ad-calc-inquire-btn:hover,
.ad-calc-whatsapp-btn:hover {
  background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

.ad-calc-note {
  font-size: 0.72rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   SELECTED WORK / PORTFOLIO (Editorial Asymmetrical Grid)
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, box-shadow 0.35s;
}

.project-card.span-7 {
  grid-column: span 7;
}

.project-card.span-5 {
  grid-column: span 5;
}

.project-card.span-6 {
  grid-column: span 6;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.15);
}

.project-media-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #09090f;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.05) 0%, rgba(14, 14, 23, 0.8) 80%, var(--bg-card) 100%);
}

.project-badge-float {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-category {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: inline-block;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.project-link-action {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-link-action {
  color: var(--accent-light);
  transform: translateX(4px);
}

/* ==========================================================================
   WHY SYNC STAC SECTION (4 Strategic Pillars)
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 38px 30px;
  transition: transform 0.25s, border-color 0.25s;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.why-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-light);
  font-family: monospace;
  margin-bottom: 18px;
  display: inline-block;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.why-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================================
   PROCESS SECTION (How We Work - 5-Step Methodology)
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.process-node {
  font-size: 1.8rem;
  font-weight: 850;
  color: var(--accent-light);
  font-family: monospace;
  margin-bottom: 18px;
}

.process-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.process-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ==========================================================================
   ENTERPRISE CAPABILITIES & INFINITE MARQUEE RIBBON
   ========================================================================== */
.tech-caps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

/* ── Capability Cards — scroll-reveal animation ── */
.tech-caps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px 22px;
  /* initial hidden state: translated right + faded + scaled down slightly */
  opacity: 0;
  transform: translateX(60px) translateY(20px) scale(0.96);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease;
  /* delay is set via inline style by JS from --cap-delay */
}

/* revealed state — added by IntersectionObserver in script.js */
.tech-caps-card.cap-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.tech-caps-card:hover {
  border-color: var(--border-glow);
  /* lift only when visible so it doesn't conflict with entry animation */
}

.tech-caps-card.cap-visible:hover {
  transform: translateX(0) translateY(-5px) scale(1);
}

.tech-caps-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 750;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.tech-caps-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.tech-caps-sub {
  color: var(--text-sub);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Tech Stack Infinite Marquee Ribbon */
.tech-stack-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 11, 18, 0.7);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.tech-stack-track {
  display: inline-flex;
  gap: 24px;
  animation: techScroll 35s linear infinite;
}

.tech-stack-track span {
  padding: 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

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

/* ==========================================================================
   FULL-WIDTH DRAMATIC CALL TO ACTION SECTION
   ========================================================================== */
.cta-banner-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #150d2c 0%, #080612 60%, #050508 100%);
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.cta-banner-headline {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.cta-banner-headline span {
  color: var(--accent-light);
  text-shadow: 0 0 35px rgba(168, 85, 247, 0.6);
}

.cta-banner-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ==========================================================================
   SITE FOOTER (Full Luxury SyncStac Footer)
   ========================================================================== */
.site-footer {
  background: #040406;
  border-top: 1px solid var(--border-subtle);
  padding: 90px 0 30px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  margin-bottom: 20px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon-btn:hover {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-contact-info a {
  color: var(--accent-light);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-sub);
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   SYNCSTAC AI CONCIERGE CHATBOT WIDGET
   Direct project inquiry & scope intake routed to info@syncstac.com
   ========================================================================== */
.ai-chat-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  background: rgba(12, 12, 20, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 85, 247, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.25);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ai-chat-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.45);
}

.ai-launcher-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #131122;
  border: 1px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.ai-avatar-text {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  user-select: none;
}

.ai-launcher-label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.ai-label-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.ai-label-status {
  font-size: 0.68rem;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.ai-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Chat Widget Window */
.ai-chat-widget {
  position: fixed;
  bottom: 88px;
  right: 28px;
  width: 400px;
  max-width: calc(100vw - 36px);
  height: 570px;
  max-height: calc(100vh - 110px);
  background: rgba(9, 9, 15, 0.97);
  backdrop-filter: blur(34px);
  -webkit-backdrop-filter: blur(34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 45px rgba(168, 85, 247, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  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;
}

.ai-chat-widget.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #131122;
  border: 1px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

.ai-avatar-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #09090f;
}

.ai-header-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.ai-header-route {
  font-size: 0.72rem;
  color: var(--accent-light);
  display: block;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.ai-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-btn-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Chat Body */
.ai-chat-body {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-chat-body::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: msgFadeIn 0.25s ease-out;
}

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

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-bubble {
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: 16px;
}

.ai-msg.bot .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.ai-msg-time {
  font-size: 0.65rem;
  color: var(--text-sub);
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Inquiry Summary Card inside Chat */
.ai-inquiry-card {
  margin-top: 10px;
  padding: 14px;
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 12px;
}

.ai-card-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.ai-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #e2e8f0;
}

.ai-card-row span:first-child {
  color: var(--text-muted);
}

.ai-card-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-btn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #050508 !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.ai-btn-route:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.ai-btn-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

/* Quick Prompt Chips */
.ai-quick-chips {
  padding: 8px 18px 10px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chip {
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chip:hover {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.55);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

/* Chat Input Footer */
.ai-chat-footer {
  padding: 12px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.ai-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.ai-input::placeholder {
  color: var(--text-sub);
}

.ai-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.ai-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Header Email & Inquire CTA */
.btn-email-inquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: var(--accent-light);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-email-inquire:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   CASE STUDY MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   ON-SCROLL 3D REVEAL ANIMATIONS (CHIPSA STYLE)
   ========================================================================== */
[data-reveal-3d] {
  opacity: 0;
  transform: perspective(1200px) rotateX(12deg) translateY(45px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-reveal-3d].revealed {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0px) scale(1);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-side-content {
    margin: 0 auto;
    text-align: center;
  }
  .hero-btn-row {
    justify-content: center;
  }
  .hero-stage-anchor {
    display: none;
  }
  .hero-bracket-btn-wrap {
    justify-content: center;
  }
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .ad-calc-box {
    grid-template-columns: 1fr;
  }
  .ad-calc-controls {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu, .header-actions .btn-whatsapp, .header-actions .btn-email-inquire {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .ticker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .project-card.span-7,
  .project-card.span-5,
  .project-card.span-6 {
    grid-column: span 12;
  }
  .ad-calc-options-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}
