/* Base theme */
:root {
  --bg: #050815; /* Dark dark dark blue */
  --elev-1: rgba(0, 0, 0, 0.35);
  --elev-2: rgba(0, 0, 0, 0.55);
  --text: #e6e9f2;
  --muted: #a6adcc;
  --accent: #4da3ff;
  --accent-2: #9b8cff;
  --border: rgba(255,255,255,0.08);
  --card: rgba(14, 17, 40, 0.6);
  --shadow: 0 10px 30px rgba(0,0,0,0.35), 0 2px 10px rgb(0,0,0,0.3);
}

/* Loading Screen - Circular Progress Ring */
#page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0b0f24 0%, #050815 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  text-align: center;
  position: relative;
}
.loader-circle-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  z-index: 2;
  animation: gentleFloat 3s ease-in-out infinite;
}
.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(77,163,255,0.5));
}
@keyframes gentleFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}
.circular-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}
.progress-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 6;
}
.progress-ring {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(77,163,255,0.6));
}
.loader-text {
  color: #c9fffc;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 24px;
  text-transform: uppercase;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Smoky animated background */
.bg { position: fixed; inset: -20vmax; z-index: -2; filter: blur(40px) saturate(135%) contrast(105%); }
.smoke { position: absolute; inset: 0; opacity: 0.22; background: radial-gradient(60vmax 60vmax at 10% 20%, #2b4a99 0%, transparent 55%),
                                  radial-gradient(50vmax 50vmax at 80% 30%, #101c4a 0%, transparent 60%),
                                  radial-gradient(40vmax 40vmax at 30% 80%, #0d1533 0%, transparent 55%);
  animation: drift 24s linear infinite;
}
.smoke-b { opacity: 0.18; filter: hue-rotate(10deg); animation-duration: 36s; animation-direction: reverse; transform: scale(1.2); }
.smoke-c { opacity: 0.14; filter: hue-rotate(-8deg) saturate(120%); animation-duration: 52s; mix-blend-mode: screen; transform: scale(1.4); }

@keyframes drift {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  25% { transform: translate3d(3%, -1%, 0) scale(1.05); }
  50% { transform: translate3d(1%, 2%, 0) scale(1.08); }
  75% { transform: translate3d(-3%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1); }
}

/* Glassy Navigation */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.42)); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.brand img { height: 36px; width: auto; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); }
.brand-name { font-weight: 700; letter-spacing: 0.6px; font-size: 15px; text-transform: uppercase; opacity: 0.9; }

.menu { display: none; gap: 22px; align-items: center; }
.menu-link { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: 0.3px; padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background .2s ease, transform .2s ease; }
.menu-link:hover { color: var(--text); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.menu-link.active { color: #fff; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); box-shadow: inset 0 0 0 1px var(--border); }

/* Mega menu (desktop) */
.menu .menu-item { position: relative; }
.menu .has-mega > .menu-link { display: inline-flex; align-items: center; gap: 6px; }
/* Hover bridge to make moving from trigger to dropdown easier */
.menu .has-mega::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px; /* increases forgiving hover area */
}
.menu .has-mega .mega {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 280px;
  max-width: min(96vw, 420px);
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(255,255,255,0.20));
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(-6px) translateX(var(--mega-shift-x, 0px));
  pointer-events: none;
  visibility: hidden;
  z-index: 60;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.menu .has-mega:hover .mega,
.menu .has-mega:focus-within .mega,
.menu .has-mega.open .mega {
  opacity: 1;
  transform: translateY(0) translateX(var(--mega-shift-x, 0px));
  pointer-events: auto;
  visibility: visible;
}

/* Edge alignment helpers to prevent viewport collision */
.menu .has-mega.edge-right .mega { left: auto; right: 0; }
.menu .has-mega.edge-left .mega { left: 0; right: auto; }
/* Default: align the last mega menu (e.g., Our Platforms) to the right edge */
.menu .menu-item.has-mega:last-of-type .mega { left: auto; right: 0; }
/* Explicit alignment helper */
.menu .has-mega.align-right .mega { left: auto; right: 0; }
.mega::before {
  content: none; /* remove top diamond pointer */
  display: none;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  transition: background .18s ease, transform .18s ease, color .18s ease;
}
.mega-item img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain; /* keep natural aspect inside square box */
  display: block;
  border: 0; /* remove border */
  background: transparent; /* remove background */
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.mega-item span { line-height: 1.2; }
.mega-item:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

.hamburger { display: inline-flex; flex-direction: column; gap: 5px; background: transparent; border: 0; cursor: pointer; padding: 6px; border-radius: 10px; }
.hamburger span { width: 24px; height: 2px; background: #cfd6ff; display: block; border-radius: 4px; transition: transform .25s ease, opacity .25s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 2147483647; background: #000; padding: 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); flex-direction: column; align-items: center; justify-content: center; gap: 18px; overscroll-behavior: contain; overflow: auto; -webkit-overflow-scrolling: touch; opacity: 0; transform: translateY(-8px); }
.mobile-menu.open { display: flex; animation: mobileMenuIn .24s ease both; }
.mobile-menu.open.closing { animation: mobileMenuOut .2s ease both; }
/* rely on the .open class for visibility; avoid !important conflicts */
.mobile-menu .menu-link { display: block; padding: 16px 18px; border-radius: 14px; font-size: 20px; color: #ffffff; }
/* Close (X) button for fullscreen mobile menu */
.mobile-close { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; color: #ffffff; font-size: 32px; line-height: 1; cursor: pointer; }
.mobile-menu .menu-link:hover { background: rgba(255,255,255,0.08); }
html.menu-open, body.menu-open { overflow: hidden; height: 100%; touch-action: none; }

/* Mobile submenus (hamburger) */
.mobile-menu .mobile-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-menu .mobile-toggle .caret { display: inline-block; transform: rotate(0deg); transition: transform .2s ease; opacity: .9; }
.mobile-menu .mobile-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.mobile-menu .mobile-submenu { width: 100%; display: grid; gap: 10px; overflow: hidden; max-height: 0; opacity: 0; transform: translateY(-4px); transition: max-height .25s ease, opacity .25s ease, transform .25s ease; }
.mobile-menu .mobile-submenu.open { max-height: 600px; opacity: 1; transform: translateY(0); }
.mobile-menu .mobile-submenu .menu-link { font-size: 18px; padding: 14px 18px 14px 28px; }

@keyframes mobileMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mobileMenuOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-8px); } }

/* Mobile typography enhancements (increased specificity to override base later in file) */
@media (max-width: 600px) {
  body .overline { font-size: 14px; letter-spacing: .28em; }
  body .title-gradient { font-size: clamp(64px, 16vw, 80px); text-shadow: 0 16px 60px rgba(201,255,252,0.4), 0 8px 16px rgba(0,0,0,0.45), 0 0 24px rgba(201,255,252,0.28); }
  body .subtitle { font-size: clamp(24px, 6vw, 32px); }
  body .kicker { font-size: clamp(16px, 4.5vw, 20px); }
}

@media (min-width: 900px) {
  .menu { display: inline-flex; }
  .hamburger, .mobile-menu { display: none; }
}

/* Responsive tweaks for split hero */
@media (max-width: 900px) {
  body .hero.split .hero-inner { grid-template-columns: 1fr; text-align: center; }
  body .hero.split .hero-inner .copy { margin: 0 auto; }
  body .app-visual { width: min(420px, 88vw); margin: 16px auto 0; }
  /* Move logo into the flow between subtitle and text on mobile */
}

/* Hero */
.main { position: relative; z-index: 1; flex: 1 0 auto; }
.hero { min-height: 82vh; display: grid; place-items: center; padding: clamp(48px, 6vw, 96px) 20px; padding-top: clamp(24px, 4vw, 56px); position: relative; isolation: isolate; }
.hero-inner { width: min(1200px, 92vw); text-align: center; }
.hero.split .hero-inner { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: clamp(20px, 4vw, 52px); align-items: center; text-align: left; }
.hero.split .hero-inner .copy { max-width: 680px; }
.hero.split .hero-inner .visual { display: grid; place-items: center; }
@media (max-width: 900px) {
  .hero.split .hero-inner .visual { display: none !important; }
  .mobile-visual { display: grid !important; }
}
.app-visual { width: min(460px, 70vw); aspect-ratio: 1 / 1; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.app-visual img { width: 72%; height: 72%; object-fit: contain; display: block; filter: drop-shadow(0 12px 40px rgba(0,0,0,0.45)); }

/* DM Ninja page - clean logo display with rounded corners */
.dm-ninja-hero .app-visual {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dm-ninja-hero .app-visual:hover {
  transform: scale(1.05);
}
.dm-ninja-hero .app-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  filter: none;
  transition: filter 0.3s ease;
}
.dm-ninja-hero .app-visual:hover img {
  filter: drop-shadow(0 12px 40px rgba(77,163,255,0.4));
}

/* DM Ninja Step Badges - Enhanced */
.step-badge {
  position: relative;
  overflow: hidden;
}
.step-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Feature Cards - Enhanced hover effect */
.feature-card {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: default;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out backwards;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(77,163,255,0.2), rgba(155,140,255,0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 18px;
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(77,163,255,0.4) !important;
  box-shadow: 0 20px 60px rgba(77,163,255,0.3), 0 8px 20px rgba(0,0,0,0.4) !important;
}
.feature-card:hover::before {
  opacity: 1;
}
/* Hidden by default; shown only on mobile to position logo between subtitle and text */
.mobile-visual { display: none; }
.headline { margin: 0; line-height: 1.05; font-weight: 900; }
.overline { display: block; font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: .24em; text-transform: uppercase; color: #c9fffc; opacity: .9; margin-bottom: 10px; }
.title-gradient { display: block; font-size: clamp(44px, 8.2vw, 110px); background: linear-gradient(180deg, #c9fffc 0%, #c9fffc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 12px 48px rgba(201,255,252,0.30), 0 4px 10px rgba(0,0,0,0.35), 0 0 18px rgba(201,255,252,0.22);
}
.solutions-page .title-gradient { font-size: clamp(36px, 6.8vw, 84px); }
.subtitle { display: block; margin-top: 10px; font-size: clamp(20px, 3vw, 36px); color: #ffffff; font-weight: 800; }
.automation-page .subtitle { font-size: clamp(16px, 2.2vw, 24px); }
.kicker { margin: 20px auto 28px; color: #ffffff; font-size: clamp(14px, 1.7vw, 18px); max-width: 820px; }
.hero-ctas { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.automation-page .hero-ctas { margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; text-decoration: none; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--border); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn.primary { background: linear-gradient(180deg, rgba(89,146,255,0.3), rgba(109,86,255,0.25)); color: #f6f8ff; box-shadow: var(--shadow); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(77,163,255,0.25); }
.btn.ghost { background: rgba(255,255,255,0.04); color: #e8ecff; }
.btn.ghost:hover { background: rgba(255,255,255,0.07); }

/* Large icon centered for standalone hero pages */
.hero-icon-large { width: min(180px, 36vw); height: auto; display: block; margin: 18px auto 6px; filter: drop-shadow(0 10px 36px rgba(0,0,0,0.45)); }
.public-speaking-page .hero-icon-large { width: min(110px, 24vw); }

/* Ensure hero content paints above background overlays */
.hero .hero-inner { position: relative; z-index: 1; }

/* Subtle code-text background overlay for hero sections */
.hero-code-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0.06; /* very light */
  transform: rotate(-1.5deg) scale(1.04);
}
.hero-code-bg pre {
  margin: 0;
  max-width: 120ch;
  width: 120%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(10px, 1.5vw, 13px);
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: pre-wrap;
  color: #ffffff;
  text-align: left;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* Photo overlay for hero sections */
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: blur(2px) saturate(110%);
}

.hero-glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60vmax 50vmax at 50% 65%, rgba(77,163,255,0.16), transparent 70%),
  radial-gradient(35vmax 30vmax at 70% 20%, rgba(155,140,255,0.16), transparent 70%),
  radial-gradient(40vmax 35vmax at 25% 20%, rgba(77,163,255,0.12), transparent 75%);
  mix-blend-mode: screen; }

/* Sections */
.section { padding: clamp(48px, 6vw, 100px) 20px; }
.section-header { width: min(1000px, 92vw); margin: 0 auto 28px; text-align: center; }
.section-title { font-size: clamp(28px, 4.2vw, 40px); margin: 0 0 8px; }
.section-desc { margin: 0 auto; color: var(--muted); max-width: 760px; }

.split { width: min(1200px, 92vw); margin: 14px auto 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: center; }
.split-left { min-width: 0; }
.split-left p { margin: 0 0 10px; color: var(--text); font-size: clamp(15px, 1.7vw, 18px); }
.split-right { display: grid; place-items: center; min-width: 0; }
.split-img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.img-glass { padding: 12px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--border); box-shadow: var(--shadow); }
.img-glass img { display: block; max-width: 100%; height: auto; width: auto; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; max-width: 100%; }
.pill { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 13px; white-space: nowrap; }
.split-cta { margin-top: 12px; }

/* Public Speaking: right-align the middle (Virtual Event's) text + CTA */
.public-speaking-page #virtual-events-title,
.public-speaking-page #virtual-events-title ~ p { text-align: right; }
.public-speaking-page #virtual-events-title ~ .split-cta { display: flex; justify-content: flex-end; }
/* Stronger hook to ensure CTA aligns right in middle section */
.public-speaking-page .split-right .split-cta { width: 100%; display: flex; justify-content: flex-end; }
/* Ensure the split-right container lets text align right */
.public-speaking-page #virtual-events-title { display: block; width: 100%; text-align: right; }

/* Public Speaking: As Seen On 3-card fan */
.public-speaking-page .as-seen-on { width: min(1000px, 92vw); margin: clamp(28px, 3.5vw, 50px) auto 0; }
.public-speaking-page .as-seen-on .section-title { margin-bottom: 16px; text-align: center; }
.public-speaking-page .as-seen-on-fan { position: relative; width: min(1000px, 92vw); height: 500px; margin: 0 auto; overflow: visible; }
.public-speaking-page .fan-card { position: absolute; bottom: 40px; width: 320px; height: 450px; transform-style: preserve-3d; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform .6s ease; will-change: transform; }
.public-speaking-page .fan-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: inherit; }
.public-speaking-page .fan-left { left: 50%; margin-left: -400px; z-index: 1; transform: rotate(-25deg); transform-origin: right bottom; }
.public-speaking-page .fan-center { left: 50%; margin-left: -160px; z-index: 3; transform: none; transform-origin: center bottom; box-shadow: 0 15px 35px rgba(0,0,0,0.4); }
.public-speaking-page .fan-right { left: 50%; margin-left: 80px; z-index: 1; transform: rotate(25deg); transform-origin: left bottom; }
/* Subtle hover lift to mirror interactive feel */
.public-speaking-page .fan-left:hover { transform: rotate(-25deg) translateY(-6px); }
.public-speaking-page .fan-center:hover { transform: translateY(-6px); }
.public-speaking-page .fan-right:hover { transform: rotate(25deg) translateY(-6px); }

@media (max-width: 900px) {
  .public-speaking-page .as-seen-on-fan { height: 460px; }
  .public-speaking-page .fan-card { width: 300px; height: 420px; bottom: 24px; }
  .public-speaking-page .fan-left, .public-speaking-page .fan-right { display: none; }
  .public-speaking-page .fan-center { left: 50%; margin-left: -150px; transform: none; }
}

/* Public Speaking: unify first and last section image heights */
.public-speaking-page { --ps-img-max-h: clamp(260px, 34vh, 380px); }
.public-speaking-page .split-section:first-of-type .img-glass img,
.public-speaking-page .split-section:last-of-type .img-glass img { max-height: var(--ps-img-max-h); }

/* Add more space between paragraphs and buttons on public speaking page */
.public-speaking-page .split-cta { margin-top: 22px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.solutions-page .hero-inner,
.solutions-page .hero-inner > .copy,
.solutions-page .hero-inner > .visual {
  background: transparent; border: 0; box-shadow: none;
}
.solutions-page .hero .visual { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.solutions-page .hero-inner::before,
.solutions-page .hero-inner::after,
.solutions-page .hero .visual::before,
.solutions-page .hero .visual::after { content: none !important; display: none !important; }

/* Center hero container horizontally on Our Platforms pages */
.solutions-page .hero .hero-inner {
  margin-left: auto;
  margin-right: auto;
  justify-self: center;
}

.cards { width: min(1200px, 92vw); margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { 
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); 
  border: 1px solid var(--border); 
  border-radius: 20px; 
  padding: 24px; 
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.4),
    0 8px 20px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.06); 
  min-height: 160px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(77,163,255,0.12), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { 
  transform: translateY(-6px) scale(1.02); 
  background: linear-gradient(135deg, rgba(77,163,255,0.1), rgba(109,86,255,0.06)); 
  border-color: rgba(77,163,255,0.25); 
  box-shadow: 
    0 28px 70px rgba(77,163,255,0.25),
    0 12px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.tools .card { display: grid; grid-template-rows: auto auto 1fr; align-items: start; }
.tools .card .logo { width: 40px; height: 40px; object-fit: contain; display: block; margin-bottom: 10px; border-radius: 6px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); }
@media (max-width: 600px) { .tools .card .logo { width: 36px; height: 36px; } }

/* How it works: Million-dollar enhanced cards with premium animations */
.process .cards { gap: 24px; }
.process .card { 
  position: relative; 
  padding: 28px 24px; 
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Animated gradient glow on top */
.process .card::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 140px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(77,163,255,0.22), transparent 70%);
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* Mouse-following glow effect */
.process .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(77,163,255,0.18), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
}
.process .card:hover::before { opacity: 1; }
.process .card:hover::after { 
  opacity: 0.7;
  transform: translateY(-8px) scale(1.1);
}
.process .card-icon { 
  width: 52px; 
  height: 52px; 
  display: grid; 
  place-items: center; 
  border-radius: 14px; 
  margin-bottom: 16px; 
  color: #c9fffc;
  background: linear-gradient(135deg, rgba(77,163,255,0.15), rgba(109,86,255,0.12));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 
    0 12px 28px rgba(0,0,0,0.4), 
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.process .card-icon::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(201,255,252,0.3), transparent 30%);
  animation: rotate-border 4s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}
@keyframes rotate-border {
  to { transform: rotate(360deg); }
}
.process .card:hover .card-icon::before { opacity: 1; }
.process .card-icon svg { width: 28px; height: 28px; position: relative; z-index: 1; transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.process .card-icon img { width: 28px; height: 28px; object-fit: contain; display: block; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35)); position: relative; z-index: 1; }
.process .step-badge {
  position: absolute; 
  top: 16px; 
  right: 16px; 
  width: 32px; 
  height: 32px;
  border-radius: 999px; 
  display: grid; 
  place-items: center; 
  font-weight: 900; 
  font-size: 13px;
  color: #001018; 
  background: linear-gradient(135deg, #c9fffc 0%, #9ad8d6 100%);
  box-shadow: 
    0 10px 24px rgba(201,255,252,0.35),
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.process .card:hover .step-badge {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 
    0 14px 32px rgba(201,255,252,0.5),
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.process .card:hover .card-icon { 
  transform: translateY(-6px) scale(1.1) rotate(-5deg); 
  box-shadow: 
    0 16px 36px rgba(77,163,255,0.4), 
    0 8px 16px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(77,163,255,0.25), rgba(109,86,255,0.2));
  border-color: rgba(77,163,255,0.3);
}
.process .card:hover .card-icon svg {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(201,255,252,0.5));
}
.process .card:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(180deg, rgba(77,163,255,0.08), rgba(109,86,255,0.05));
  border-color: rgba(77,163,255,0.2);
  box-shadow: 
    0 24px 60px rgba(77,163,255,0.25),
    0 12px 30px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.process .card h3 { 
  font-size: 19px; 
  margin-top: 8px; 
  margin-bottom: 10px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}
.process .card:hover h3 {
  color: #c9fffc;
  letter-spacing: 0.5px;
  transform: translateX(2px);
}
.process .card p { 
  line-height: 1.65; 
  transition: color 0.3s ease;
}
.process .card:hover p {
  color: var(--text);
}
.process .section-desc { font-size: clamp(15px, 1.6vw, 18px); }

.section-ctas { display: grid; place-items: center; margin-top: 22px; }

/* Public Speaking Request Form */
.form-card { width: min(900px, 92vw); margin: 0 auto; padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--border); box-shadow: var(--shadow); }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-group { display: grid; gap: 10px; }
.form-group.full { grid-column: 1 / -1; }
.form label { font-weight: 700; font-size: 14px; color: var(--text); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: var(--text); font-size: 14px;
}
.form select { cursor: pointer; }
.form .select { position: relative; }
.form .select select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 40px; /* space for custom arrow */
  background: rgba(255,255,255,0.04);
}
.form .select::after {
  content: "";
  position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid rgba(230,233,242,0.9);
  border-bottom: 2px solid rgba(230,233,242,0.9);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  opacity: 0.8;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: rgba(201,255,252,0.35);
  box-shadow: 0 0 0 3px rgba(201,255,252,0.12);
}
.form textarea { resize: vertical; }
.form-actions { display: flex; justify-content: center; padding-top: 6px; }
.hidden { display: none; }

/* SAAS form: ensure even spacing inside conditional business fields */
#sp-business-fields { gap: 22px; }
#sp-business-fields:not(.hidden) { display: grid; }

@media (max-width: 700px) { }

/* Previous Work gallery */
.work-gallery { 
  width: min(1200px, 92vw); margin: 24px auto 0; padding: 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.work-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.work-tab { 
  padding: 14px; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  color: var(--text); font-weight: 800; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.work-tab[aria-selected="true"] { 
  background: linear-gradient(180deg, rgba(89,146,255,0.3), rgba(109,86,255,0.25));
  box-shadow: var(--shadow);
}
.work-tab:hover { transform: translateY(-2px); }
.work-panels { position: relative; }
.work-panel { 
  position: relative; 
  border: 0; 
  background: transparent; 
  box-shadow: none; 
  border-radius: 0; 
  overflow: visible;
}
.work-panel[hidden] { 
  display: none !important; 
}
.work-panel:not([hidden]) {
  display: block;
}
.work-panel img { display: block; width: 100%; height: auto; }
.work-overlay {
  position: absolute; 
  left: 24px; 
  bottom: 24px; 
  max-width: min(520px, 70%);
  padding: 18px 22px; 
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(14, 17, 40, 0.95), rgba(8, 10, 25, 0.98));
  border: 1px solid rgba(77,163,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  color: #ffffff;
  backdrop-filter: blur(12px);
  z-index: 10;
}
.work-overlay p { 
  margin: 0; 
  font-size: 15px; 
  line-height: 1.55; 
  color: #e6e9f2;
  font-weight: 500;
}

/* Calendly: no wrapper, keep default spacing */

/* Community */
.community { width: min(1000px, 92vw); margin: 28px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.community-item { background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); min-height: 140px; transition: transform .2s ease; }
.community-item:hover { transform: translateY(-4px); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(0,0,0,0.3); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.footer-brand { display: inline-flex; gap: 10px; align-items: center; opacity: 0.9; }
.footer-brand img { height: 22px; width: auto; }
.footer-right { color: var(--muted); font-size: 13px; }

/* Utilities */
::selection { background: rgba(77,163,255,0.35); color: #fff; }

/* About CEO page: tighten spacing between header and hero */
.about-ceo-page .about-ceo-content { padding-top: 16px; }
/* Reset any top spacing the embedded app may add */
.about-ceo-page #root { margin-top: 0 !important; padding-top: 0 !important; }
.about-ceo-page #root > * { margin-top: 0 !important; padding-top: 0 !important; }

/* Ensure section starts just below the sticky header (no overlap) */
.about-ceo-page .about-ceo-content { margin-top: 0; }
/* Ensure the main wrapper doesn't add spacing */
.about-ceo-page .main { margin-top: 0 !important; padding-top: 0 !important; }
@media (min-width: 900px) {
  .about-ceo-page .about-ceo-content { padding-top: 20px; }
}

/* Zero-out typical top spacing patterns inside the embedded app */
.about-ceo-page #root h1,
.about-ceo-page #root h2,
.about-ceo-page #root .hero,
.about-ceo-page #root .section,
.about-ceo-page #root .container,
.about-ceo-page #root .wrapper { margin-top: 0 !important; padding-top: 0 !important; }

/* About CEO: add a bit more spacing between the news images and testimonial videos */
/* Structural rule: when a container with images is immediately followed by a container with iframes/videos */
.about-ceo-page #root :is(section, div, article):has(> img, > picture) + :is(section, div, article):has(> iframe, > video),
.about-ceo-page #root :is(section, div, article):has(img, picture) + :is(section, div, article):has(iframe, video) {
  margin-top: clamp(16px, 3.5vw, 48px) !important; /* toned down to avoid huge gaps */
}
/* Fallback for common class naming patterns */
.about-ceo-page #root [class*="news"] + [class*="testimon"],
.about-ceo-page #root [class*="press"] + [class*="testimon"],
.about-ceo-page #root [class*="testimon"] {
  margin-top: clamp(16px, 3vw, 36px) !important; /* toned down */
}

/* About CEO: specifically add more space after the FEATURED BY (news articles) section */
.about-ceo-page #root section:has(img[alt^="News Article"]) {
  margin-bottom: clamp(16px, 2.5vw, 32px) !important; /* modest separation */
}
/* Direct sibling rule between the FEATURED BY section and the testimonial grid */
.about-ceo-page #root section:has(img[alt^="News Article"]) + :is(section, div, article):has(iframe, video) {
  margin-top: clamp(16px, 2.5vw, 32px) !important; /* modest separation */
}

/* About CEO: lower the bottom padding of the top hero/intro section */
.about-ceo-page #root section.container.mx-auto:first-of-type {
  margin-top: clamp(8px, 1.6vw, 20px) !important; /* tiny bit more spacing above the hero */
  padding-bottom: clamp(0px, 1.2vw, 12px) !important; /* further reduced */
}
@media (min-width: 640px) {
  .about-ceo-page #root section.container.mx-auto:first-of-type {
    padding-bottom: clamp(0px, 1.4vw, 14px) !important;
  }
}
@media (min-width: 768px) {
  .about-ceo-page #root section.container.mx-auto:first-of-type {
    padding-bottom: clamp(0px, 1.6vw, 16px) !important;
  }
}
/* Fallback: target by min-height utility present in this section */
.about-ceo-page #root section[class*="min-h-[90vh]"]:first-of-type {
  padding-bottom: clamp(0px, 1.2vw, 12px) !important;
}
@media (min-width: 768px) {
  .about-ceo-page #root section[class*="min-h-[90vh]"]:first-of-type {
    padding-bottom: clamp(0px, 1.6vw, 16px) !important;
  }
}

/* About CEO: add more spacing between the top hero section and the testimonial video grid */
/* Increase bottom margin of the hero only when a video grid follows somewhere after it */
.about-ceo-page #root section.container.mx-auto:first-of-type:has(~ :is(section, div, article) .grid:has(iframe)) {
  margin-bottom: 0 !important; /* remove extra gap under hero */
}
/* Also add margin-top to the first video grid that follows the hero for reliable separation */
.about-ceo-page #root section.container.mx-auto:first-of-type ~ .grid:has(iframe),
.about-ceo-page #root section.container.mx-auto:first-of-type ~ :is(section, div, article) .grid:has(iframe) {
  margin-top: 0 !important; /* remove remaining gap under hero */
}

/* About CEO: remove forced min-height on the top hero to kill excess whitespace */
.about-ceo-page #root section.container.mx-auto:first-of-type,
.about-ceo-page #root section[class*="min-h["]:first-of-type {
  min-height: 0 !important;
  height: auto !important;
}
@media (min-width: 768px) {
  .about-ceo-page #root section.container.mx-auto:first-of-type,
  .about-ceo-page #root section[class*="min-h["]:first-of-type {
    min-height: 0 !important; /* override md:min-h utilities */
    height: auto !important;
  }
}

/* About CEO: strip bottom padding/margins from immediate wrappers inside the hero */
.about-ceo-page #root section.container.mx-auto:first-of-type > div[class*="pb-"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class*="md:pb-"] {
  padding-bottom: 0 !important;
}
.about-ceo-page #root section.container.mx-auto:first-of-type .mb-5 { margin-bottom: 0 !important; }

/* About CEO: tighten hero internals further */
.about-ceo-page #root section.container.mx-auto:first-of-type { margin-bottom: 0 !important; }
/* Reduce vertical gaps inside the hero column stack */
.about-ceo-page #root section.container.mx-auto:first-of-type .flex.flex-col { gap: clamp(6px, 1.2vw, 12px) !important; row-gap: clamp(6px, 1.2vw, 12px) !important; }
@media (min-width: 768px) {
  /* Reduce row gap when it becomes a 2-col grid */
  .about-ceo-page #root section.container.mx-auto:first-of-type [class*="md:grid"] {
    row-gap: clamp(8px, 1.2vw, 16px) !important;
    column-gap: clamp(12px, 1.8vw, 24px) !important;
  }
}
/* Remove common tailwind bottom paddings within hero */
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-4"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-5"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-6"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-8"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-10"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-12"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-16"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-20"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-24"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="pb-32"] { padding-bottom: 0 !important; }
/* Reduce large bottom margins that may linger under headings/blocks inside hero */
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-10"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-12"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-16"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-20"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-24"],
.about-ceo-page #root section.container.mx-auto:first-of-type [class~="mb-32"] { margin-bottom: clamp(4px, 0.8vw, 12px) !important; }
/* Ensure absolutely no trailing space from the last block inside the hero */
.about-ceo-page #root section.container.mx-auto:first-of-type > *:last-child,
.about-ceo-page #root section.container.mx-auto:first-of-type :is(.flex, .grid, .container, .wrapper, div, article, section):last-child,
.about-ceo-page #root section.container.mx-auto:first-of-type :is(p, h1, h2, h3, h4, h5, h6, figure, img, picture):last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* About CEO: make specific card headings black */
.about-ceo-page #root h3.text-2xl.font-bold.mb-2 { color: #000 !important; }
/* Class-contains fallback to catch class order variations */
.about-ceo-page #root h3[class~="text-2xl"][class~="font-bold"][class~="mb-2"] { color: #000 !important; }

/* About CEO: make main H1 (name) cleanly scalable and visible on all screens */
/* Primary selector targeting the known classes */
.about-ceo-page #root h1.text-6xl.font-bold.relative.block {
  font-size: clamp(32px, 11vw, 120px) !important;
  line-height: 1.02 !important;
  letter-spacing: clamp(0.2px, 0.3vw, 2px) !important; /* shrink spacing on small screens */
  white-space: normal !important; /* allow wrapping when needed */
  text-wrap: balance; /* nicer multi-line wrapping for two-word names */
  word-break: normal;
  overflow-wrap: anywhere; /* avoid overflow in edge cases */
  padding-left: 0 !important; /* remove inline left padding */
}
/* Attribute-based fallback to tolerate class order changes */
.about-ceo-page #root h1[class*="text-6xl"][class*="font-bold"][class*="relative"][class*="block"] {
  font-size: clamp(32px, 11vw, 120px) !important;
  line-height: 1.02 !important;
  letter-spacing: clamp(0.2px, 0.3vw, 2px) !important;
  white-space: normal !important;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: anywhere;
  padding-left: 0 !important;
}
/* Remove extra left offset from the nested wrapper inside H1 on small screens */
.about-ceo-page #root h1[class*="text-6xl"] > div { margin-left: 0 !important; max-width: 100% !important; }
@media (max-width: 600px) {
  .about-ceo-page #root h1[class*="text-6xl"] {
    /* Ensure no visual clipping effects reduce legibility on very small screens */
    -webkit-mask-image: none !important;
    mask-image: none !important;
    text-shadow: none !important;
  }
}
/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .smoke, .hero-glow, .btn, .card, .community-item { animation: none !important; transition: none !important; }
}
/* Footer XL (corporate) */
.footer.footer-xl { border-top: 1px solid var(--border); background: rgba(0,0,0,0.35); }
.footer-xl .footer-container { max-width: 1200px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) 20px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,2.6fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.footer-brand-lg { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.footer-brand-lg img { height: 44px; width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45)); }
.footer-brand-lg span { font-size: clamp(18px, 2.2vw, 26px); font-weight: 900; letter-spacing: .6px; }
.footer-copy { margin-top: 8px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 16px 24px; }
.footer-col h4 { margin: 0 0 10px; font-size: 14px; color: #c9fffc; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.footer-col a { display: block; color: var(--text); text-decoration: none; font-size: 14px; opacity: 0.9; padding: 6px 0; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 900px) { 
  .footer-xl .footer-container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .footer-brand-lg img { height: 36px; }
}

/* SAAS Development – Consultation section overrides */
#schedule-consultation .section-desc {
  max-width: 1000px; /* wider than default 760px */
  font-size: clamp(14px, 1.9vw, 20px); /* slightly smaller per request */
}

#schedule-consultation .calendly-inline-widget {
  display: block;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Tools Scroll Grid - Beautiful scroll-triggered reveal */
.tools-scroll-wrapper {
  width: 100%;
  overflow: visible;
}

.tools-grid {
  width: min(1200px, 92vw);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.tool-card {
  position: relative;
  padding: 40px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.4),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(16px) saturate(180%);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  overflow: hidden;
  
  /* Initial state - hidden and shifted */
  opacity: 0;
  transform: translateX(60px) scale(0.95);
}

/* Scroll-triggered reveal - applied via JS */
.tool-card.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Stagger delay for cascade effect */
.tool-card[data-scroll-index="0"] { transition-delay: 0s; }
.tool-card[data-scroll-index="1"] { transition-delay: 0.1s; }
.tool-card[data-scroll-index="2"] { transition-delay: 0.2s; }
.tool-card[data-scroll-index="3"] { transition-delay: 0.3s; }
.tool-card[data-scroll-index="4"] { transition-delay: 0.4s; }
.tool-card[data-scroll-index="5"] { transition-delay: 0.5s; }
.tool-card[data-scroll-index="6"] { transition-delay: 0.6s; }

/* Hover effects */
.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, rgba(77,163,255,0.14), rgba(109,86,255,0.10));
  border-color: rgba(77,163,255,0.35);
  box-shadow: 
    0 30px 80px rgba(77,163,255,0.25),
    0 12px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Subtle glow effect on hover */
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(77,163,255,0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover .tool-logo {
  transform: scale(1.15) translateY(-6px) rotate(3deg);
  filter: drop-shadow(0 16px 40px rgba(77,163,255,0.5));
}

.tool-card h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff, #c9fffc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.4s ease;
}

.tool-card:hover h3 {
  background: linear-gradient(180deg, #4da3ff, #c9fffc);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(-2px);
  letter-spacing: 0.02em;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 15px);
  line-height: 1.7;
  transition: all 0.4s ease;
}

.tool-card:hover p {
  color: var(--text);
}

/* Rebuild Announcement Modal */
.rebuild-modal { position: fixed; inset: 0; display: none; place-items: center; z-index: 2147483646; background: rgba(0,0,0,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px; }
.rebuild-modal.open { display: grid; }
.rebuild-dialog { width: min(920px, 96vw); border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(14, 17, 40, 0.58), rgba(8, 10, 25, 0.48)); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: center; padding: clamp(16px, 2.8vw, 24px); position: relative; backdrop-filter: blur(16px) saturate(160%) brightness(1.05); -webkit-backdrop-filter: blur(16px) saturate(160%) brightness(1.05); }
.rebuild-close { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #fff; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; font-weight: 800; line-height: 1; }
.rebuild-close:hover { background: rgba(255,255,255,0.1); }
.rebuild-figure { display: grid; place-items: center; padding: clamp(8px, 1.6vw, 12px); }
.rebuild-figure img { width: min(200px, 36vw); height: min(200px, 36vw); object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 4px 14px rgba(0,0,0,0.35); }
.rebuild-copy { padding: clamp(6px, 1.4vw, 10px); }
.rebuild-title { margin: 0; color: #ffffff; font-weight: 900; letter-spacing: 0.2px; font-size: clamp(20px, 3.2vw, 30px); line-height: 1.25; }
.rebuild-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 700px) {
  .rebuild-dialog { grid-template-columns: 1fr; text-align: center; }
  .rebuild-figure { order: -1; }
  .rebuild-title { font-size: clamp(18px, 6vw, 26px); }
  .rebuild-figure img { border-radius: 999px; }
}

/* Mobile adaptations */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .tool-card {
    padding: 36px 28px;
  }

  .tool-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }
}

@media (max-width: 500px) {
  .tool-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .tool-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }
}

/* Hero: As Seen On strip */
.hero .as-seen { margin-top: 26px; display: grid; gap: 10px; justify-items: center; }
.as-seen-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.as-seen-logos { display: flex; align-items: center; justify-content: center; gap: 0; opacity: 0.95; filter: none; }
.as-seen-img { width: min(980px, 94vw); height: auto; display: block; }
.aso-item.yahoo { font-style: italic; letter-spacing: 0.02em; }
.aso-item.medium { font-weight: 900; font-size: clamp(22px, 2.6vw, 28px); }
@media (max-width: 600px) { .as-seen-label { font-size: 11px; } }

/* Rounded variants for brand logos needing soft corners */
.tool-logo.rounded { border-radius: 12px; background: transparent; }

/* Consulting page: sticky subnav */
.subnav { position: sticky; top: 66px; z-index: 45; width: min(1200px, 92vw); margin: 8px auto 0; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid var(--border); backdrop-filter: blur(12px); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.subnav-link { color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 12px; border: 1px solid transparent; transition: color .2s ease, background .2s ease, transform .2s ease, border-color .2s ease; white-space: nowrap; }
.subnav-link:hover { color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.subnav-link.active { color: #fff; background: linear-gradient(180deg, rgba(77,163,255,0.22), rgba(109,86,255,0.18)); border-color: rgba(255,255,255,0.12); box-shadow: 0 10px 30px rgba(77,163,255,0.18); }

/* Consulting page: elevated section headings */
.solutions-page .section-title { background: linear-gradient(180deg, #ffffff 10%, #c9fffc 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 10px 36px rgba(201,255,252,0.28); }
.solutions-page .section-desc { max-width: 860px; margin-left: auto; margin-right: auto; }

/* Consulting page: testimonials */
.testimonials .cards { gap: 22px; }
.testimonials .card.testimonial { position: relative; padding: 24px 24px 20px; text-align: left; }
.testimonials .card.testimonial::before { content: "“"; position: absolute; top: -12px; left: 16px; font-size: 64px; line-height: 1; color: rgba(201,255,252,0.25); text-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.testimonials .card .quote { font-size: clamp(15px, 1.8vw, 18px); line-height: 1.7; margin: 0 0 10px; color: #eaf7ff; }
.testimonials .card .author { margin: 0; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }

/* Reveal animations (generic) */
.reveal { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity .6s ease, transform .6s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* Founder overview pills - Premium edition */
.pills { width: min(1000px, 92vw); margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.pill { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  padding: 14px 18px; 
  border-radius: 999px; 
  color: #eaf7ff; 
  font-weight: 700; 
  letter-spacing: 0.3px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); 
  border: 1px solid rgba(255,255,255,0.1); 
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.4), 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.08); 
}
.pill-icon { 
  width: 32px; 
  height: 32px; 
  display: grid; 
  place-items: center; 
  border-radius: 999px; 
  background: linear-gradient(135deg, #c9fffc 0%, #9ad8d6 100%); 
  box-shadow: 
    0 10px 24px rgba(201,255,252,0.35),
    0 4px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3); 
  flex: 0 0 32px; 
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pill svg { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35)); }
@media (max-width: 600px) { .pill { font-weight: 600; } }

/* Graceful stagger for reveal elements in grid lists */
.stagger .reveal { will-change: transform, opacity; }
.stagger .reveal:nth-child(1) { transition-delay: .02s; }
.stagger .reveal:nth-child(2) { transition-delay: .06s; }
.stagger .reveal:nth-child(3) { transition-delay: .10s; }
.stagger .reveal:nth-child(4) { transition-delay: .14s; }
.stagger .reveal:nth-child(5) { transition-delay: .18s; }
.stagger .reveal:nth-child(6) { transition-delay: .22s; }
.stagger .reveal:nth-child(7) { transition-delay: .26s; }
.stagger .reveal:nth-child(8) { transition-delay: .30s; }
.stagger .reveal:nth-child(9) { transition-delay: .34s; }
.stagger .reveal:nth-child(10) { transition-delay: .38s; }

@media (max-width: 700px) {
  .subnav { top: 58px; border-radius: 14px; gap: 8px; }
  .subnav-link { padding: 8px 12px; }
}

/* Featured-on block */
.featured-on { width: min(1000px, 92vw); margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; }
.featured-on .overline { margin-bottom: 8px; }
.featured-on .featured-img { width: 100%; height: auto; display: block; opacity: .95; }
.pills + .featured-on { margin-top: clamp(36px, 6vw, 64px); }

/* Press articles fan - Premium edition with graceful jump */
.press-fan { width: min(1100px, 92vw); margin: 8px auto 0; padding: 0 12px; }
.press-fan-inner { position: relative; height: 520px; padding: 0 20px; }
.press-card { 
  position: absolute; 
  bottom: 0; 
  width: 320px; 
  height: 440px; 
  border-radius: 20px; 
  overflow: hidden; 
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.55), 
    0 15px 35px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08); 
  background: linear-gradient(135deg, rgba(14, 17, 40, 0.95), rgba(8, 10, 25, 0.98)); 
  transform-style: preserve-3d; 
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
}
.press-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(77,163,255,0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.press-card:hover::before { opacity: 1; }
.press-card img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: brightness(0.95) contrast(1.05);
}
.press-card:nth-child(1) { left: 0; transform: rotate(-25deg) translateY(16px); z-index: 1; }
.press-card:nth-child(2) { left: 50%; transform: translateX(-50%) rotate(0deg) scale(1); z-index: 3; }
.press-card:nth-child(3) { right: 0; transform: rotate(25deg) translateY(16px); z-index: 1; }
/* Graceful jump animation on hover - no zoom */
.press-card:nth-child(1):hover { 
  transform: rotate(-25deg) translateY(-12px); 
  box-shadow: 
    0 40px 80px rgba(77,163,255,0.3), 
    0 20px 45px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(77,163,255,0.25);
}
.press-card:nth-child(2):hover { 
  transform: translateX(-50%) rotate(0deg) scale(1.02) translateY(-16px); 
  box-shadow: 
    0 45px 90px rgba(77,163,255,0.35), 
    0 25px 50px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(77,163,255,0.3);
}
.press-card:nth-child(3):hover { 
  transform: rotate(25deg) translateY(-12px); 
  box-shadow: 
    0 40px 80px rgba(77,163,255,0.3), 
    0 20px 45px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  border-color: rgba(77,163,255,0.25);
}
.press-card:hover img { 
  filter: brightness(1.05) contrast(1.1);
}
@media (max-width: 980px) {
  .press-fan-inner { height: auto; display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .press-card { position: relative; width: 100%; height: 320px; transform: none !important; }
  .press-card:hover { transform: translateY(-8px) !important; }
}

/* Pills polish - Enhanced interaction */
.pill { 
  position: relative; 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); 
}
.pill::after { 
  content: ""; 
  position: absolute; 
  inset: -1px; 
  border-radius: 999px; 
  background: radial-gradient(600px 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201,255,252,0.18), transparent 60%); 
  opacity: 0; 
  transition: opacity .4s ease; 
  pointer-events: none; 
}
.pill:hover { 
  transform: translateY(-3px) scale(1.03); 
  box-shadow: 
    0 16px 40px rgba(77,163,255,0.3), 
    0 8px 16px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.12); 
  background: linear-gradient(135deg, rgba(77,163,255,0.12), rgba(109,86,255,0.08));
  border-color: rgba(77,163,255,0.25);
}
.pill:hover::after { opacity: 1; }
.pill:hover .pill-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 
    0 12px 28px rgba(201,255,252,0.5),
    0 6px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.pill-icon img { width: 18px; height: 18px; display: block; }

/* CEO-style pills (match About CEO look) */
.pill-ceo { background: rgba(17,24,39,0.5); border: 1px solid #1f2937; color: #d1d5db; backdrop-filter: blur(8px); }
.pill-ceo .pill-icon { color: #C9FFFC; margin-right: 8px; }
.pill-ceo:hover { background: rgba(17,24,39,0.6); border-color: rgba(201,255,252,0.25); }

/* Consulting scope: 3-up grid + hover glow */
#consulting-scope .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #consulting-scope .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #consulting-scope .cards { grid-template-columns: 1fr; } }
#consulting-scope .card { position: relative; overflow: hidden; }
#consulting-scope .card::after { content: ""; position: absolute; inset: -1px; border-radius: 18px; background: radial-gradient(140px 140px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(77,163,255,0.22), transparent 60%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
#consulting-scope .card:hover::after { opacity: 1; }

/* Video testimonials - Premium cards */
.video-testimonials { padding-top: 32px; }
.video-testimonials .vt-grid { 
  width: min(1100px, 92vw); 
  margin: 10px auto 0; 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 20px; 
}
@media (max-width: 1000px) { .video-testimonials .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) { .video-testimonials .vt-grid { grid-template-columns: 1fr; } }
.video-testimonials .vt-card { 
  background: linear-gradient(135deg, rgba(17,24,39,0.6), rgba(8,10,25,0.7)); 
  border: 1px solid rgba(255,255,255,0.08); 
  border-radius: 20px; 
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.5),
    0 8px 20px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06); 
  overflow: hidden; 
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.video-testimonials .vt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(77,163,255,0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.video-testimonials .vt-card:hover::before { opacity: 1; }
.video-testimonials .vt-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(77,163,255,0.25);
  box-shadow: 
    0 28px 70px rgba(77,163,255,0.3),
    0 12px 30px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.1);
}
.video-testimonials .vt-frame { position: relative; width: 100%; }
.video-testimonials .vt-frame iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; display: block; }

/* Feature Showcase Sections */
.feature-showcase {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-showcase.reverse {
  direction: rtl;
}
.feature-showcase.reverse > * {
  direction: ltr;
}
.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-badge {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(77,163,255,0.2), rgba(155,140,255,0.15));
  border: 1px solid rgba(77,163,255,0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c9fffc;
  text-transform: uppercase;
  width: fit-content;
}
.showcase-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}
.showcase-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 24px;
  position: relative;
}
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}
.showcase-visual {
  width: 100%;
  position: relative;
}
.showcase-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.showcase-visual img:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 20px 60px rgba(77,163,255,0.4), 0 8px 24px rgba(0,0,0,0.5) !important;
}

/* Smooth reveal animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-showcase {
  animation: fadeInUp 0.8s ease-out;
}

.feature-showcase:nth-child(2) {
  animation-delay: 0.1s;
}

.feature-showcase:nth-child(3) {
  animation-delay: 0.2s;
}

@media (max-width: 900px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-showcase.reverse {
    direction: ltr;
  }
  .showcase-title {
    font-size: 26px;
  }
}
