/* ── LiveFlow - brand design system (from app.liveflow.nl) ── */

:root {
  /* LiveFlow brand tokens */
  --lf-blue: #1d4ed8;
  --lf-blue-dark: #1e40af;
  --lf-blue-medium: #60a5fa;
  --lf-blue-light: #dbeafe;
  --lf-navy: #19255b;
  --lf-navy-light: #274193;
  --lf-black: #111827;
  --lf-gray: #6b7280;
  --lf-gray-medium: #9ca3af;
  --lf-gray-light: #d1d5db;
  --lf-white: #ffffff;
  --lf-green: #22c55e;
  --lf-green-dark: #16a34a;
  --lf-red: #ef4444;

  --color-bg: #f8fafc;
  --color-surface: var(--lf-white);
  --color-text: var(--lf-black);
  --color-text-muted: var(--lf-gray);
  --color-border: var(--lf-gray-light);
  --color-accent: var(--lf-blue);
  --color-accent-light: var(--lf-blue-light);
  --color-accent-dark: var(--lf-blue-dark);
  --color-dark: var(--lf-navy);
  --color-success: var(--lf-green);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--lf-blue);
  color: var(--lf-white);
}

.btn-primary:hover {
  background: var(--lf-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--color-accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.link-arrow {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.link-arrow:hover {
  color: var(--color-accent-dark);
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--lf-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav.open .nav-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav.open .nav-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-login-icon {
  display: none;
  flex-shrink: 0;
}

/* ── Geometric shapes (Mollie-style) ── */

.shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle {
  border-radius: 50%;
  background: var(--lf-blue-light);
  border: 2px solid rgba(29, 78, 216, 0.15);
}

.shape-square {
  border-radius: var(--radius-sm);
  background: rgba(25, 37, 91, 0.04);
  border: 2px solid rgba(25, 37, 91, 0.08);
}

/* ── Hero ── */

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 10%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 25%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 5%;
  animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
  width: 60px;
  height: 60px;
  top: 15%;
  left: 15%;
  animation: float 5s ease-in-out infinite 0.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

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

/* ── Hero flow animation ── */

.hero-visual {
  perspective: 1000px;
}

.flow-anim {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  padding: 20px 20px 16px;
}

.flow-anim-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--color-bg);
  border-radius: 999px;
}

.flow-anim-step {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 999px;
  color: var(--lf-gray-medium);
  transition: all 0.4s ease;
  white-space: nowrap;
}

.flow-anim[data-phase="1"] .flow-anim-step[data-step="1"],
.flow-anim[data-phase="2"] .flow-anim-step[data-step="2"],
.flow-anim[data-phase="3"] .flow-anim-step[data-step="3"],
.flow-anim[data-phase="4"] .flow-anim-step[data-step="4"] {
  background: var(--lf-white);
  color: var(--lf-blue);
  box-shadow: var(--shadow-sm);
}

.flow-anim-stage {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.flow-anim-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flow-line {
  stroke: var(--lf-gray-light);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  opacity: 0.35;
  transition: opacity 0.5s ease, stroke 0.5s ease;
}

.flow-anim[data-phase="1"] .flow-line--in {
  opacity: 1;
  stroke: var(--lf-blue-medium);
  animation: flowDash 1s linear infinite;
}

.flow-anim[data-phase="2"] .flow-line--out {
  opacity: 1;
  stroke: var(--lf-blue);
  animation: flowDash 1s linear infinite;
}

.flow-anim[data-phase="3"] .flow-line--order {
  opacity: 1;
  stroke: var(--lf-green);
  animation: flowDash 0.8s linear infinite reverse;
}

.flow-anim[data-phase="4"] .flow-line--report {
  opacity: 1;
  stroke: #7c3aed;
  animation: flowDash 1s linear infinite;
}

@keyframes flowDash {
  to { stroke-dashoffset: -24; }
}

.flow-hub {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: var(--lf-white);
  border: 2px solid var(--lf-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(29, 78, 216, 0.15);
  z-index: 5;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.flow-anim[data-phase="1"] .flow-hub {
  border-color: var(--lf-blue-medium);
  box-shadow: 0 8px 40px rgba(29, 78, 216, 0.25);
}

.flow-anim[data-phase="2"] .flow-hub {
  border-color: var(--lf-blue);
  box-shadow: 0 0 0 8px rgba(29, 78, 216, 0.1);
}

.flow-anim[data-phase="3"] .flow-hub {
  border-color: var(--lf-green);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.flow-anim[data-phase="4"] .flow-hub {
  border-color: #7c3aed;
  box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.12);
}

.flow-hub-logo {
  width: 64px;
  height: auto;
  position: relative;
  z-index: 2;
}

.flow-hub-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--lf-blue);
  opacity: 0;
}

.flow-anim[data-phase="1"] .flow-hub-pulse,
.flow-anim[data-phase="3"] .flow-hub-pulse,
.flow-anim[data-phase="4"] .flow-hub-pulse {
  animation: hubPulse 2s ease-out infinite;
}

@keyframes hubPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}

.flow-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Anchor --y to the icon center (not the label block below) */
.flow-node--report {
  transform: translate(-50%, -22px);
}

.flow-node-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lf-white);
  border: 1px solid var(--lf-gray-light);
  border-radius: var(--radius-md);
  color: var(--lf-gray);
  box-shadow: none;
  transition: all 0.4s ease, color 0.4s ease;
}

.flow-node-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.flow-node-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 88px;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.flow-node-sub {
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--lf-gray-medium);
  text-align: center;
  max-width: 96px;
  line-height: 1.2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.flow-anim[data-phase="1"] .flow-node--source .flow-node-icon {
  border-color: var(--lf-blue-medium);
  color: var(--lf-blue-medium);
  box-shadow: 0 2px 10px rgba(96, 165, 250, 0.16);
  transform: scale(1.04);
}

.flow-anim[data-phase="1"] .flow-node--source .flow-node-label {
  color: var(--lf-blue);
  font-weight: 600;
}

.flow-anim[data-phase="2"] .flow-node--channel .flow-node-icon {
  border-color: var(--lf-blue);
  color: var(--lf-blue);
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.12);
  transform: scale(1.04);
}

.flow-anim[data-phase="2"] .flow-node--channel .flow-node-label {
  color: var(--lf-blue-dark);
  font-weight: 600;
}

.flow-anim[data-phase="3"] .flow-node--channel .flow-node-icon {
  border-color: var(--lf-green);
  color: var(--lf-green);
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.14);
}

.flow-anim[data-phase="3"] .flow-node--channel .flow-node-label {
  color: var(--lf-green-dark, #16a34a);
  font-weight: 600;
}

.flow-anim[data-phase="4"] .flow-node--report .flow-node-icon {
  border-color: #a78bfa;
  color: #8b5cf6;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.14);
  transform: scale(1.05);
}

.flow-anim[data-phase="4"] .flow-node--report .flow-node-label {
  color: #7c3aed;
  font-weight: 600;
}

.flow-anim[data-phase="4"] .flow-node--report .flow-node-sub {
  opacity: 1;
  color: #7c3aed;
}

.flow-anim[data-phase="1"] .flow-node--channel,
.flow-anim[data-phase="3"] .flow-node--source,
.flow-anim[data-phase="4"] .flow-node--source {
  opacity: 0.45;
}

.flow-anim[data-phase="2"] .flow-node--source,
.flow-anim[data-phase="4"] .flow-node--channel {
  opacity: 0.45;
}

.flow-anim[data-phase="1"] .flow-node--report,
.flow-anim[data-phase="2"] .flow-node--report,
.flow-anim[data-phase="3"] .flow-node--report {
  opacity: 0.35;
}

.flow-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lf-blue);
  box-shadow: 0 0 8px rgba(29, 78, 216, 0.5);
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}

.flow-particle--order {
  width: 18px;
  height: 18px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--lf-green-dark, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-particle--order svg {
  width: 16px;
  height: 16px;
  display: block;
}

.flow-anim[data-phase="1"] .flow-particle--in {
  animation: particleIn 2.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.flow-anim[data-phase="2"] .flow-particle--out {
  animation: particleOut 2.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.flow-anim[data-phase="3"] .flow-particle--order {
  animation: particleOrder 2.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.flow-anim[data-phase="4"] .flow-particle--report {
  animation: particleReport 2.2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.flow-particle--report {
  background: #7c3aed;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

.flow-particle--chart {
  width: 18px;
  height: 18px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-particle--chart svg {
  width: 16px;
  height: 16px;
  display: block;
}

@keyframes particleIn {
  0% {
    left: var(--from-x);
    top: var(--from-y);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% {
    left: 50%;
    top: 44%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
}

@keyframes particleOut {
  0% {
    left: 50%;
    top: 44%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% {
    left: var(--to-x);
    top: var(--to-y);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
}

@keyframes particleOrder {
  0% {
    left: var(--from-x);
    top: var(--from-y);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% {
    left: 50%;
    top: 44%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
}

@keyframes particleReport {
  0% {
    left: 50%;
    top: 44%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  85% { opacity: 1; }
  100% {
    left: var(--to-x);
    top: var(--to-y);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
}

.flow-anim-caption {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  min-height: 2.9em;
  transition: opacity 0.3s ease;
}

/* ── Demo card (legacy) ── */

.demo-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--color-border);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }

.demo-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.demo-body {
  display: flex;
  min-height: 320px;
}

.demo-sidebar {
  width: 48px;
  background: #f9f9f9;
  border-right: 1px solid var(--color-border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-nav-item {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #eee;
}

.demo-nav-item.active {
  background: var(--lf-blue-light);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.demo-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-stat-row {
  display: flex;
  gap: 24px;
}

.demo-stat {
  display: flex;
  flex-direction: column;
}

.demo-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.demo-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.demo-stat-unit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.demo-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 8px 0;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--lf-blue), var(--lf-blue-medium));
  border-radius: 4px 4px 0 0;
  animation: barGrow 1.2s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }
.chart-bar:nth-child(8) { animation-delay: 0.8s; }

@keyframes barGrow {
  to { transform: scaleY(1); }
}

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

.event-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.event-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-status.success { background: var(--color-success); }
.event-status.pending {
  background: #febc2e;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.event-text {
  flex: 1;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.event-time {
  font-size: 0.6875rem;
  color: #aaa;
}

/* ── Customers bar ── */

.customers-bar {
  padding: 44px 0 52px;
  background: transparent;
}

.customers-bar-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.customers-bar-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.customers-bar-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  list-style: none;
  padding: 8px 0;
  animation: customers-marquee 28s linear infinite;
}

.customer-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.customer-logo--tall {
  height: 56px;
  max-width: 150px;
}

.customer-logo--wide {
  height: 42px;
  max-width: 220px;
}

@keyframes customers-marquee {
  from { transform: translateX(-33.333%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .customers-bar-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 24px;
    gap: 40px 56px;
  }

  .customers-bar-track li[aria-hidden="true"] {
    display: none;
  }

  .customers-bar-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 640px) {
  .customers-bar {
    padding: 36px 0 40px;
  }

  .customers-bar-track {
    gap: 48px;
    animation-duration: 22s;
  }

  .customer-logo {
    height: 40px;
    max-width: 160px;
  }

  .customer-logo--tall {
    height: 48px;
    max-width: 120px;
  }

  .customer-logo--wide {
    height: 36px;
    max-width: 180px;
  }
}

/* ── Logos ── */

.logos-section {
  padding: 48px 0 80px;
  border-bottom: 1px solid var(--color-border);
}

.logos-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.logos-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ccc;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.logo-item:hover {
  color: var(--color-text-muted);
}

/* ── Sections ── */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-grid--core {
  grid-template-columns: repeat(3, 1fr);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.promise-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.section-alt .promise-item {
  background: var(--color-bg);
}

.promise-item strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.promise-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ── Photo briefs (placeholders for future photography) ── */

.photo-brief {
  margin: 0 0 36px;
  padding: 18px 20px;
  border: 1px dashed var(--lf-gray-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.photo-brief--band {
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: var(--lf-blue-light);
  border-color: rgba(29, 78, 216, 0.15);
}

.photo-brief--band .container {
  padding-top: 4px;
  padding-bottom: 4px;
}

.photo-brief-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lf-blue);
}

.photo-brief-hint {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.photo-brief-hint strong {
  color: var(--color-text);
  font-weight: 600;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card--large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
}

.feature-card--large .feature-card-content {
  flex: 1;
}

.feature-card--large .feature-card-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--lf-blue-light);
  color: var(--lf-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-diagram .flow-node {
  padding: 12px 20px;
  background: #f5f5f5;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.flow-diagram .flow-node--accent {
  background: var(--lf-blue);
  color: var(--lf-white);
}

.flow-diagram .flow-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-border), var(--color-accent));
  position: relative;
}

.flow-diagram .flow-line::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  top: -2px;
  animation: flowDot 2s ease-in-out infinite;
}

@keyframes flowDot {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

/* ── Solutions ── */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.solution-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.solution-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.solution-number {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.solution-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Stats ── */

.stats-section {
  padding: 80px 0;
  background: var(--color-dark);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.stat-label {
  width: 100%;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

/* ── CTA ── */

.cta-section {
  padding: 100px 0;
}

.cta-card {
  position: relative;
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape-5 {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -40px;
  background: rgba(29, 78, 216, 0.15);
  border-color: rgba(29, 78, 216, 0.25);
  animation: float 8s ease-in-out infinite;
}

.shape-6 {
  width: 100px;
  height: 100px;
  bottom: -30px;
  left: 10%;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite reverse;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-card .btn-primary {
  background: var(--lf-blue);
  color: var(--lf-white);
}

.cta-card .btn-primary:hover {
  background: var(--lf-blue-dark);
}

/* ── Footer ── */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo img {
  height: 32px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

/* ── Scroll reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── AI Showcase ── */

.ai-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--lf-white) 0%, var(--color-bg) 100%);
}

.ai-intro {
  max-width: 640px;
  margin-bottom: 40px;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--lf-blue-light);
  color: var(--lf-blue);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.ai-intro h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.ai-intro-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--lf-navy);
  margin: 0 0 16px;
}

.ai-intro p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.ai-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--lf-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.ai-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.ai-flow-step--accent {
  color: var(--lf-blue);
}

.ai-flow-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.ai-flow-step--accent .ai-flow-num {
  background: var(--lf-blue);
  color: var(--lf-white);
}

.ai-flow-arrow {
  color: var(--lf-gray-light);
  font-size: 1.125rem;
}

.ai-demo {
  background: var(--lf-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ai-demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #f9fafb;
  border-bottom: 1px solid var(--color-border);
}

.ai-demo-breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--lf-blue);
  color: var(--lf-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}

.ai-btn:hover {
  background: var(--lf-blue-dark);
  transform: translateY(-1px);
}

.ai-btn.running {
  pointer-events: none;
  opacity: 0.85;
}

.ai-btn.done {
  background: var(--lf-green);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.ai-demo-stack {
  display: flex;
  flex-direction: column;
}

.ai-demo-image-block {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #fafbfc;
}

.ai-product-photo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f3f4f6;
}

.ai-product-img {
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: 4px;
}

.ai-product-gallery {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f3f4f6;
  align-content: stretch;
}

.ai-product-tile {
  position: relative;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #e5e7eb;
  min-height: 0;
  height: 100%;
  cursor: pointer;
}

.ai-product-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8fafc;
}

.ai-product-tile.is-active,
.ai-product-tile:focus-visible {
  border-color: var(--lf-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
}

.ai-product-tile-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ai-file-item.is-series-selected {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.45);
}

.ai-file-item.is-series-selected .ai-file-thumb {
  box-shadow: inset 0 0 0 2px var(--lf-blue);
}

.ai-upload-hint {
  font-size: 0.75rem;
  color: var(--lf-gray-medium);
}

.ai-demo-fields-block {
  padding: 24px;
  min-height: 200px;
  transition: background var(--transition);
}

.ai-fields-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  padding: 32px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--lf-gray-medium);
  background: var(--color-bg);
}

.ai-fields-placeholder.hidden {
  display: none;
}

.ai-fields-content {
  animation: fieldsReveal 0.6s ease forwards;
}

.ai-fields-content[hidden] {
  display: none !important;
}

@keyframes fieldsReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-fields-grid--custom {
  margin-bottom: 0;
}

.ai-field--wide {
  grid-column: span 2;
}

.ai-estimator--inline {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-panel-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.ai-panel-head h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  flex: 0 0 auto;
}

.ai-panel-head h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.ai-scan-status {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
  text-align: right;
}

.ai-scan-status.active {
  color: var(--lf-blue);
}

.ai-scan-status.done {
  color: var(--lf-green);
}

.ai-change-photo {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(29, 78, 216, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--lf-blue);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ai-change-photo:hover,
.ai-change-photo:focus-visible {
  background: #eff6ff;
  border-color: rgba(29, 78, 216, 0.5);
  outline: none;
}

.ai-change-photo[hidden] {
  display: none !important;
}

.ai-field {
  margin-bottom: 14px;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.ai-field.filled {
  opacity: 1;
}

.ai-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ai-field label .req {
  color: var(--lf-red);
}

.ai-input {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--lf-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-input--select::after {
  content: '▾';
  float: right;
  color: var(--lf-gray-medium);
}

.ai-input--area {
  min-height: 64px;
}

.ai-value {
  color: var(--color-text);
}

.ai-value[data-empty="true"]::before {
  content: attr(data-placeholder);
  color: var(--lf-gray-medium);
}

.ai-field.filling .ai-input {
  border-color: var(--lf-blue-medium);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ai-field.filled .ai-input {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}

.ai-custom-block {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px dashed var(--lf-blue-light);
}

.ai-custom-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ai-custom-head em {
  color: var(--lf-blue);
  font-style: normal;
  font-weight: 600;
}

.ai-predict-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--lf-blue-light);
  color: var(--lf-blue);
  border-radius: 999px;
}

.ai-upload {
  position: relative;
  min-height: 180px;
  border: 2px dashed var(--lf-blue-medium);
  border-radius: var(--radius-md);
  background: var(--lf-white);
  overflow: hidden;
}

.ai-upload.is-filled {
  border-style: solid;
  border-color: var(--lf-blue-light);
  background: #f3f4f6;
}

.ai-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 180px;
  color: var(--lf-gray-medium);
  font-size: 0.8125rem;
  text-align: center;
  padding: 16px;
}

.ai-upload-cta {
  position: relative;
  margin-top: 4px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--lf-blue);
  color: var(--lf-white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.35);
  transition: background var(--transition), transform var(--transition);
  animation: aiUploadPulse 2.2s ease-in-out infinite;
}

.ai-upload-cta:hover,
.ai-upload-cta:focus-visible {
  background: var(--lf-blue-dark);
  transform: translateY(-1px);
  outline: none;
}

.ai-upload-cta:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45), 0 2px 10px rgba(29, 78, 216, 0.35);
}

.ai-demo.is-picking .ai-upload-cta,
.ai-demo.has-product .ai-upload-cta {
  animation: none;
}

@keyframes aiUploadPulse {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.35), 0 0 0 0 rgba(29, 78, 216, 0.45);
  }
  55% {
    box-shadow: 0 2px 14px rgba(29, 78, 216, 0.45), 0 0 0 12px rgba(29, 78, 216, 0);
  }
}

.ai-fake-cursor {
  position: absolute;
  z-index: 5;
  width: 24px;
  height: 24px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l1.5 15.5 3.2-3.2 3.3 6.4 2.2-1.1-3.3-6.3L17 13.5 5 3z' fill='%230f172a' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ai-fake-cursor.is-visible {
  opacity: 1;
}

.ai-fake-cursor.is-clicking {
  transform: scale(0.88);
}

.ai-file-picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ai-file-picker[hidden] {
  display: none !important;
}

.ai-file-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.ai-file-picker-window {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #f6f7f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.28),
    0 2px 8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  animation: aiPickerIn 0.28s ease;
}

@keyframes aiPickerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-file-picker-titlebar {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #eceef2, #e3e6eb);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ai-file-picker-traffic {
  display: flex;
  gap: 6px;
}

.ai-file-picker-traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.ai-file-picker-traffic span:nth-child(1) { background: #ff5f57; }
.ai-file-picker-traffic span:nth-child(2) { background: #febc2e; }
.ai-file-picker-traffic span:nth-child(3) { background: #28c840; }

.ai-file-picker-title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.ai-file-picker-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ai-file-picker-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.ai-file-picker-path {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ai-file-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: #fff;
}

.ai-file-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-file-item:hover,
.ai-file-item:focus-visible {
  background: #f1f5f9;
  border-color: rgba(29, 78, 216, 0.25);
  outline: none;
  transform: translateY(-1px);
}

.ai-file-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.ai-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-file-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.ai-file-meta {
  font-size: 0.6875rem;
  color: #64748b;
}

.ai-file-picker-footer {
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
}

.ai-file-picker-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.ai-file-picker-footer a {
  color: var(--lf-blue);
  font-weight: 600;
  text-decoration: none;
}

.ai-file-picker-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .ai-file-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-upload.ai-upload--hero {
    min-height: 460px;
    height: 460px;
  }

  .ai-product-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .ai-product-tile {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}

/* Must follow .ai-upload - same specificity otherwise loses to min-height: 180px */
.ai-upload.ai-upload--hero {
  min-height: 520px;
  height: 520px;
}

.ai-upload.ai-upload--hero .ai-upload-placeholder {
  height: 100%;
}

.ai-upload.ai-upload--hero .ai-product-gallery {
  padding: 16px;
}

.ai-upload-placeholder[hidden],
.ai-upload-image[hidden] {
  display: none !important;
}

.ai-upload-image {
  position: absolute;
  inset: 0;
  height: auto;
  background: #f3f4f6;
}

.ai-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lf-blue), transparent);
  box-shadow: 0 0 12px var(--lf-blue);
  top: 0;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

.ai-demo.scanning .ai-scan-line {
  opacity: 1;
  animation: aiScan 1.8s ease-in-out infinite;
}

@keyframes aiScan {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 3px); }
}

.ai-detect-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.ai-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 3px 8px;
  background: rgba(29, 78, 216, 0.9);
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ai-demo.scanning .ai-tag,
.ai-demo.done .ai-tag {
  opacity: 1;
  transform: scale(1);
}

.ai-demo.scanning .ai-tag:nth-child(1) { transition-delay: 0.25s; }
.ai-demo.scanning .ai-tag:nth-child(2) { transition-delay: 0.5s; }
.ai-demo.scanning .ai-tag:nth-child(3) { transition-delay: 0.75s; }
.ai-demo.scanning .ai-tag:nth-child(4) { transition-delay: 1s; }

.ai-estimator-body {
  padding: 16px;
  background: var(--lf-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-height: 100px;
}

.ai-estimator-empty {
  font-size: 0.8125rem;
  color: var(--lf-gray-medium);
}

.ai-estimator-result {
  text-align: center;
}

.ai-estimator-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.ai-estimator-price {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--lf-blue);
  letter-spacing: -0.02em;
}

.ai-estimator-note {
  display: block;
  font-size: 0.6875rem;
  color: var(--lf-gray-medium);
  margin-top: 6px;
}

.ai-extract-log {
  padding: 16px 24px;
  background: var(--lf-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-log-line {
  opacity: 0;
  transform: translateX(-8px);
  animation: logIn 0.35s ease forwards;
}

.ai-log-line--idle {
  opacity: 1;
  transform: none;
  animation: none;
  color: rgba(255, 255, 255, 0.5);
}

.ai-log-line strong {
  color: var(--lf-blue-medium);
}

@keyframes logIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 16px 0 56px;
}

.ai-feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 22px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-feature-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.ai-feature-item--scan {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 55%);
  border-color: rgba(29, 78, 216, 0.16);
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.06);
}

.ai-feature-item--scan::before {
  background: linear-gradient(180deg, var(--lf-blue), var(--lf-blue-medium));
}

.ai-feature-item--scan .ai-feature-icon {
  background: var(--lf-blue);
  color: #fff;
}

.ai-feature-item--scan .ai-feature-label {
  color: var(--lf-blue);
  background: rgba(29, 78, 216, 0.1);
}

.ai-feature-item--control {
  background: linear-gradient(160deg, #f1f5f9 0%, #ffffff 55%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ai-feature-item--control::before {
  background: linear-gradient(180deg, var(--lf-navy), #475569);
}

.ai-feature-item--control .ai-feature-icon {
  background: var(--lf-navy);
  color: #fff;
}

.ai-feature-item--control .ai-feature-label {
  color: var(--lf-navy);
  background: rgba(15, 23, 42, 0.08);
}

.ai-feature-item--result {
  background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 55%);
  border-color: rgba(34, 197, 94, 0.18);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.07);
}

.ai-feature-item--result::before {
  background: linear-gradient(180deg, var(--lf-green-dark), var(--lf-green));
}

.ai-feature-item--result .ai-feature-icon {
  background: var(--lf-green-dark);
  color: #fff;
}

.ai-feature-item--result .ai-feature-label {
  color: var(--lf-green-dark);
  background: rgba(34, 197, 94, 0.14);
}

.ai-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.ai-feature-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-feature-item strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--lf-navy);
  margin: 0;
}

.ai-feature-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.ai-feature-item a {
  color: var(--lf-blue);
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .ai-feature-item:hover {
    transform: translateY(-3px);
  }

  .ai-feature-item--scan:hover {
    box-shadow: 0 16px 36px rgba(29, 78, 216, 0.12);
  }

  .ai-feature-item--control:hover {
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  }

  .ai-feature-item--result:hover {
    box-shadow: 0 16px 36px rgba(22, 163, 74, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-particle,
  .flow-hub-pulse,
  .flow-line {
    animation: none !important;
  }

  .flow-anim[data-phase="1"] .flow-line--in,
  .flow-anim[data-phase="2"] .flow-line--out,
  .flow-anim[data-phase="3"] .flow-line--order,
  .flow-anim[data-phase="4"] .flow-line--report {
    opacity: 1;
  }

  .ai-feature-item,
  .ai-feature-item:hover {
    transform: none !important;
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-visual {
    max-width: 560px;
    margin: 0 auto;
  }

  .flow-anim-step {
    font-size: 0.625rem;
    padding: 6px 4px;
  }

  .flow-anim-stage {
    height: 360px;
  }

  .flow-node-label {
    font-size: 0.625rem;
    max-width: 72px;
  }

  .feature-card--large {
    grid-column: span 1;
    flex-direction: column;
  }

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

  .feature-grid--core {
    grid-template-columns: 1fr;
  }

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

  .feature-card--large {
    grid-column: span 1;
  }

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

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

  .ai-fields-grid {
    grid-template-columns: 1fr;
  }

  .ai-field--wide {
    grid-column: span 1;
  }

  .ai-features {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ai-feature-item {
    padding: 20px 18px 22px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: relative;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 102;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    background: var(--lf-white);
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 101;
    height: calc(100dvh - 72px);
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--lf-white);
    padding: 28px 28px 32px;
    border: none;
    box-shadow: none;
    gap: 4px;
    animation: navPanelIn 0.22s ease;
  }

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

  .nav.open .nav-links > li > a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--lf-black);
    text-align: left;
  }

  .nav.open .nav-links > li > a:not(.btn):active,
  .nav.open .nav-links > li > a:not(.btn):hover {
    color: var(--lf-blue);
  }

  .nav.open .nav-links > li > a[aria-current="page"] {
    color: var(--lf-blue);
    font-weight: 600;
  }

  .nav.open .nav-menu-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    padding-top: 40px;
    border-top: none;
  }

  .nav.open .nav-menu-cta .btn {
    width: 100%;
    min-height: 52px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
  }

  .nav.open .nav-menu-cta .nav-login-btn,
  .nav.open .nav-menu-cta .btn-ghost {
    order: 1;
    justify-content: space-between;
    padding: 14px 22px;
    color: var(--lf-blue);
    background: transparent;
    border: 1.5px solid var(--lf-blue);
  }

  .nav.open .nav-menu-cta .nav-login-icon {
    display: block;
  }

  .nav.open .nav-menu-cta .btn-ghost:hover {
    background: var(--lf-blue-light);
    border-color: var(--lf-blue);
    color: var(--lf-blue);
  }

  .nav.open .nav-menu-cta .btn-primary {
    order: 2;
    justify-content: center;
    text-align: center;
    padding: 16px 22px;
    color: var(--lf-white);
    background: var(--lf-navy);
    border-color: var(--lf-navy);
    box-shadow: none;
  }

  .nav.open .nav-menu-cta .btn-primary:hover {
    background: var(--lf-navy-light);
    border-color: var(--lf-navy-light);
    color: var(--lf-white);
    transform: none;
  }

  .hero {
    padding: 120px 0 64px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .ai-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-flow-arrow {
    display: none;
  }
}

/* ── Preview password gate ── */
html.lf-gate-pending body,
html.lf-gate-locked body > *:not(#lf-site-gate) {
  visibility: hidden !important;
}

#lf-site-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(29, 78, 216, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(39, 65, 147, 0.1), transparent 45%),
    var(--color-bg);
  visibility: visible !important;
}

.lf-gate-card {
  width: min(100%, 400px);
  padding: 36px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.lf-gate-logo {
  height: 28px;
  width: auto;
  margin: 0 auto 20px;
}

.lf-gate-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.lf-gate-card > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.lf-gate-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  text-align: left;
}

.lf-gate-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.lf-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lf-gate-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.lf-gate-error {
  margin: 0;
  color: var(--lf-red);
  font-size: 0.875rem;
}

.lf-gate-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
