/* =============================================
   SCALE PILOT AGENCY — style.css
   QClay-Inspired: Pure Black + White + Green
   ============================================= */

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

:root {
  --black:      #080808;
  --black-2:    #111111;
  --black-3:    #1a1a1a;
  --white:      #ffffff;
  --off-white:  #f4f4f0;
  --green:      #00c9a7;
  --green-dark: #009e87;
  --green-mid:  #007060;
  --gray-1:     #333;
  --gray-2:     #555;
  --text-b:     rgba(255,255,255,0.88);
  --text-bs:    rgba(255,255,255,0.45);
  --text-bm:    rgba(255,255,255,0.22);
  --text-w:     #0a0a0a;
  --text-ws:    #666;
  --border-b:   rgba(255,255,255,0.10);
  --border-w:   rgba(0,0,0,0.10);
  --trans:      0.28s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 68px; overflow-x: hidden; }


body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--text-b);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-weight: 700;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 2px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 36px; }

/* Dotted separators */
.sep       { border: none; border-top: 1px dashed rgba(255,255,255,0.14); margin: 0; }
.sep-w     { border: none; border-top: 1px dashed rgba(0,0,0,0.14); }
.sep-solid { border: none; border-top: 1px solid rgba(255,255,255,0.08); }

/* Reveal */
.reveal   { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: none; will-change: auto; }
.reveal-l { opacity: 0; transform: translateX(-24px); transition: opacity 0.65s ease, transform 0.65s ease; will-change: opacity, transform; }
.reveal-l.visible { opacity: 1; transform: none; will-change: auto; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* ── NAVBAR ──────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--black);
  border-bottom: 1px solid var(--border-b);
  padding: 14px 0;
  transition: var(--trans);
}
.nav-container {
  max-width: 1240px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem; font-weight: 800; color: var(--white);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.logo-icon {
  width: 30px; height: 30px; background: var(--green);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-bs); text-decoration: none;
  font-size: 0.84rem; font-weight: 500; transition: var(--trans);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 8px 20px !important; border-radius: 50px !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: var(--white) !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green) !important; border-color: var(--green) !important; color: var(--black) !important; }
.nav-portal {
  display: flex; align-items: center; gap: 6px;
  color: var(--green) !important; font-weight: 600 !important;
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 2px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────── */
.hero {
  padding-top: 68px;          /* navbar height */
  min-height: calc(100vh - 68px);
  display: flex; flex-direction: column;
}

/* Green wavy visual — decorative band only */
.hero-green {
  height: 28vh; min-height: 140px; max-height: 220px;
  flex-shrink: 0;
  background: #006653;
  position: relative; overflow: hidden;
}
.ridges {
  position: absolute; inset: -20%;
  transform: rotate(-14deg) scale(1.1);
}
.ridge {
  position: absolute; left: 0; right: 0;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
.r1 { height: 72%; top: -2%;  background: #00f0cc; box-shadow: 0 28px 56px rgba(0,0,0,0.45); }
.r2 { height: 72%; top: 9%;   background: #00d8b2; box-shadow: 0 28px 56px rgba(0,0,0,0.45); }
.r3 { height: 72%; top: 20%;  background: #00c29e; box-shadow: 0 28px 56px rgba(0,0,0,0.45); }
.r4 { height: 72%; top: 31%;  background: #00ac8a; box-shadow: 0 28px 56px rgba(0,0,0,0.40); }
.r5 { height: 72%; top: 42%;  background: #009878; box-shadow: 0 28px 56px rgba(0,0,0,0.38); }
.r6 { height: 72%; top: 53%;  background: #008468; box-shadow: 0 28px 56px rgba(0,0,0,0.35); }
.r7 { height: 72%; top: 64%;  background: #007058; box-shadow: 0 28px 56px rgba(0,0,0,0.30); }
.r8 { height: 72%; top: 75%;  background: #005c48; }

.hero-green-meta {
  position: absolute; top: 28px; left: 36px; right: 36px;
  z-index: 5; display: flex; justify-content: space-between; align-items: flex-start;
}
.hero-meta-text { font-size: 0.75rem; color: rgba(0,0,0,0.5); max-width: 200px; line-height: 1.55; }

/* Hero black text section — fills remaining viewport */
.hero-black {
  background: var(--black); flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0;
}
.hero-black-inner {
  max-width: 1240px; margin: 0 auto; padding: 24px 36px 0;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%;
}
.hero-title {
  font-size: clamp(1.8rem, 3.8vw, 4rem);
  color: var(--white); margin-bottom: 20px;
  line-height: 1.0;
  animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-cta-row { animation: heroIn 0.9s 0.25s cubic-bezier(0.16,1,0.3,1) both; }
.hero-desc-strip { animation: heroIn 0.9s 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.hero-title .hl { color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.hero-title .toggle-icon {
  display: inline-flex; align-items: center;
  width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--white); margin-bottom: 0.05em;
  border: 0.1em solid var(--black);
  box-shadow: inset 0.15em 0 0 var(--green);
  vertical-align: middle;
}
.hero-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 20px; flex-wrap: wrap; gap: 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.hero-year { font-size: 0.72rem; color: var(--text-bs); letter-spacing: 0.12em; }
.pill-group { display: flex; align-items: center; gap: 10px; }
.pill-text {
  padding: 10px 22px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.84rem; color: var(--text-b); background: transparent;
  cursor: pointer; font-family: 'Inter', sans-serif; text-decoration: none;
  transition: var(--trans); white-space: nowrap;
}
.pill-text:hover { border-color: var(--green); color: var(--green); }
.pill-text.on-white { border-color: rgba(0,0,0,0.2); color: var(--text-w); }
.pill-text.on-white:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.pill-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); flex-shrink: 0; text-decoration: none;
  cursor: pointer;
}
.pill-icon.white { background: var(--white); color: var(--black); }
.pill-icon.black { background: var(--black); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.pill-icon.green { background: var(--green); color: var(--black); }
.pill-icon:hover { transform: scale(1.1) rotate(45deg); }

/* Hero bottom strip — pinned to bottom of hero-black */
.hero-desc-strip {
  display: flex; justify-content: flex-end;
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 16px 36px 22px;
}
.hero-desc-strip .socials { display: flex; gap: 8px; margin-bottom: 12px; }
.social-c {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-bs); transition: var(--trans); text-decoration: none;
}
.social-c:hover { border-color: var(--green); color: var(--green); }
.hero-desc-text { max-width: 300px; text-align: right; }
.hero-desc-text p { font-size: 0.8rem; color: var(--text-bs); line-height: 1.7; }
.hero-desc-text strong { color: var(--white); }

/* ── MARQUEE ─────────────────────────────── */
.marquee-bar {
  overflow: hidden;
  border-top: 1px dashed rgba(255,255,255,0.12);
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  background: var(--black); padding: 0;
}
.marquee-track { display: flex; animation: scroll 20s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
.m-item {
  white-space: nowrap; padding: 13px 36px;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-bs); display: flex; align-items: center; gap: 28px;
}
.m-item::after { content: '✦'; color: var(--green); font-size: 0.55rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SERVICES ─────────────────────────────── */
.services { background: var(--black-2); padding: 72px 0; }

/* Falling pill cloud above services header */
.srv-cloud {
  position: relative; height: 210px; overflow: hidden;
  margin-bottom: 0; pointer-events: none;
  background: transparent;
}
.srv-cloud-pill {
  position: absolute; top: 0; left: 0;
  padding: 7px 18px; border-radius: 50px;
  border: 1.5px solid rgba(0,0,0,0.13); background: rgba(255,255,255,0.88);
  font-size: 0.75rem; font-weight: 500; color: #111; white-space: nowrap;
  opacity: 0; will-change: transform; transform-origin: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  contain: layout style;
}

.sec-header { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.sec-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.65);
}
.sec-green-dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Falling pill cloud — make interactive */
.srv-cloud { pointer-events: auto; cursor: default; }
.srv-cloud-pill { cursor: pointer; user-select: none; transition: box-shadow 0.15s; }
.srv-cloud-pill:hover { box-shadow: 0 4px 16px rgba(0,201,167,0.25); border-color: var(--green); }

/* Service accordion wrapper */
.service-item { border-top: 1px dashed var(--border-w); }
.service-item:last-child { border-bottom: 1px dashed var(--border-w); }

.service-row {
  display: flex; align-items: center; gap: 0;
  padding: 20px 0;
  cursor: pointer; transition: var(--trans); position: relative;
  border: none;
}
.service-row:hover { padding-left: 8px; }

/* Expandable detail panel */
.srv-detail {
  max-height: 0; overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.16,1,0.3,1), padding 0.3s;
  padding: 0 0 0 28px;
}
.service-item.open .srv-detail { max-height: 260px; padding: 0 0 22px 28px; }
.service-item.open .service-row { padding-left: 8px; }
.service-item.open .srv-name { color: var(--green); }
.service-item.open .srv-arr { color: var(--green); transform: rotate(45deg); opacity: 1; }
.srv-detail-desc { font-size: 0.84rem; color: var(--text-ws); line-height: 1.7; margin-bottom: 14px; max-width: 560px; }
.srv-detail-features {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.srv-feat {
  padding: 5px 14px; border-radius: 50px;
  border: 1px solid var(--green); color: var(--green);
  font-size: 0.72rem; font-weight: 600; background: rgba(0,201,167,0.06);
}
.srv-ast { font-size: 1.5rem; color: var(--green); font-family: 'Space Grotesk', sans-serif; margin-right: 14px; line-height: 1; flex-shrink: 0; }
.srv-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(0.82rem, 1.15vw, 1.1rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-w); transition: var(--trans); flex: 1;
}
.service-row:hover .srv-name { color: var(--green); }
.srv-pills {
  display: flex; flex-wrap: wrap; gap: 7px; max-width: 340px;
  justify-content: flex-end;
  opacity: 0; transform: translateX(18px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.service-row:hover .srv-pills { opacity: 1; transform: translateX(0); }
.sp {
  padding: 5px 13px; border-radius: 50px; font-size: 0.68rem; font-weight: 500;
  border: 1px solid rgba(0,0,0,0.18); color: var(--text-ws); white-space: nowrap;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.service-row:hover .sp { border-color: var(--green); }
.srv-arr { color: var(--text-ws); margin-left: 20px; transition: var(--trans); flex-shrink: 0; opacity: 0.3; }
.service-row:hover .srv-arr { color: var(--green); transform: rotate(45deg); opacity: 1; }

/* ── INDUSTRIES ──────────────────────────── */
.industries { background: var(--black); padding: 72px 0; }
.ind-title-row { margin-bottom: 40px; }
.big-label {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--white); letter-spacing: 0.04em;
}
.ind-grid {
  display: grid; grid-template-columns: 260px 220px 1fr;
  border: 1px solid var(--border-b); border-radius: 14px; overflow: hidden;
}
.ind-list { border-right: 1px solid var(--border-b); }
.ind-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: var(--trans);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-bs);
}
.ind-item:last-child { border-bottom: none; }
.ind-item:hover, .ind-item.active { color: var(--green); background: rgba(0,201,167,0.05); }
.ind-arr { transition: var(--trans); opacity: 0.4; }
.ind-item:hover .ind-arr, .ind-item.active .ind-arr { opacity: 1; color: var(--green); }

.ind-visual {
  border-right: 1px solid var(--border-b);
  display: flex; align-items: center; justify-content: center;
  background: #050505; position: relative; overflow: hidden;
  min-height: 300px;
}
.ind-content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.ind-content-title {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--white);
  margin-bottom: 18px;
}
.ind-content-desc { font-size: 0.82rem; color: var(--text-bs); line-height: 1.8; }
.ind-content-desc p { margin-bottom: 10px; }
.ind-content-desc p::before { content: '— '; color: var(--green); }

/* ── PORTFOLIO ────────────────────────────── */
.portfolio { background: var(--black-2); padding: 72px 0; }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px;
}
.case-card {
  background: var(--off-white); border-radius: 14px; padding: 26px;
  border: 1px solid rgba(0,0,0,0.08); transition: var(--trans); cursor: pointer;
  display: flex; flex-direction: column;
}
.case-card:hover { background: var(--black); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.case-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 800;
  color: rgba(0,0,0,0.08); line-height: 1; margin-bottom: 10px; transition: var(--trans);
}
.case-card:hover .case-num { color: rgba(0,201,167,0.35); }
.case-ind {
  display: inline-block; padding: 3px 9px; border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.14); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 1px; font-weight: 700; color: var(--text-ws);
  margin-bottom: 12px; transition: var(--trans);
}
.case-card:hover .case-ind { border-color: rgba(0,201,167,0.4); color: var(--green); }
.case-t {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-w);
  margin-bottom: 8px; line-height: 1.2; transition: var(--trans);
}
.case-card:hover .case-t { color: var(--white); }
.case-d { font-size: 0.78rem; color: var(--text-ws); line-height: 1.65; margin-bottom: 16px; flex: 1; transition: var(--trans); }
.case-card:hover .case-d { color: var(--text-bs); }
.case-stats {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px dashed rgba(0,0,0,0.1); transition: var(--trans);
}
.case-card:hover .case-stats { border-top-color: rgba(255,255,255,0.08); }
.cs-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green); display: block; line-height: 1; }
.cs-lbl { font-size: 0.62rem; color: var(--text-ws); display: block; margin-top: 2px; transition: var(--trans); }
.case-card:hover .cs-lbl { color: var(--text-bs); }

/* ── ROADMAP / PROCESS ──────────────────── */
.roadmap { background: var(--black); padding: 72px 0 80px; overflow: visible; position: relative; }
.roadmap .container { overflow: visible; }

.roadmap-chip {
  display: inline-block; background: var(--green); color: #000;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 4px; margin-bottom: 20px;
}
.roadmap-cards { display: grid; grid-template-columns: 200px repeat(4,1fr); gap: 10px; align-items: stretch; overflow: visible; }

.sc-intro {
  background: var(--black-2); border: 1.5px solid var(--border-b);
  border-radius: 16px; height: 340px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sc-intro-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; position: relative; padding: 16px; }

.step-card {
  border-radius: 16px; padding: 26px 20px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  /* Fixed height — prevents any layout shift when card is clicked */
  height: 340px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.42s cubic-bezier(0.16,1,0.3,1), box-shadow 0.42s;
  position: relative;
}
.step-card:hover:not(.active) { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.step-card.active {
  transform: translateY(-16px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.38);
  z-index: 4;
}

.sc-1 { background: #3a3a3a; color: #fff; }
.sc-2 { background: #111111; color: #fff; }
.sc-3 { background: #004d3a; color: #fff; }
.sc-4 { background: var(--green); color: #000; }

.step-top { flex: 1; overflow: hidden; }
.step-n { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 800; display: block; margin-bottom: 14px; opacity: 0.9; }
.step-t { font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.step-d {
  font-size: 0.76rem; line-height: 1.7; margin-top: 0;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.38s ease, max-height 0.42s cubic-bezier(0.16,1,0.3,1), margin-top 0.3s;
}
.step-card.active .step-d { opacity: 0.78; max-height: 200px; margin-top: 16px; }
.step-time { font-size: 0.7rem; opacity: 0.45; margin-top: 20px; font-weight: 500; letter-spacing: 0.03em; display: block; }
.step-card.active .step-time { opacity: 0.65; }

.roadmap-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px; flex-wrap: wrap; gap: 12px;
}
.roadmap-note { font-size: 0.82rem; color: var(--text-b); max-width: 300px; line-height: 1.65; }


/* ── TESTIMONIALS ─────────────────────────── */
.testimonials {
  background: var(--black); padding: 72px 0;
  border-top: 1px dashed rgba(255,255,255,0.10);
}
.test-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  border: 1px solid var(--border-b); border-radius: 14px;
  overflow: hidden; gap: 1px; background: var(--border-b);
  margin-top: 48px;
}
.tcard { background: var(--black); padding: 28px; transition: var(--trans); }
.tcard:hover { background: var(--black-2); }
.tcard-res {
  display: inline-block; padding: 3px 10px; border-radius: 50px;
  background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.22);
  color: var(--green); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.tcard-q { font-size: 2.2rem; color: var(--green); opacity: 0.35; line-height: 1; margin-bottom: 14px; }
.tcard-text { font-size: 0.82rem; color: var(--text-bs); line-height: 1.78; margin-bottom: 20px; font-style: italic; }
.tcard-author { display: flex; align-items: center; gap: 10px; }
.tcard-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; color: var(--black); flex-shrink: 0;
}
.tcard-name { font-size: 0.82rem; font-weight: 700; color: var(--white); }
.tcard-role { font-size: 0.68rem; color: var(--text-bs); margin-top: 1px; }

/* ── CONTACT ──────────────────────────────── */
.contact {
  background: var(--black); padding: 72px 0;
  border-top: 1px dashed rgba(255,255,255,0.10);
}
.contact-inner {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.contact-lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-bs); margin-bottom: 20px; display: block; }
.contact-h { font-size: clamp(2.4rem, 4vw, 4.5rem); color: var(--white); margin-bottom: 18px; }
.contact-p { font-size: 0.86rem; color: var(--text-bs); line-height: 1.75; margin-bottom: 32px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.cli {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--border-b); transition: var(--trans);
  text-decoration: none; cursor: pointer;
}
.cli:hover { border-color: var(--green); }
.cli-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; flex-shrink: 0;
}
.cli-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-bs); display: block; }
.cli-val { font-size: 0.86rem; font-weight: 600; color: var(--white); display: block; margin-top: 1px; }

.contact-form { }
.fg { margin-bottom: 14px; }
.fg label {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-bs); margin-bottom: 6px;
}
.fc {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-b); border-radius: 9px;
  padding: 11px 14px; color: var(--white); font-size: 0.86rem;
  font-family: 'Inter', sans-serif; outline: none; transition: var(--trans);
}
.fc:focus { border-color: var(--green); background: rgba(0,201,167,0.05); }
.fc::placeholder { color: var(--text-bm); }
.fc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
textarea.fc { resize: vertical; min-height: 96px; }
select.fc {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2300c9a7' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
  color-scheme: dark;
}
select.fc option { background: #111; color: #fff; }
.fc:-webkit-autofill, .fc:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
  -webkit-text-fill-color: #fff !important;
}
.form-btn {
  width: 100%; padding: 13px; border-radius: 50px; border: none;
  background: var(--green); color: var(--black);
  font-size: 0.9rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: var(--trans); margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-btn:hover { background: var(--white); }

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--black); padding: 44px 0 20px;
  border-top: 1px dashed rgba(255,255,255,0.10);
}
.footer-grid {
  max-width: 1240px; margin: 0 auto; padding: 0 36px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-logo { margin-bottom: 12px; }
.footer-desc { font-size: 0.76rem; color: var(--text-bs); line-height: 1.7; max-width: 240px; }
.footer-socials { display: flex; gap: 8px; margin-top: 18px; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--text-bm); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 0.78rem; color: var(--text-bs); text-decoration: none; transition: var(--trans); }
.footer-col ul a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 18px 36px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 0.72rem; color: var(--text-bm); }
.footer-bl { display: flex; gap: 18px; }
.footer-bl a { font-size: 0.72rem; color: var(--text-bm); text-decoration: none; transition: var(--trans); }
.footer-bl a:hover { color: var(--green); }

/* ── CHAT WIDGET ──────────────────────────── */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--green); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,201,167,0.4); transition: var(--trans);
}
.chat-launcher:hover { transform: scale(1.1); }
.chat-window {
  position: fixed; bottom: 84px; right: 24px; z-index: 9998;
  width: 340px; max-height: 500px;
  background: #111; border: 1px solid var(--border-b);
  border-radius: 14px; display: none; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7); overflow: hidden;
}
.chat-window.open { display: flex; animation: chatPop 0.25s ease; }
@keyframes chatPop { from{opacity:0;transform:scale(0.96) translateY(8px)} to{opacity:1;transform:none} }
.chat-hdr {
  background: var(--green); padding: 13px 15px;
  display: flex; align-items: center; gap: 10px;
}
.chat-hdr h4 { color: var(--black); font-size: 0.85rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.04em; }
.chat-hdr span { color: rgba(0,0,0,0.55); font-size: 0.68rem; }
.chat-x { margin-left: auto; background: none; border: none; color: rgba(0,0,0,0.6); cursor: pointer; font-size: 1rem; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; }

/* ── RESPONSIVE ──────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero-title { font-size: clamp(1.6rem, 4vw, 3rem); }
  .roadmap-cards { grid-template-columns: 150px repeat(4,1fr); gap: 6px; }
  .step-card { min-height: 260px; padding: 20px 16px 16px; }
  .step-n { font-size: 1.6rem; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .contact-inner { gap: 48px; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  /* --- Nav --- */
  .nav-container { padding: 0 16px; overflow: visible; }
  .navbar { overflow: visible; }
  .nav-links {
    display: none; position: fixed; inset: 0; top: 57px;
    background: var(--black); flex-direction: column;
    padding: 32px 24px; gap: 0; z-index: 999;
    border-top: 1px solid var(--border-b);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px dashed var(--border-b); }
  .nav-links a { display: block; padding: 16px 0; font-size: 1.1rem; color: var(--text-b); }
  .nav-links a:hover { color: var(--green); }
  .nav-cta { border: none !important; }
  .hamburger { display: flex; }

  /* --- Hero --- */
  .hero { min-height: 100svh; }
  .hero-green { height: 22vh; min-height: 110px; max-height: 160px; }
  .hero-black-inner { padding: 20px 20px 0; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); margin-bottom: 14px; line-height: 1.05; }
  .hero-desc-strip { padding: 14px 20px 18px; flex-wrap: wrap; gap: 12px; }
  .hero-year { display: none; }
  .hero-desc-text { max-width: 100%; text-align: left; }
  .hero-desc-text p { font-size: 0.78rem; }
  .socials { gap: 8px; }

  /* --- General --- */
  .container { padding: 0 18px; }
  .services { padding: 48px 0; }
  .industries { padding: 48px 0; }
  .portfolio  { padding: 48px 0; }
  .testimonials { padding: 48px 0; }
  .contact    { padding: 48px 0; }
  .roadmap    { padding: 52px 0 60px; }
  .sec-header { margin-bottom: 28px; }

  /* --- Services --- */
  .srv-cloud { height: 130px; }
  .srv-pills { display: none; } /* hide hover pills on touch */
  .srv-name  { font-size: clamp(0.8rem, 3.5vw, 1rem); }
  .service-row { padding: 16px 0; }
  .srv-detail-desc { max-width: 100%; font-size: 0.8rem; }

  /* --- Industries --- */
  .ind-grid { grid-template-columns: 1fr; border-radius: 10px; }
  .ind-visual { display: none; }
  .ind-grid .ind-list { border-right: none; border-bottom: 1px solid var(--border-b); }
  .ind-content { padding: 20px; }

  /* --- Portfolio --- */
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }

  /* --- Roadmap --- */
  .roadmap-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sc-intro { display: none; }
  .step-card { min-height: 200px; padding: 18px 14px 14px; }
  .step-card.active { transform: translateY(-10px); }
  .step-n { font-size: 1.5rem; margin-bottom: 10px; }
  .step-t { font-size: 0.75rem; }
  .step-d { font-size: 0.72rem; }
  .step-card.active .step-d { max-height: 140px; }
  .roadmap-bottom { margin-top: 24px; flex-direction: column; align-items: flex-start; gap: 16px; }

  /* ScalePilot OS section — stack on mobile */
  .os-section-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .os-preview { width: 100%; }
  .os-prev-body { grid-template-columns: 1fr; }
  .os-prev-sidebar { display: flex; flex-direction: row; gap: 4px; padding: 8px; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .os-prev-nav-item { font-size: 0.65rem; padding: 5px 8px; white-space: nowrap; }

  /* --- Testimonials --- */
  .test-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .tcard { padding: 20px; }

  /* --- Contact --- */
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-h { font-size: clamp(2rem, 8vw, 3rem); }
  .contact-form { padding: 24px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  .hero-green { height: 18vh; min-height: 90px; }
  .hero-title { font-size: clamp(1.5rem, 9vw, 2.2rem); }
  .hero-desc-strip { flex-direction: column; align-items: flex-start; }
  .socials { display: none !important; }

  .roadmap-cards { grid-template-columns: 1fr; gap: 8px; }
  .step-card { min-height: 140px; padding: 16px 14px 14px; }
  .step-card.active { transform: translateY(-8px); }
  .step-n { font-size: 1.3rem; margin-bottom: 8px; }
  .step-t { font-size: 0.72rem; }

  .services { padding: 36px 0; }
  .srv-cloud { height: 100px; }
  .big-label { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .portfolio-grid { gap: 8px; }
  .contact-h { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .contact-form { padding: 18px 16px; }
  .pill-group { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════
   MULTI-PAGE ADDITIONS
   ═══════════════════════════════════════════════ */

/* ── Dropdown Navigation ──────────────────────── */
.nav-has-dd { position: relative; }
.nav-has-dd > a { display: flex; align-items: center; gap: 4px; }
.nav-has-dd > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.45; margin-top: 1px;
  transition: transform 0.2s ease, opacity 0.2s;
}
.nav-has-dd:hover > a::after { opacity: 1; transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: calc(100% + 2px); left: -14px;
  background: #0c0c0c; border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px; padding: 8px; min-width: 230px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
/* Invisible bridge fills the gap between nav item and dropdown so cursor never "leaves" */
.nav-has-dd::after {
  content: ''; position: absolute;
  top: 100%; left: 0; right: 0; height: 16px;
  background: transparent;
}
.nav-has-dd:hover .nav-dd,
.nav-has-dd:focus-within .nav-dd {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-dd a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text-bs); font-size: 0.82rem; font-weight: 500;
  text-decoration: none; transition: var(--trans);
  letter-spacing: 0;
}
.nav-dd a:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.nav-dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(0,201,167,0.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.nav-dd-rule { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 4px; }
.nav-dd-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--green); font-size: 0.78rem; font-weight: 700;
  text-decoration: none; transition: var(--trans);
}
.nav-dd-footer:hover { background: rgba(0,201,167,0.07); }
.nav-dd-footer::after { content: '→'; transition: transform 0.2s; }
.nav-dd-footer:hover::after { transform: translateX(3px); }

/* ── Page Hero (sub-pages) ────────────────────── */
.page-hero {
  padding: 120px 0 72px; background: var(--black);
  border-bottom: 1px dashed rgba(255,255,255,0.10);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% -10%, rgba(0,201,167,0.08) 0%, transparent 65%);
}
.page-hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}
.page-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
  position: relative; z-index: 1;
}
.page-hero-content { position: relative; z-index: 1; }
.page-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(0,201,167,0.22);
  background: rgba(0,201,167,0.07); padding: 5px 13px; border-radius: 100px;
  margin-bottom: 22px;
}
.page-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: tagPulse 2s infinite;
}
@keyframes tagPulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); color: var(--white); margin-bottom: 18px; }
.page-hero p.lead { font-size: 1.05rem; color: var(--text-bs); max-width: 560px; line-height: 1.78; margin-bottom: 32px; }
.page-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.breadcrumb {
  display: flex; align-items: center; gap: 7px; margin-bottom: 22px;
  font-size: 0.7rem; color: var(--text-bs);
}
.breadcrumb a { color: var(--text-bs); text-decoration: none; transition: var(--trans); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--text-bm); }

/* ── Section Tags ─────────────────────────────── */
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(0,201,167,0.2);
  background: rgba(0,201,167,0.06); padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.sec-tag::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }

/* ── Button Variants ──────────────────────────── */
.btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 50px;
  background: var(--green); color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: var(--trans);
}
.btn-g:hover { background: #00f0c9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,201,167,0.3); }
.btn-w {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 50px;
  background: transparent; color: var(--text-b);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: var(--trans);
}
.btn-w:hover { border-color: var(--green); color: var(--green); background: rgba(0,201,167,0.05); }
.btn-b {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px;
  background: transparent; color: var(--text-w);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(0,0,0,0.18); cursor: pointer; transition: var(--trans);
}
.btn-b:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── Solution Cards (homepage overview grid) ──── */
.sol-overview-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px;
}
.sol-ov-card {
  display: block; padding: 26px 22px;
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 14px; text-decoration: none; transition: var(--trans);
}
.sol-ov-card:hover { border-color: rgba(0,201,167,0.28); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.sol-ov-icon { font-size: 1.5rem; margin-bottom: 14px; line-height: 1; }
.sol-ov-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 8px; }
.sol-ov-desc { font-size: 0.79rem; color: var(--text-bs); line-height: 1.65; margin-bottom: 14px; }
.sol-ov-link { font-size: 0.74rem; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.sol-ov-link svg { transition: transform 0.2s; }
.sol-ov-card:hover .sol-ov-link svg { transform: translateX(3px); }

/* ── Demo Preview Cards ───────────────────────── */
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.demo-prev-card {
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 16px; overflow: hidden; text-decoration: none;
  display: block; transition: var(--trans);
}
.demo-prev-card:hover { border-color: rgba(0,201,167,0.25); transform: translateY(-3px); }
.demo-prev-top {
  background: var(--black); padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-b);
}
.demo-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; }
.demo-dot-r { background: rgba(255,95,87,0.6); }
.demo-dot-y { background: rgba(255,189,46,0.6); }
.demo-dot-g { background: rgba(39,201,63,0.6); }
.demo-prev-body { padding: 20px; }
.demo-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green); background: rgba(0,201,167,0.1); border: 1px solid rgba(0,201,167,0.2);
  padding: 3px 9px; border-radius: 100px; margin-bottom: 10px;
}
.demo-live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: tagPulse 1.5s infinite; }
.demo-prev-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 7px; }
.demo-prev-desc { font-size: 0.79rem; color: var(--text-bs); line-height: 1.6; margin-bottom: 14px; }
.demo-prev-link { font-size: 0.74rem; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; }

/* ── OS Preview ───────────────────────────────── */
.os-preview {
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 20px; overflow: hidden;
}
.os-prev-bar {
  background: var(--black); padding: 14px 20px;
  border-bottom: 1px solid var(--border-b);
  display: flex; align-items: center; gap: 12px;
}
.os-prev-dots { display: flex; gap: 5px; }
.os-prev-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--text-bs); letter-spacing: 0.04em; }
.os-prev-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.os-prev-sidebar { border-right: 1px solid var(--border-b); padding: 16px 12px; }
.os-prev-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; font-size: 0.75rem; color: var(--text-bs);
  margin-bottom: 2px; cursor: pointer; transition: var(--trans);
}
.os-prev-nav-item.active { background: rgba(0,201,167,0.1); color: var(--green); }
.os-prev-nav-item:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--white); }
.os-prev-main { padding: 20px; }
.os-kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.os-kpi {
  background: var(--black); border: 1px solid var(--border-b);
  border-radius: 10px; padding: 14px;
}
.os-kpi-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--white); line-height: 1; }
.os-kpi-lbl { font-size: 0.65rem; color: var(--text-bs); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.os-kpi-delta { font-size: 0.65rem; color: var(--green); margin-top: 3px; }

/* ── Feature Rows (solution pages) ───────────── */
.page-section { padding: 80px 0; }
.page-section-alt { padding: 80px 0; background: #f4f4f0; }
.page-section-dark { padding: 80px 0; background: var(--black); }
.feature-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature-2col.flip { direction: rtl; }
.feature-2col.flip > * { direction: ltr; }
.feature-visual {
  background: var(--black); border: 1px solid var(--border-b);
  border-radius: 16px; overflow: hidden; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { font-size: 0.86rem; color: var(--text-b); line-height: 1.78; margin-bottom: 22px; }
.feature-checklist { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.feature-checklist li { font-size: 0.8rem; color: var(--text-b); display: flex; align-items: flex-start; gap: 8px; }
.feature-checklist li::before { content: '✦'; color: var(--green); font-size: 0.55rem; margin-top: 4px; flex-shrink: 0; }

/* ── Solution Page Cards ──────────────────────── */
.page-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.page-card {
  background: var(--off-white); border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px; padding: 26px; transition: var(--trans);
}
.page-card:hover { background: var(--black); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.page-card-icon { font-size: 1.6rem; margin-bottom: 12px; }
.page-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-w); margin-bottom: 9px; transition: var(--trans); }
.page-card:hover .page-card-title { color: var(--white); }
.page-card-desc { font-size: 0.79rem; color: var(--text-ws); line-height: 1.68; transition: var(--trans); }
.page-card:hover .page-card-desc { color: var(--text-bs); }

/* ── Industry Cards ───────────────────────────── */
.ind-card-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.ind-card {
  display: block; text-decoration: none;
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 16px; padding: 32px 28px; transition: var(--trans);
  position: relative; overflow: hidden;
}
.ind-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,0.08) 0%, transparent 70%);
  transition: var(--trans);
}
.ind-card:hover { border-color: rgba(0,201,167,0.25); transform: translateY(-3px); }
.ind-card:hover::before { transform: scale(1.4); }
.ind-card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.ind-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 10px; }
.ind-card-desc { font-size: 0.8rem; color: var(--text-bs); line-height: 1.7; margin-bottom: 16px; }
.ind-card-wins { display: flex; flex-direction: column; gap: 5px; }
.ind-card-win { font-size: 0.74rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.ind-card-win::before { content: '→'; }
.ind-card-cta { margin-top: 20px; font-size: 0.75rem; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.ind-card-cta svg { transition: transform 0.2s; }
.ind-card:hover .ind-card-cta svg { transform: translateX(3px); }
.ind-card-body { display: flex; flex-direction: column; gap: 10px; }
.ind-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--text-w); margin: 0; }
.ind-card-body p { font-size: 0.8rem; color: var(--text-bs); line-height: 1.7; margin: 0; }
.ind-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-card-tags span { font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: rgba(0,201,167,0.08); border: 1px solid rgba(0,201,167,0.15); color: var(--green); }
.ind-card-link { font-size: 0.78rem; color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.ind-card:hover .ind-card-link svg { transform: translateX(3px); }
.ind-card-link svg { transition: transform 0.2s; }

/* ── About Team / Values ──────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.value-card {
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 14px; padding: 28px 24px;
}
.value-icon { font-size: 1.5rem; margin-bottom: 14px; }
.value-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--white); margin-bottom: 10px; }
.value-desc { font-size: 0.79rem; color: var(--text-bs); line-height: 1.72; }

/* ── Workflow Steps (demo pages) ──────────────── */
.workflow-steps { display: flex; flex-direction: column; gap: 0; }
.wf-step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px dashed var(--border-b);
  position: relative;
}
.wf-step:last-child { border-bottom: none; }
.wf-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--black-2); border: 1px solid var(--border-b);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: var(--green); flex-shrink: 0; position: relative; z-index: 1;
}
.wf-step-line {
  position: absolute; left: 18px; top: 60px; bottom: -24px; width: 1px;
  background: linear-gradient(to bottom, rgba(0,201,167,0.3), transparent);
}
.wf-step:last-child .wf-step-line { display: none; }
.wf-step-content h3 { font-size: 0.9rem; margin-bottom: 6px; }
.wf-step-content p { font-size: 0.8rem; color: var(--text-bs); line-height: 1.7; }

/* ── Chat Bubbles (demo pages) ────────────────── */
.convo-wrap { background: var(--black); border: 1px solid var(--border-b); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.convo-bubble { max-width: 82%; padding: 11px 15px; border-radius: 12px; font-size: 0.82rem; line-height: 1.6; }
.convo-bot { background: var(--black-2); border: 1px solid var(--border-b); color: var(--text-b); align-self: flex-start; border-radius: 12px 12px 12px 2px; padding: 10px 14px; font-size: 0.82rem; line-height: 1.6; max-width: 82%; }
.convo-user { background: var(--green); color: #000; font-weight: 500; align-self: flex-end; border-radius: 12px 12px 2px 12px; padding: 10px 14px; font-size: 0.82rem; line-height: 1.6; max-width: 82%; }
.convo-label { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-bm); margin-bottom: 2px; }
.convo-group { display: flex; flex-direction: column; gap: 3px; }
.convo-group.right { align-items: flex-end; }

/* ── CTA Banner ───────────────────────────────── */
.cta-banner {
  background: var(--green); border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--black); font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 8px; }
.cta-banner p { color: rgba(0,0,0,0.65); font-size: 0.9rem; max-width: 440px; }
.cta-banner-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-black {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  background: var(--black); color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: var(--trans);
}
.btn-black:hover { background: #111; transform: translateY(-1px); }
.btn-ghost-b {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 50px;
  background: transparent; color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid rgba(0,0,0,0.25); cursor: pointer; transition: var(--trans);
}
.btn-ghost-b:hover { background: rgba(0,0,0,0.08); }

/* ── Shared page padding ──────────────────────── */
.pt-section { padding: 80px 0; }
.pt-section-sm { padding: 56px 0; }

/* ── Responsive extras ────────────────────────── */
@media (max-width: 960px) {
  .sol-overview-grid { grid-template-columns: repeat(2,1fr); }
  .demo-grid { grid-template-columns: repeat(2,1fr); }
  .os-prev-body { grid-template-columns: 1fr; }
  .os-prev-sidebar { border-right: none; border-bottom: 1px solid var(--border-b); }
  .os-kpi-row { grid-template-columns: repeat(2,1fr); }
  .ind-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sol-overview-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .feature-2col { grid-template-columns: 1fr; gap: 32px; }
  .feature-2col.flip { direction: ltr; }
  .page-card-grid { grid-template-columns: 1fr; gap: 10px; }
  .values-grid { grid-template-columns: 1fr; gap: 10px; }
  .page-hero { padding: 100px 0 56px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 36px 28px; }
  .cta-banner-actions { width: 100%; }
  .nav-dd { display: none !important; }
}
@media (max-width: 480px) {
  .os-kpi-row { grid-template-columns: 1fr 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════
   ANIMATION & EFFECTS LAYER
   ═══════════════════════════════════════════════════════════════════ */

/* ── Floating gradient orbs ─────────────────────────────────────── */
.orb-field {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); will-change: transform;
}
.orb-a {
  background: radial-gradient(circle, rgba(0,201,167,0.9) 0%, transparent 70%);
  animation: orb-drift-a 14s ease-in-out infinite;
}
.orb-b {
  background: radial-gradient(circle, rgba(80,140,255,0.9) 0%, transparent 70%);
  animation: orb-drift-b 19s ease-in-out infinite;
}
.orb-c {
  background: radial-gradient(circle, rgba(0,201,167,0.9) 0%, transparent 70%);
  animation: orb-drift-c 11s ease-in-out infinite;
}
@keyframes orb-drift-a {
  0%,100% { transform: translate(0%,0%) scale(1); }
  33%      { transform: translate(7%,-14%) scale(1.07); }
  66%      { transform: translate(-6%,9%) scale(0.95); }
}
@keyframes orb-drift-b {
  0%,100% { transform: translate(0%,0%) scale(1); }
  40%      { transform: translate(-12%,16%) scale(1.10); }
  75%      { transform: translate(10%,-9%) scale(0.92); }
}
@keyframes orb-drift-c {
  0%,100% { transform: translate(0%,0%) scale(1); }
  50%      { transform: translate(4%,-20%) scale(1.06); }
}

/* ── Animated grid overlay (empty dark sections) ────────────────── */
.grid-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(0,201,167,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,167,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: grid-drift 28s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 72px 72px; }
}

/* ── Chat bubbles — sequential reveal ───────────────────────────── */
@keyframes bubble-pop {
  from { opacity:0; transform: translateY(12px) scale(0.94); }
  to   { opacity:1; transform: translateY(0)    scale(1);    }
}
.convo-wrap .convo-bot,
.convo-wrap .convo-user {
  opacity: 0;
  animation: bubble-pop 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
}
.convo-wrap > *:nth-child(1) { animation-delay: 0.5s;  }
.convo-wrap > *:nth-child(2) { animation-delay: 1.8s;  }
.convo-wrap > *:nth-child(3) { animation-delay: 3.1s;  }
.convo-wrap > *:nth-child(4) { animation-delay: 4.4s;  }
.convo-wrap > *:nth-child(5) { animation-delay: 5.7s;  }
.convo-wrap > *:nth-child(6) { animation-delay: 6.8s;  }
.convo-wrap > *:nth-child(7) { animation-delay: 7.8s;  }

/* ── CTA button glow pulse ──────────────────────────────────────── */
@keyframes btn-glow-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(0,201,167,0.22); }
  50%     { box-shadow: 0 4px 48px rgba(0,201,167,0.58), 0 0 0 5px rgba(0,201,167,0.07); }
}
.btn-g { animation: btn-glow-pulse 3.2s ease-in-out infinite; }

/* ── Solutions overview cards — stagger rise ────────────────────── */
@keyframes card-rise {
  from { opacity:0; transform: translateY(36px); }
  to   { opacity:1; transform: translateY(0); }
}
.sol-ov-card {
  opacity: 0;
  animation: card-rise 0.65s cubic-bezier(0.16,1,0.3,1) both;
}
.sol-ov-card:nth-child(1) { animation-delay: 0.08s; }
.sol-ov-card:nth-child(2) { animation-delay: 0.17s; }
.sol-ov-card:nth-child(3) { animation-delay: 0.26s; }
.sol-ov-card:nth-child(4) { animation-delay: 0.35s; }
.sol-ov-card:nth-child(5) { animation-delay: 0.44s; }
.sol-ov-card:nth-child(6) { animation-delay: 0.53s; }

/* ── Section green-dot ring pulse ───────────────────────────────── */
@keyframes dot-ring {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,201,167,0.6), 0 0 0 0 rgba(0,201,167,0.3); }
  60%     { box-shadow: 0 0 0 7px rgba(0,201,167,0), 0 0 0 14px rgba(0,201,167,0); }
}
.sec-green-dot { animation: dot-ring 2.6s ease-out infinite; }

/* ── CTA banner shine sweep ─────────────────────────────────────── */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.15) 50%, transparent 75%);
  animation: banner-shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes banner-shine {
  0%   { left: -100%; }
  55%  { left: 160%; }
  100% { left: 160%; }
}

/* ── Floating page emoji / icon ─────────────────────────────────── */
@keyframes icon-levitate {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  35%      { transform: translateY(-9px) rotate(2deg); }
  70%      { transform: translateY(-4px) rotate(-1deg); }
}
.page-hero [style*="font-size:2.5rem"],
section > .container > [style*="font-size:2.5rem"] {
  display: inline-block;
  animation: icon-levitate 4.5s ease-in-out infinite;
}

/* ── Roadmap step cards — stagger entrance ──────────────────────── */
@keyframes step-rise {
  from { opacity:0; transform: translateY(44px) scale(0.97); }
  to   { opacity:1; transform: translateY(0)    scale(1);    }
}
.step-card:nth-child(1) { animation: step-rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.10s both; }
.step-card:nth-child(2) { animation: step-rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.22s both; }
.step-card:nth-child(3) { animation: step-rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
.step-card:nth-child(4) { animation: step-rise 0.65s cubic-bezier(0.16,1,0.3,1) 0.46s both; }

/* ── Stat value glow pulse ──────────────────────────────────────── */
@keyframes stat-glow {
  0%,100% { text-shadow: none; color: var(--green); }
  50%     { text-shadow: 0 0 28px rgba(0,201,167,0.55); color: #00e8c2; }
}
.stat-val, .os-kpi-val { animation: stat-glow 3.6s ease-in-out infinite; }

/* ── Industry cards — stagger ───────────────────────────────────── */
@keyframes ind-rise {
  from { opacity:0; transform: translateY(28px); }
  to   { opacity:1; transform: translateY(0); }
}
.ind-card { opacity: 0; animation: ind-rise 0.6s cubic-bezier(0.16,1,0.3,1) both; }
.ind-card:nth-child(1) { animation-delay: 0.06s; }
.ind-card:nth-child(2) { animation-delay: 0.14s; }
.ind-card:nth-child(3) { animation-delay: 0.22s; }
.ind-card:nth-child(4) { animation-delay: 0.30s; }

/* ── Page card hover lift ────────────────────────────────────────── */
.page-card {
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.32s ease,
              border-color 0.32s ease;
}
.page-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 52px rgba(0,201,167,0.14);
  border-color: rgba(0,201,167,0.35) !important;
}

/* ── Navbar logo icon spin on hover ─────────────────────────────── */
.logo-icon { transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.nav-logo:hover .logo-icon { transform: rotate(180deg) scale(1.1); }

/* ── Service / feature card entrance ────────────────────────────── */
@keyframes ser-rise {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}
.ser-card { animation: ser-rise 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.ser-card:nth-child(1)  { animation-delay: 0.05s; }
.ser-card:nth-child(2)  { animation-delay: 0.12s; }
.ser-card:nth-child(3)  { animation-delay: 0.19s; }
.ser-card:nth-child(4)  { animation-delay: 0.26s; }
.ser-card:nth-child(5)  { animation-delay: 0.33s; }
.ser-card:nth-child(6)  { animation-delay: 0.40s; }

/* ── Marquee strip glow edge ─────────────────────────────────────── */
@keyframes marquee-edge-pulse {
  0%,100% { opacity: 0.7; }
  50%     { opacity: 1; }
}
.marquee-track { animation-play-state: running; }

/* ── Engine™ phase card hover scale ─────────────────────────────── */
[style*="border-radius:16px"][style*="padding:28px"]:hover {
  transform: translateY(-4px) scale(1.01);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

/* ── Typing indicator (for use in demo chat) ────────────────────── */
.typing-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--black-2); border: 1px solid var(--border-b);
  border-radius: 12px 12px 12px 2px; padding: 10px 14px;
  align-self: flex-start;
}
@keyframes type-bounce {
  0%,70%,100% { transform: translateY(0); opacity: 0.35; }
  35%          { transform: translateY(-6px); opacity: 1; }
}
.typing-indicator span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-bs);
  animation: type-bounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.22s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.44s; }

/* ── Floating particles in hero / dark sections ─────────────────── */
@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-110px) translateX(var(--dx,12px)) scale(0.5); opacity: 0; }
}
.particle-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.particle {
  position: absolute; border-radius: 50%;
  background: var(--green); opacity: 0;
  animation: particle-float linear infinite;
}

/* ── ROI result number pop ───────────────────────────────────────── */
@keyframes result-pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.06); }
  100%{ transform: scale(1); }
}
#calc-result { transition: all 0.25s cubic-bezier(0.16,1,0.3,1); }

/* ── Smooth focus ring on form inputs ───────────────────────────── */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,201,167,0.18);
}

/* ── Green link underline sweep ─────────────────────────────────── */
.footer-col a, .nav-dd a {
  position: relative; display: inline-block;
}
.footer-col a::after, .nav-dd a:not(.nav-dd-footer)::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--green);
  transition: width 0.25s ease;
}
.footer-col a:hover::after, .nav-dd a:not(.nav-dd-footer):hover::after { width: 100%; }


/* ═══ HERO FLOATING WIDGET & LAYOUT ══════════════════════════════ */
.hero-black-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: center;
}
.hero-left-col { display: flex; flex-direction: column; justify-content: center; }
.hero-right-col {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0;
  animation: heroIn 0.9s 0.35s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Hero floating widget card ────────────────────────────── */
.hero-float-widget {
  width: 100%; max-width: 340px;
  background: var(--black-2);
  border: 1px solid var(--border-b);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,201,167,0.06);
}
.hfw-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-b);
}
.hfw-dots { display: flex; gap: 5px; }
.hfw-dot { width: 8px; height: 8px; border-radius: 50%; }
.hfw-dot.r { background: #ef4444; }
.hfw-dot.y { background: #eab308; }
.hfw-dot.g { background: #22c55e; }

.hfw-stat-row {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--border-b);
}
.hfw-stat {
  padding: 14px 12px; text-align: center;
  border-right: 1px solid var(--border-b);
}
.hfw-stat:last-child { border-right: none; }
.hfw-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 800; color: var(--green);
  line-height: 1;
}
.hfw-lbl { font-size: 0.58rem; color: var(--text-bs); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Counting animation for stat numbers */
@keyframes count-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hfw-anim-1 { animation: count-up 0.6s 1.0s cubic-bezier(0.16,1,0.3,1) both; }
.hfw-anim-2 { animation: count-up 0.6s 1.2s cubic-bezier(0.16,1,0.3,1) both; }
.hfw-anim-3 { animation: count-up 0.6s 1.4s cubic-bezier(0.16,1,0.3,1) both; }

.hfw-divider { height: 1px; background: var(--border-b); }

.hfw-activity { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hfw-act {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text-b);
  opacity: 0;
  animation: bubble-pop 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hfw-act strong { color: var(--green); }
.hfw-act-1 { animation-delay: 1.6s; }
.hfw-act-2 { animation-delay: 2.6s; }
.hfw-act-3 { animation-delay: 3.6s; }
.hfw-act-4 { animation-delay: 4.6s; }

.hfw-dot-green {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  flex-shrink: 0;
  animation: dot-ring 2s ease-out infinite;
}
.hfw-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 0.65rem; color: var(--text-bs);
  background: rgba(0,201,167,0.04);
  border-top: 1px solid var(--border-b);
}
.hfw-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* Responsive: hide widget on smaller screens */
@media (max-width: 900px) {
  .hero-black-grid { grid-template-columns: 1fr !important; }
  .hero-right-col { display: none; }
}

/* ═══ LOGO ANIMATION — animated bars ══════════════════════════════ */
/* Remove old hover spin */
.logo-icon { transition: box-shadow 0.3s ease; }
.nav-logo:hover .logo-icon { transform: none; box-shadow: 0 0 0 3px rgba(0,201,167,0.3); }

/* Animate the 3 bars in the logo SVG via CSS on the rects */
@keyframes bar-bounce-a {
  0%,100% { transform: scaleY(1)   translateY(0); }
  50%      { transform: scaleY(0.5) translateY(11px); }
}
@keyframes bar-bounce-b {
  0%,100% { transform: scaleY(1)   translateY(0); }
  50%      { transform: scaleY(0.65) translateY(7px); }
}
@keyframes bar-bounce-c {
  0%,100% { transform: scaleY(1)   translateY(0); }
  50%      { transform: scaleY(0.8) translateY(4px); }
}
.logo-icon svg rect:nth-child(1) {
  transform-origin: bottom center;
  animation: bar-bounce-a 1.4s ease-in-out infinite;
}
.logo-icon svg rect:nth-child(2) {
  transform-origin: bottom center;
  animation: bar-bounce-b 1.4s 0.2s ease-in-out infinite;
}
.logo-icon svg rect:nth-child(3) {
  transform-origin: bottom center;
  animation: bar-bounce-c 1.4s 0.4s ease-in-out infinite;
}

/* ═══ SCROLLBAR — hide up/down arrows ════════════════════════════ */
::-webkit-scrollbar-button { display: none; height: 0; width: 0; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

/* ═══ INDUSTRY TABS — pill-text fix on dark bg ════════════════════ */
.pill-text.on-white { border-color: rgba(255,255,255,0.2); color: var(--text-b); }
.pill-text.on-white:hover { border-color: var(--green); background: rgba(0,201,167,0.08); color: var(--green); }

/* ind-content smooth transition */
.ind-content-title { transition: opacity 0.35s ease, transform 0.35s ease; }
.ind-content-desc  { transition: opacity 0.35s ease, transform 0.35s ease; }
#indVisual         { transition: opacity 0.35s ease, transform 0.35s ease; }

/* ═══ INDUSTRY TAB VISUAL — per-tab animated bg ══════════════════ */
.ind-visual {
  position: relative; overflow: hidden;
}
.ind-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(0,201,167,0.10) 0%, transparent 70%);
  animation: orb-drift-c 8s ease-in-out infinite;
}


/* ═══ HERO AI PANEL (right-side floating, absolutely positioned) ═══ */
.hero-ai-panel {
  position: absolute;
  top: 50%; left: 20px;
  transform: translateY(-50%);
  width: 300px;
  max-height: calc(100% - 80px);
  background: var(--black-2);
  border: 1px solid var(--border-b);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,201,167,0.08), 0 0 60px rgba(0,201,167,0.06);
  z-index: 2;
  pointer-events: none;
  animation: heroIn 0.9s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* Push hero content to the right of the panel */
.hero-black-inner {
  max-width: 720px !important;
  margin-left: 340px !important;
  margin-right: auto;
}

.haip-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,201,167,0.06);
  border-bottom: 1px solid var(--border-b);
}
.haip-label { font-size: 0.62rem; color: var(--text-bs); letter-spacing: 0.08em; text-transform: uppercase; }
.haip-live { display: flex; align-items: center; gap: 5px; font-size: 0.6rem; font-weight: 700; color: var(--green); letter-spacing: 0.08em; }

.haip-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--border-b);
}
.haip-stat { padding: 12px 10px; text-align: center; border-right: 1px solid var(--border-b); }
.haip-stat:last-child { border-right: none; }
.haip-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--green); line-height: 1;
  opacity: 0; animation: count-up 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.haip-lbl { font-size: 0.56rem; color: var(--text-bs); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.05em; }

.haip-divider { height: 1px; background: var(--border-b); }

.haip-chat-label {
  font-size: 0.6rem; font-weight: 700; color: var(--text-bs);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 8px 14px 4px;
}

/* Chat messages inside panel */
.haip-convo {
  padding: 6px 14px 12px;
  display: flex; flex-direction: column; gap: 7px;
}
.haip-bot, .haip-user {
  padding: 8px 12px; border-radius: 10px;
  font-size: 0.73rem; line-height: 1.5;
  opacity: 0;
  animation: bubble-pop 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
  max-width: 88%;
}
.haip-bot {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-b);
  color: var(--text-b);
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
}
.haip-user {
  background: var(--green);
  color: #000; font-weight: 600;
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}

/* Stagger delays — appear one by one */
.haip-msg-1 { animation-delay: 0.8s; }
.haip-msg-2 { animation-delay: 2.2s; }
.haip-msg-3 { animation-delay: 3.6s; }
.haip-msg-4 { animation-delay: 5.0s; }
.haip-msg-5 { animation-delay: 6.2s; }

.haip-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  font-size: 0.62rem; color: var(--text-bs);
  background: rgba(0,201,167,0.04);
  border-top: 1px solid var(--border-b);
}

/* Hide panel on small/medium screens, reset content layout */
@media (max-width: 1100px) {
  .hero-ai-panel { display: none; }
  .hero-black-inner { max-width: 760px !important; margin-left: auto !important; margin-right: auto !important; }
}

/* ── Old hero-black-grid classes (no longer used, neutralise) ─── */
.hero-black-grid { display: flex !important; flex-direction: column !important; }
.hero-left-col, .hero-right-col { display: contents; }


/* ══════════════════════════════════════════════
   FLOW STEP STAGGER (How It Works sections)
   ══════════════════════════════════════════════ */
@keyframes cardScaleIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes flowStepIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* Equal height cards — row stretches, each step wrapper fills */
.wf-flow-row {
  align-items: stretch !important;
}
.wf-step-wrap {
  display: flex;
  flex-direction: column;
}
.wf-step-card {
  flex: 1;
}

/* Stagger: target .wf-step-wrap (step cards only, not arrows) */
.wf-flow-row.revealed .wf-step-wrap {
  animation: flowStepIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
/* Steps are at odd positions (arrows are plain divs between them) */
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(1)  { animation-delay: 0.05s; }
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(3)  { animation-delay: 0.18s; }
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(5)  { animation-delay: 0.31s; }
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(7)  { animation-delay: 0.44s; }
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(9)  { animation-delay: 0.57s; }
.wf-flow-row.revealed .wf-step-wrap:nth-of-type(11) { animation-delay: 0.70s; }

/* Card grid stagger — industry page feature cards */
@keyframes cardFadeUp {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
.prob-grid.revealed .sys-card {
  animation: cardFadeUp 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.prob-grid.revealed .sys-card:nth-child(1) { animation-delay: 0.05s; }
.prob-grid.revealed .sys-card:nth-child(2) { animation-delay: 0.15s; }
.prob-grid.revealed .sys-card:nth-child(3) { animation-delay: 0.25s; }
.prob-grid.revealed .sys-card:nth-child(4) { animation-delay: 0.35s; }
.prob-grid.revealed .sys-card:nth-child(5) { animation-delay: 0.45s; }
.prob-grid.revealed .sys-card:nth-child(6) { animation-delay: 0.55s; }

/* ══════════════════════════════════════════════
   PREFERS-REDUCED-MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Reveal elements: skip the fade-in, show immediately */
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Solution cards: show immediately without card-rise animation */
  .sol-ov-card {
    opacity: 1 !important;
    animation: none !important;
  }
  /* Flow steps: show immediately */
  .wf-step-wrap, .wf-step-card {
    opacity: 1 !important;
    animation: none !important;
  }
  /* Industry cards */
  .sys-card-stagger {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* ══════════════════════════════════════════════
   SCALELAB-INSPIRED PREMIUM ANIMATIONS
   ══════════════════════════════════════════════ */

/* Word-by-word reveal */
.word-split .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}
.word-split .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease;
}
.word-split.revealed .word-inner {
  transform: translateY(0);
  opacity: 1;
}
/* Stagger each word */
.word-split.revealed .word:nth-child(1)  .word-inner { transition-delay: 0.00s; }
.word-split.revealed .word:nth-child(2)  .word-inner { transition-delay: 0.07s; }
.word-split.revealed .word:nth-child(3)  .word-inner { transition-delay: 0.14s; }
.word-split.revealed .word:nth-child(4)  .word-inner { transition-delay: 0.21s; }
.word-split.revealed .word:nth-child(5)  .word-inner { transition-delay: 0.28s; }
.word-split.revealed .word:nth-child(6)  .word-inner { transition-delay: 0.35s; }
.word-split.revealed .word:nth-child(7)  .word-inner { transition-delay: 0.42s; }
.word-split.revealed .word:nth-child(8)  .word-inner { transition-delay: 0.49s; }
.word-split.revealed .word:nth-child(9)  .word-inner { transition-delay: 0.56s; }
.word-split.revealed .word:nth-child(10) .word-inner { transition-delay: 0.63s; }
.word-split.revealed .word:nth-child(11) .word-inner { transition-delay: 0.70s; }
.word-split.revealed .word:nth-child(12) .word-inner { transition-delay: 0.77s; }

/* Clip-path card reveal */
.clip-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s cubic-bezier(0.16,1,0.3,1);
  will-change: clip-path;
}
.clip-reveal.revealed {
  clip-path: inset(0 0 0% 0);
}

/* Line extend animation (decorative horizontal rules) */
.line-extend {
  width: 0;
  height: 1px;
  background: var(--green);
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}
.line-extend.revealed { width: 100%; }

/* Card image zoom on hover */
.card-zoom {
  overflow: hidden;
}
.card-zoom img,
.card-zoom .card-zoom-inner {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}
.card-zoom:hover img,
.card-zoom:hover .card-zoom-inner {
  transform: scale(1.04);
}

/* Slide-up fade for generic elements */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.slide-up {
  opacity: 0;
}
.slide-up.revealed {
  animation: slideUpFade 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.slide-up:nth-child(1).revealed { animation-delay: 0.00s; }
.slide-up:nth-child(2).revealed { animation-delay: 0.10s; }
.slide-up:nth-child(3).revealed { animation-delay: 0.20s; }
.slide-up:nth-child(4).revealed { animation-delay: 0.30s; }
.slide-up:nth-child(5).revealed { animation-delay: 0.40s; }
.slide-up:nth-child(6).revealed { animation-delay: 0.50s; }

/* Cursor-following spotlight on dark sections */
.spotlight-section {
  position: relative;
  overflow: hidden;
}
.spotlight-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: left 0.1s, top 0.1s;
  left: var(--mx, 50%);
  top:  var(--my, 50%);
  z-index: 0;
}

/* ── prefers-reduced-motion overrides for new animations ── */
@media (prefers-reduced-motion: reduce) {
  .word-split .word-inner { transform: none !important; opacity: 1 !important; transition: none !important; }
  .clip-reveal { clip-path: none !important; transition: none !important; }
  .slide-up { opacity: 1 !important; animation: none !important; }
  .line-extend { width: 100% !important; transition: none !important; }
}


/* ================================================================
   MOBILE RESPONSIVE FIXES
   ================================================================ */

/* Mobile nav: click-to-toggle accordion */
@media (max-width: 768px) {
  /* Dropdown hidden by default on mobile */
  .nav-dd { display: none !important; }
  /* Show when parent has .dd-open class (toggled by JS) */
  .nav-has-dd.dd-open .nav-dd {
    display: block !important; position: static !important;
    opacity: 1 !important; transform: none !important; pointer-events: auto !important;
    box-shadow: none !important; background: transparent !important;
    border: none !important; border-radius: 0 !important;
    padding: 4px 0 8px 14px !important; min-width: auto !important;
  }
  .nav-dd a { padding: 9px 0 !important; font-size: 0.9rem !important; color: rgba(255,255,255,0.55) !important; display: block !important; }
  .nav-dd a:hover { color: var(--green) !important; background: none !important; }
  .nav-dd-icon { display: none !important; }
  .nav-dd-rule { display: none !important; }
  .nav-dd-footer { padding: 8px 0 !important; font-size: 0.82rem !important; }
  /* Chevron toggle indicator */
  .nav-has-dd > a::after { display: inline-block !important; content: '+' !important; border: none !important; width: auto !important; height: auto !important; transform: none !important; margin-left: auto !important; font-size: 1.2rem !important; color: rgba(255,255,255,0.35) !important; opacity: 1 !important; transition: none !important; }
  .nav-has-dd.dd-open > a::after { content: '−' !important; color: var(--green) !important; }
  .nav-has-dd { border-bottom: 1px dashed rgba(255,255,255,0.08); }

  /* Workflow step cards - stack vertically on mobile */
  .wf-flow-row { flex-direction: column !important; gap: 12px !important; align-items: stretch !important; }
  .wf-flow-arrow { display: none !important; }
  .wf-step-wrap { width: 100% !important; flex: none !important; }
  .wf-step-card { min-height: auto !important; padding: 18px 16px !important; }

  /* Solution/industry page grids */
  .prob-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .sys-grid  { grid-template-columns: 1fr !important; gap: 12px !important; }
  .sol-2col  { grid-template-columns: 1fr !important; gap: 24px !important; }
  .ind-hero-grid { grid-template-columns: 1fr !important; }

  /* Page hero */
  .page-hero { padding: 88px 0 44px; }
  .page-hero-title { font-size: clamp(1.7rem, 6vw, 2.4rem) !important; }
  .page-hero-sub   { font-size: 0.85rem !important; }

  /* CTA banner */
  .cta-banner { flex-direction: column !important; gap: 20px !important; text-align: center; }
  .cta-banner-actions { flex-direction: column !important; width: 100% !important; }
  .cta-banner-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* OS / scalepilot page */
  .os-kpi-row { grid-template-columns: 1fr 1fr !important; }
  .os-modules-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; justify-content: center; }
  .feature-2col { grid-template-columns: 1fr !important; gap: 24px !important; }
  .sec-title { font-size: clamp(1.4rem, 7vw, 2rem); }
  
/* ══════════════════════════════════════════════
   CARD SCALE-IN STAGGER ANIMATIONS
   ══════════════════════════════════════════════ */

/* Solution overview cards (homepage) */
.sol-overview-grid.revealed .sol-ov-card {
  animation: cardScaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.sol-overview-grid.revealed .sol-ov-card:nth-child(1) { animation-delay: 0.05s; }
.sol-overview-grid.revealed .sol-ov-card:nth-child(2) { animation-delay: 0.15s; }
.sol-overview-grid.revealed .sol-ov-card:nth-child(3) { animation-delay: 0.25s; }
.sol-overview-grid.revealed .sol-ov-card:nth-child(4) { animation-delay: 0.35s; }
.sol-overview-grid.revealed .sol-ov-card:nth-child(5) { animation-delay: 0.45s; }
.sol-overview-grid.revealed .sol-ov-card:nth-child(6) { animation-delay: 0.55s; }

/* Industry cards */
.ind-card-grid.revealed .ind-card {
  animation: cardScaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.ind-card-grid.revealed .ind-card:nth-child(1) { animation-delay: 0.05s; }
.ind-card-grid.revealed .ind-card:nth-child(2) { animation-delay: 0.18s; }
.ind-card-grid.revealed .ind-card:nth-child(3) { animation-delay: 0.31s; }
.ind-card-grid.revealed .ind-card:nth-child(4) { animation-delay: 0.44s; }

/* wf-step-wrap: switch to springy easing */
.wf-flow-row.revealed .wf-step-wrap {
  animation-timing-function: cubic-bezier(0.34,1.56,0.64,1) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sol-overview-grid.revealed .sol-ov-card,
  .ind-card-grid.revealed .ind-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}
ed .sol-ov-card,
  .ind-card-grid.revealed .ind-card { animation: none !important; opacity: 1 !important; transform: none !important; }
}
