/* ===================================================================
   Memosa Landing Page
   Brand: Outfit (display) + Plus Jakarta Sans (body)
   Palette: Amber primary (#e5a30f), Deep Space neutrals
   =================================================================== */

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

:root {
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Amber */
  --amber-300: #fbcf6a;
  --amber-400: #f7b731;
  --amber-500: #e5a30f;
  --amber-600: #c48a09;

  /* Deep Space */
  --space-100: #e2e4e9;
  --space-300: #8b91a0;
  --space-500: #2d3348;
  --space-600: #1c2033;
  --space-700: #13161f;
  --space-800: #0c0e14;

  /* Surfaces */
  --surface-400: #9ca3af;

  /* Semantic */
  --color-bg: var(--space-800);
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(228, 231, 235, 0.10);
  --color-border-focus: rgba(247, 183, 49, 0.4);
  --color-text: var(--space-100);
  --color-text-muted: var(--space-300);
  --color-text-subtle: var(--surface-400);
  --color-primary: var(--amber-400);
  --color-primary-bg: var(--amber-500);
  --color-primary-hover: var(--amber-400);
  --color-primary-pressed: var(--amber-600);
  --color-primary-text: var(--space-800);
  --color-primary-glow: rgba(247, 183, 49, 0.28);
  --color-primary-soft: rgba(247, 183, 49, 0.12);
  --color-success: #22c55e;
  --color-error: #ef4444;
  --process-red: #bf5a5a;
  --process-green: #3a7a5c;
  --process-blue: #5a6abf;
  --process-teal: #1a5c5c;
  --process-mesh-blue: #2a4a6b;
  --process-mesh-amber: #6b4a1a;
  --process-mesh-red: #6b2a2a;

  /* Spacing */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows (dark mode) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 0 3px rgba(247, 183, 49, 0.2);

  /* Transitions */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-slow: 0.25s ease;
}

html {
  /* scroll-behavior handled by JS for controlled duration/easing */
}

html, body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Animated gradient mesh background --- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(229, 163, 15, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(247, 183, 49, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 20%, rgba(240, 99, 24, 0.03) 0%, transparent 50%);
  animation: mesh-drift 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift {
  0% { transform: scale(1) translate(0, 0); }
  33% { transform: scale(1.05) translate(-1%, 2%); }
  66% { transform: scale(0.98) translate(2%, -1%); }
  100% { transform: scale(1.02) translate(-1%, -1%); }
}

/* Subtle grain texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* --- Layout --- */
/* Legacy: keep .container for backward-compat with static/index.html */
.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
}

/* Full scrollable page layout (Jinja2 template) */
.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  width: 100%;
  animation: fade-up 0.8s ease-out both;
}

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

/* --- Wordmark (SVG logo + logotype) --- */
.wordmark {
  margin-bottom: 24px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wordmark svg {
  width: 280px;
  height: auto;
}

/* ── Wordmark bubble effervescence (page-load animation) ──────────
 *
 * LANDING CONTEXT: 280px render width, gradient-mesh background.
 * Rise=44px, opacity peak=0.55, drift=±1.5–3px.
 *
 * The auth pages (canvas-ui/src/styles/auth-pages.css) use SMALLER
 * values tuned for the 200px SVG on a plain dark card
 * (rise=36px, opacity peak=0.38, drift=±1–2px).
 *
 * The settler circle sits at cy=41 (its target position). The
 * animation starts 25px BELOW (translate(0,25px)) and eases to
 * translate(0,0) — an identity transform. This avoids Safari's
 * transform-box:fill-box bug: the resting position is determined
 * solely by the SVG cy attribute, not a persisted CSS transform.
 *
 * Canonical coordinates: see MemosaBrand.tsx block comment (line 60).
 * ─────────────────────────────────────────────────────────────────── */

/* Rising bubbles: float upward with gentle horizontal drift, fade out */
@keyframes wm-bubble-rise {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  5%   { transform: translateY(-1px) translateX(0) scale(0.98); opacity: 0.3; }
  10%  { transform: translateY(-3px) translateX(calc(var(--wm-drift, 0px) * 0.2)) scale(0.95); opacity: 0.55; }
  20%  { transform: translateY(-7px) translateX(calc(var(--wm-drift, 0px) * 0.5)) scale(0.88); opacity: 0.5; }
  30%  { transform: translateY(-12px) translateX(var(--wm-drift, 0px)) scale(0.82); opacity: 0.44; }
  40%  { transform: translateY(-17px) translateX(calc(var(--wm-drift, 0px) * 0.7)) scale(0.74); opacity: 0.37; }
  50%  { transform: translateY(-22px) translateX(calc(var(--wm-drift, 0px) * 0.4)) scale(0.66); opacity: 0.3; }
  60%  { transform: translateY(-27px) translateX(calc(var(--wm-drift, 0px) * 0.8)) scale(0.58); opacity: 0.22; }
  70%  { transform: translateY(-32px) translateX(calc(var(--wm-drift, 0px) * 0.5)) scale(0.5); opacity: 0.15; }
  80%  { transform: translateY(-36px) translateX(var(--wm-drift, 0px)) scale(0.42); opacity: 0.09; }
  90%  { transform: translateY(-40px) translateX(calc(var(--wm-drift, 0px) * 0.7)) scale(0.35); opacity: 0.04; }
  100% { transform: translateY(-44px) translateX(var(--wm-drift, 0px)) scale(0.28); opacity: 0; }
}

/* Settler bubble: starts 25px below cy=41, eases up to identity transform */
@keyframes wm-bubble-settle {
  0%   { transform: translate(0, 25px) scale(0.45); opacity: 0; }
  5%   { transform: translate(0, 24px) scale(0.47); opacity: 0.2; }
  10%  { transform: translate(0, 22px) scale(0.5); opacity: 0.4; }
  20%  { transform: translate(0, 19px) scale(0.56); opacity: 0.6; }
  30%  { transform: translate(0, 15px) scale(0.63); opacity: 0.72; }
  40%  { transform: translate(0, 11px) scale(0.7); opacity: 0.8; }
  50%  { transform: translate(0, 7.5px) scale(0.77); opacity: 0.84; }
  60%  { transform: translate(0, 5px) scale(0.83); opacity: 0.87; }
  70%  { transform: translate(0, 3px) scale(0.89); opacity: 0.89; }
  80%  { transform: translate(0, 1.5px) scale(0.94); opacity: 0.9; }
  90%  { transform: translate(0, 0.5px) scale(0.98); opacity: 0.9; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.9; } /* identity — resting pos = SVG cy=41 */
}

.wm-bubble {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: wm-bubble-rise var(--wm-dur, 1.8s) ease-out var(--wm-delay, 0s) both;
}

.wm-bubble--1 { --wm-delay: 0.2s; --wm-dur: 1.6s; --wm-drift: 3px; }
.wm-bubble--2 { --wm-delay: 0.5s; --wm-dur: 1.5s; --wm-drift: -2px; }
.wm-bubble--3 { --wm-delay: 0.1s; --wm-dur: 1.7s; --wm-drift: 2px; }
.wm-bubble--4 { --wm-delay: 0.7s; --wm-dur: 1.4s; --wm-drift: -3px; }
.wm-bubble--5 { --wm-delay: 0.35s; --wm-dur: 1.55s; --wm-drift: 2.5px; }
.wm-bubble--6 { --wm-delay: 0.85s; --wm-dur: 1.3s; --wm-drift: -1.5px; }

/* The survivor bubble settles into the period position */
.wm-period-new {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: wm-bubble-settle 2s ease-out 0.4s both;
}

/* Wordmark hover — subtle glow on the settled period */
.wordmark:hover .wm-period-new {
  filter: drop-shadow(0 0 4px rgba(247, 183, 49, 0.5));
  transition: filter 0.3s ease;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(253, 228, 168, 0.82);
}

/* --- Tagline --- */
.tagline {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-weight: 400;
}

/* --- Form container (frosted glass with amber accent) --- */
.form-container {
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 5px;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
}

.form-container:focus-within {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 4px var(--color-primary-soft), 0 0 30px rgba(247, 183, 49, 0.06);
  transform: scale(1.01);
}

.form-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* --- Email input --- */
.email-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 16px;
  padding: 14px 20px;
  outline: none;
  font-family: var(--font-body);
  min-width: 0;
}

.email-input::placeholder {
  color: rgba(139, 145, 160, 0.6);
}

/* --- Submit button (amber CTA — dark text on amber bg) --- */
.submit-btn {
  position: relative;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
  margin: 4px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.submit-btn:active:not(:disabled) {
  background: var(--color-primary-pressed);
  transform: scale(0.98);
  box-shadow: none;
}

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

/* Button inner elements */
.btn-text, .btn-spinner, .btn-check {
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-spinner, .btn-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
}

/* Loading spinner */
.btn-spinner::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(12, 14, 20, 0.2);
  border-top-color: var(--color-primary-text);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Button states */
.submit-btn.is-loading .btn-text { opacity: 0; transform: scale(0.8); }
.submit-btn.is-loading .btn-spinner { opacity: 1; transform: scale(1); }

.submit-btn.is-success { background: var(--color-success); color: #ffffff; }
.submit-btn.is-success .btn-text { opacity: 0; transform: scale(0.8); }
.submit-btn.is-success .btn-check { opacity: 1; transform: scale(1); }

/* --- Error message --- */
.form-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 0;
  padding: 4px 16px 0;
  min-height: 0;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.form-error.visible {
  opacity: 1;
  margin-top: 4px;
  min-height: 18px;
}

/* Shake animation for invalid input */
.form-container.shake {
  animation: shake 0.4s ease-in-out;
}

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

.form-container.has-error {
  border-color: rgba(239, 68, 68, 0.5);
}

/* --- Sub text --- */
.sub-text {
  font-size: 14px;
  color: rgba(139, 145, 160, 0.5);
  margin-top: 20px;
  transition: opacity var(--transition-slow);
}

/* --- Success state --- */
.success-state[hidden] {
  display: none;
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fade-up 0.5s ease-out both;
}

.success-icon {
  color: var(--color-success);
  margin-bottom: 4px;
}

.success-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
}

.success-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* --- Hero section wrapper (full-viewport first screen) --- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  width: 100%;
  position: relative;
}

/* --- Scroll hint (animated chevron at bottom of hero) --- */
.scroll-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-muted);
  opacity: 0;
  animation:
    scroll-hint-appear 0.6s ease-out 1.6s forwards,
    scroll-hint-bounce 2s ease-in-out 2.2s infinite;
  cursor: pointer;
  text-decoration: none;
  z-index: 10;
  padding: 12px 20px;
}

@keyframes scroll-hint-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}

@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(5px); }
}

/* --- Generic section --- */
.section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-subheading {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Product section --- */
.product-section {
  padding-top: 60px;
  max-width: 1248px;
}

.process-flow-header {
  margin-bottom: 48px;
}

.process-flow__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.process-flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.process-flow > * {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.process-flow > :nth-child(1) { animation-delay: 0.12s; }
.process-flow > :nth-child(2) { animation-delay: 0.32s; }
.process-flow > :nth-child(3) { animation-delay: 0.48s; }
.process-flow > :nth-child(4) { animation-delay: 0.64s; }
.process-flow > :nth-child(5) { animation-delay: 0.8s; }

.process-card {
  position: relative;
  flex: 1 1 0;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(228, 231, 235, 0.10);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.process-card--active {
  flex: 1.12 1 0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(247, 183, 49, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.process-card--active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 183, 49, 0.95), transparent);
}

.process-card__step {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 228, 233, 0.62);
  margin-bottom: 6px;
  text-align: center;
}

.process-card__step--active {
  color: var(--color-primary);
}

.process-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 20px;
  text-align: center;
}

.process-card__title-accent {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 400;
}

.process-card__text {
  font-size: 10.5px;
  color: rgba(226, 228, 233, 0.42);
  margin: 0 0 12px;
  line-height: 1.5;
  text-align: center;
}

.process-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

.process-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  animation: process-float 4.5s ease-in-out infinite;
}

.process-doc:nth-child(2) { animation-delay: 0.6s; }
.process-doc:nth-child(3) { animation-delay: 1.2s; }
.process-doc:nth-child(4) { animation-delay: 1.8s; }

.process-card__speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(247, 183, 49, 0.08);
  border: 1px solid rgba(247, 183, 49, 0.12);
  font-size: 10px;
  color: var(--amber-300);
  font-weight: 600;
}

.process-doc__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-doc__icon--pdf { color: var(--process-red); }
.process-doc__icon--xls { color: var(--process-green); }
.process-doc__icon--report { color: var(--process-blue); }
.process-doc__icon--img { color: var(--color-primary); }

.process-doc__body {
  text-align: left;
}

.process-doc__title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
}

.process-doc__desc {
  font-size: 10.5px;
  color: rgba(226, 228, 233, 0.35);
  margin-top: 1px;
  line-height: 1.4;
}

.process-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  color: var(--color-primary);
}

.process-arrow svg {
  display: block;
}

.process-arrow__line {
  animation: process-dash 1.5s linear infinite;
}

.process-graph {
  position: relative;
  flex: 1;
  min-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(circle at 30% 25%, rgba(90, 106, 191, 0.12), transparent 38%),
    radial-gradient(circle at 75% 20%, rgba(26, 92, 92, 0.12), transparent 34%),
    radial-gradient(circle at 50% 70%, rgba(107, 74, 26, 0.18), transparent 42%),
    rgba(12, 14, 20, 0.55);
}

.process-graph__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.process-graph__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.process-graph__badge {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  border-radius: 50%;
  border: 1.5px solid rgba(247, 183, 49, 0.25);
  background: radial-gradient(circle, rgba(247, 183, 49, 0.18), transparent 70%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.process-graph__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-300);
  background: rgba(12, 14, 20, 0.75);
  padding: 2px 6px;
  border-radius: 3px;
}

.process-canvas {
  background: rgba(12, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.process-canvas__toolbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.process-canvas__dots {
  display: flex;
  gap: 5px;
}

.process-canvas__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.process-canvas__dot--red { background: #bf5a5a; }
.process-canvas__dot--yellow { background: #c48a09; }
.process-canvas__dot--green { background: #3a7a5c; }

.process-canvas__title {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(226, 228, 233, 0.45);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-canvas__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.process-canvas__badge-grade {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--space-800);
  font-size: 9px;
  font-weight: 700;
}

.process-canvas__badge-status {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(58, 122, 92, 0.2);
  border: 1px solid rgba(58, 122, 92, 0.3);
  color: #5cb88a;
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.process-canvas__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  justify-content: space-between;
}

.process-canvas__section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
}

.process-canvas__section--active {
  background: rgba(247, 183, 49, 0.06);
  border-left-color: var(--color-primary);
}

.process-canvas__section-bar {
  width: 3px;
  height: 12px;
  border-radius: 999px;
  background: rgba(226, 228, 233, 0.15);
  flex-shrink: 0;
}

.process-canvas__section-name {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(226, 228, 233, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-canvas__section--active .process-canvas__section-name {
  color: var(--color-text);
  font-weight: 600;
}

.process-canvas__check {
  color: #5cb88a;
  margin-left: auto;
  flex-shrink: 0;
}

.process-canvas__cursor {
  width: 1.5px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 1px;
  animation: process-cursor-blink 1s step-end infinite;
}

.process-canvas__ai-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.015);
}

.process-canvas__brush {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(247, 183, 49, 0.08);
  border: 1px solid rgba(247, 183, 49, 0.12);
  font-size: 9px;
  font-weight: 600;
  color: var(--amber-300);
}

.process-canvas__brush svg {
  color: var(--color-primary);
}

.process-canvas__features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.process-canvas__feat {
  font-size: 10px;
  color: rgba(226, 228, 233, 0.45);
  font-weight: 500;
}

.process-canvas__feat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(226, 228, 233, 0.2);
}

@keyframes process-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes process-dash {
  to { stroke-dashoffset: -12; }
}

@keyframes process-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* --- Comparison section --- */
.comparison-section {
  padding-top: 32px;
}

.comparison-header {
  margin-bottom: 48px;
}

.comparison__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.comparison__accent {
  color: var(--color-primary);
}

.comparison-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-stack > * {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.comparison-stack > :nth-child(1) { animation-delay: 0.12s; }
.comparison-stack > :nth-child(2) { animation-delay: 0.32s; }
.comparison-stack > :nth-child(3) { animation-delay: 0.52s; }

.comparison-row {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px 28px;
}

.comparison-row--old {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row--old::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      rgba(255, 255, 255, 0.008) 4px
    );
  pointer-events: none;
}

.comparison-row--new {
  background: rgba(247, 183, 49, 0.06);
  border: 1px solid rgba(247, 183, 49, 0.12);
}

.comparison-row--new::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 183, 49, 0.08), transparent 70%);
  pointer-events: none;
}

.comparison-row--new::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 183, 49, 0.35), transparent);
}

.comparison-row__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.comparison-row__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.comparison-icon {
  flex-shrink: 0;
}

.comparison-icon--old {
  color: var(--process-red);
}

.comparison-icon--new {
  color: var(--color-primary);
}

.comparison-row__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(226, 228, 233, 0.52);
  letter-spacing: 0.01em;
}

.comparison-row__title--new {
  color: var(--amber-300);
}

.comparison-row__subtitle {
  font-size: 10.5px;
  color: rgba(226, 228, 233, 0.3);
  margin-top: 2px;
}

.comparison-row__subtitle--new {
  color: rgba(226, 228, 233, 0.58);
}

.comparison-time {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comparison-time--old {
  background: rgba(139, 74, 74, 0.15);
  border: 1px solid rgba(139, 74, 74, 0.25);
  color: #b06060;
}

.comparison-time--new {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: #34d399;
}

.comparison-old-flow {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4px 20px;
  align-items: center;
}

.comparison-old-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comparison-old-step {
  display: flex;
  align-items: center;
}

.comparison-chip {
  position: relative;
  white-space: nowrap;
}

.comparison-chip--old {
  --old-rotation: 0deg;
  --old-opacity: 0.75;
  white-space: normal;
  padding: 8px 13px;
  margin-right: -3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  color: rgba(226, 228, 233, 0.45);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: rotate(var(--old-rotation)) translateY(12px);
  animation: comparison-chip-old 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Left column: chips 1-4 */
.comparison-old-col:first-child .comparison-old-step:nth-child(1) .comparison-chip--old {
  --old-rotation: 1.2deg;
  --old-opacity: 0.7;
  animation-delay: 0.4s;
}

.comparison-old-col:first-child .comparison-old-step:nth-child(2) .comparison-chip--old {
  --old-rotation: -0.8deg;
  --old-opacity: 0.85;
  animation-delay: 0.52s;
}

.comparison-old-col:first-child .comparison-old-step:nth-child(3) .comparison-chip--old {
  --old-rotation: 0.5deg;
  --old-opacity: 0.6;
  animation-delay: 0.64s;
}

.comparison-old-col:first-child .comparison-old-step:nth-child(4) .comparison-chip--old {
  --old-rotation: -1.5deg;
  --old-opacity: 0.9;
  animation-delay: 0.76s;
}

/* Right column: chips 5-6 */
.comparison-old-col:last-child .comparison-old-step:nth-child(1) .comparison-chip--old {
  --old-rotation: 1deg;
  --old-opacity: 0.75;
  animation-delay: 0.88s;
}

.comparison-old-col:last-child .comparison-old-step:nth-child(2) .comparison-chip--old {
  --old-rotation: -0.3deg;
  --old-opacity: 0.65;
  animation-delay: 1s;
}

.comparison-connector--old {
  width: 12px;
  height: 2px;
  margin: 0 2px;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 50%,
    transparent 100%
  );
  background-size: 6px 2px;
  background-repeat: repeat-x;
  flex-shrink: 0;
}

.comparison-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.comparison-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 231, 235, 0.1), transparent);
}

.comparison-divider__pill {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(228, 231, 235, 0.1);
  background: var(--color-bg);
  color: rgba(226, 228, 233, 0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.comparison-new-flow {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.comparison-chip--new {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(247, 183, 49, 0.12);
  border: 1px solid rgba(247, 183, 49, 0.18);
  border-radius: 10px;
  flex: 1 1 0;
  min-width: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.comparison-new-flow > .comparison-chip--new:nth-child(1) { animation-delay: 1s; }
.comparison-new-flow > .comparison-chip--new:nth-child(3) { animation-delay: 1.2s; }
.comparison-new-flow > .comparison-chip--new:nth-child(5) { animation-delay: 1.4s; }
.comparison-new-flow > .comparison-chip--new:nth-child(7) { animation-delay: 1.6s; }

.comparison-chip__number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(247, 183, 49, 0.15);
  border: 1px solid rgba(247, 183, 49, 0.25);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
}

.comparison-chip--new > div:not(.comparison-chip__number) {
  min-width: 0;
}

.comparison-chip__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber-300);
  letter-spacing: 0.01em;
  white-space: normal;
}

.comparison-chip__desc {
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(226, 228, 233, 0.58);
  margin-top: 1px;
  white-space: normal;
}

.comparison-arrow--new {
  color: var(--color-primary);
  flex-shrink: 0;
  align-self: center;
  opacity: 0;
  animation: fade-up 0.45s ease forwards;
}

.comparison-new-flow > .comparison-arrow--new:nth-child(2) { animation-delay: 1.1s; }
.comparison-new-flow > .comparison-arrow--new:nth-child(4) { animation-delay: 1.3s; }
.comparison-new-flow > .comparison-arrow--new:nth-child(6) { animation-delay: 1.5s; }

.comparison-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  opacity: 0;
  animation: fade-up 0.6s ease 1.8s forwards;
}

.comparison-callout__pill {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(228, 231, 235, 0.1);
  max-width: calc(100vw - 2rem);
}

.comparison-callout__primary {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.comparison-callout__separator {
  font-size: 14px;
  color: rgba(228, 231, 235, 0.2);
  user-select: none;
}

.comparison-callout__secondary {
  font-size: 15px;
  font-weight: 600;
  color: rgba(226, 228, 233, 0.7);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .comparison-old-flow {
    grid-template-columns: 1fr;
  }
}

@keyframes comparison-chip-old {
  from {
    opacity: 0;
    transform: rotate(0deg) translateY(12px);
  }
  to {
    opacity: var(--old-opacity);
    transform: rotate(var(--old-rotation)) translateY(0);
  }
}

/* --- Features section --- */
.features-section {
  max-width: 1248px;  /* 1200px grid + 24px padding each side */
}

/* ============================================================
   Product gallery (autoplay loops recorded by tools/recorder)
   ============================================================ */

.gallery-section {
  max-width: 1248px;
}

.gallery-section .section-subheading {
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  grid-column: span 3;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid rgba(247, 183, 49, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.gallery-item:hover {
  border-color: rgba(247, 183, 49, 0.28);
  box-shadow: 0 12px 32px rgba(12, 14, 20, 0.35);
}

.gallery-item--hero {
  grid-column: span 12;
}

.gallery-video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--space-800);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-caption {
  padding: 14px 18px 16px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: left;
}

.gallery-item--hero .gallery-caption {
  font-size: 16px;
  padding: 18px 24px 22px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-video { animation: none; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero row: 7 + 5 */
.features-grid > .feature-card:nth-child(1) { grid-column: span 7; }
.features-grid > .feature-card:nth-child(2) { grid-column: span 5; }

/* Core + supporting rows: equal thirds */
.features-grid > .feature-card:nth-child(n+3) { grid-column: span 4; }

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition-slow), box-shadow var(--transition-slow);
}

/* Hero card: horizontal layout */
.feature-card--hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 36px 32px;
}

.feature-card--hero .feature-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-card--hero .feature-card__body {
  flex: 1;
  min-width: 0;
}

.feature-card--hero .feature-card__icon svg {
  width: 64px;
  height: 64px;
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-visible:hover {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 183, 49, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
}

.feature-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid rgba(247, 183, 49, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* --- CTA section --- */
.cta-section {
  padding-bottom: 60px;
}

.cta-btn {
  display: inline-block;
  background: var(--color-primary-bg);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 40px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
}

.cta-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.cta-btn:active {
  background: var(--color-primary-pressed);
  transform: scale(0.98);
  box-shadow: none;
}

/* --- Footer --- */
.footer {
  padding: 32px 24px;
  font-size: 11px;
  color: rgba(139, 145, 160, 0.25);
  letter-spacing: 0.2px;
  font-family: var(--font-body);
  text-align: center;
}

.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.footer-legal__link {
  color: rgba(139, 145, 160, 0.6);
  text-decoration: none;
  font-size: 12px;
  transition: color var(--transition-base);
}

.footer-legal__link:hover {
  color: var(--amber-400);
}

.footer-attribution {
  font-size: 13px;
  color: rgba(226, 228, 233, 0.45);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.footer-attribution__link {
  color: var(--amber-300);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-base);
}

.footer-attribution__link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Legacy: absolute-positioned footer for .container layout */
.container > .footer {
  position: absolute;
  bottom: 20px;
  padding: 0;
}

/* --- Tooltip (frosted glass, dark mode) --- */

.tooltip {
  position: absolute;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(28, 32, 51, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  min-width: 120px;
  max-width: 280px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

.tooltip--visible { opacity: 1; visibility: visible; }

.tooltip::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(28, 32, 51, 0.82);
  border: 1px solid var(--color-border);
  transform: rotate(45deg);
}

.tooltip--top {
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.tooltip--top.tooltip--visible { transform: translateX(-50%) translateY(0); }
.tooltip--top::after { bottom: -5px; left: 50%; margin-left: -4px; border-top: none; border-left: none; }

.tooltip--bottom {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.tooltip--bottom.tooltip--visible { transform: translateX(-50%) translateY(0); }
.tooltip--bottom::after { top: -5px; left: 50%; margin-left: -4px; border-bottom: none; border-right: none; }

.tooltip--left {
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}
.tooltip--left.tooltip--visible { transform: translateY(-50%) translateX(0); }
.tooltip--left::after { right: -5px; top: 50%; margin-top: -4px; border-bottom: none; border-left: none; }

.tooltip--right {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}
.tooltip--right.tooltip--visible { transform: translateY(-50%) translateX(0); }
.tooltip--right::after { left: -5px; top: 50%; margin-top: -4px; border-top: none; border-right: none; }

.tooltip--sm { padding: 4px 8px; font-size: 11px; min-width: 0; max-width: 200px; border-radius: 6px; }
.tooltip--sm::after { width: 6px; height: 6px; }

.tooltip__title { font-weight: 600; color: var(--color-text); margin-bottom: 2px; }
.tooltip__text { color: var(--color-text); }
.tooltip__meta { font-size: 11px; color: var(--color-text-muted); margin-top: 4px; }

.tooltip-trigger { position: relative; display: inline-flex; }
.tooltip-trigger:hover > .tooltip { opacity: 1; visibility: visible; }
.tooltip-trigger:hover > .tooltip--top { transform: translateX(-50%) translateY(0); }
.tooltip-trigger:hover > .tooltip--bottom { transform: translateX(-50%) translateY(0); }
.tooltip-trigger:hover > .tooltip--left { transform: translateY(-50%) translateX(0); }
.tooltip-trigger:hover > .tooltip--right { transform: translateY(-50%) translateX(0); }

/* --- Mimosa Pour Divider (scroll-driven) --- */
.pour-divider {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
  --pour-progress: 0;
}

.pour-glass {
  width: 120px;
  height: auto;
  transform-origin: 50% 85%;
  will-change: transform;
}

/* Liquid rect — starts below bowl, slides up with progress */
.pour-glass__liquid {
  transition: none;
}

/* Wave follows the liquid top edge */
.pour-glass__wave {
  transition: none;
}

/* Bubbles — ambient float animation */
@keyframes pour-bubble-rise {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 0.25; }
  80%  { opacity: 0.15; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.pour-glass__bubble { opacity: 0; }

.pour-glass__bubble--1 {
  animation: pour-bubble-rise 3.2s ease-in-out infinite;
  animation-delay: 0s;
}
.pour-glass__bubble--2 {
  animation: pour-bubble-rise 2.8s ease-in-out infinite;
  animation-delay: 1.1s;
}
.pour-glass__bubble--3 {
  animation: pour-bubble-rise 3.5s ease-in-out infinite;
  animation-delay: 2.0s;
}

/* Stream + droplets hidden by default */
.pour-glass__stream,
.pour-glass__droplet { opacity: 0; }

/* === CSS Scroll-Driven Animation (Chrome 115+, Firefox 110+) === */
@supports (animation-timeline: scroll()) {
  .pour-divider {
    view-timeline-name: --pour-timeline;
    view-timeline-axis: block;
  }

  .pour-glass {
    animation: pour-tip 1s linear both;
    animation-timeline: --pour-timeline;
    animation-range: entry 5% cover 95%;
  }

  .pour-glass__liquid {
    animation: pour-fill 1s linear both;
    animation-timeline: --pour-timeline;
    animation-range: entry 5% cover 95%;
  }

  .pour-glass__wave {
    animation: pour-wave-rise 1s linear both;
    animation-timeline: --pour-timeline;
    animation-range: entry 5% cover 95%;
  }

  .pour-glass__stream {
    animation: pour-stream-show 1s linear both;
    animation-timeline: --pour-timeline;
    animation-range: entry 5% cover 95%;
  }

  .pour-glass__droplet {
    animation: pour-droplets-show 1s linear both;
    animation-timeline: --pour-timeline;
    animation-range: entry 5% cover 95%;
  }

  /* Glass tips to 30deg at midpoint, then returns */
  @keyframes pour-tip {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(0deg); }
    35%  { transform: rotate(-20deg); }
    50%  { transform: rotate(-30deg); }
    65%  { transform: rotate(-20deg); }
    85%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }

  /* Liquid fills the bowl — rect slides from y=220 to y=80 */
  @keyframes pour-fill {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { transform: translateY(0); opacity: 0.85; }
    30%  { transform: translateY(-50px); }
    50%  { transform: translateY(-90px); }
    70%  { transform: translateY(-120px); }
    85%  { transform: translateY(-135px); }
    100% { transform: translateY(-140px); opacity: 0.85; }
  }

  /* Wave follows the liquid surface */
  @keyframes pour-wave-rise {
    0%   { transform: translateY(0); opacity: 0; }
    10%  { opacity: 0.4; }
    30%  { transform: translateY(-50px); }
    50%  { transform: translateY(-90px); }
    70%  { transform: translateY(-120px); }
    85%  { transform: translateY(-135px); }
    100% { transform: translateY(-140px); opacity: 0.4; }
  }

  /* Stream visible only during tipping phase */
  @keyframes pour-stream-show {
    0%   { opacity: 0; }
    25%  { opacity: 0; }
    35%  { opacity: 0.6; }
    50%  { opacity: 0.7; }
    65%  { opacity: 0.4; }
    72%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* Droplets follow stream timing */
  @keyframes pour-droplets-show {
    0%   { opacity: 0; }
    30%  { opacity: 0; }
    40%  { opacity: 0.5; }
    50%  { opacity: 0.6; }
    60%  { opacity: 0.3; }
    68%  { opacity: 0; }
    100% { opacity: 0; }
  }
}

/* === JS Fallback (Safari, older browsers) via --pour-progress custom prop === */
@supports not (animation-timeline: scroll()) {
  .pour-glass {
    transform: rotate(calc(
      var(--pour-progress, 0) * -30deg *
      /* Piecewise bell curve approximation: peaks at 0.5 */
      (4 * var(--pour-progress, 0) * (1 - var(--pour-progress, 0)))
    ));
  }

  .pour-glass__liquid {
    transform: translateY(calc(var(--pour-progress, 0) * -140px));
    opacity: calc(0.85 * min(1, var(--pour-progress, 0) * 10));
  }

  .pour-glass__wave {
    transform: translateY(calc(var(--pour-progress, 0) * -140px));
    opacity: calc(0.4 * min(1, var(--pour-progress, 0) * 10));
  }

  /* Stream visible when progress is 0.25-0.75 — use clamp to approximate */
  .pour-glass__stream {
    opacity: calc(
      0.7 *
      min(1, max(0, (var(--pour-progress, 0) - 0.25) * 10)) *
      min(1, max(0, (0.75 - var(--pour-progress, 0)) * 10))
    );
  }

  .pour-glass__droplet {
    opacity: calc(
      0.6 *
      min(1, max(0, (var(--pour-progress, 0) - 0.30) * 10)) *
      min(1, max(0, (0.70 - var(--pour-progress, 0)) * 10))
    );
  }
}

/* --- Memobot Character Arc --- */
.memobot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.memobot-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: rgba(247, 183, 49, 0.6);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Instance 1: Curious — hero lower right */
.memobot--curious {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  opacity: 0.7;
  animation: fade-up 1s ease-out 1.2s both;
}

.memobot--pleased {
  margin-top: 1rem;
  opacity: 0;
  animation: fade-up 0.6s ease-out 2.2s forwards;
}

/* Thinker "Done." label */
.thinker-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #F7B731;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.thinker-divider.drop-landed .thinker-label {
  opacity: 1;
}

/* --- Bubble Motif System --- */
.bubble-particle {
  position: absolute;
  bottom: 100%;
  border-radius: 50%;
  background: #F7B731;
  opacity: 0;
  pointer-events: none;
  animation: bubble-rise 0.8s ease-out forwards;
}

@keyframes bubble-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-28px) scale(0.4); opacity: 0; }
}

/* Burst variant — scatters in all directions */
.bubble-particle--burst {
  bottom: auto;
  animation: bubble-burst 0.8s ease-out forwards;
}

@keyframes bubble-burst {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(var(--burst-x, 0), var(--burst-y, 0)) scale(0.3); opacity: 0; }
}

/* Hero ambient bubbles */
.hero-bubble {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F7B731;
  opacity: 0;
  pointer-events: none;
  animation: hero-bubble-float 20s ease-in-out infinite;
}

.hero-bubble--1 { left: 12%; bottom: 18%; animation-duration: 18s; animation-delay: 0s; }
.hero-bubble--2 { left: 28%; bottom: 10%; animation-duration: 22s; animation-delay: 3s; }
.hero-bubble--3 { left: 55%; bottom: 22%; animation-duration: 16s; animation-delay: 6s; }
.hero-bubble--4 { left: 72%; bottom: 8%; animation-duration: 25s; animation-delay: 2s; }
.hero-bubble--5 { left: 85%; bottom: 15%; animation-duration: 19s; animation-delay: 8s; }
.hero-bubble--6 { left: 40%; bottom: 5%; animation-duration: 23s; animation-delay: 5s; }

@keyframes hero-bubble-float {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 0.04; }
  50%  { transform: translateY(-120px) scale(0.7); opacity: 0.04; }
  90%  { opacity: 0.02; }
  100% { transform: translateY(-200px) scale(0.3); opacity: 0; }
}

/* --- Amber Drop Cascade (connective tissue: pour → thinker) --- */
.amber-drop {
  position: fixed;
  right: 6vw;
  top: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: translateY(0px);
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}

.amber-drop.is-active {
  opacity: 0.4;
}

.amber-drop.is-landing {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

/* Thinker face — drop landing reveal */
.thinker-divider .thinker-face {
  transition: opacity 0.8s ease;
}

.thinker-divider.drop-landed .thinker-face {
  animation: thinker-bloom 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes thinker-bloom {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Confluence Divider — "Pour one out for manual underwriting." --- */
.confluence-divider {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

.confluence-divider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  transition: transform 0.1s linear;
}

.confluence-divider__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 50% 50%,
    rgba(12, 14, 20, 0.75) 0%,
    rgba(12, 14, 20, 0.45) 40%,
    rgba(12, 14, 20, 0.08) 80%,
    rgba(12, 14, 20, 0.0) 100%
  );
  pointer-events: none;
}

.confluence-divider__tagline {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1rem, 5.2vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(253, 228, 168, 0.95);
  text-shadow: 0 0 40px rgba(12, 14, 20, 0.6), 0 0 20px rgba(247, 183, 49, 0.15);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.confluence-divider.in-view .confluence-divider__tagline {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .confluence-divider {
    height: 240px;
    margin: 1rem 0;
  }

  .confluence-divider__img {
    object-position: center 25%;
  }

}

@media (max-width: 480px) {
  .confluence-divider {
    height: 200px;
  }
}

/* --- Thinker Divider (scroll-driven expression morph) --- */
.thinker-divider {
  position: relative;
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
  --thinker-progress: 0;
}

.thinker-face {
  width: 92px;
  height: 92px;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 20px rgba(247, 183, 49, 0.08));
}

/* Thinking state: visible at start, fades out */
.thinker-face__thinking {
  transition: none;
}

/* Satisfied state: hidden at start, fades in */
.thinker-face__satisfied {
  opacity: 0;
  transition: none;
}

/* === CSS Scroll-Driven Animation (Chrome 115+, Firefox 110+) === */
@supports (animation-timeline: scroll()) {
  .thinker-divider {
    view-timeline-name: --thinker-timeline;
    view-timeline-axis: block;
  }

  .thinker-face {
    animation: thinker-breathe 1s linear both;
    animation-timeline: --thinker-timeline;
    animation-range: entry 10% cover 90%;
  }

  .thinker-face__glow-outer {
    animation: thinker-glow 1s linear both;
    animation-timeline: --thinker-timeline;
    animation-range: entry 10% cover 90%;
  }

  .thinker-face__thinking {
    animation: thinker-thinking-out 1s linear both;
    animation-timeline: --thinker-timeline;
    animation-range: entry 10% cover 90%;
  }

  .thinker-face__satisfied {
    animation: thinker-satisfied-in 1s linear both;
    animation-timeline: --thinker-timeline;
    animation-range: entry 10% cover 90%;
  }

  /* Subtle scale + float: grows slightly as expression settles */
  @keyframes thinker-breathe {
    0%   { transform: scale(0.92) translateY(6px); opacity: 0; }
    15%  { transform: scale(1) translateY(0); opacity: 1; }
    50%  { transform: scale(1.02) translateY(-2px); }
    85%  { transform: scale(1.04) translateY(0); opacity: 1; }
    100% { transform: scale(1.04) translateY(2px); opacity: 0.85; }
  }

  /* Glow intensifies as expression warms */
  @keyframes thinker-glow {
    0%   { opacity: 0.07; }
    50%  { opacity: 0.12; }
    100% { opacity: 0.16; }
  }

  /* Thinking features fade out in middle third */
  @keyframes thinker-thinking-out {
    0%   { opacity: 1; }
    35%  { opacity: 1; }
    55%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* Satisfied features fade in during middle third */
  @keyframes thinker-satisfied-in {
    0%   { opacity: 0; }
    45%  { opacity: 0; }
    65%  { opacity: 1; }
    100% { opacity: 1; }
  }
}

/* === JS Fallback (Safari, older browsers) via --thinker-progress === */
@supports not (animation-timeline: scroll()) {
  .thinker-face {
    /* Fade in: 0→0.15 maps to 0→1 opacity; subtle scale */
    opacity: calc(min(1, var(--thinker-progress, 0) * 6.67));
    transform:
      scale(calc(0.92 + var(--thinker-progress, 0) * 0.12))
      translateY(calc((1 - var(--thinker-progress, 0)) * 6px));
  }

  .thinker-face__glow-outer {
    opacity: calc(0.07 + var(--thinker-progress, 0) * 0.09);
  }

  /* Thinking: fully visible until 0.35, then fades to 0 by 0.55 */
  .thinker-face__thinking {
    opacity: calc(
      min(1, max(0, (0.55 - var(--thinker-progress, 0)) * 5))
    );
  }

  /* Satisfied: invisible until 0.45, then fades to 1 by 0.65 */
  .thinker-face__satisfied {
    opacity: calc(
      min(1, max(0, (var(--thinker-progress, 0) - 0.45) * 5))
    );
  }
}

/* === Touch-device entrance animations (iOS Safari + mobile) === */
/* Triggered by JS adding --visible class via IntersectionObserver */

/* Pour glass entrance */
.pour-divider--visible .pour-glass {
  animation: pour-entrance 0.8s ease-out forwards;
}
.pour-divider--visible .pour-glass__liquid {
  animation: pour-liquid-entrance 1s ease-out 0.2s forwards;
}
.pour-divider--visible .pour-glass__wave {
  animation: pour-wave-entrance 1s ease-out 0.2s forwards;
}
.pour-divider--visible .pour-glass__bubble {
  animation: pour-bubble-rise 3.2s ease-in-out 0.6s infinite;
}

@keyframes pour-entrance {
  from { opacity: 0; transform: rotate(-15deg) scale(0.9); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}
@keyframes pour-liquid-entrance {
  from { transform: translateY(0); opacity: 0; }
  to   { transform: translateY(-140px); opacity: 0.85; }
}
@keyframes pour-wave-entrance {
  from { transform: translateY(0); opacity: 0; }
  to   { transform: translateY(-140px); opacity: 0.4; }
}

/* Thinker entrance */
.thinker-divider--visible .thinker-face {
  animation: thinker-entrance 0.7s ease-out forwards;
}
.thinker-divider--visible .thinker-face__thinking {
  animation: thinker-think-exit 0.6s ease-out 0.4s forwards;
}
.thinker-divider--visible .thinker-face__satisfied {
  animation: thinker-satisfy-enter 0.5s ease-out 0.7s forwards;
}
.thinker-divider--visible .thinker-face__glow-outer {
  animation: thinker-glow-enter 0.8s ease-out 0.3s forwards;
}

@keyframes thinker-entrance {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1.04) translateY(0); }
}
@keyframes thinker-think-exit {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes thinker-satisfy-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes thinker-glow-enter {
  from { opacity: 0.07; }
  to   { opacity: 0.14; }
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .hero-section {
    justify-content: flex-start;
    padding-top: 15vh;
    padding-bottom: 40px;
  }

  .wordmark svg {
    width: 220px;
    height: auto;
  }

  .tagline {
    font-size: 16px;
    margin-bottom: 36px;
  }

  .form-inner {
    flex-direction: column;
    gap: 0;
  }

  .email-input {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    font-size: 16px;  /* Prevents zoom on iOS */
  }

  .submit-btn {
    width: calc(100% - 8px);
    padding: 14px;
    border-radius: 10px;
    margin: 0 4px 4px;
  }

  .form-container {
    border-radius: 14px;
    padding: 4px;
  }

  /* Legacy container footer */
  .container > .footer {
    position: relative;
    bottom: auto;
    margin-top: 48px;
  }

  /* Section overrides */
  .section {
    padding: 60px 20px;
  }

  .section-heading {
    font-size: 24px;
  }

  .section-subheading {
    font-size: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }

  .features-grid > .feature-card:nth-child(1),
  .features-grid > .feature-card:nth-child(2),
  .features-grid > .feature-card:nth-child(n+3) {
    grid-column: span 1;
  }

  /* Gallery: collapse to single column on narrow viewports */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }
  .gallery-item,
  .gallery-item--hero {
    grid-column: auto;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .process-flow-header {
    margin-bottom: 36px;
  }

  .process-card {
    padding: 24px 20px;
  }

  .process-card__title {
    font-size: 17px;
  }

  .process-graph {
    height: 220px;
  }

  .comparison-header {
    margin-bottom: 36px;
  }

  .comparison-row {
    padding: 22px 20px;
  }
}

@media (max-width: 640px) {
  .comparison-callout__pill {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }

  .comparison-callout__separator {
    display: none;
  }

  .comparison-callout__primary,
  .comparison-callout__secondary {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .hero-section {
    justify-content: flex-start;
    padding-top: 18vh;
    padding-bottom: 40px;
  }

  .thinker-divider { height: 220px; }
  .thinker-face { width: 80px; height: 80px; }

  .pour-divider { height: 240px; }
  .pour-glass { width: 100px; }

  .process-flow {
    flex-direction: column;
    gap: 16px;
  }

  .process-arrow {
    flex: 0 0 auto;
    transform: rotate(90deg);
  }

  .process-card,
  .process-card--active {
    flex: 1 1 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
  }

  .features-grid > .feature-card:nth-child(1),
  .features-grid > .feature-card:nth-child(2) {
    grid-column: span 2;
  }

  .features-grid > .feature-card:nth-child(n+3) {
    grid-column: span 1;
  }

  .comparison-row__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comparison-time {
    align-self: flex-start;
  }

  .comparison-new-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .comparison-arrow--new {
    align-self: center;
    transform: rotate(90deg);
  }

  .comparison-chip--old {
    white-space: normal;
    word-break: break-word;
  }
}

/* Pour divider + thinker + features grid mobile override (must come after 860px block to win cascade) */
@media (max-width: 520px) {
  .pour-divider { height: 200px; }
  .pour-glass { width: 80px; }

  .thinker-divider { height: 200px; }
  .thinker-face { width: 72px; height: 72px; }

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

  .features-grid > .feature-card:nth-child(1),
  .features-grid > .feature-card:nth-child(2),
  .features-grid > .feature-card:nth-child(n+3) {
    grid-column: span 1;
  }

  .feature-card--hero {
    flex-direction: column;
  }

  .memobot--curious {
    right: 1rem;
    bottom: 1rem;
  }

  .memobot--curious svg {
    width: 36px;
    height: 36px;
  }

  .amber-drop { right: 4vw; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-mesh,
  .process-doc,
  .process-arrow__line,
  .process-canvas__cursor,
  .comparison-chip--old,
  .comparison-chip--new,
  .comparison-arrow--new,
  .comparison-callout,
  .submit-btn,
  .feature-card,
  .wm-period-new,
  .wm-bubble,
  .hero-bubble,
  .amber-drop,
  .bubble-particle,
  .memobot--curious,
  .memobot--pleased {
    animation: none !important;
    transition: none !important;
  }

  .wm-period-new { opacity: 0.9 !important; transform: none !important; }
  .wm-bubble { display: none !important; }
  .feature-card { opacity: 1 !important; transform: none !important; }
  .amber-drop { display: none !important; }
  .hero-bubble { display: none !important; }
  .memobot--curious { opacity: 0.7 !important; }
  .memobot--pleased { opacity: 0.7 !important; }
  .thinker-label { opacity: 1 !important; }

  .process-flow > *,
  .comparison-stack > * {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .comparison-chip--old,
  .comparison-chip--new,
  .comparison-arrow--new,
  .comparison-callout {
    opacity: 1;
    transform: none;
  }

  /* Thinker divider — show satisfied state immediately */
  .thinker-face,
  .thinker-face__thinking,
  .thinker-face__satisfied,
  .thinker-face__glow-outer {
    animation: none !important;
    transition: none !important;
  }
  .thinker-face { transform: scale(1.04) !important; opacity: 1 !important; }
  .thinker-face__thinking { opacity: 0 !important; }
  .thinker-face__satisfied { opacity: 1 !important; }
  .thinker-face__glow-outer { opacity: 0.14 !important; }

  /* Pour divider — show static filled glass */
  .pour-glass,
  .pour-glass__bubble,
  .pour-glass__stream,
  .pour-glass__droplet,
  .pour-glass__liquid,
  .pour-glass__wave {
    animation: none !important;
    transition: none !important;
  }
  .pour-glass { transform: none !important; }
  .pour-glass__liquid { transform: translateY(-140px) !important; opacity: 0.85 !important; }
  .pour-glass__wave { transform: translateY(-140px) !important; opacity: 0.4 !important; }
  .pour-glass__bubble { opacity: 0 !important; }
  .pour-glass__stream { opacity: 0 !important; }
  .pour-glass__droplet { opacity: 0 !important; }
}

/* ===================================================================
   Hero trust badge
   =================================================================== */
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  background: rgba(247, 183, 49, 0.07);
  border: 1px solid rgba(247, 183, 49, 0.18);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(253, 228, 168, 0.65);
  line-height: 1;
}

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

.hero-trust-badge__link {
  color: #f7b731;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.hero-trust-badge__link:hover {
  color: #fbcf6a;
}

/* ===================================================================
   Hero stat strip
   =================================================================== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.hero-stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: #f7b731;
  letter-spacing: -0.01em;
}

.hero-stat__label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.hero-stat__sep {
  color: rgba(247, 183, 49, 0.3);
  font-size: 0.8rem;
  user-select: none;
}

/* ===================================================================
   Ripple section — "Change one number. Watch everything update."
   =================================================================== */
.ripple-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.ripple-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.ripple__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.ripple__heading {
  text-align: left;
  max-width: none;
  line-height: 1.15;
}

.ripple__accent {
  display: block;
  background: linear-gradient(135deg, #FDE4A8, #F7B731, #C48A09);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ripple-content {
  text-align: left;
}

.ripple__body {
  color: var(--space-300);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 420px;
}

.ripple-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(247, 183, 49, 0.06);
  border: 1px solid rgba(247, 183, 49, 0.12);
}

.ripple-stat__number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber-400);
}

.ripple-stat__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--space-300);
}

/* Ripple visual — graph with radiating rings */
.ripple-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ripple-graph {
  position: relative;
  width: 400px;
  height: 400px;
}

/* Center trigger node */
.ripple-node--trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  background: rgba(19, 22, 31, 0.95);
  border: 1.5px solid var(--amber-400);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  box-shadow: 0 0 24px rgba(247, 183, 49, 0.15);
}

.ripple-node__value {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
}

.ripple-node__old {
  color: var(--space-300);
  text-decoration: line-through;
  text-decoration-color: rgba(191, 90, 90, 0.6);
  opacity: 0.6;
}

.ripple-node__arrow {
  color: var(--amber-400);
  flex-shrink: 0;
}

.ripple-node__new {
  color: var(--amber-300);
  font-weight: 600;
}

.ripple-node__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-top: 0.2rem;
}

/* Ripple rings */
.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(247, 183, 49, 0.15);
  pointer-events: none;
  opacity: 0;
}

.ripple-ring--1 {
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
}

.ripple-ring--2 {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
}

.ripple-ring--3 {
  width: 390px;
  height: 390px;
  margin: -195px 0 0 -195px;
}

/* Animate rings when section is in view */
.ripple-section.in-view .ripple-ring {
  animation: ripple-pulse 3s ease-out infinite;
}

.ripple-section.in-view .ripple-ring--1 { animation-delay: 0s; }
.ripple-section.in-view .ripple-ring--2 { animation-delay: 0.4s; }
.ripple-section.in-view .ripple-ring--3 { animation-delay: 0.8s; }

@keyframes ripple-pulse {
  0% {
    opacity: 0.5;
    border-color: rgba(247, 183, 49, 0.3);
  }
  50% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
    border-color: rgba(247, 183, 49, 0);
  }
}

/* Affected section nodes */
.ripple-node--affected {
  position: absolute;
  z-index: 3;
  background: rgba(19, 22, 31, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 183, 49, 0.1);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  opacity: 0;
}

/* Position each affected node */
.ripple-node--t1 { top: 2%;  left: 50%; transform: translateX(-50%); }
.ripple-node--t2 { top: 44%; right: -14px; transform: translateY(-50%); }
.ripple-node--t3 { bottom: 0%; left: 50%; transform: translateX(-50%); }
.ripple-node--t4 { top: 56%; left: -14px; transform: translateY(-50%); }

/* Keyframe entrance — avoids paint-before-class race condition */
@keyframes ripple-node-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ripple-section.in-view .ripple-node--t1 {
  animation: ripple-node-in 0.5s ease 0.3s both;
  border-color: rgba(247, 183, 49, 0.35);
  box-shadow: 0 0 12px rgba(247, 183, 49, 0.1);
}

.ripple-section.in-view .ripple-node--t2 {
  animation: ripple-node-in 0.5s ease 0.7s both;
  border-color: rgba(247, 183, 49, 0.25);
  box-shadow: 0 0 10px rgba(247, 183, 49, 0.07);
}

.ripple-section.in-view .ripple-node--t3 {
  animation: ripple-node-in 0.5s ease 1.1s both;
  border-color: rgba(247, 183, 49, 0.2);
  box-shadow: 0 0 8px rgba(247, 183, 49, 0.05);
}

.ripple-section.in-view .ripple-node--t4 {
  animation: ripple-node-in 0.5s ease 1.5s both;
  border-color: rgba(247, 183, 49, 0.15);
}

.ripple-node__section {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--space-100);
  white-space: nowrap;
}

.ripple-node__detail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--amber-500);
  opacity: 0.7;
  margin-top: 0.1rem;
  white-space: nowrap;
}

/* Responsive: stack on narrow */
@media (max-width: 860px) {
  .ripple-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ripple__heading { text-align: center; }
  .ripple__body { max-width: none; margin-left: auto; margin-right: auto; }
  .ripple-stat { margin-left: auto; margin-right: auto; }
  .ripple-visual { margin-top: 2rem; }
  .ripple-graph { margin: 0 auto; }
}

/* Stacked layout (tablet + mobile): grid flow — no overlaps */
@media (max-width: 860px) {
  .ripple-graph {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.5rem;
  }

  /* All nodes become flow elements */
  .ripple-node--trigger,
  .ripple-node--affected {
    position: static !important;
    transform: none !important;
  }

  .ripple-node--trigger {
    order: 0;
    margin-bottom: 0.25rem;
  }

  /* Arrange affected nodes in 2x2 grid below trigger */
  .ripple-graph {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    justify-items: center;
  }

  .ripple-node--trigger {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .ripple-node--t1 { grid-column: 1; grid-row: 2; }
  .ripple-node--t2 { grid-column: 2; grid-row: 2; }
  .ripple-node--t3 { grid-column: 1; grid-row: 3; }
  .ripple-node--t4 { grid-column: 2; grid-row: 3; }

  /* Hide rings on mobile — they don't work with flow layout */
  .ripple-ring { display: none; }

  .ripple-node__section { font-size: 0.7rem; }
  .ripple-node__detail { font-size: 0.55rem; }
  .ripple-node--trigger { padding: 0.5rem 0.85rem; }
  .ripple-node__value { font-size: 0.8rem; }

  /* Affected nodes always visible on mobile (no stagger needed) */
  .ripple-node--affected { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ripple-ring { animation: none !important; }
  .ripple-section.in-view .ripple-ring {
    animation: none;
    opacity: 0.15;
    border-color: rgba(247, 183, 49, 0.15);
  }
  .ripple-node--affected { transition: none; }
  .ripple-section.in-view .ripple-node--affected {
    opacity: 1;
  }
}

/* ===================================================================
   Provenance section — "Every claim traces back to your docs"
   =================================================================== */
.provenance-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.provenance-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.provenance__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 0.75rem;
  text-align: left;
}

.provenance__heading {
  text-align: left;
  margin-bottom: 1rem;
}

.provenance__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 38ch;
  text-align: left;
}

/* --- Audit trail visual --- */
.provenance-visual {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  padding: 2rem 1.5rem;
  background: rgba(247, 183, 49, 0.02);
  border: 1px solid rgba(247, 183, 49, 0.08);
  border-radius: 16px;
}

/* Memo excerpt column */
.provenance-memo {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.provenance-memo__line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.provenance-section.in-view .provenance-memo__line {
  opacity: 1;
  transform: translateX(0);
}

.provenance-section.in-view .provenance-memo__line:nth-child(1) { transition-delay: 0.1s; }
.provenance-section.in-view .provenance-memo__line:nth-child(2) { transition-delay: 0.3s; }
.provenance-section.in-view .provenance-memo__line:nth-child(3) { transition-delay: 0.5s; }

.provenance-memo__text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 28ch;
  text-align: left;
}

.provenance-memo__marker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  color: #F7B731;
  white-space: nowrap;
  padding: 2px 5px;
  background: rgba(247, 183, 49, 0.1);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Connection lines column */
.provenance-lines {
  width: 100%;
  height: 100%;
  align-self: stretch;
}

.provenance-line {
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.8s ease;
}

.provenance-section.in-view .provenance-line {
  stroke-dashoffset: 0;
}

.provenance-section.in-view .provenance-line--1 { transition-delay: 0.3s; }
.provenance-section.in-view .provenance-line--2 { transition-delay: 0.5s; }
.provenance-section.in-view .provenance-line--3 { transition-delay: 0.7s; }

/* Source documents column */
.provenance-sources {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.provenance-source {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: rgba(247, 183, 49, 0.04);
  border: 1px solid rgba(247, 183, 49, 0.1);
  border-radius: 8px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.provenance-section.in-view .provenance-source {
  opacity: 1;
  transform: translateX(0);
}

.provenance-section.in-view .provenance-source--1 { transition-delay: 0.5s; }
.provenance-section.in-view .provenance-source--2 { transition-delay: 0.7s; }
.provenance-section.in-view .provenance-source--3 { transition-delay: 0.9s; }

.provenance-source__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.provenance-source__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: rgba(247, 183, 49, 0.7);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .provenance-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .provenance__heading {
    text-align: center;
  }

  .provenance__body {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .provenance__eyebrow {
    text-align: center;
  }

  .provenance-visual {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .provenance-lines {
    display: none;
  }

  .provenance-memo__line {
    justify-content: center;
  }

  .provenance-memo__text {
    max-width: 100%;
  }

  .provenance-sources {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================================================
   Learning system section
   =================================================================== */
.learning-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.learning-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.learning__eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 0.75rem;
}

.learning__heading {
  text-align: left;
  margin-bottom: 1rem;
}

.learning__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.learning-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(247, 183, 49, 0.06);
  border: 1px solid rgba(247, 183, 49, 0.14);
  border-radius: 8px;
}

.learning-stat__number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #f7b731;
  letter-spacing: -0.02em;
}

.learning-stat__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: rgba(247, 183, 49, 0.6);
  letter-spacing: 0.04em;
}

.learning-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(247, 183, 49, 0.03);
  border: 1px solid rgba(247, 183, 49, 0.08);
  border-radius: 16px;
}

.learning-chart {
  width: 100%;
  max-width: 320px;
  height: auto;
  overflow: visible;
}

@media (max-width: 860px) {
  .learning-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .learning__heading {
    text-align: center;
  }

  .learning__body {
    max-width: none;
    text-align: center;
  }

  .learning-stat {
    display: flex;
    justify-content: center;
  }

  .learning-visual {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: 0.6rem;
  }

  .hero-stat__value {
    font-size: 0.82rem;
  }

  .hero-stat__label {
    font-size: 0.68rem;
  }
}

/* ===================================================================
   Credibility section — platform stats + security trust signals
   =================================================================== */
.credibility-section {
  max-width: 1100px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.credibility-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2.5rem;
}

.credibility-stat {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(247, 183, 49, 0.12);
}

.credibility-stat:last-child {
  border-right: none;
}

.credibility-stat__number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 2.5vw + 0.5rem, 3.2rem);
  font-weight: 700;
  color: var(--amber-400);
  letter-spacing: -0.03em;
  line-height: 1;
}

.credibility-stat__label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.6rem, 0.5vw + 0.3rem, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--space-300);
  margin-top: 0.4rem;
}

.credibility-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.credibility-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--space-300);
}

.credibility-trust__item svg {
  color: var(--amber-500);
  opacity: 0.7;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .credibility-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
    margin-bottom: 3rem;
  }
  .credibility-stat:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .credibility-stats {
    grid-template-columns: 1fr;
    margin-bottom: 3.5rem;
  }
  .credibility-stat {
    border-right: none;
    border-bottom: 1px solid rgba(247, 183, 49, 0.08);
    padding: 1.2rem 0;
  }
  .credibility-stat:last-child {
    border-bottom: none;
  }
  .credibility-trust {
    flex-direction: column;
    gap: 0.75rem;
  }
}
