/*
 * Biolojee — Unified Marketing Design System
 * Single source of truth for all marketing pages.
 * Font: Inter (Google Fonts)
 * Canvas: #FFFFFF | Text: #111827 | Muted: #4b5563 | Accent: #0f8b6f
 * Borders: #eaeaea (light) / #e5e7eb (medium)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --canvas-bg: #ffffff;
  --surface: #fafafa;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --border-light: #eaeaea;
  --border-medium: #e5e7eb;
  --border-dark: #111827;
  --primary: #0f8b6f;
  --primary-hover: #0c6f59;
  --primary-light: #e6f4f0;
  --font: 'Inter', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 380ms var(--ease);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;
  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.10);
}

/* ============================================
   GLOBAL BASE RESET
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--canvas-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Force Inter on ALL form elements — prevents Times New Roman fallback */
button,
input,
textarea,
select,
a {
  font-family: var(--font);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font);
  margin: 0;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.hc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

@media (max-width: 768px) {
  .hc-container {
    padding: 0 20px;
  }
}

.hc-clean {
  background-color: var(--canvas-bg);
  position: relative;
  overflow: hidden;
}

/* ============================================
   TYPOGRAPHY SCALE
   ============================================ */
.hc-clean h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-dark);
}

.hc-clean h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-dark);
}

.hc-clean h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* ============================================
   BUTTONS
   ============================================ */
.hc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background-color: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.hc-btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 139, 111, 0.15);
}

.hc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  background-color: var(--canvas-bg);
  color: var(--text-dark);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.hc-btn-secondary:hover:not(:disabled) {
  border-color: var(--text-dark);
  background-color: var(--surface);
  transform: translateY(-1px);
}

.hc-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   SITE HEADER — STICKY FROSTED GLASS NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-medium);
  transition: var(--transition);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Brand Logo */
.site-header .brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: lowercase;
  flex-shrink: 0;
}

/* Nav links cluster */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 250ms var(--ease);
}

.nav-links a:hover {
  color: var(--text-dark);
}

/* Nav action buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: opacity 250ms var(--ease);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  background-color: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 139, 111, 0.18);
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger → X animation */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HEADER RESPONSIVE — MOBILE DRAWER
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--canvas-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    transition: max-height 400ms var(--ease), padding 400ms var(--ease), border-color 400ms var(--ease);
  }

  .nav-panel.is-open {
    max-height: 420px;
    padding: 24px 20px 32px;
    border-bottom-color: var(--border-medium);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    width: 100%;
  }

  .nav-cta-btn {
    width: 100%;
    height: 46px;
    font-size: 1rem;
  }
}

/* ============================================
   AMBIENT MESH BLOBS
   ============================================ */
.canvas-mesh-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.canvas-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
  animation: blob-drift 22s infinite alternate ease-in-out;
}

.blob-lavender {
  width: 55vw;
  height: 55vw;
  background: #f3e8ff;
  top: -10%;
  left: -8%;
  animation-duration: 28s;
}

.blob-indigo {
  width: 45vw;
  height: 45vw;
  background: #e0e7ff;
  bottom: -10%;
  right: -5%;
  animation-duration: 34s;
  animation-delay: -8s;
}

/* Logo image (when admin sets logo_url) */
.brand-logo-img {
  width: auto;
  height: 45px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* "B" letter fallback icon (when no logo_url is set) */
.brand-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
  font-style: normal;
}

/* Brand wordmark text */
.brand-name {
  line-height: 1;
}

.blob-emerald-glow {
  width: 40vw;
  height: 40vw;
  background: #d1fae5;
  top: 35%;
  left: 50%;
  animation-duration: 26s;
  animation-delay: -14s;
}

@keyframes blob-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(6%, 8%) scale(1.12);
  }
}

/* ============================================
   LAYOUT AXIS GUIDE LINES
   ============================================ */
.layout-grid-lines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}

.layout-grid-line {
  width: 1px;
  height: 100%;
  background: #f3f4f6;
}

/* ============================================
   SECTION STRUCTURE
   ============================================ */
.canvas-skew-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--canvas-bg);
}

/* ============================================
   HERO — TWO-COLUMN STAGE
   ============================================ */
.hero-stage-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 128px 0 160px;
  position: relative;
  z-index: 2;
}

@media (max-width: 960px) {
  .hero-stage-layout {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 96px 0 80px;
  }

  .hero-right-col {
    order: -1;
  }
}

.hero-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-left-col h1 {
  margin-bottom: 20px;
}

.hero-left-col .lead {
  margin-bottom: 36px;
}

/* Claim pill form */
.claim-pill-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--canvas-bg);
  padding: 6px 6px 6px 20px;
  width: 100%;
  max-width: 460px;
  transition: var(--transition);
}

.claim-pill-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 139, 111, 0.09);
}

.claim-prefix {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.claim-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 10px;
  min-width: 0;
}

.claim-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}

.claim-submit-btn {
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  background-color: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.claim-submit-btn:hover {
  background-color: var(--primary-hover);
}

@media (max-width: 480px) {
  .claim-pill-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px;
    gap: 10px;
    align-items: stretch;
  }

  .claim-submit-btn {
    width: 100%;
    border-radius: var(--radius-md);
    height: 44px;
  }
}

/* ============================================
   3D ISOMETRIC VIEWPORT — HERO RIGHT
   ============================================ */
.isometric-viewport {
  perspective: 1200px;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.isometric-container {
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  width: 100%;
  max-width: 400px;
  height: 360px;
  position: relative;
}

@media (max-width: 768px) {
  .isometric-viewport {
    height: 320px;
  }

  .isometric-container {
    transform: scale(0.82);
    transform-origin: center top;
  }
}

@media (max-width: 480px) {
  .isometric-viewport {
    height: 240px;
  }

  .isometric-container {
    transform: scale(0.62);
    transform-origin: center top;
  }
}

/* Floating mockup plates */
.floating-plate {
  position: absolute;
  background: var(--canvas-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 480ms var(--ease), box-shadow 480ms var(--ease), border-color 480ms var(--ease);
}

.floating-plate>* {
  transform: translate3d(0, 0, 0);
  -webkit-font-smoothing: antialiased;
}

.plate-base {
  width: 100%;
  height: 260px;
  top: 50px;
  left: 0;
  padding: 22px;
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(0px);
  box-shadow: var(--shadow-sm);
}

.plate-base:hover {
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(18px) translateY(-6px);
  border-color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.plate-mid {
  width: 195px;
  top: -15px;
  right: -20px;
  padding: 16px;
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(55px);
  box-shadow: var(--shadow-sm);
}

.plate-mid:hover {
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(72px) translateY(-6px);
  border-color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.plate-front {
  width: 230px;
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
  padding: 14px 18px;
  bottom: 15px;
  left: -30px;
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(115px);
  box-shadow: var(--shadow-lg);
}

.plate-front:hover {
  transform: rotateX(22deg) rotateY(-22deg) rotateZ(6deg) translateZ(132px) translateY(-4px);
  box-shadow: 0 32px 56px rgba(0, 0, 0, 0.18);
}

/* Plate internals */
.mockup-header-spark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.analytics-stat-card {
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.analytics-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.analytics-value {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--text-dark);
}

.analytics-value.green-accent {
  color: var(--primary);
}

.preview-admin-pill {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dark);
}

.profile-avatar-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.profile-store-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.toast-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-circle-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-circle-check svg {
  width: 11px;
  height: 11px;
  stroke: #fff;
  stroke-width: 3;
  fill: none;
}

.toast-info {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.toast-subtitle {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.profile-product-item {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-product-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
}

.profile-product-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================
   PIPELINE SECTION
   ============================================ */
.pipeline-section {
  padding: 120px 0;
  background: #0b0f19;
  position: relative;
}

.pipeline-header {
  text-align: center;
  margin-bottom: 72px;
}

.pipeline-header h2 {
  margin-bottom: 16px;
  color: #ffffff;
}

.pipeline-header .lead {
  margin: 0 auto;
  color: #9ca3af;
}

.pipeline-graph-viewport {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-input-start-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  background: #111827;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pipeline-input-start-node::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.pipeline-svg-canvas {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.pipeline-svg-canvas path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.5;
}

.pipeline-pulse-line {
  stroke: var(--primary) !important;
  stroke-dasharray: 6 20;
  animation: pulse-flow 2.2s linear infinite;
}

@keyframes pulse-flow {
  to {
    stroke-dashoffset: -26;
  }
}

.pipeline-nodes-array {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 96px;
  z-index: 5;
}

@media (max-width: 991px) {
  .pipeline-nodes-array {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 60px;
  }
  .pipeline-svg-canvas {
    display: none;
  }
}

@media (max-width: 768px) {
  .pipeline-nodes-array {
    grid-template-columns: 1fr;
    margin-top: 40px;
    max-width: 400px;
  }
}

.pipeline-node-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.pipeline-node-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-node-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipeline-node-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 1.5;
  fill: none;
}

.pipeline-node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.pipeline-node-desc {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   MATRIX — STACK COMPARISON
   ============================================ */
.matrix-header {
  text-align: center;
  margin-bottom: 56px;
}

.matrix-comparison-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

@media (max-width: 900px) {
  .matrix-comparison-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px;
  }

  .matrix-connector {
    display: none;
  }
}

.matrix-left-duct-tape {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.matrix-connector {
  width: 1px;
  align-self: stretch;
  background: repeating-linear-gradient(to bottom,
      var(--border-light) 0,
      var(--border-light) 6px,
      transparent 6px,
      transparent 12px);
}

.matrix-right-unified {
  display: flex;
  justify-content: center;
}

.unified-core-card {
  width: 100%;
  max-width: 380px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  background: var(--canvas-bg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.unified-core-card:hover {
  box-shadow: 0 12px 36px rgba(15, 139, 111, 0.1);
  transform: translateY(-3px);
}

.unified-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.unified-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.unified-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.unified-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.unified-bullet svg {
  flex-shrink: 0;
  stroke: var(--primary);
}

/* ============================================
   BENTO GRID — FEATURES
   ============================================ */
.bento-header {
  text-align: center;
  margin-bottom: 64px;
}

.bento-header h2 {
  margin-bottom: 16px;
}

.bento-header .lead {
  margin: 0 auto;
}

.bento-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .bento-layout-grid {
    grid-template-columns: 1fr;
  }
}

.bento-cards-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.bento-quad-card {
  background: var(--canvas-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 26px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.bento-quad-card:hover,
.bento-quad-card.active {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.bento-quad-card.active {
  background: var(--surface);
}

.bento-icon-box {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.bento-quad-card:hover .bento-icon-box,
.bento-quad-card.active .bento-icon-box {
  border-color: var(--text-dark);
  background: var(--text-dark);
}

.bento-icon-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
  stroke-width: 1.5;
  fill: none;
  transition: var(--transition);
}

.bento-quad-card:hover .bento-icon-box svg,
.bento-quad-card.active .bento-icon-box svg {
  stroke: #fff;
}

.bento-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.bento-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Bento Preview Panel */
.bento-preview-viewport {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--canvas-bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

.bento-preview-viewport::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.preview-tab-view {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: tab-enter 350ms var(--ease) forwards;
}

.preview-tab-view.active {
  display: flex;
}

@keyframes tab-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.preview-split-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.flow-admin-mock,
.flow-customer-mock {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
}

.flow-admin-mock {
  background: var(--surface);
}

.flow-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-input-row {
  height: 30px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: #fff;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.mock-input-row.value-entered {
  font-weight: 600;
}

.mock-btn-row {
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: var(--text-dark);
  margin-top: 6px;
  cursor: pointer;
}

.customer-detail-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.customer-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.customer-title-row h4 {
  font-size: 0.875rem;
  font-weight: 700;
}

.customer-title-row span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.customer-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.customer-slot-node {
  height: 30px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.customer-slot-node.active-slot {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ============================================
   FOOTER — LEAD CAPTURE + LINKS
   ============================================ */
.lead-footer-section {
  position: relative;
  padding: 100px 0 60px;
  background: var(--canvas-bg);
  border-top: 1px solid var(--border-medium);
  overflow: hidden;
}

.footer-watermark-text {
  position: absolute;
  bottom: -30px;
  left: 4%;
  font-size: 18vw;
  font-weight: 800;
  color: var(--text-dark);
  opacity: 0.018;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.lead-footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 5;
}

.lead-footer-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.lead-footer-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Persona pills */
.persona-pills-track {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: var(--radius-full);
  padding: 4px;
  position: relative;
  margin-bottom: 24px;
  user-select: none;
}

.persona-capsule-highlight {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: #fff;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: transform 380ms var(--ease), width 380ms var(--ease);
  z-index: 1;
}

.persona-pill-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: color 250ms var(--ease);
}

.persona-pill-btn.active {
  color: var(--text-dark);
}

/* Email capture */
.email-capture-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--canvas-bg);
  padding: 6px;
  align-items: center;
  transition: var(--transition);
}

.email-capture-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 139, 111, 0.08);
}

.email-capture-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 0 14px;
  min-width: 0;
}

.email-capture-input::placeholder {
  color: #b0b0b0;
}

.email-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.email-submit-btn:hover {
  background: var(--primary-hover);
}

@media (max-width: 560px) {
  .email-capture-form {
    flex-direction: column;
    border: none;
    padding: 0;
    gap: 10px;
  }

  .email-capture-input {
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    height: 46px;
    padding: 0 16px;
    width: 100%;
    background: var(--canvas-bg);
  }

  .email-submit-btn {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-md);
    justify-content: center;
  }
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-medium);
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-link {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 300px;
}

.footer-social-links {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.footer-social-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  transition: var(--transition);
}

.footer-social-links a:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
  transform: translateY(-2px);
}

.footer-social-links svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 250ms var(--ease);
}

.footer-col-links a:hover {
  color: var(--text-dark);
}

.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  z-index: 5;
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.pricing-toggle-btn.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.pricing-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-plan-card {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  background: var(--canvas-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.pricing-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(15, 139, 111, 0.10);
}

.plan-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 36px 0;
}

.plan-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.plan-feature-list li::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%230f8b6f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  background: var(--canvas-bg);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.comparison-table th {
  font-weight: 700;
  color: var(--text-dark);
  background: var(--surface);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

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

/* ============================================
   HOME PAGE NEW SECTIONS
   ============================================ */

/* 1. How It Works Section */
.how-it-works-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--canvas-bg);
  z-index: 2;
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.how-it-works-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

/* Connecting line for steps (desktop only) */
@media (min-width: 992px) {
  .how-it-works-grid::before {
    content: '';
    position: absolute;
    top: 68px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-light) 0%, var(--primary-light) 50%, var(--border-light) 100%);
    z-index: 1;
  }
}

.how-it-works-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  z-index: 2;
}

.how-it-works-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: var(--canvas-bg);
}

.how-it-works-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.how-it-works-number {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.how-it-works-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.how-it-works-card:hover .how-it-works-icon-box {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.how-it-works-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.how-it-works-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-it-works-card {
    padding: 32px 24px;
  }
}

/* 2. Social Proof Section (Black Background) */
.social-proof-section {
  position: relative;
  padding: 120px 0 100px;
  background-color: #0b0f19;
  color: #ffffff;
  overflow: hidden;
  z-index: 2;
}

.social-proof-header {
  text-align: center;
  margin-bottom: 64px;
}

.social-proof-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.social-proof-header p {
  color: #9ca3af;
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Grid styles */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* Testimonials Infinite Marquee styles */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 10px 0;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 20px;
  padding: 5px 0;
  animation-play-state: running;
}

.marquee-track.ltr {
  animation: marquee-ltr-anim 35s linear infinite;
}

.marquee-track.rtl {
  animation: marquee-rtl-anim 35s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.testimonial-card {
  display: inline-block;
  white-space: normal;
  /* Restore text wrap inside card */
  width: 380px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  vertical-align: top;
  transition: background 300ms ease, border-color 300ms ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.testimonial-info p {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 500;
}

@keyframes marquee-ltr-anim {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(calc(-50% - 10px), 0, 0);
  }
}

@keyframes marquee-rtl-anim {
  0% {
    transform: translate3d(calc(-50% - 10px), 0, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .stat-card {
    padding: 28px 24px;
  }

  .testimonial-card {
    width: 320px;
    padding: 20px;
  }
}

/* 3. Middle CTA Section (White Background) */
.middle-cta-section {
  position: relative;
  padding: 100px 0 120px;
  background-color: var(--canvas-bg);
  z-index: 2;
  border-bottom: 1px solid var(--border-medium);
}

.middle-cta-card {
  position: relative;
  background: radial-gradient(120% 120% at 50% 0%, rgba(15, 139, 111, 0.05) 0%, rgba(250, 250, 250, 0) 100%), var(--surface);
  border: 1px solid var(--border-medium);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.03);
}

.middle-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 139, 111, 0) 0%, rgba(15, 139, 111, 0.3) 50%, rgba(15, 139, 111, 0) 100%);
}

.middle-cta-card h2 {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.middle-cta-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 36px;
}

.middle-cta-claim-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  background: var(--canvas-bg);
  padding: 6px 6px 6px 20px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transition: var(--transition);
}

.middle-cta-claim-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  background: var(--canvas-bg);
}

.middle-cta-claim-prefix {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.middle-cta-claim-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0 10px;
  min-width: 0;
}

.middle-cta-claim-input::placeholder {
  color: #b0b0b0;
  font-weight: 400;
}

.middle-cta-claim-submit-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 24px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.middle-cta-claim-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 139, 111, 0.25);
}

@media (max-width: 768px) {
  .middle-cta-card {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .middle-cta-claim-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 12px;
    align-items: stretch;
  }

  .middle-cta-claim-prefix {
    text-align: center;
  }

  .middle-cta-claim-submit-btn {
    width: 100%;
    border-radius: var(--radius-md);
    height: 48px;
  }
}

/* Light themed pipeline card styling inside Middle CTA */
.middle-cta-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.middle-cta-section .pipeline-node-card {
  background: var(--canvas-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.middle-cta-section .pipeline-node-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: var(--canvas-bg);
}

.middle-cta-section .pipeline-node-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-medium);
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

.middle-cta-section .pipeline-node-card:hover .pipeline-node-icon {
  background: var(--primary-light);
  border-color: var(--primary);
}

.middle-cta-section .pipeline-node-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  stroke-width: 1.8;
  fill: none;
}

.middle-cta-section .pipeline-node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.middle-cta-section .pipeline-node-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 991px) {
  .middle-cta-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
  }
}

/* 4. FAQ Section (Accordion, Light-themed) */
.home-faq-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--canvas-bg);
  z-index: 2;
}

.home-faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.home-faq-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.home-faq-header p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.home-faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.home-faq-accordion {
  border-top: 1px solid var(--border-medium);
}

.home-faq-item {
  border-bottom: 1px solid var(--border-medium);
  transition: background-color 300ms ease;
}

.home-faq-item:hover {
  background-color: var(--surface);
}

.home-faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  text-align: left;
}

.home-faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  padding-right: 20px;
}

.home-faq-icon-wrapper {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 300ms var(--ease), color 300ms ease;
}

.home-faq-icon-wrapper svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transition: transform 300ms var(--ease);
}

.home-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease);
}

.home-faq-content-inner {
  padding: 0 24px 28px 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Active accordion state */
.home-faq-item.active .home-faq-icon-wrapper {
  color: var(--primary);
}

.home-faq-item.active .home-faq-icon-wrapper svg {
  transform: rotate(180deg);
}

/* ============================================
   MARKETING FOOTER - DEMO REQUEST FORM BAR
   ============================================ */
.demo-footer-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.demo-footer-bar {
  display: flex;
  width: 100%;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--canvas-bg);
  padding: 6px;
  align-items: center;
  transition: var(--transition);
}

.demo-footer-form:focus-within .demo-footer-bar {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 139, 111, 0.08);
}

.footer-bar-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.footer-bar-input-wrap:not(:last-child) {
  border-right: 1px solid var(--border-medium);
}

.footer-bar-input-wrap select.select-capture-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

@media (max-width: 768px) {
  .demo-footer-bar {
    flex-direction: column;
    border: none;
    background: transparent;
    padding: 0;
    gap: 12px;
  }
  
  .footer-bar-input-wrap {
    width: 100%;
    border-right: none !important;
    background: var(--canvas-bg);
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-md);
    height: 48px;
  }
  
  .footer-bar-input-wrap .email-capture-input {
    width: 100%;
    height: 100%;
    padding: 10px 16px;
  }
  
  .footer-bar-input-wrap select.select-capture-input {
    background-position: right 16px center;
  }

  .demo-footer-form .email-submit-btn {
    width: 100%;
    height: 48px;
    justify-content: center;
    border-radius: var(--radius-md);
  }
}

/* ============================================
   DEMO BOOKING POPUP STYLING
   ============================================ */
.demo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms var(--ease), visibility 380ms var(--ease);
}

.demo-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.demo-popup-card {
  position: relative;
  width: 92%;
  max-width: 500px;
  background-color: var(--canvas-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 40px rgba(99, 102, 241, 0.04);
  padding: 40px;
  transform: translateY(40px) scale(0.96);
  opacity: 0;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease);
  overflow: hidden;
}

.demo-popup-overlay.active .demo-popup-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close Button */
.demo-popup-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.demo-popup-close:hover {
  background-color: var(--surface);
  color: var(--text-dark);
  border-color: var(--border-medium);
  transform: rotate(90deg);
}

/* Badge & Headings */
.demo-popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background-color: rgba(99, 102, 241, 0.08);
  color: #6366f1; /* Royal purple accent */
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.demo-popup-header h2 {
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.demo-popup-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Form layouts */
.demo-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-popup-field-group {
  position: relative;
  width: 100%;
}

.popup-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--canvas-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}

.popup-input:focus {
  border-color: #6366f1; /* Purple focus highlight */
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background-color: #fff;
}

.popup-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Custom select chevron dropdown style */
select.select-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

select.select-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Submit Button with brand green to purple gradient */
.popup-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.popup-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
}

.popup-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.popup-submit-btn svg {
  transition: transform 250ms var(--ease);
}

.popup-submit-btn:hover svg {
  transform: translateX(3px);
}

/* Error States */
.demo-popup-error-state {
  font-size: 0.825rem;
  font-weight: 500;
  color: #b91c1c;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  line-height: 1.4;
  margin-bottom: 8px;
  animation: popup-shake 400ms ease;
}

@keyframes popup-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Success View State */
.demo-popup-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.demo-popup-success-state.active {
  display: flex;
  animation: popup-fade-in 450ms var(--ease) forwards;
}

.success-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background-color: var(--primary-light);
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 24px;
}

.success-icon-wrap svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
}

.demo-popup-success-state h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.demo-popup-success-state p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 30px;
  max-width: 340px;
}

.demo-popup-success-state .success-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  background-color: var(--text-dark);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.demo-popup-success-state .success-close-btn:hover {
  background-color: #2e3542;
  transform: translateY(-1px);
}

@keyframes popup-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 580px) {
  .demo-popup-card {
    padding: 30px 24px;
  }
  
  .demo-popup-close {
    top: 14px;
    right: 14px;
  }

  .demo-popup-badge {
    margin-bottom: 12px;
  }
  
  .demo-popup-header h2 {
    margin-bottom: 10px;
  }
  
  .demo-popup-header p {
    margin-bottom: 20px;
  }
}