:root{
  --navH: 82px;
  --container: 1100px;

  --bg: #000000;
  --text: rgba(242,248,252,.96);
  --muted: rgba(242,248,252,.72);
  --muted2: rgba(242,248,252,.56);

  --accent: #ffffff;
  --accent2: #dcdcdc;
  --accent3: #4A9FBE;  /* medium blue */
  --accent4: #26C6B9;  /* teal blue */
  --accent5: #8a8a8a;   /* neutral accent */
  --mustard: #d6a73b;
  --workflow-bg:
    radial-gradient(circle at 25% 25%, rgba(15, 32, 48, 0.38), transparent 38%),
    radial-gradient(circle at 80% 20%, rgba(14, 24, 36, 0.28), transparent 36%),
    linear-gradient(160deg, #05060a 0%, #0b0f1a 55%, #0f2030 100%);

  --radius2: 22px;
  --shadow: 0 26px 80px rgba(0,0,0,.45);

  /* Responsive spacing system */
  --spacing-xs: clamp(8px, 2vw, 12px);
  --spacing-sm: clamp(12px, 3vw, 18px);
  --spacing-md: clamp(18px, 4vw, 32px);
  --spacing-lg: clamp(32px, 6vw, 60px);
  --touch-min: 44px;
  --container-padding: clamp(16px, 4vw, 22px);
}

*{ box-sizing:border-box; }
html{
  height:100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body{
  min-height:100%;
  width: 100%;
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #05060a;
  background-image: var(--workflow-bg);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  position: relative;
}

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

main{
  padding-top: var(--navH);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* top progress bar (base.html uses it) */
.topProgress{
  position:fixed; top:0; left:0;
  height:2px; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent5));
  z-index:9999;
}

/* NAV (base.html uses these classes) */
.navWrap{
  position:fixed; top:0; left:0; right:0;
  height: var(--navH);
  z-index:2000;
  background: #000000;
  backdrop-filter: blur(14px);
}

.nav{
  width:min(var(--container), calc(100% - 44px));
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:-.04em;
}

.brandLogo{
  width:56px;
  height:56px; /* sized to match combined height of title + slogan */
  object-fit:contain;
  filter: drop-shadow(0 2px 8px rgba(255,255,255,.18));
  transition: transform .2s ease;
}
.brand:hover .brandLogo{ transform: scale(1.1); }
.brandText{
  opacity:1;
  color: #fff;
  letter-spacing:-.03em;
  text-shadow: 0 1px 12px rgba(255,255,255,.2);
}
.brandSlogan{
  display:block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-top: 2px;
}

.navLinks{
  display:flex;
  gap:10px;
  align-items:center;
  padding:6px 0;
}

.navBtn{
  appearance:none;
  border:0;
  background:transparent;
  color: var(--muted2);
  padding:10px 12px;
  min-height: 44px;
  min-width: 44px;
  border-radius:999px;
  cursor:pointer;
  font-size: 0.88em;
  font-weight:700;
  letter-spacing:-.01em;
  transition:.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.navBtn:hover{ color:var(--text); background: rgba(255,255,255,.05); }
.navBtn.active{
  color: var(--accent);
  background: transparent;
  border: none;
  text-shadow: 0 0 12px rgba(255,255,255,0.2);
}
.navBtn.secondary{
  font-size: 0.85em;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.8;
}
.navBtn.secondary:hover{
  opacity: 1;
  color: var(--text);
}

.cta{
  border:0;
  cursor:pointer;
  font-weight:900;
  letter-spacing:-.02em;
  color:#ffffff;
  padding:12px 14px;
  min-height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e3b64c, #c8921e);
  box-shadow: 0 16px 46px rgba(214,167,59,.2);
  display:flex;
  align-items:center;
  gap:10px;
  transition: transform .12s ease;
  text-decoration: none;
}
.cta:hover{ transform: translateY(-1px); }

.ctaDot{
  width:8px; height:8px; border-radius:50%;
  background: none;
  box-shadow: none;
  display: none;
}

/* Hamburger menu button - hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  z-index: 2001;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .navLinks {
    position: fixed;
    top: var(--navH);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    background: rgba(8,10,15,0.98);
    backdrop-filter: blur(20px);
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.07);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    z-index: 2000;
  }

  .navLinks.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navBtn {
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border-radius: 8px;
  }

  .cta {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* SCENE base (your original site uses scenes) */
.scene{
  min-height:100vh;
  display:flex;
  align-items:center;
  position:relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* HERO */
.hero{
  padding:0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: transparent; /* let page background continue under scroll extension */
  position: relative;
}

.heroBg{
  position: fixed;
  top: var(--navH);
  left: 0;
  right: 0;
  height: calc(100vh - var(--navH));
  background-image:
    linear-gradient(150deg, rgba(0,0,0,0.85), rgba(0,0,0,0.65)),
    url('../image0.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transform: translateY(var(--hero-bg-translate, 0px));
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
}

.pinned{ height:100vh; }

/* IMPORTANT: this is the key change to make hero vertically centered */
.heroInner{
  height: calc(100vh - var(--navH));
  display:flex;
  align-items:flex-start;
  padding-top: clamp(90px, 20vh, 210px); /* lift hero slightly higher */
  position: relative;   /* not sticky for this "top-only" version */
  transform: translateZ(0);
  z-index: 2;
  backface-visibility: hidden;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.grid{
  width: 100%;
  max-width: var(--container);
  padding-left: 22px;
  padding-right: 22px;
  margin: 0;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:36px;
  align-items:center;
  position:relative;
  z-index:2;
  box-sizing: border-box;
}

.kicker{
  color: var(--muted2);
  font-weight:800;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.mega{
  margin:0;
  font-size: clamp(32px, calc(8vw + 12px), 78px);
  line-height:1.15;
  letter-spacing:-.06em;
  font-family: "DM Serif Display", "Bookman Old Style", "Bookman", "Serpentine", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  display: block;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  padding-bottom: 8px;
  overflow: visible;
}

body:not(.js-ready) .mega{
  opacity: 0;
  transform: translateY(14px);
  clip-path: inset(0 100% 0 0);
}

body.js-ready .mega{
  animation: megaReveal 1.1s ease forwards;
}

@keyframes megaReveal{
  from{
    opacity: 0;
    transform: translateY(14px);
    clip-path: inset(0 100% 0 0);
  }
  to{
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.grad{
  color: var(--text);
}

.oneLine{
  margin: 16px 0 22px;
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.heroActions{ display:flex; gap:12px; flex-wrap:wrap; }

.dockPoint{
  height: 0;
  margin: 0;
  padding: 0;
}

.heroRight{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.3s ease;
}

.heroVisual{
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  object-fit: contain;
}

.btn{
  border:0;
  border-radius:999px;
  padding: 12px 14px;
  min-height: 44px;
  min-width: 120px;
  font-weight:900;
  letter-spacing:-.02em;
  cursor:pointer;
  transition: .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.primary{
  color:#ffffff;
  background: linear-gradient(135deg, #2f3338, #4c5159);
  box-shadow: 0 16px 46px rgba(0,0,0,.34);
}
.btn.primary:hover{ transform: translateY(-1px); }

.btn.ghost{
  color:var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
}
.btn.ghost:hover{
  background: rgba(255,255,255,.05);
  transform: translateY(-1px);
}

/* Loading state for JavaScript-dependent sections */
.js-loading {
  opacity: 0.3;
  pointer-events: none;
}

body:not(.js-ready) .workflowSection,
body:not(.js-ready) .testimonialsSection {
  opacity: 0.3;
}

body.js-ready .workflowSection,
body.js-ready .testimonialsSection {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Touch-friendly active states for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn:active {
    transform: scale(0.97);
  }

  .navBtn:active {
    background: rgba(255,255,255,.08);
  }

  .cta:active {
    transform: translateY(0) scale(0.97);
  }

  /* Disable hover effects on touch devices */
  .btn:hover,
  .navBtn:hover,
  .cta:hover {
    transform: none;
  }

  .btn.primary:active {
    transform: translateY(0) scale(0.97);
  }

  .btn.ghost:hover {
    transform: none;
  }
}

/* Small screens */
@media (max-width: 900px){
  .grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .heroRight{
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
  }

  .heroLeft {
    order: 1;
  }

  .heroVisual {
    max-width: min(280px, 70vw);
    width: 100%;
  }
}

/* Tablet landscape: 768px - 900px */
@media (min-width: 768px) and (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .heroVisual {
    max-width: min(320px, 72vw);
  }

  .workflowCards {
    gap: 24px;
  }

  .testimonialCard {
    width: min(360px, calc(45vw + 20px));
  }

  .formRow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile landscape: 480px - 767px */
@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --navH: 64px;
  }

  .mega {
    font-size: clamp(36px, 8vw, 54px);
  }

  .heroVisual {
    max-width: min(300px, 68vw);
  }

  .workflowCards {
    gap: 32px;
  }

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

  .contactSurface {
    padding: 36px 24px 40px;
  }
}

/* Mobile portrait: < 480px */
@media (max-width: 479px) {
  :root {
    --navH: 60px;
    --container-padding: 12px;
  }

  .nav {
    width: 100%;
    padding: 0 12px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .heroInner {
    padding-top: clamp(40px, 12vh, 100px);
    height: auto;
    min-height: calc(100vh - var(--navH));
    min-height: calc(100dvh - var(--navH));
    padding-bottom: clamp(30px, 8vh, 60px);
  }

  .grid {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0;
    gap: 20px;
  }

  .mega {
    font-size: clamp(26px, 10vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
  }

  .grad {
    display: inline;
  }

  .oneLine {
    font-size: clamp(13px, 4vw, 16px);
    margin: 14px 0 20px;
  }

  .heroVisual {
    max-width: min(240px, 65vw);
  }

  .introParagraphInner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin: 0 !important;
  }

  .introQuote p {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
  }

  .heroActions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-width: auto;
  }

  .workflowCards {
    gap: 28px;
  }

  .qualifyCard {
    padding: 28px 20px 34px;
  }

  .scenario {
    padding: 18px 16px;
    gap: 12px;
  }

  .contactSurface {
    padding: 32px 20px 36px;
  }

  /* Stats Grid - Very Small Screens */
  .statsGrid {
    gap: 14px 10px;
    margin: 24px auto 0;
  }

  .statItem {
    min-width: 75px;
    flex: 0 1 calc(50% - 8px);
  }

  .statItem:last-child {
    flex: 0 1 100%;
  }

  .statIcon {
    width: 24px;
    height: 24px;
  }

  .statIcon svg {
    width: 24px;
    height: 24px;
  }

  .statNumber {
    font-size: clamp(20px, 7vw, 28px);
  }

  .statLabel {
    font-size: clamp(8px, 2.2vw, 10px);
    max-width: 90px;
  }
}

.introParagraph{
  position: fixed;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 30;
  top: 100vh;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  overflow-x: hidden;
}

.introParagraphInner{
  width: 100%;
  max-width: min(47vw, 720px);
  padding-left: 22px;
  padding-right: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}


.introHeading{
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
  color: var(--text);
  font-weight: 900;
}

.introQuote{
  margin: 0;
  padding: 0;
  border-left: 3px solid #d6a73b;
  padding-left: 14px;
  color: rgba(242,248,252,0.8);
}

.introQuote p{
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.introQuote cite{
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mustard);
  filter: drop-shadow(0 1px 4px rgba(214, 167, 59, 0.2));
}

.heroActions.release {
  position: absolute;
  left: 0;
  top: 0;
  width: fit-content;
}

#heroRelease{
  height: 1px;
}

#home{
  position: relative;
}

#introSpacer { height: 0; }
#qualifySpacer { height: 0; }
#workflowSpacer { height: 0; }

/* Workflow Footnote Link */
.workflowFootnote {
  text-align: center;
  padding: var(--spacing-md) var(--container-padding);
  margin-top: calc(var(--spacing-md) * -1);
}

.footnoteLink {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: -0.01em;
}

.footnoteLink:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.qualifySection{
  position: relative;
  padding: 60px var(--container-padding);
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.qualifyCard{
  position: relative;
  width: min(480px, calc(100% - 40px));
  max-width: 480px;
  margin: 0 auto 0 0; /* slightly left, stay inside viewport */
  padding: 36px 32px 42px;
  border-radius: var(--radius2);

  background: transparent; /* transparent while scenarios run */
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  overflow: hidden;

  color: var(--text);
  z-index: 40;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    width 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 2.2s cubic-bezier(0.16, 1, 0.3, 1),
    padding 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qualifyCard.final-reveal{
  width: 100% !important;
  max-width: 100% !important;
  left: auto !important;
  right: auto !important;
  margin: 0 auto !important;
  top: var(--navH) !important;
  min-height: calc(100vh - var(--navH));
  padding: clamp(32px, 6vw, 64px) clamp(22px, 6vw, 70px);
  border-radius: 0;
  background: #c2edff; /* slightly lighter solid blue */
  color: #0D4D5C;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

/* Floating celebration particles - enhanced visibility */
.qualifyCard.final-reveal::after {
  content: none; /* restore crisp edge below the takeover */
}

.qualifyCard.final-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #c2edff; /* keep solid light blue */
  background-size: auto;
  z-index: -2;
  opacity: 0;
  animation: backgroundFadeIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes backgroundFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

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

@keyframes finalTakeoverReveal {
  0% {
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    filter: blur(24px) brightness(1.4) saturate(1.3);
  }
  30% {
    opacity: 0.3;
    filter: blur(16px) brightness(1.25) saturate(1.2);
  }
  60% {
    opacity: 0.85;
    clip-path: circle(75% at 50% 50%);
    filter: blur(6px) brightness(1.08) saturate(1.1);
  }
  85% {
    clip-path: circle(120% at 50% 50%);
  }
  100% {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
    filter: blur(0px) brightness(1) saturate(1);
  }
}

.qualifyCard.final-reveal .qualifyScenarios{
  position: relative;
  min-height: calc(60vh - var(--navH));
}

.qualifyCard.final-reveal .scenario{
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  opacity: 0;
  transform: none;
  padding: 0;
  background: transparent;
}

.qualifyCard.final-reveal .scenarioFinal{
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  position: relative;
  background: transparent;
  box-shadow: none;
  text-align: center;
  align-items: center;
}

.qualifyCard.final-reveal .scenario:not(.scenarioFinal){
  display: none;
}

.qualifyCard.final-reveal .scenarioFinalLabel{
  color: #00897B;
  animation: finalLabelReveal 1.2s ease-out 0.5s backwards,
             shimmer 5s ease-in-out infinite 3s;
  position: relative;
  display: inline-block;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes finalLabelReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) translateX(-8px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
    filter: blur(0px);
  }
}

.qualifyCard.final-reveal .scenarioFinalTitle{
  color: #0D4D5C;
  text-shadow: none;
  font-size: clamp(36px, 6vw, 56px);
  text-align: center;
  animation: finalTitleReveal 1.5s ease-out 0.8s backwards,
             gentleFloat 4s ease-in-out infinite 2s;
  position: relative;
}

.qualifyCard.final-reveal .scenarioFinalTitle::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(38, 198, 185, 0.15) 0%, transparent 70%);
  animation: subtleGlow 3s ease-in-out infinite 2.5s;
  z-index: -1;
  border-radius: 50%;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes subtleGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes finalTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.85) rotateX(12deg);
    filter: blur(12px);
  }
  50% {
    opacity: 0.7;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

.qualifyCard.final-reveal .qualifyTitle{
  display: none; /* hide title during final takeover */
}

.qualifyCard.final-reveal .scenarioFinal p,
.qualifyCard.final-reveal .scenario p{
  color: #2C6976;
}

.qualifyCard.final-reveal .scenarioFinalActions .btn.primary{
  background: #26C6B9;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(38, 198, 185, 0.3);
  border: 0;
  transition: all 0.2s ease;
  animation: buttonFloat 3s ease-in-out infinite 2.8s;
  position: relative;
  overflow: hidden;
}

.qualifyCard.final-reveal .scenarioFinalActions .btn.primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  animation: successPulse 2s ease-out infinite 3s;
}

@keyframes buttonFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes successPulse {
  0% {
    width: 0;
    height: 0;
    opacity: 0.8;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

.qualifyCard.final-reveal .scenarioFinalActions .btn.primary:hover{
  background: #1DA598;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 165, 152, 0.4);
}

.qualifyCard.final-reveal .scenarioFinalActions .btn.ghost{
  background: transparent;
  color: #26C6B9;
  border: 2px solid #26C6B9;
  transition: all 0.2s ease;
}

.qualifyCard.final-reveal .scenarioFinalActions .btn.ghost:hover{
  background: #26C6B9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 198, 185, 0.3);
}

.qualifyCard.final-reveal .scenarioFinalActions{
  justify-content: center;
  animation: finalActionsReveal 1.4s ease-out 1.2s backwards;
}

@keyframes finalActionsReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    filter: blur(8px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.qualifyTitle{
  font-size: clamp(24px, calc(5vw + 8px), 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  background: linear-gradient(135deg, var(--text) 0%, var(--mustard) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(214, 167, 59, 0.12));
  text-align: center;
}

.qualifyScenarios{
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.scenario{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 12px;
  background: transparent;
  opacity: 0;
  transform: translateY(30px) translateX(-10px);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 1s ease;
}

.scenario.active{
  opacity: 1;
  transform: translateY(0) translateX(0);
  background: transparent;
}

.scenario .scenarioMark{
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(38, 198, 185, 0.16);
  box-shadow:
    0 0 0 1px rgba(38, 198, 185, 0.32),
    0 6px 18px rgba(38, 198, 185, 0.18);
  transition: all 0.3s ease;
}

.scenario.active .scenarioMark{
  animation: markerPulse 0.6s ease;
  background: rgba(38, 198, 185, 0.26);
  box-shadow:
    0 0 0 1px rgba(38, 198, 185, 0.5),
    0 10px 24px rgba(38, 198, 185, 0.28);
}

@keyframes markerPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.scenario p{
  flex: 1;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(240,245,255,0.85);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.scenario.active p{
  color: var(--text);
}

.scenarioFinal{
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(74, 159, 190, 0.14), rgba(38, 198, 185, 0.1));
  box-shadow: 0 18px 46px rgba(74, 159, 190, 0.08);
}

.scenarioFinalContent{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qualifyCard.final-reveal .scenarioFinalContent{
  animation: finalContentReveal 1.5s ease-out 0.3s backwards;
  align-items: center;
  text-align: center;
}

@keyframes finalContentReveal {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.88) rotateX(8deg);
    filter: blur(10px);
  }
  60% {
    opacity: 0.9;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0px);
  }
}

.scenarioFinalLabel{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,245,255,0.6);
}

.scenarioFinalTitle{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
}

/* Stats Grid */
.statsGrid {
  display: flex;
  gap: clamp(20px, 4vw, 36px);
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 800px;
  margin: 36px auto 0;
  flex-wrap: wrap;
}

.qualifyCard.final-reveal .statsGrid {
  animation: statsReveal 1.2s ease-out 1.6s backwards;
  opacity: 1;
  transform: translateY(0);
}

@keyframes statsReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.statItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 100px;
}

.statIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

/* Icon colors - matching stat colors */
.statItem:nth-child(1) .statIcon {
  color: #00C853;
}

.statItem:nth-child(2) .statIcon {
  color: #4A9FBE;
}

.statItem:nth-child(3) .statIcon {
  color: #FF6B35;
}

.statItem:nth-child(4) .statIcon {
  color: #9C27B0;
}

.statItem:nth-child(5) .statIcon {
  color: #FFB300;
}

/* Number colors - vibrant gradients */
.statItem:nth-child(1) .statNumber {
  background: linear-gradient(135deg, #00E676, #00C853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statItem:nth-child(2) .statNumber {
  background: linear-gradient(135deg, #5DADE2, #3498DB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statItem:nth-child(3) .statNumber {
  background: linear-gradient(135deg, #FF8A65, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statItem:nth-child(4) .statNumber {
  background: linear-gradient(135deg, #BA68C8, #9C27B0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statItem:nth-child(5) .statNumber {
  background: linear-gradient(135deg, #FFD54F, #FFB300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statNumber {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.statLabel {
  font-size: clamp(10px, 1.3vw, 12px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2C6976;
  text-align: center;
  line-height: 1.3;
  max-width: 120px;
}

.scenarioFinalActions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 64px; /* extra space below heading */
}

/* WORKFLOW SECTION (Phase 5) */
.workflowSection {
  position: relative;
  z-index: 50;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden;
  box-sizing: border-box;
  isolation: isolate; /* keep background layer behind content */
  margin-top: -1px;   /* overlap previous section to hide seams */
  padding-top: 1px;
}

.workflowSection::before,
.workflowSection::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.workflowSection::before {
  background: none; /* Removed dark blue background */
}

.workflowSection::after {
  background: none;
}

.workflowSection.workflow-pinned::before,
.workflowSection.workflow-pinned::after {
  opacity: 1;
  position: fixed;
  inset: 0;
}

.workflowInner {
  width: 100%;
  max-width: var(--container);
  padding-left: 22px;
  padding-right: 22px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .workflowSection {
    min-height: 46vh; /* tighter desktop gap */
    margin: 0;
    padding-bottom: 360px; /* extra-large breathing room before testimonials on desktop */
  }

  .workflowInner {
    justify-content: flex-start;
    padding-top: clamp(4px, 2vw, 18px);
  }
}

.workflowHeader {
  text-align: center;
  z-index: 2;
}

.workflowTitle {
  margin: 0 0 12px;
  font-size: clamp(28px, calc(6vw + 8px), 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--mustard) 0%, var(--text) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(214, 167, 59, 0.12));
  padding-bottom: 8px;
  overflow: visible;
}

.workflowSubline {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #e8c770 0%, #dab55d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 4px rgba(232, 199, 112, 0.15));
}

/* Rail - horizontal line across the section */
.workflowRail {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(214,167,59,0.12),
    rgba(214,167,59,0.6) 50%,
    rgba(214,167,59,0.12)
  );
  transform: translateY(-50%);
  box-shadow: 0 0 20px rgba(214,167,59,0.32);
  z-index: 1;
}

.workflowCards {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1000px;
  align-items: stretch;
  z-index: 2;
  position: relative;
}

.workflowCard {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 20px;
  opacity: var(--card-opacity, 0);
  transform: translateY(var(--card-offset, 0px));
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Connector - vertical line from rail to card */
.connector {
  width: 2px;
  height: 80px;
  background: linear-gradient(180deg,
    rgba(214,167,59,0.9),
    rgba(214,167,59,0.45)
  );
  transform: scaleY(var(--connector-scale, 0));
  transform-origin: top center;
  opacity: var(--connector-opacity, 0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px rgba(214,167,59,0.35);
  border-radius: 1px;
}

.cardContent {
  background: transparent;
  backdrop-filter: none;
  border-radius: 16px;
  padding: 28px 24px 32px;
  box-shadow:
    0 12px 36px rgba(0,0,0,0.24);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.workflowCard[style*="--card-opacity: 1"] .cardContent,
.workflowCard[style*="--card-opacity: 0.9"] .cardContent {
  box-shadow:
    0 14px 42px rgba(0,0,0,0.32);
}

.cardTitle {
  margin: 0 0 14px;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  width: fit-content;
  background: linear-gradient(90deg, #e8c770 0%, #dab55d 15%, rgba(242,248,252,.96) 55%, rgba(242,248,252,.96) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.workflowCard[data-phase="design"] .cardTitle {
  background: linear-gradient(90deg, rgba(242,248,252,.96) 0%, rgba(242,248,252,.96) 25%, #e8c770 45%, #dab55d 55%, rgba(242,248,252,.96) 75%, rgba(242,248,252,.96) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.workflowCard[data-phase="implement"] .cardTitle {
  background: linear-gradient(90deg, rgba(242,248,252,.96) 0%, rgba(242,248,252,.96) 45%, #dab55d 85%, #e8c770 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.cardDesc {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 450;
  letter-spacing: -0.01em;
  flex: 1;
}

/* TESTIMONIALS SECTION */
#testimonialsSpacer { height: 0; }

.testimonialsSection {
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding: 120px var(--container-padding) 0;
  background: transparent;
  z-index: 60;
  overflow-x: hidden;
  box-sizing: border-box;
}

.testimonialsContainer {
  width: min(94vw, 1180px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: var(--text);
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.testimonialsSection.pinned .testimonialsContainer {
  transition: none;
}

.testimonialsTitle {
  margin: 0 0 32px;
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent4) 0%, var(--text) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(38, 198, 185, 0.12));
  text-align: center;
}

.testimonialsTrack {
  display: flex;
  gap: 32px;
  align-items: stretch;
  padding: 0 40px 0 0;
}

.testimonialCard {
  flex: 0 0 auto;
  width: min(400px, calc(33vw + 40px));
  min-width: 280px;
  max-width: 420px;
  padding: 28px 26px;
  border-radius: 18px;
  border: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  background: #fdfcf8;
  color: #2c2c2c;
}

.testimonialCard .quote {
  margin: 0 0 18px;
  font-size: clamp(16px, 2.8vw, 20px);
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.testimonialCard .attribution {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(38, 198, 185, 0.65);
}

/* Dynamic will-change - enabled on all devices for smooth animations */
.testimonialsSection.pinned .testimonialsTrack {
  will-change: transform;
}

.heroInner.animating,
.heroInner {
  will-change: transform;
}

.qualifyCard.animating {
  will-change: transform, opacity;
}

.introParagraph {
  will-change: transform, opacity;
}

.contactSection{
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding: 40px var(--container-padding) 80px;
  background: #000000;
  z-index: 65;
  overflow-x: hidden;
  box-sizing: border-box;
}

.contactInner{
  width: 100%;
  max-width: 1100px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0;
  box-sizing: border-box;
}

.contactSurface{
  background: #000000;
  border: none;
  border-radius: 12px;
  padding: 36px clamp(18px, 3vw, 32px) 36px;
  box-shadow: none;
}

.contactTitle{
  margin: 0 0 14px;
  font-size: clamp(28px, 6vw, 52px);
  letter-spacing: -0.05em;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mustard) 0%, var(--text) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(214, 167, 59, 0.15));
}

.contactSubline{
  margin: 0 0 28px;
  font-size: clamp(15px, 3vw, 20px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
}

.contactMethods {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.contactMethod {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s ease;
  flex: 0 1 auto;
  max-width: 180px;
}

.contactMethod:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(214, 167, 59, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 167, 59, 0.15);
}

.contactMethodIcon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 167, 59, 0.1);
  border-radius: 6px;
  color: var(--mustard);
  flex-shrink: 0;
}

.contactMethodIcon svg {
  width: 16px;
  height: 16px;
}

.contactMethodText {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contactMethodLabel {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted2);
}

.contactMethodValue {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.contactDivider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted2);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contactDivider::before,
.contactDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.contactForm{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.field label{
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted2);
}

.field input,
.field textarea{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  padding: 12px 14px;
  min-height: 44px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 10px 30px rgba(0,0,0,0.32);
  background: rgba(255,255,255,0.03);
}

.contactActions{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contactButton{
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d6a73b;
  color: #0b0b0b;
  border: none;
  box-shadow: 0 14px 40px rgba(214, 167, 59, 0.28);
}

/* Ensure mustard overrides the generic .btn.primary gradient */
.contactSection .btn.contactButton,
.contactSection .btn.primary.contactButton {
  background: #d6a73b;
  color: #0b0b0b;
  border: none;
}

.contactButton:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 46px rgba(214, 167, 59, 0.34);
}

.contactMicrotext{
  color: var(--muted2);
  font-size: 14px;
}

.contactStatus{
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.contactStatus.error{ color: #ff9b9b; }
.contactStatus.success{ color: #d4e28a; }

.honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contactReveal{
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.34s ease,
    transform 0.34s ease;
  transition-delay: var(--delay, 0s);
}

.contactReveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .connector,
  .workflowCard {
    transition: none !important;
  }

  .testimonialsTrack {
    transition: none !important;
    transform: none !important;
  }

  .qualifyCard.final-reveal,
  .qualifyCard.final-reveal::before,
  .qualifyCard.final-reveal .scenarioFinalContent,
  .qualifyCard.final-reveal .scenarioFinalLabel,
  .qualifyCard.final-reveal .scenarioFinalTitle,
  .qualifyCard.final-reveal .scenarioFinalActions,
  .qualifyCard.final-reveal .statsGrid {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .qualifyCard.final-reveal::before {
    background: #c2edff !important;
  }

  .statsGrid {
    transition: none !important;
  }
}

@media (max-width: 900px){
  /* Hero section mobile fixes */
  .hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
  }

  .heroInner {
    padding-top: clamp(60px, 15vh, 120px);
    height: auto;
    min-height: calc(100vh - var(--navH));
    min-height: calc(100dvh - var(--navH)); /* Dynamic viewport height for mobile */
    padding-bottom: clamp(40px, 10vh, 80px);
  }

  .grid {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0;
    gap: 28px;
  }

  .heroLeft {
    width: 100%;
    max-width: 100%;
  }

  /* Improve readability with increased line height */
  .mega {
    line-height: 1.1;
    font-size: clamp(28px, 9vw, 52px);
    max-width: 100%;
    word-break: normal;
  }

  .oneLine {
    line-height: 1.4;
    font-size: clamp(14px, 4vw, 18px);
  }

  /* Mobile-optimized intro paragraph */
  .introParagraphInner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin: 0 !important;
  }

  .introParagraphInner p {
    font-size: clamp(1rem, 3.5vw, 1.15rem);
    line-height: 1.7;
  }

  .introQuote {
    padding-left: 12px;
  }

  .qualifySection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .qualifyCard{
    width: min(480px, calc(100% - 32px));
    max-width: 480px;
    margin: 0 auto;
  }

  .scenario{
    padding: 20px 22px;
  }

  .scenario p{
    font-size: 16px;
    line-height: 1.65;
  }

  /* Final reveal mobile optimizations */
  .qualifyCard {
    transition:
      opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.3s ease,
      width 2.2s cubic-bezier(0.16, 1, 0.3, 1),
      left 2.2s cubic-bezier(0.16, 1, 0.3, 1),
      background 0s,
      border-radius 0s,
      min-height 0s,
      padding 0s;
  }

  .qualifyCard.final-reveal::before {
    animation: backgroundFadeInMobile 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes backgroundFadeInMobile {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  .qualifyCard.final-reveal .scenarioFinalLabel {
    animation: finalLabelRevealMobile 1s ease-out 0.3s backwards;
  }

  @keyframes finalLabelRevealMobile {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .qualifyCard.final-reveal .scenarioFinalTitle {
    animation: finalTitleRevealMobile 1.1s ease-out 0.4s backwards;
  }

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

  .qualifyCard.final-reveal .scenarioFinalContent {
    animation: finalContentRevealMobile 1.1s ease-out 0.5s backwards;
  }

  @keyframes finalContentRevealMobile {
    0% {
      opacity: 0;
      transform: translateY(25px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .qualifyCard.final-reveal .scenarioFinalActions {
    animation: finalActionsRevealMobile 1s ease-out 0.7s backwards;
  }

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

  /* Stats Grid Mobile */
  .statsGrid {
    gap: 16px;
    margin: 28px auto 0;
    justify-content: center;
  }

  .statItem {
    flex: 0 1 calc(33.333% - 11px);
    min-width: 0;
  }

  /* Force 3-2 layout: first 3 items in first row, last 2 in second row */
  .statItem:nth-child(4),
  .statItem:nth-child(5) {
    flex: 0 0 auto;
    min-width: 110px;
    max-width: 140px;
  }

  .statIcon {
    width: 28px;
    height: 28px;
  }

  .statIcon svg {
    width: 28px;
    height: 28px;
  }

  .statNumber {
    font-size: clamp(22px, 6vw, 32px);
  }

  .statLabel {
    font-size: clamp(9px, 1.8vw, 11px);
    max-width: 100px;
  }

  /* Workflow mobile layout */
  .workflowSection {
    padding-left: 0;
    padding-right: 0;
    overflow-x: visible;
    overflow-y: visible;
    min-height: auto;
  }

  .workflowInner {
    gap: 36px;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 60px;
  }

  .workflowRail {
    display: none;
  }

  .workflowCards {
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    width: 100%;
  }

  .workflowCard {
    width: 100%;
  }

  .connector {
    height: 60px;
  }

  .cardContent {
    min-height: auto;
  }

  .cardTitle,
  .workflowCard[data-phase="design"] .cardTitle,
  .workflowCard[data-phase="implement"] .cardTitle {
    background: linear-gradient(90deg, #e8c770 0%, #dab55d 25%, rgba(242,248,252,.96) 70%, rgba(242,248,252,.96) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .testimonialsSection {
    padding: 100px 18px 0;
  }

  .testimonialsContainer {
    width: calc(100vw - 32px);
    max-width: 95vw;
    padding: 32px 20px;
  }

  .testimonialsTrack {
    display: flex;
    gap: 20px;
  }

  .testimonialCard {
    flex: 0 0 auto;
    width: min(320px, calc(85vw));
    min-width: 280px;
  }

  .contactSection{
    padding: 20px 0 100px;
  }

  .contactMethods {
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
  }

  .contactMethod {
    min-width: auto;
    width: 100%;
  }

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

/* Mobile-specific form optimizations */
@media (max-width: 767px) {
  .formRow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field label {
    font-size: 13px;
  }

  .field input,
  .field textarea {
    font-size: 16px;
    padding: 14px 16px;
  }

  .field textarea {
    min-height: 140px;
  }

  .contactButton {
    width: 100%;
    min-width: auto;
    padding: 16px 20px;
  }

  .contactActions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .contactMicrotext {
    text-align: center;
    order: -1;
  }
}

/* ========================================
   WHY CLARITY PAGE
   ======================================== */

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

/* Hero Section */
.whyHero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--container-padding);
  position: relative;
  overflow: hidden;
}

.whyHeroInner {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.whyHeroTitle {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 var(--spacing-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.whyHeroSubtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

/* Articles Section */
.articlesSection {
  padding: var(--spacing-lg) var(--container-padding);
  position: relative;
}

.articlesContainer {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
}

.articleCard {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius2);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.articleCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent3), var(--accent4));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.articleCard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.articleCard:hover::before {
  opacity: 1;
}

.articleIcon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 159, 190, 0.15), rgba(38, 198, 185, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--accent3);
  transition: transform 0.3s ease;
}

.articleCard:hover .articleIcon {
  transform: scale(1.1) rotate(5deg);
}

.articleTitle {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-sm);
  color: var(--accent);
}

.articleExcerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 var(--spacing-sm);
}

.articleLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent3);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.articleCard:hover .articleLink {
  gap: 10px;
  color: var(--accent4);
}

/* Why CTA Section */
.whyCTA {
  padding: var(--spacing-lg) var(--container-padding);
  text-align: center;
  position: relative;
}

.whyCTAInner {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius2);
  position: relative;
  overflow: hidden;
}

.whyCTAInner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 159, 190, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.whyCTATitle {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.whyCTAText {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.whyCTAActions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Button styles (if not already defined) */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.btn.primary {
  background: linear-gradient(135deg, #e3b64c, #c8921e);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(214, 167, 59, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(214, 167, 59, 0.4);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .articlesContainer {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .whyCTAActions {
    flex-direction: column;
    width: 100%;
  }

  .whyCTAActions .btn {
    width: 100%;
  }
}

/* ========================================
   ARTICLE PAGE
   ======================================== */

/* Article Hero */
.articleHero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--container-padding);
  position: relative;
}

.articleHeroInner {
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.articleBackLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: var(--spacing-md);
  transition: all 0.2s ease;
}

.articleBackLink:hover {
  color: var(--accent);
  gap: 12px;
}

.articleBackLink svg {
  transition: transform 0.2s ease;
}

.articleBackLink:hover svg {
  transform: translateX(-4px);
}

.articleHeroTitle {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 var(--spacing-sm);
  line-height: 1.2;
  color: var(--accent);
}

.articleHeroSubtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--muted);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.articleMeta {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.articleAuthor {
  font-weight: 600;
  color: var(--muted2);
}

/* Article Content */
.articleContent {
  padding: var(--spacing-lg) var(--container-padding);
  position: relative;
}

.articleContentInner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.articleContentInner p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 1.5em;
}

.articleLead {
  font-size: 1.25rem !important;
  line-height: 1.7 !important;
  color: var(--accent2) !important;
  font-weight: 500;
  margin-bottom: 2em !important;
}

.articleContentInner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2em 0 0.75em;
  color: var(--accent);
}

.articleContentInner h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.5em 0 0.5em;
  color: var(--accent2);
}

.articleContentInner ul,
.articleContentInner ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.articleContentInner li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.75em;
}

.articleContentInner blockquote {
  margin: 2em 0;
  padding: var(--spacing-md);
  border-left: 4px solid var(--accent3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 var(--radius2) var(--radius2) 0;
}

.articleContentInner blockquote p {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0;
}

/* Article CTA */
.articleCTA {
  padding: var(--spacing-lg) var(--container-padding);
  text-align: center;
  position: relative;
}

.articleCTAInner {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius2);
  position: relative;
  overflow: hidden;
}

.articleCTAInner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 159, 190, 0.08) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.articleCTATitle {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.articleCTAText {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.articleCTAActions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .articleHeroTitle {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .articleContentInner p,
  .articleContentInner li {
    font-size: 1rem;
  }

  .articleLead {
    font-size: 1.15rem !important;
  }

  .articleCTAActions {
    flex-direction: column;
    width: 100%;
  }

  .articleCTAActions .btn {
    width: 100%;
  }
}

/* ========================================
   LIGHT THEME FOR ARTICLES
   ======================================== */

.lightTheme {
  background: #ffffff;
  background-image: none;
  min-height: 100vh;
}

/* Override dark theme colors */
.lightTheme .articleHero,
.lightTheme .articleContent,
.lightTheme .articleCTA {
  background: #ffffff;
}

.lightTheme .articleHeroTitle {
  color: #1a1a1a;
  background: linear-gradient(135deg, #1a1a1a 0%, #4A9FBE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lightTheme .articleHeroSubtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #4A9FBE;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.lightTheme .articleBackLink {
  color: #666666;
}

.lightTheme .articleBackLink:hover {
  color: #4A9FBE;
}

.lightTheme .articleAuthor {
  color: #888888;
}

.lightTheme .articleContentInner p {
  color: #2a2a2a;
}

.lightTheme .articleLead {
  color: #1a1a1a !important;
  font-weight: 500;
}

.lightTheme .articleContentInner h2 {
  color: #1a1a1a;
}

.lightTheme .articleContentInner h3 {
  color: #4A9FBE;
}

.lightTheme .articleContentInner li {
  color: #2a2a2a;
}

.lightTheme .articleContentInner blockquote {
  background: #f8f9fa;
  border-left-color: #4A9FBE;
}

.lightTheme .articleContentInner blockquote p {
  color: #555555;
}

/* Article CTA in light theme */
.lightTheme .articleCTAInner {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.lightTheme .articleCTAInner::before {
  background: radial-gradient(circle, rgba(74, 159, 190, 0.05) 0%, transparent 70%);
}

.lightTheme .articleCTATitle {
  color: #1a1a1a;
}

.lightTheme .articleCTAText {
  color: #555555;
}

/* Buttons in light theme */
.lightTheme .btn.ghost {
  color: #4A9FBE;
  border-color: #4A9FBE;
}

.lightTheme .btn.ghost:hover {
  background: rgba(74, 159, 190, 0.08);
  color: #3a8fae;
  border-color: #3a8fae;
}
