/* ============================================
   DESIGN TOKENS — Violet/Purple Theme
============================================ */
:root {
  --background:          #0f0d1a;
  --card:                #1c1829;
  --muted:               #2d2640;
  --border-color:        #3d3454;

  --foreground:          #e8e0f0;
  --muted-foreground:    #9d90b8;

  --primary:             #b788ff;
  --primary-fg:          #1a0050;
  --primary-container:   #9333ea;
  --primary-fixed:       #2d2640;
  --primary-shadow:      rgba(183, 136, 255, 0.12);

  --success:             #34d399;
  --success-subtle:      rgba(52, 211, 153, 0.10);
  --success-border:      rgba(52, 211, 153, 0.25);
  --destructive:         #f87171;
  --ring:                #b788ff;

  --shadow-card: 0 4px 24px rgba(183,136,255,0.12), 0 1px 4px rgba(99,14,212,0.04);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.45), 0 4px 16px rgba(99,14,212,0.08);
  --shadow-xl:   0 32px 80px rgba(0,0,0,0.55), 0 8px 32px rgba(99,14,212,0.12);
  --glow-primary: 0 0 40px rgba(183,136,255,0.20), 0 4px 20px rgba(183,136,255,0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.25, 0.1, 0.25, 1);

  --dur-fast:     150ms;
  --dur-normal:   250ms;
  --dur-moderate: 380ms;
  --dur-slow:     550ms;

  --max-width:  1180px;
  --nav-height: 68px;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 8rem;
  --space-20: 10rem;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section        { padding: var(--space-20) 0; }
.section-sm     { padding: var(--space-12) 0; }
.separator      { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent); }

/* ============================================
   TYPOGRAPHY UTILITIES
============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-success {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--success) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.section-headline {
  font-size: clamp(1.9rem, 3.5vw, 2.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--foreground);
  text-wrap: balance;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 560px;
  margin-top: var(--space-4);
}

.section-header         { margin-bottom: var(--space-10); }
.section-header-center  { text-align: center; }
.section-header-center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all var(--dur-normal) var(--ease-out-expo);
  white-space: nowrap;
}

.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 2px 16px rgba(183,136,255,0.28);
}
.btn-primary:hover {
  background: #c9a8ff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-primary);
}
.btn-primary:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: var(--muted);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  color: var(--muted-foreground);
  padding: 0.6rem 1rem;
}
.btn-ghost:hover { color: var(--foreground); background: var(--muted); }

.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; border-radius: 10px; }

/* ============================================
   BADGES
============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(183,136,255,0.1);
  color: var(--primary);
  border: 1px solid rgba(183,136,255,0.25);
}

.badge-success {
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--dur-moderate) var(--ease-smooth),
              border-color var(--dur-moderate) var(--ease-smooth);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(28, 24, 41, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border-color);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

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

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 6px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover { color: var(--foreground); background: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.nav-mobile-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--muted-foreground);
  border-radius: 2px;
  transition: all var(--dur-normal) var(--ease-out-expo);
}
.nav-mobile-btn:hover { background: var(--muted); }

/* ============================================
   SHADER CANVAS
============================================ */
#shader-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -10;
  opacity: 0.85;
}

.shader-fade {
  position: fixed;
  inset: 0;
  z-index: -9;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    var(--background) 80%,
    var(--background) 100%
  );
  pointer-events: none;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-16)) var(--space-6) var(--space-16);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(15,13,26,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 100% 40% at 50% 100%, var(--background) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge    { margin-bottom: var(--space-5); display: inline-block; }

.hero-headline {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
  color: var(--foreground);
  text-align: center;
}

@media (max-width: 640px) {
  .hero-headline { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto var(--space-8);
  font-weight: 400;
  background: linear-gradient(
    90deg,
    #6b5f85 0%,
    #9d90b8 15%,
    #ffffff 35%,
    #e8e0f0 50%,
    #ffffff 65%,
    #9d90b8 85%,
    #6b5f85 100%
  );
  background-size: 300% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroSubShine 4s linear infinite;
}

@keyframes heroSubShine {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }
.trust-divider  { width: 1px; height: 14px; background: var(--border-color); }

.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
  opacity: 0.35;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll span { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   PRODUCT HIGHLIGHTS MARQUEE
============================================ */
.highlights-bar {
  background: var(--card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-5) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.highlights-bar::before,
.highlights-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.highlights-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--card) 30%, transparent 100%);
}
.highlights-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--card) 30%, transparent 100%);
}

.marquee-row {
  overflow: hidden;
  padding: var(--space-2) 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  will-change: transform;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.highlight-chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(183,136,255,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
}

/* ============================================
   BUILT FOR SECTION
============================================ */
.built-for-section {
  background: var(--background);
  position: relative;
  z-index: 1;
}

.built-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.built-for-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-normal) var(--ease-smooth),
              transform var(--dur-moderate) var(--ease-out-expo),
              box-shadow var(--dur-moderate) var(--ease-out-expo);
}

.built-for-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(183,136,255,0.06), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur-moderate);
  pointer-events: none;
}

.built-for-card:hover {
  border-color: rgba(183,136,255,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--glow-primary);
}

.built-for-card:hover::before { opacity: 1; }

.built-for-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(183,136,255,0.1);
  border: 1px solid rgba(183,136,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.built-for-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: var(--space-3);
}

.built-for-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ============================================
   FEATURES BENTO GRID
============================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-normal) var(--ease-smooth),
              transform var(--dur-moderate) var(--ease-out-expo),
              box-shadow var(--dur-moderate) var(--ease-out-expo);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity var(--dur-moderate);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(183,136,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.bento-card:hover::before { opacity: 1; }

.bento-card-1 { grid-column: span 7; }
.bento-card-1::before { background: linear-gradient(135deg, rgba(147,51,234,0.1), transparent 60%); }

.bento-card-2 { grid-column: span 5; }
.bento-card-2::before { background: linear-gradient(135deg, rgba(183,136,255,0.08), transparent 60%); }

.bento-card-3 { grid-column: span 5; }
.bento-card-3::before { background: linear-gradient(135deg, rgba(52,211,153,0.08), transparent 60%); }

.bento-card-4 { grid-column: span 7; }
.bento-card-4::before { background: linear-gradient(135deg, rgba(99,14,212,0.1), transparent 60%); }

.bento-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.3rem;
}

.bento-icon-violet  { background: rgba(183,136,255,0.12); border: 1px solid rgba(183,136,255,0.2); }
.bento-icon-purple  { background: rgba(147,51,234,0.15);  border: 1px solid rgba(147,51,234,0.25); }
.bento-icon-success { background: var(--success-subtle);   border: 1px solid var(--success-border); }
.bento-icon-deep    { background: rgba(99,14,212,0.15);    border: 1px solid rgba(99,14,212,0.25); }

.bento-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: var(--space-3);
}

.bento-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 55ch;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.bento-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
  border: 1px solid var(--border-color);
}

/* Mini chart */
.mini-chart {
  height: 64px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: var(--space-5);
}

.chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--muted);
  min-height: 6px;
}

.chart-bar.primary { background: var(--primary); opacity: 0.85; }
.chart-bar.primary-dim { background: var(--primary-container); opacity: 0.6; }

/* Customer dots */
.customer-dots { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }

.customer-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--muted);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.customer-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--primary-fg);
}

.customer-info { flex: 1; }
.customer-name { font-size: 0.8rem; font-weight: 700; color: var(--foreground); }
.customer-ltv  { font-size: 0.7rem; color: var(--muted-foreground); }

.customer-score {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(183,136,255,0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(183,136,255,0.2);
}

/* ============================================
   FEATURE DEEP DIVE
============================================ */
.feature-section { padding: var(--space-20) 0; position: relative; z-index: 1; background: var(--background); }

.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.feature-layout.reverse { direction: rtl; }
.feature-layout.reverse > * { direction: ltr; }

.feature-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.feature-headline {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}

.feature-body {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-7); }

.feature-bullet {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.feature-bullet-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(183,136,255,0.1);
  border: 1px solid rgba(183,136,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-bullet-dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-visual-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.feature-visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(99,14,212,0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 100%, rgba(183,136,255,0.06), transparent 70%);
  pointer-events: none;
}

.visual-label {
  font-size: 0.7rem;
  color: var(--muted-foreground);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* Transaction list */
.transaction-list { display: flex; flex-direction: column; gap: var(--space-3); }

.transaction-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--muted);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: border-color var(--dur-fast);
}

.transaction-item:hover { border-color: rgba(183,136,255,0.3); }

.tx-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.tx-info { flex: 1; min-width: 0; }
.tx-name { font-size: 0.85rem; font-weight: 700; color: var(--foreground); }
.tx-cat  { font-size: 0.72rem; color: var(--muted-foreground); }

.ai-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(183,136,255,0.12);
  color: var(--primary);
  border: 1px solid rgba(183,136,255,0.2);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
}

.tx-amount { font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.tx-amount.debit  { color: var(--destructive); }
.tx-amount.credit { color: var(--success); }

/* BI Dashboard */
.bi-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.bi-card {
  background: var(--muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: var(--space-4);
}

.bi-card.span-2 { grid-column: span 2; }

.bi-card-label { font-size: 0.72rem; color: var(--muted-foreground); font-weight: 500; margin-bottom: var(--space-2); }

.bi-card-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.bi-card-change { font-size: 0.72rem; font-weight: 700; margin-top: 3px; }
.bi-card-change.up   { color: var(--success); }
.bi-card-change.down { color: var(--destructive); }

.sparkline {
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: var(--space-3);
}

.sparkline-bar { flex: 1; border-radius: 2px; background: var(--border-color); min-height: 4px; }
.sparkline-bar.high { background: var(--primary); opacity: 0.9; }

/* Business switcher */
.business-switcher { display: flex; flex-direction: column; gap: var(--space-3); }

.business-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.business-item:hover, .business-item.active {
  border-color: rgba(183,136,255,0.35);
  background: var(--primary-fixed);
}

.business-item.active .business-dot {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(183,136,255,0.5);
}

.business-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.b-logo-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.b-logo-2 { background: linear-gradient(135deg, #7c2d92, #a855f7); }
.b-logo-3 { background: linear-gradient(135deg, var(--primary-container), var(--primary)); }

.business-info { flex: 1; }
.business-name { font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
.business-type { font-size: 0.72rem; color: var(--muted-foreground); }

.business-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); flex-shrink: 0; }

/* Customer intelligence panels */
.ci-profile {
  background: var(--muted);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.ci-profile.highlighted {
  border-color: rgba(183,136,255,0.3);
  background: rgba(183,136,255,0.05);
}

.ci-profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.ci-avatar {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ci-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.ci-metric { text-align: center; }
.ci-metric-value {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}
.ci-metric-label { font-size: 0.65rem; color: var(--muted-foreground); margin-top: 2px; }

/* ============================================
   PROBLEM SECTION
============================================ */
.problem-section {
  background: var(--card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.problem-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }

.problem-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--muted);
  transition: border-color var(--dur-normal), transform var(--dur-normal) var(--ease-out-expo);
}

.problem-item:hover { border-color: rgba(183,136,255,0.3); transform: translateX(4px); }

.problem-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.problem-text strong { display: block; font-weight: 700; color: var(--foreground); margin-bottom: 4px; font-size: 0.9rem; }
.problem-text p      { font-size: 0.85rem; color: var(--muted-foreground); line-height: 1.6; }

/* Solution card */
.solution-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(99,14,212,0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(183,136,255,0.06), transparent 70%);
  pointer-events: none;
}

.solution-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-color);
}

.solution-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.solution-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.metric-chip {
  background: var(--muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: var(--space-4);
}

.metric-chip .value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}

.metric-chip .label { font-size: 0.7rem; color: var(--muted-foreground); margin-top: 4px; font-weight: 500; }
.metric-chip .trend { font-size: 0.7rem; color: var(--success); margin-top: 4px; font-weight: 700; }

.float-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid rgba(183,136,255,0.25);
  border-radius: 10px;
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: floatBadge 6s ease-in-out infinite;
}

.float-badge-1 { top: -18px; right: -18px; }
.float-badge-2 { bottom: -14px; left: -14px; animation-delay: -3s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================
   PRICING
============================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: var(--space-7);
  text-align: left;
  transition: all var(--dur-moderate) var(--ease-out-expo);
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(183,136,255,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: rgba(183,136,255,0.4);
  background: linear-gradient(160deg, var(--muted), var(--card));
  box-shadow: var(--glow-primary), var(--shadow-lg);
}

.pricing-card.featured:hover { transform: translateY(-5px); }

.pricing-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
}

.pricing-card.featured .pricing-label { color: var(--primary); }

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--foreground);
  line-height: 1;
}

.pricing-amount sup { font-size: 1.3rem; vertical-align: super; letter-spacing: 0; }

.pricing-period { font-size: 0.85rem; color: var(--muted-foreground); margin-top: var(--space-2); margin-bottom: var(--space-5); }

.pricing-divider { border: none; border-top: 1px solid var(--border-color); margin: var(--space-5) 0; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }

.pricing-feature {
  display: flex;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  align-items: flex-start;
}

.pricing-check { color: var(--success); flex-shrink: 0; margin-top: 1px; }

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   FINAL CTA
============================================ */
.final-cta { position: relative; z-index: 1; background: var(--background); }

.final-cta-inner {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: var(--space-16) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(147,51,234,0.18), transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 100%, rgba(183,136,255,0.08), transparent 70%);
  pointer-events: none;
}

.final-cta-headline {
  font-size: clamp(2rem, 4vw, 2.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  text-wrap: balance;
  position: relative;
}

.final-cta-sub {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 480px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  position: relative;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  position: relative;
}

.final-cta-note { font-size: 0.82rem; color: var(--muted-foreground); margin-top: var(--space-5); position: relative; }

/* ============================================
   FOOTER
============================================ */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border-color);
  background: var(--background);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-normal) var(--ease-out-expo), color var(--dur-fast);
}

.footer-links a:hover { color: var(--foreground); background-size: 100% 1px; }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom-left { font-size: 0.85rem; color: var(--muted-foreground); }

.footer-bottom-right { display: flex; gap: var(--space-5); }
.footer-bottom-right a { font-size: 0.85rem; color: var(--muted-foreground); transition: color var(--dur-fast); }
.footer-bottom-right a:hover { color: var(--foreground); }

/* ============================================
   SCROLL REVEAL
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.reveal.visible    { opacity: 1; transform: translateY(0); }
.reveal-delay-1    { transition-delay: 80ms; }
.reveal-delay-2    { transition-delay: 160ms; }
.reveal-delay-3    { transition-delay: 240ms; }
.reveal-delay-4    { transition-delay: 320ms; }

/* Hero entrance */
.hero-badge       { animation: fadeIn 0.6s var(--ease-out-expo) 0.1s both; }
.hero-headline    { animation: blurIn 0.85s var(--ease-out-expo) 0.2s both; }
.hero-sub         { animation: fadeSlideUp 0.7s var(--ease-out-expo) 0.38s both; }
.hero-actions     { animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.52s both; }
.hero-trust       { animation: fadeSlideUp 0.6s var(--ease-out-expo) 0.65s both; }

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

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

@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); transform: scale(0.97); }
  to   { opacity: 1; filter: blur(0);   transform: scale(1); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .bento-card-1, .bento-card-2, .bento-card-3, .bento-card-4 { grid-column: span 12; }
  .feature-layout  { grid-template-columns: 1fr; gap: var(--space-10); }
  .feature-layout.reverse { direction: ltr; }
  .built-for-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand    { grid-column: span 2; }
  .pricing-cards   { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  #how-it-works [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  :root { --space-16: 5rem; --space-20: 7rem; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-mobile-btn  { display: flex; }
  .container       { padding: 0 var(--space-5); }
  .problem-grid    { grid-template-columns: 1fr; gap: var(--space-10); }
  .built-for-grid  { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-brand    { grid-column: span 1; }
  .final-cta-inner { padding: var(--space-10) var(--space-6); }
  .bi-dashboard    { grid-template-columns: 1fr; }
  .bi-card.span-2  { grid-column: span 1; }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }

/* ============================================
   LEGAL PAGES
============================================ */
.legal-hero {
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-10);
  background: var(--card);
  border-bottom: 1px solid var(--border-color);
}

.legal-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.legal-body {
  padding: var(--space-12) 0 var(--space-20);
}

.legal-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-10);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.legal-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-toc-list a {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  transition: color var(--dur-normal) var(--ease-smooth);
  line-height: 1.4;
}

.legal-toc-list a:hover { color: var(--foreground); }

.legal-content {
  min-width: 0;
  max-width: 680px;
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  list-style: none;
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.legal-content ul li {
  display: flex;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.legal-content ul li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.55em;
  flex-shrink: 0;
}

.legal-content strong { color: var(--foreground); font-weight: 600; }

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { opacity: 0.8; }

.legal-callout {
  background: var(--primary-fixed);
  border: 1px solid rgba(183, 136, 255, 0.2);
  border-radius: 10px;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}

.legal-callout p {
  color: var(--foreground) !important;
  margin-bottom: 0 !important;
  font-size: 0.875rem !important;
}

/* Data/definition list (Data We Collect, Your Rights, Data Protection, etc.) */
.data-list {
  display: flex;
  flex-direction: column;
  margin: var(--space-6) 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.data-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-color);
  background: var(--card);
  align-items: baseline;
}

.data-row:last-child { border-bottom: none; }

.data-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.5;
}

.data-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

/* Service list (Third-Party Services, etc.) */
.service-list {
  display: flex;
  flex-direction: column;
  margin: var(--space-6) 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.service-item {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border-color);
  background: var(--card);
}

.service-item:last-child { border-bottom: none; }

.service-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.service-item-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.service-item-link {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity var(--dur-normal) var(--ease-smooth);
}

.service-item-link:hover { opacity: 1; }

.service-item-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc    { display: none; }

  .data-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .service-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}
