/* ═══════════════════════════════════════════
   Orchard — Instant Business Summaries & Funnel Intelligence
   ═══════════════════════════════════════════ */

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

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #FAFAF7;
  --bg-white: #FFFFFF;
  --bg-tinted: #F3F2EE;
  --text: #1A1A18;
  --text-secondary: #5C5C56;
  --text-tertiary: #9C9C94;
  --accent: #5746EC;
  --accent-light: #EEEDFD;
  --accent-hover: #4636D4;
  --accent-subtle: rgba(87, 70, 236, 0.07);
  --accent-glow: rgba(87, 70, 236, 0.15);
  --border: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ═══════════════════════════════
   NAVIGATION
   ═══════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  background: rgba(250, 250, 247, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 1px 0 var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: mediumslateblue;
  font-weight: 700;
  font-size: 3.15rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-center a {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 550;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #333330;
}

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

.btn-secondary:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--text-tertiary);
}

.btn-lg {
  padding: 0.75rem 1.65rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

/* ═══════════════════════════════
   MOBILE NAV
   ═══════════════════════════════ */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 200;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-out);
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 8px; }
.mobile-toggle span:nth-child(3) { top: 16px; }

.mobile-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  background: var(--accent-light);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-pill-icon {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pill-icon svg {
  width: 11px;
  height: 11px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.8vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Email Signup Forms ── */
.hero-signup,
.cta-signup {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-signup:focus-within,
.cta-signup:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hero-signup.signup-error,
.cta-signup.signup-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  animation: shake 0.4s var(--ease-out);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.signup-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 550;
}

.hero-email-input,
.cta-email-input {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  width: 240px;
  min-width: 0;
}

.hero-email-input::placeholder,
.cta-email-input::placeholder {
  color: var(--text-tertiary);
}

.hero-signup .btn,
.cta-signup .btn {
  border-radius: 0;
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
}

.cta-signup {
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.cta-email-input {
  width: 280px;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
}

.cta-signup .btn {
  padding: 0.85rem 1.65rem;
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.hero-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.hero-meta-item strong {
  font-weight: 600;
  color: var(--text-secondary);
}

/* ═══════════════════════════════
   RECORD TABLE HERO VISUAL
   ═══════════════════════════════ */
.hero-visual {
  position: relative;
}

.record-scene {
  position: relative;
  min-height: 380px;
}

/* ── Central record card ── */
.record-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 310px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.05);
}

.record-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.record-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.record-card-title-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-card-title-icon svg {
  width: 13px;
  height: 13px;
}

.record-card-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: var(--accent-light);
  color: var(--accent);
}

.record-card-body {
  padding: 0.3rem 0;
}

.record-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  position: relative;
  transition: background 0.2s;
}

.record-field:hover {
  background: rgba(0,0,0,0.015);
}

.record-field-icon {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.record-field-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.record-field-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-width: 72px;
  flex-shrink: 0;
}

.record-field-value {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.record-field-value .health-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
}

.record-field-value .health-dot.warn { background: #F59E0B; }

.record-field-more {
  justify-content: center;
  padding: 0.4rem 1.1rem;
  border-top: 1px solid var(--border);
}

.record-field-more .record-field-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  min-width: unset;
  font-weight: 450;
}

/* ── Source nodes around the card ── */
.source-node {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--text);
  z-index: 4;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  white-space: nowrap;
}

.source-node img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

/* Source node positioning by slot */
.source-node:nth-child(1) { top: 2%;  left: 0; }
.source-node:nth-child(2) { top: 2%;  right: 0; }
.source-node:nth-child(3) { top: 36%; left: -8%; }
.source-node:nth-child(4) { top: 36%; right: -8%; }
.source-node:nth-child(5) { bottom: 12%; left: 0; }
.source-node:nth-child(6) { bottom: 12%; right: 0; }

/* ── SVG connection lines ── */
.record-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.record-svg path {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
  opacity: 0.6;
}

.record-svg .flow-dot {
  fill: var(--accent);
}

/* Pulse ring on source nodes */
.source-node::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: srcPulse 8s ease-in-out infinite;
}

.source-node:nth-child(1)::before { animation-delay: 0s; }
.source-node:nth-child(2)::before { animation-delay: 1s; }
.source-node:nth-child(3)::before { animation-delay: 2s; }
.source-node:nth-child(4)::before { animation-delay: 3s; }
.source-node:nth-child(5)::before { animation-delay: 4s; }
.source-node:nth-child(6)::before { animation-delay: 5s; }

@keyframes srcPulse {
  0%, 25%, 100% { opacity: 0; }
  5% { opacity: 0.5; }
  15% { opacity: 0; inset: -8px; }
}

/* ═══════════════════════════════
   RECORD CAROUSEL
   ═══════════════════════════════ */
.record-carousel {
  position: relative;
}

.record-slide {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(30px);
}

.record-slide.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.record-slide.exit-left {
  opacity: 0;
  transform: translateX(-30px);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.carousel-pill {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 550;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.carousel-pill:hover {
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
}

.carousel-pill.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(87, 70, 236, 0.2);
}

/* ═══════════════════════════════
   TEAM CREDIBILITY
   ═══════════════════════════════ */
.team-credibility {
  padding: 5rem 0;
}

.team-inner {
  text-align: center;
}

.team-credibility .section-label {
  display: block;
}

.team-credibility .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
  margin-bottom: 0.75rem;
}

.team-credibility .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.team-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.team-logo-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.team-logo-yc {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-yc svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.team-logo-item span {
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════
   SECTION TYPOGRAPHY
   ═══════════════════════════════ */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 3.5rem;
}

/* ═══════════════════════════════
   FEATURES — Alternating Showcase
   ═══════════════════════════════ */
.features {
  padding: 6rem 0;
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 3rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 6px 20px rgba(0,0,0,0.04);
}

.feature-showcase:last-child {
  margin-bottom: 0;
}

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

.feature-showcase.reverse .feature-mockup {
  order: 2;
}

.feature-showcase.reverse .feature-text {
  order: 1;
}

.feature-text h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── Mockup Frame ── */
.mockup-frame {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
}

.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 5px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mockup-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

.mockup-body {
  padding: 1.25rem;
}

/* ── Daily Summary Mockup ── */
.mockup-summary-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.mockup-summary-row:last-of-type {
  border-bottom: none;
}

.mockup-summary-row.alert {
  background: #FEF3F2;
  border-radius: 6px;
  border-bottom: none;
  margin-top: 0.25rem;
}

.mockup-metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 110px;
}

.mockup-metric-value {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text);
  margin-left: auto;
}

.mockup-metric-delta {
  font-size: 0.68rem;
  font-weight: 550;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  min-width: 100px;
  text-align: center;
}

.mockup-metric-delta.up {
  color: #16A34A;
  background: #F0FDF4;
}

.mockup-metric-delta.flat {
  color: var(--text-tertiary);
  background: var(--bg-tinted);
}

.mockup-metric-delta.down {
  color: #DC2626;
  background: #FEF2F2;
}

.mockup-spark {
  margin-top: 1rem;
  position: relative;
}

.mockup-spark svg {
  width: 100%;
  height: 40px;
  display: block;
}

.mockup-spark-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 0.35rem;
  display: block;
}

/* ── Funnel Mockup ── */
.mockup-funnel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-stage {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  position: relative;
}

.funnel-bar {
  height: 28px;
  background: var(--accent-light);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  transition: width 0.6s var(--ease-out);
}

.funnel-stage.alert .funnel-bar {
  background: #FEF3F2;
}

.funnel-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  min-width: 110px;
  padding-left: 0.5rem;
}

.funnel-count {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text);
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.funnel-alert {
  font-size: 0.65rem;
  font-weight: 550;
  color: #DC2626;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ── Issues Mockup ── */
.mockup-issues {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.issue-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.issue-severity {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.issue-item.critical .issue-severity {
  background: #FEE2E2;
  color: #DC2626;
}

.issue-item.warning .issue-severity {
  background: #FEF3C7;
  color: #D97706;
}

.issue-item.info .issue-severity {
  background: #DBEAFE;
  color: #2563EB;
}

.issue-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.issue-title {
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text);
  line-height: 1.35;
}

.issue-meta {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* ── Customer 360 Mockup ── */
.mockup-record-mini {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.record-mini-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.record-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.record-mini-name {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.record-mini-company {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  display: block;
}

.record-mini-health {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
}

.record-mini-health.good {
  background: #F0FDF4;
  color: #16A34A;
}

.record-mini-sources {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.mini-source {
  font-size: 0.62rem;
  font-weight: 550;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-tinted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.mini-source-more {
  font-size: 0.62rem;
  font-weight: 550;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
}

.record-mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.tl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tl-dot.green { background: #22C55E; }
.tl-dot.blue { background: #3B82F6; }
.tl-dot.gray { background: var(--text-tertiary); }

.tl-text {
  color: var(--text-secondary);
}

.tl-time {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 0.65rem;
  white-space: nowrap;
}

/* ── Universal Search Mockup ── */
.mockup-search {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-input-mock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-tinted);
  border-radius: 8px 8px 0 0;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-query {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.search-shortcut {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.02em;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.search-result-group {
  padding: 0.5rem 0;
}

.search-result-group:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.search-group-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 0 0.8rem 0.35rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  margin: 0 0.35rem;
  transition: background 0.15s;
}

.search-result-item.active {
  background: var(--accent-light);
}

.search-result-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-icon svg {
  width: 14px;
  height: 14px;
}

.search-result-icon.customer {
  background: #EEF2FF;
  color: var(--accent);
}

.search-result-icon.order {
  background: #FFF7ED;
  color: #EA580C;
}

.search-result-icon.ticket {
  background: #F0FDF4;
  color: #16A34A;
}

.search-result-detail {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-source {
  font-size: 0.6rem;
  font-weight: 550;
  color: var(--text-tertiary);
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ═══════════════════════════════
   INTEGRATIONS
   ═══════════════════════════════ */
.integrations {
  padding: 6rem 0;
}

.integrations-header {
  text-align: center;
  margin-bottom: 3rem;
}

.integrations-header .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}

.integrations-header .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.integrations-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.integrations-box::before,
.integrations-box::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 3;
  pointer-events: none;
}

.integrations-box::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-white), transparent);
}

.integrations-box::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-white), transparent);
}

.logo-lane {
  display: flex;
  gap: 1.25rem;
  padding: 0.6rem 0;
  width: max-content;
}

.logo-lane:nth-child(1) { animation: scrollLeft 40s linear infinite; }
.logo-lane:nth-child(2) { animation: scrollRight 45s linear infinite; }
.logo-lane:nth-child(3) { animation: scrollLeft 38s linear infinite; }

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.logo-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
}

.integrations-count {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.integrations-count strong {
  color: var(--text);
  font-weight: 650;
}

/* ═══════════════════════════════
   METRICS
   ═══════════════════════════════ */
.metrics {
  padding: 5rem 0;
}

.metrics-inner {
  background: var(--text);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.metrics-content .section-label { color: rgba(255,255,255,0.4); }
.metrics-content .section-title { color: #fff; }
.metrics-content .section-desc { color: rgba(255,255,255,0.6); margin-bottom: 0; }

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.metric-card {
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-number {
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}

.metric-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.45rem;
  line-height: 1.4;
}

/* ═══════════════════════════════
   FIELD HIGHLIGHT ANIMATION
   ═══════════════════════════════ */
.record-field.highlight {
  background: var(--accent-light);
  transition: background 0.15s ease-in;
}

.record-field.highlight .record-field-icon {
  color: var(--accent);
  transition: color 0.15s ease-in;
}

.record-field:not(.highlight) {
  transition: background 0.5s ease-out;
}

.record-field:not(.highlight) .record-field-icon {
  transition: color 0.5s ease-out;
}

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */
.cta {
  padding: 6rem 0 7rem;
}

.cta-inner {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(87, 70, 236, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(87, 70, 236, 0.06), transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1rem;
  position: relative;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  position: relative;
}

.cta-fine {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 1rem;
  position: relative;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-top: 0.85rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* Reveal base state */
.reveal {
  opacity: 0;
}

.reveal.visible {
  animation-fill-mode: both;
  animation-duration: 0.7s;
  animation-timing-function: var(--ease-out);
}

/* Default animation */
.reveal.visible { animation-name: fadeUp; }

/* Named variants */
.reveal-fade.visible { animation-name: fadeIn; }
.reveal-left.visible { animation-name: slideInLeft; }
.reveal-right.visible { animation-name: slideInRight; }
.reveal-scale.visible { animation-name: scaleIn; }

/* Stagger children */
.stagger-children.visible > * {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.stagger-children.visible > *:nth-child(1) { animation-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { animation-delay: 0.06s; }
.stagger-children.visible > *:nth-child(3) { animation-delay: 0.12s; }
.stagger-children.visible > *:nth-child(4) { animation-delay: 0.18s; }
.stagger-children.visible > *:nth-child(5) { animation-delay: 0.24s; }
.stagger-children.visible > *:nth-child(6) { animation-delay: 0.3s; }

/* Hero-specific entry animations */
.hero-content .hero-pill      { opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0s both; }
.hero-content h1              { opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.08s both; }
.hero-content .hero-desc      { opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.16s both; }
.hero-content .hero-actions   { opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.24s both; }
.hero-content .hero-meta      { opacity: 0; animation: fadeUp 0.7s var(--ease-out) 0.32s both; }
.hero-visual                  { opacity: 0; animation: scaleIn 0.9s var(--ease-out) 0.25s both; }

/* Lazy load images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .feature-showcase,
  .feature-showcase.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }

  .feature-showcase.reverse .feature-mockup { order: 0; }
  .feature-showcase.reverse .feature-text { order: 0; }

  .metrics-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 2rem;
  }

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

@media (max-width: 768px) {
  .nav-center, .nav-right { display: none; }
  .mobile-toggle { display: block; }

  .mobile-nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .mobile-nav.active {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav a {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
  }

  .hero { padding: 7rem 0 3rem; }

  .hero-signup,
  .cta-signup {
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    overflow: visible;
    border: none;
    background: none;
    gap: 0.5rem;
  }

  .hero-signup:focus-within,
  .cta-signup:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .hero-signup.signup-error,
  .cta-signup.signup-error {
    border-color: transparent;
    box-shadow: none;
  }

  .signup-error .hero-email-input,
  .signup-error .cta-email-input {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  }

  .hero-email-input,
  .cta-email-input {
    width: 100%;
    border: 2px solid var(--border-strong);
    border-radius: 10px;
    background: var(--bg-white);
  }

  .hero-email-input:focus,
  .cta-email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }

  .hero-signup .btn,
  .cta-signup .btn {
    border-radius: 10px;
    width: 100%;
    justify-content: center;
  }

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

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .record-card { width: 260px; }

  .source-node {
    font-size: 0.65rem;
    padding: 0.35rem 0.55rem;
  }

  .source-node img { width: 15px; height: 15px; }

  .source-node:nth-child(3) { left: -2%; }
  .source-node:nth-child(4) { right: -2%; }

  .team-logo-item img { width: 36px; height: 36px; border-radius: 8px; }
  .team-logo-yc { width: 36px; height: 36px; }
  .team-logo-yc svg { width: 36px; height: 36px; border-radius: 8px; }
  .team-logo-item span { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cta-actions { flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr; }
  .record-scene { min-height: 380px; }
  .record-card { width: 230px; }
  .record-field { padding: 0.45rem 0.85rem; }
  .source-node { font-size: 0.6rem; padding: 0.3rem 0.45rem; }
  .source-node img { width: 14px; height: 14px; }
}
