/* ===================================================
   Scale AI — Design Reconstruction
   Colors, typography, components
   =================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --green: #4a90e2;
  --evergreen: #1a3a5c;
  --gray-90: #1a1a1a;
  --gray-70: #212121;
  --gray-50: #929292;
  --gray-30: #c7c7c7;
  --gray-10: #eaeaea;
  --gray-5: #f5f5f5;
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.page-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.page-loaded {
  opacity: 1;
}
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===================================================
   HEADER / NAV
   =================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--black);
  background: var(--white);
  border-bottom: 1px solid var(--gray-10);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.9rem 1.25rem;
}

#main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}



.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  justify-self: start;
  flex-shrink: 0;
}

.logo-wordmark-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

.logo-wordmark {
  height: 18px;
  width: auto;
  max-width: 70px;
}



.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-btn:hover {
  opacity: 0.65;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}
/* ===================================================
   NAV DROPDOWNS
   =================================================== */

/* Wrapper for each nav item + its dropdown */
.nav-item {
  position: static;
}

.nav-dropdown {
  display: block;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--gray-10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.5rem;
}

.nav-drop-col {
  padding: 0 2.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-drop-col:last-of-type {
  padding-right: 2.5rem;
}

.nav-drop-media {
  border-left: 1px solid var(--gray-10);
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-drop-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-50);
  margin-bottom: 0.75rem;
}

.nav-drop-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  padding: 0.4rem 0;
  transition: color 0.15s;
  line-height: 1.4;
}

.nav-drop-link:hover {
  color: var(--gray-50);
}

.nav-drop-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0f0f;
  flex-shrink: 0;
}

/* Make all dropdown images the same rendered height regardless of source */
.nav-drop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.nav-drop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.nav-drop-media-caption {
  font-size: 0.8rem;
  color: var(--gray-50);
  line-height: 1.5;
}

/* Nav backdrop (dims page when dropdown open) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: transparent;
  z-index: 55;
}
.nav-backdrop.active {
  display: block;
}



.btn-login {
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: opacity 0.2s;
}

.btn-login:hover {
  opacity: 0.7;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.btn-demo:hover {
  background: var(--gray-90);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  background: var(--white);
  padding: 0 12px 12px 12px; /* top flush with header, small gap L/R/bottom */
  /* push content below fixed header */
  padding-top: calc(var(--nav-h) + 0px);
}

/* Video fills the hero, text centred on top */
.hero-video-wrap {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--nav-h) - 12px);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #0f0f0f 0%, #1c1c1c 100%);
  color: rgba(255,255,255,0.25);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-video-placeholder svg { opacity: 0.2; }

/* Text overlay centred on video */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1c1c1c 0%, #0a0a0a 60%, #000 100%);
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(39, 50, 82, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

/* Decorative layered "holographic screens" for hero */
.hero-visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 500px;
  height: 340px;
}

.hero-visual-layer {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.layer-1 {
  width: 400px;
  height: 280px;
  top: 30px;
  left: 50px;
  transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
}

.layer-2 {
  width: 380px;
  height: 260px;
  top: 15px;
  left: 65px;
  transform: perspective(800px) rotateY(-18deg) rotateX(6deg);
  border-color: rgba(255, 255, 255, 0.05);
}

.layer-3 {
  width: 360px;
  height: 240px;
  top: 0;
  left: 80px;
  transform: perspective(800px) rotateY(-22deg) rotateX(7deg);
  border-color: rgba(255, 255, 255, 0.03);
  background: rgba(20, 20, 30, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 2rem;
  max-width: 900px;
}

.hero-heading {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 820px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.hero-trust-badge svg { flex-shrink: 0; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ===================================================
   SHARED DARK SECTIONS
   =================================================== */
.no-shortcuts,
.feature-section {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 4rem;
}

/* Floating device / holographic screen */
.floating-device {
  position: relative;
  width: 470px;
  height: 500px;
  flex: 0 0 470px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.map-canvas-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.map-canvas-wrap canvas {
  min-height: 0;
  min-width: 0;
}

.map-caption {
  padding-top: .75rem;
  font-size: .66rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  font-family: var(--font-mono);
  line-height: 1.5;
}

.device-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.device-layer {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
}

.dl-1 {
  width: 88%;
  height: 88%;
  top: 8%;
  left: 0;
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid rgba(255,255,255,0.12);
  transform: perspective(600px) rotateY(8deg) rotateX(-3deg);
  box-shadow: -8px 8px 30px rgba(0,0,0,0.5);
}

.dl-2 {
  width: 85%;
  height: 85%;
  top: 4%;
  left: 6%;
  background: rgba(15, 18, 25, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  transform: perspective(600px) rotateY(6deg) rotateX(-2deg);
}

.dl-3 {
  width: 82%;
  height: 80%;
  top: 0;
  left: 12%;
  background: rgba(12, 14, 20, 0.8);
  border: 1px solid rgba(255,255,255,0.05);
  transform: perspective(600px) rotateY(4deg) rotateX(-1deg);
}

.rotate-variant .dl-1 {
  transform: perspective(600px) rotateY(-8deg) rotateX(-3deg);
}
.rotate-variant .dl-2 {
  transform: perspective(600px) rotateY(-6deg) rotateX(-2deg);
}
.rotate-variant .dl-3 {
  transform: perspective(600px) rotateY(-4deg) rotateX(-1deg);
}

.device-inner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.data-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
}

.data-node.active {
  background: #72CE7B;
  box-shadow: 0 0 8px #72CE7B;
}

.data-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), transparent);
  transform-origin: left center;
}

.data-stream {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(114, 206, 123, 0.2), transparent);
  animation: stream-flow 3s linear infinite;
}

.s1 { top: 25%; animation-delay: 0s; }
.s2 { top: 50%; animation-delay: 1s; }
.s3 { top: 75%; animation-delay: 2s; }

@keyframes stream-flow {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.data-bar {
  position: absolute;
  background: rgba(74, 144, 226, 0.4);
  border-radius: 1px;
}

.map-style {
  background: rgba(25, 35, 50, 0.6);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Section text */
.section-text-center {
  text-align: left;
  max-width: 460px;
  flex: 0 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gray-50);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.display-heading {
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.body-text {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--gray-50);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ===================================================
   90% QUOTE SECTION
   =================================================== */
.quote-section {
  background: var(--black);
  padding: 4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10; /* Always above morph sections */
}

.quote-inner {
  display: flex;
  gap: 1.25rem;
  max-width: 1200px;
  width: 100%;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
}

/* quote-video-thumb replaced by quote-link-card */
.quote-link-card {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--evergreen);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  transition: background 0.2s;
  min-height: 0;
}
.quote-link-card:hover { background: #163250; }
.quote-link-eyebrow {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 .75rem;
}
.quote-link-heading {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
  margin: 0;
  flex: 1;
}
.quote-link-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #141414 0%, #1e1e1e 100%);
}

.video-annotation {
  position: absolute;
  inset: 1.5rem;
}

.ann-box {
  position: absolute;
  border: 1.5px dashed rgba(255,255,255,0.25);
  border-radius: 4px;
  top: 10%;
  left: 15%;
  width: 50%;
  height: 35%;
}

.ann-box.small {
  top: 55%;
  left: 25%;
  width: 30%;
  height: 20%;
  border-color: rgba(74, 144, 226, 0.4);
}

.ann-arrow {
  position: absolute;
  top: 48%;
  left: 40%;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

.video-overlay-label {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
}

.quote-text-block {
  flex: 1;
  background: var(--evergreen);
  border-radius: 16px;
  padding: 3.5rem 3.5rem;
  display: flex;
  align-items: center;
}

.quote-text-block blockquote {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ===================================================
   INDUSTRIES SECTION
   =================================================== */
.industries-section {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem 4rem;
}

.industries-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.industries-heading {
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--black);
  letter-spacing: -0.02em;
}

.industries-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.industries-cycling-wrapper {
  position: relative;
  overflow: visible; /* allow descenders to show naturally */
  height: 1.3em;
  font-size: clamp(1.75rem, 5vw, 4rem);
  width: 100%;
  max-width: 600px;
  /* clip only left/right, not top/bottom */
  clip-path: inset(0 0 -0.4em 0);
}

.industries-cycling {
  position: absolute;
  inset: 0;
}

.cycle-word {
  position: absolute;
  white-space: nowrap;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s cubic-bezier(0.16,1,0.3,1);
}

.cycle-word.active {
  transform: translateX(-50%) translateY(0%);
  opacity: 1;
}

.cycle-word.exiting {
  transform: translateX(-50%) translateY(-110%);
  opacity: 0;
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  margin-top: 1.75rem;
  transition: background 0.2s;
}

.btn-get-started:hover {
  background: var(--gray-70);
}

/* ===================================================
   CASE STUDIES CAROUSEL
   =================================================== */
.case-studies-section {
  overflow: hidden;
  background: var(--white);
  padding: 1rem 0 4rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 max(1.5rem, calc((100% - 1200px) / 2 + 1.5rem));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:active {
  cursor: grabbing;
}

.case-card {
  flex: 0 0 min(calc(100vw - 3.5rem), 380px);
  background: var(--white);
  border: 1px solid var(--gray-10);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-snap-align: start;
  transition: box-shadow 0.2s;
}

.case-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.card-client-badge {
  margin-bottom: 0.25rem;
}

.client-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gray-5);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-70);
  text-align: center;
  line-height: 1.2;
}

.card-heading {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
  flex: 1;
}

.card-client {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--gray-50);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid var(--gray-10);
  padding-bottom: 0.25rem;
  align-self: flex-start;
  transition: border-color 0.2s;
}

.card-link:hover {
  border-color: var(--black);
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem 0;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gray-10);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
  background: var(--gray-5);
  border-color: var(--gray-30);
}

/* ===================================================
   BENCHMARK / CARD GRID
   =================================================== */
.benchmark-section {
  background: var(--white);
  padding: 5rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benchmark-eyebrow {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 3rem;
  max-width: 100%;
  color: var(--black);
  align-self: flex-start;
}

.green-text {
  color: var(--black);
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.benchmark-card {
  border: 1px solid var(--gray-10);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.benchmark-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-5);
  border-radius: 10px;
}

.benchmark-card-title {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--black);
}

.benchmark-card-body {
  font-size: 0.875rem;
  color: var(--gray-50);
  line-height: 1.6;
  flex: 1;
}

.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.6;
}

/* ===================================================
   BLOG SECTION
   =================================================== */
.blog-section {
  background: var(--white);
  padding: 2rem 1.5rem 5rem;
  border-top: 1px solid var(--gray-10);
}

.blog-header {
  margin-bottom: 3rem;
}

.blog-heading {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--gray-10);
  border: 1px solid var(--gray-10);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.blog-card {
  background: var(--white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.15s;
  position: relative;
}

.blog-card:hover {
  background: var(--gray-5);
}

.blog-card.featured {
  grid-row: span 2;
}

@media (max-width: 640px) {
  .blog-card.featured {
    grid-row: span 1;
  }
}

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gray-50);
  text-transform: uppercase;
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  flex: 1;
}

.blog-card.featured .blog-card-title {
  font-size: 1.35rem;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--gray-50);
  line-height: 1.5;
}

.blog-card-arrow {
  font-size: 1rem;
  color: var(--gray-50);
  align-self: flex-end;
  transition: transform 0.2s, color 0.2s;
}

.blog-card:hover .blog-card-arrow {
  transform: translateX(4px);
  color: var(--black);
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: var(--black);
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-inner {
  text-align: center;
  max-width: 600px;
}

.cta-heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.cta-body {
  font-size: 1rem;
  color: var(--gray-50);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.cta-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  display: inline-flex;
  transition: background 0.2s;
}

.cta-btn:hover {
  background: var(--gray-10);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: flex-start;
}

.footer-logo-mark {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  gap: 2rem;
  flex: 1;
}

/* footer-cols mobile handled in main responsive block */

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gray-50);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--white);
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-col a:hover {
  color: var(--gray-30);
}

.footer-tagline {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.footer-tagline p {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.12);
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--gray-50);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--white);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--gray-50);
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--gray-50);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-cookie {
  text-transform: uppercase;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-50);
  white-space: nowrap;
}

.footer-trust-badge svg { flex-shrink: 0; }

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   ABOUT / LEGAL PAGE LAYOUT
   =================================================== */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.page-wrap-wide { max-width: 1100px; margin: 0 auto; padding: 8rem 2rem 6rem; }
.page-eyebrow { font-size:.75rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;color:#929292;margin-bottom:1rem; }
.page-h1 { font-size:clamp(2rem,4vw,3.2rem);font-weight:300;letter-spacing:-.025em;line-height:1.1;color:#111;margin-bottom:1rem; }
.page-lead { font-size:1.05rem;color:#555;line-height:1.8;max-width:640px;margin-bottom:2.5rem; }
.page-divider { border:none;border-top:1px solid #e5e3de;margin:2.5rem 0; }
.page-h2 { font-size:1.1rem;font-weight:500;color:#111;margin-bottom:.75rem;margin-top:2.5rem; }
.page-body { font-size:.95rem;color:#444;line-height:1.85;margin-bottom:.75rem; }
.page-body a { color:#111;text-decoration:underline; }
.page-body ul,.page-body ol { padding-left:1.5rem;margin-bottom:1rem; }
.page-body li { margin-bottom:.4rem; }
.contact-grid { display:grid;grid-template-columns:1fr 1.4fr;gap:5rem;align-items:start; }
.contact-info-card { background:#f6f5f2;border-radius:14px;padding:2rem;display:flex;flex-direction:column;gap:1.5rem; }
.contact-info-item { display:flex;flex-direction:column;gap:.25rem; }
.contact-info-label { font-size:.7rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#929292; }
.contact-info-value { font-size:.95rem;color:#111;line-height:1.6; }
.contact-info-value a { color:#111;text-decoration:underline; }

/* ===================================================
   DARK MORPH STACK
   =================================================== */
.morph-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

#dark-morph-stack {
  position: relative;
  height: 200vh; /* 2 sections × 100vh */
  background: var(--black);
}

.morph-section {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 6rem 4rem;
  gap: 4rem;
  background: var(--black);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  will-change: opacity;
}

.morph-section.no-shortcuts,
.morph-section.feature-section {
  padding: 6rem 2rem;
}

.morph-section.morph-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s ease;
}

.morph-section .section-text-center,
.morph-section .floating-device {
  transform: translateY(20px);
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1), opacity 0.7s cubic-bezier(0.16,1,0.3,1);
  opacity: 0;
}

.morph-section.morph-active .section-text-center,
.morph-section.morph-active .floating-device {
  transform: translateY(0);
  opacity: 1;
}

.white-morph-stack .morph-sticky {
  background: var(--white);
}
.white-morph-stack .morph-section {
  background: var(--white);
}

/* ===================================================
   RESPONSIVE — MOBILE
   =================================================== */

/* Mobile nav: hidden by default, shown via transform on mobile */
.mobile-menu-btn { display: none; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 105;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-section { margin-bottom: 2rem; }
.mobile-nav-label {
  font-size: .65rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: #999; margin-bottom: .75rem;
}
.mobile-nav a {
  display: block; font-size: 1.05rem; font-weight: 300;
  color: var(--black); text-decoration: none;
  padding: .5rem 0; border-bottom: 1px solid #f0ede8;
}
.mobile-nav-section a:last-child { border-bottom: none; }
.mobile-nav-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.mobile-nav-actions a {
  border-bottom: none !important; text-align: center;
  padding: .85rem !important; border-radius: 8px; font-size: .95rem !important;
}
.mobile-nav-actions .btn-demo { background: var(--black); color: white; }
.mobile-nav-actions .btn-login { border: 1px solid #e5e3de !important; color: var(--black); }

@media (max-width: 768px) {
  /* Header */
  .header-inner { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; }
  #main-nav { display: none !important; }
  .header-actions { display: none !important; }
  .mobile-menu-btn {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem;
  }
  .mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; }
  .mobile-nav { display: block; }

  /* Hero */
  .hero { min-height: 85vh; }
  .hero-overlay { padding: 6rem 1.25rem 3rem; }
  .hero-heading { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions a { width: 100%; text-align: center; justify-content: center; }

  /* Morph — keep sticky scroll, stack vertically on mobile */
  .morph-section {
    flex-direction: column !important;
    padding: 5rem 1.5rem 2.5rem !important;
    gap: 2rem !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
  }
  .morph-section .floating-device {
    width: 92% !important;
    max-width: 340px !important;
    height: 320px !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .morph-section .section-text-center {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }
  .display-heading { font-size: clamp(1.4rem, 5.5vw, 2rem) !important; text-align: center !important; }
  .body-text { font-size: .88rem !important; text-align: center !important; }
  .map-caption { font-size: .55rem !important; }

  /* Quote */
  .quote-inner { flex-direction: column; gap: 1.5rem; }
  .quote-link-card { flex: none; width: 100%; }
  .quote-text-block blockquote { font-size: 1rem; }

  /* Industries cycling */
  .industries-section { padding: 3rem 1.25rem; }
  .btn-get-started { width: 100%; text-align: center; justify-content: center; }

  /* Case cards */
  .case-card { min-width: calc(100vw - 2.5rem); }

  /* Benchmark */
  .benchmark-grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr !important; }
  .blog-card.featured { grid-column: span 1 !important; }

  /* Footer */
  .footer-top { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .footer-logo-mark { margin-bottom: .5rem; width: 100%; }
  .footer-cols { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr !important; gap: 1.75rem 1.25rem; }
  .footer-col ul { gap: .4rem; }
  .footer-col ul li a { font-size: .8rem; }
  .footer-col-label { font-size: .58rem; margin-bottom: .5rem; }
  .footer-tagline { padding: 1.25rem 0; }
  .footer-tagline p { white-space: normal; font-size: .95rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer-legal { flex-direction: column; gap: .4rem; font-size: .6rem; align-items: flex-start; }
  .footer-legal span { text-align: center; }

  /* Pages */
  .page-wrap, .page-wrap-wide { padding: 6rem 1.25rem 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* 1. Hide industry page mockups on mobile */
  .ind-mockup { display: none !important; }

  /* 3. Case study stats — stack on mobile */
  article [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr 1fr !important; }
  .ind-explainer-inner { grid-template-columns: 1fr !important; gap: 2rem; }

  /* 2. Case study carousel — one card full width, centered */
  .carousel-track { gap: 1rem !important; padding: 0 !important; }
  .case-card { 
    min-width: calc(100vw - 3rem) !important; 
    max-width: calc(100vw - 3rem) !important;
    margin: 0 auto;
  }
  .case-carousel, .carousel-wrap { padding: 0 1.5rem !important; overflow: hidden !important; }
  .carousel-nav { justify-content: center; margin-top: 1.5rem; }

  /* ── Expanded industry/service page sections ─────────────────────────────── */

  /* Two-col stat+text layouts → stack */
  [style*="grid-template-columns:1fr 1fr;gap:3rem"],
  [style*="grid-template-columns:1fr 1fr;gap:2rem"],
  [style*="grid-template-columns:1fr 1fr;gap:1.5rem"],
  [style*="grid-template-columns:1fr 1fr;"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Three-col tile grids → single column */
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Cost comparison dark/light two-col → stack */
  [style*="grid-template-columns:1fr 1fr;gap:2rem;margin-top:3rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Two-col phase cards → single col */
  [style*="grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:3rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat cards — ensure they display well single column */
  [style*="border-radius:12px;padding:1.75rem"] {
    margin-bottom: 0;
  }

  /* Section padding reduction for expanded sections */
  section[style*="padding:5rem 2rem"] {
    padding: 3rem 1.25rem !important;
  }
  section[style*="padding:4rem 2rem"] {
    padding: 2.5rem 1.25rem !important;
  }

  /* Max-width containers */
  [style*="max-width:1100px;margin:0 auto"],
  [style*="max-width:800px;margin:0 auto"],
  [style*="max-width:700px;"] {
    max-width: 100% !important;
  }

  /* ind-h2 font size */
  .ind-h2 { font-size: clamp(1.4rem, 5vw, 2rem) !important; }

  /* FAQ items */
  .faq-q { font-size: .9rem !important; }

  /* Comparison table — allow horizontal scroll */
  [style*="overflow-x:auto"] table,
  table { font-size: .75rem !important; }
  table th, table td { padding: .5rem .6rem !important; }

  /* Related cards grid → single col */
  [style*="grid-template-columns:repeat(3,1fr);gap:1.5rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Language / region tile grids */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:1.5rem"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat pull-quote boxes — full width */
  [style*="font-size:2rem;font-weight:300"] {
    font-size: 1.6rem !important;
  }

  /* Hero sub-text on new service pages */
  .ind-hero-sub { font-size: .9rem !important; line-height: 1.6 !important; }
  .ind-hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem) !important; }
  .ind-hero-content { padding-bottom: 2rem; }

  /* Who-this-is-for cards, jurisdiction cards → 1 col */
  [style*="grid-template-columns:1fr 1fr 1fr;gap:1.5rem;margin-top:3rem"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }


/* Tile cards — prevent bleeding on mobile */
  [style*="border-radius:12px;padding:1.75rem"],
  [style*="border-radius:12px;padding:1.25rem"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Ensure all inline grids don't overflow */
  [style*="display:grid"] {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  /* Stat boxes with font-size 2rem */
  [style*="background:#f6f5f2;border-radius:12px;padding:1.75rem"] {
    box-sizing: border-box !important;
    width: 100% !important;
  }


  /* Hero — center content on mobile instead of flex-end (bottom) */
  .ind-hero {
    align-items: center !important;
    min-height: calc(100vh - var(--nav-h)) !important;
    padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem !important;
  }
  .ind-hero-content {
    max-width: 100% !important;
  }
  .ind-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }
  .ind-hero-sub {
    font-size: .9rem !important;
    line-height: 1.65 !important;
  }
  .ind-hero-actions {
    flex-direction: column !important;
    gap: .75rem !important;
  }
  .ind-hero-actions a {
    text-align: center !important;
  }


}

}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr 1fr !important; }
  .hero-heading { font-size: 1.7rem; }