/* ========================================
   SplitBot Landing Page Styles
   ======================================== */

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

:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-300: #86efac;
  --brand-400: #4ade80;
  --brand-500: #22c55e;
  --brand-600: #16a34a;
  --brand-700: #15803d;
  --brand-800: #166534;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--stone-900);
  background: var(--white);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--brand-200);
}

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

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

ul, ol {
  list-style: none;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.7);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-md);
  transition: outline 0.2s;
}

.navbar__logo:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 4px;
}

.navbar__logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--brand-600);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
  flex-shrink: 0;
}

.navbar__logo-icon svg {
  width: 20px;
  height: 20px;
}

.navbar__wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-600);
  transition: color 0.2s;
}

.navbar__link:hover {
  color: var(--stone-900);
}

.navbar__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 4px;
  border-radius: 4px;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
  transition: background 0.2s, box-shadow 0.2s;
}

.navbar__cta:hover {
  background: var(--brand-700);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.navbar__cta:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

/* Mobile menu button */
.navbar__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--stone-700);
  cursor: pointer;
  transition: background 0.2s;
}

.navbar__menu-btn:hover {
  background: var(--stone-50);
}

.navbar__menu-btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.navbar__menu-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid rgba(231, 229, 228, 0.7);
  background: var(--white);
  padding: 16px 20px;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__link {
  display: block;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-700);
  transition: background 0.2s;
}

.mobile-menu__link:hover {
  background: var(--stone-50);
}

.mobile-menu__cta {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--brand-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s;
}

.mobile-menu__cta:hover {
  background: var(--brand-700);
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
  .navbar__menu-btn {
    display: none;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 56px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-700);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--full);
  background: var(--brand-500);
}

.hero__title {
  margin-top: 24px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__title-accent {
  color: var(--brand-600);
}

.hero__subtitle {
  margin-top: 24px;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--stone-600);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.25);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero__btn-primary:hover {
  background: var(--brand-700);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

.hero__btn-primary:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--stone-700);
  transition: color 0.2s;
}

.hero__btn-secondary:hover {
  color: var(--brand-700);
}

.hero__btn-secondary:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 8px;
}

.hero__btn-secondary svg {
  width: 16px;
  height: 16px;
}

.hero__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--stone-400);
}

/* Hero Mockup */
.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero__glow {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(58% 50% at 50% 0%, rgba(22, 163, 74, 0.08), transparent 72%);
  pointer-events: none;
}

.hero__decor-1 {
  position: absolute;
  top: -20px;
  right: 8px;
  width: 140px;
  height: 200px;
  background: var(--stone-100);
  border-radius: 24px;
  transform: rotate(5deg);
  z-index: -1;
  display: none;
}

.hero__decor-2 {
  position: absolute;
  bottom: -24px;
  left: -8px;
  width: 160px;
  height: 160px;
  background: var(--brand-50);
  border-radius: 24px;
  transform: rotate(-5deg);
  z-index: -1;
  display: none;
}

/* Floating chips */
.hero__chip {
  position: absolute;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--stone-200);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.hero__chip--paid {
  top: -20px;
  right: 24px;
  transform: rotate(2deg);
}

.hero__chip--settled {
  bottom: -24px;
  left: -12px;
  transform: rotate(-2deg);
  background: var(--brand-600);
  color: var(--white);
  border: none;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
}

.hero__chip--optimized {
  top: 24%;
  right: -20px;
  transform: rotate(1deg);
  font-size: 12px;
}

.hero__chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Chat card */
.chat-card {
  border-radius: 28px;
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chat-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--stone-100);
}

.chat-card__group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-100);
  font-size: 18px;
  flex-shrink: 0;
}

.chat-card__group-info {
  flex: 1;
  min-width: 0;
}

.chat-card__group-name {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-card__group-members {
  font-size: 12px;
  color: var(--stone-400);
}

.chat-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-700);
  flex-shrink: 0;
}

.chat-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

.chat-card__body {
  padding: 20px 16px;
  background: rgba(250, 250, 249, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-card__date {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--stone-400);
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-msg__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-msg__avatar--orange {
  background: #fed7aa;
  color: #c2410c;
}

.chat-msg__avatar--green {
  background: var(--brand-600);
  color: var(--white);
}

.chat-msg__bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(231, 229, 228, 0.7);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-msg__bubble--bot {
  border-color: var(--brand-100);
  background: var(--brand-50);
}

.chat-msg__name {
  font-size: 11px;
  font-weight: 700;
}

.chat-msg__name--bot {
  color: var(--brand-700);
}

.chat-msg__text {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 2px;
}

.chat-msg__text strong {
  font-weight: 600;
  color: var(--stone-900);
}

.chat-msg__text .amount {
  font-weight: 700;
  color: var(--brand-700);
}

/* Tracker card */
.tracker-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(231, 229, 228, 0.7);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tracker-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tracker-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--stone-500);
}

.tracker-card__count {
  font-size: 11px;
  font-weight: 600;
  color: var(--stone-400);
}

.tracker-card__progress {
  margin-top: 8px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--stone-100);
  overflow: hidden;
}

.tracker-card__progress-bar {
  height: 100%;
  width: 40%;
  border-radius: var(--radius-full);
  background: var(--brand-500);
}

.tracker-card__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tracker-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracker-card__item-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.tracker-card__item-avatar--amber { background: #fef3c7; color: #b45309; }
.tracker-card__item-avatar--sky { background: #e0f2fe; color: #0369a1; }
.tracker-card__item-avatar--brand { background: var(--brand-100); color: var(--brand-700); }
.tracker-card__item-avatar--violet { background: #ede9fe; color: #7c3aed; }

.tracker-card__item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-800);
}

.tracker-card__item-status {
  font-size: 12px;
  font-weight: 700;
}

.tracker-card__item-status--paid {
  color: var(--brand-600);
}

.tracker-card__item-status--owed {
  color: var(--stone-500);
}

/* Chat card footer */
.chat-card__footer {
  padding: 16px;
  border-top: 1px solid var(--stone-100);
  background: var(--white);
}

.chat-card__pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--brand-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
  transition: background 0.2s;
}

.chat-card__pay-btn:hover {
  background: var(--brand-700);
}

.chat-card__pay-btn:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}

.chat-card__pay-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--stone-400);
}

/* ========================================
   PROBLEM / VALUE SECTION
   ======================================== */
.problem {
  border-top: 1px solid var(--stone-100);
  border-bottom: 1px solid var(--stone-100);
}

.problem__inner {
  padding: 80px 0;
  text-align: center;
}

.problem__headline {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.problem__headline .muted {
  color: var(--stone-500);
}

.problem__headline .accent {
  color: var(--brand-600);
}

.problem__desc {
  margin-top: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--stone-600);
}

.problem__visual {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.problem__stat {
  padding: 24px 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--stone-200);
  background: var(--white);
  text-align: center;
  min-width: 160px;
}

.problem__stat-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--stone-400);
}

.problem__stat-value--accent {
  color: var(--brand-600);
}

.problem__stat-label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-500);
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  background: var(--white);
}

.how-it-works__inner {
  padding: 80px 0 100px;
}

.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.section-title {
  text-align: center;
  margin-top: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.steps-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  padding: 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: 0 20px 48px rgba(22, 163, 74, 0.07);
}

.step-card__number {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-700);
}

.step-card__title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-card__desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-600);
}

.step-card__example {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-100);
  background: var(--stone-50);
}

.step-card__example-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
  flex-shrink: 0;
  margin-top: 1px;
}

.step-card__example-icon svg {
  width: 12px;
  height: 12px;
}

.step-card__example-text {
  font-size: 14px;
  color: var(--stone-600);
}

.step-card__formula {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone-100);
  background: var(--stone-50);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--stone-800);
}

.step-card__formula .eq {
  font-weight: 400;
  color: var(--stone-400);
}

.step-card__formula .result {
  color: var(--brand-700);
}

.step-card__settle {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-100);
  background: var(--brand-50);
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-800);
}

.step-card__settle svg {
  width: 16px;
  height: 16px;
  color: var(--brand-600);
  flex-shrink: 0;
}

.step-card__settle .check {
  color: var(--brand-700);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   SMART SETTLEMENT
   ======================================== */
.settlement {
  background: rgba(240, 253, 244, 0.7);
}

.settlement__inner {
  padding: 80px 0 100px;
}

.settlement__subtitle {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.settlement__title {
  text-align: center;
  margin-top: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.settlement__desc {
  text-align: center;
  margin-top: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--stone-600);
}

.settlement__visual {
  margin-top: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 28px;
  border: 1px solid var(--brand-100);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(22, 163, 74, 0.06);
  overflow: hidden;
}

.settlement__compare {
  display: grid;
  grid-template-columns: 1fr;
}

.settlement__side {
  padding: 36px 28px;
  text-align: center;
}

.settlement__side-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone-400);
}

.settlement__side-number {
  margin-top: 12px;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.settlement__side-number--muted {
  color: var(--stone-400);
}

.settlement__side-number--accent {
  color: var(--brand-600);
}

.settlement__side-text {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-500);
}

.settlement__side-desc {
  margin-top: 12px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--stone-400);
}

.settlement__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-top: 2px dashed var(--stone-200);
}

.settlement__arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
}

.settlement__arrow-icon svg {
  width: 20px;
  height: 20px;
}

.settlement__payments {
  padding: 32px 28px;
  border-top: 1px solid var(--stone-100);
  background: rgba(250, 250, 249, 0.6);
}

.settlement__payments-list {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settlement__payment-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--brand-100);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settlement__payment-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.settlement__payment-avatar--orange { background: #fed7aa; color: #c2410c; }
.settlement__payment-avatar--amber { background: #fef3c7; color: #b45309; }
.settlement__payment-avatar--violet { background: #ede9fe; color: #7c3aed; }
.settlement__payment-avatar--brand { background: var(--brand-100); color: var(--brand-700); }
.settlement__payment-avatar--sky { background: #e0f2fe; color: #0369a1; }

.settlement__payment-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--stone-800);
}

.settlement__payment-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--brand-600);
}

.settlement__payment-arrow svg {
  width: 16px;
  height: 16px;
}

.settlement__payment-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-700);
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.settlement__footer-text {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-700);
}

.settlement__footer-text .accent {
  color: var(--brand-700);
}

@media (min-width: 768px) {
  .settlement__compare {
    grid-template-columns: 1fr auto 1fr;
  }
  .settlement__arrow {
    border-top: none;
    border-left: 2px dashed var(--stone-200);
    padding: 0 20px;
  }
  .settlement__side--right {
    border-left: 2px dashed var(--stone-200);
    border-top: none;
  }
}

/* ========================================
   USE CASES
   ======================================== */
.use-cases {
  background: var(--white);
}

.use-cases__inner {
  padding: 80px 0 100px;
}

.use-cases__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.use-case-card {
  padding: 28px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: 0 20px 48px rgba(22, 163, 74, 0.07);
}

.use-case-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--stone-100);
  font-size: 24px;
  transition: background 0.3s;
}

.use-case-card:hover .use-case-card__icon {
  background: var(--brand-50);
}

.use-case-card__title {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.use-case-card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
}

@media (min-width: 640px) {
  .use-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .use-cases__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   CELO / MONEY SECTION
   ======================================== */
.celo {
  border-top: 1px solid var(--stone-100);
  background: var(--white);
}

.celo__inner {
  padding: 80px 0 100px;
}

.celo__header {
  max-width: 600px;
}

.celo__subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.celo__title {
  margin-top: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.celo__desc {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--stone-600);
}

.celo__features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.celo-feature {
  padding: 28px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
}

.celo-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  color: var(--brand-600);
  flex-shrink: 0;
}

.celo-feature__icon svg {
  width: 20px;
  height: 20px;
}

.celo-feature__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.celo-feature__desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-600);
}

.celo__flow {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--brand-100);
  background: rgba(240, 253, 244, 0.6);
}

.celo__flow-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone-700);
  max-width: 480px;
}

.celo__flow-text strong {
  color: var(--stone-900);
  font-weight: 700;
}

.celo__flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--brand-200);
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.celo__flow-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
}

@media (min-width: 768px) {
  .celo__features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   PRODUCT FLOW / DEMO
   ======================================== */
.demo {
  background: rgba(250, 250, 249, 0.7);
}

.demo__inner {
  padding: 80px 0 100px;
}

.demo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.demo__header {
  max-width: 480px;
}

.demo__subtitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-600);
}

.demo__title {
  margin-top: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.demo__desc {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--stone-600);
}

.demo__card {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(231, 229, 228, 0.8);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
}

.demo__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.demo__card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-800);
}

.demo__card-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-700);
}

.demo__card-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: pulse 1.5s ease-in-out infinite;
}

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

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

/* Timeline */
.demo-timeline {
  position: relative;
}

.demo-timeline__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.demo-timeline__marker {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1.5px solid var(--stone-300);
  color: var(--stone-500);
  background: var(--white);
  z-index: 1;
  transition: all 0.4s;
}

.demo-timeline__step.is-done .demo-timeline__marker {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: var(--white);
}

.demo-timeline__step.is-active .demo-timeline__marker {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

.demo-timeline__step.is-active .demo-timeline__marker::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.35);
  animation: demoPulse 1.8s ease-out infinite;
}

@keyframes demoPulse {
  0% { transform: scale(0.7); opacity: 1; }
  70%, 100% { transform: scale(1.3); opacity: 0; }
}

.demo-timeline__marker svg {
  display: none;
  width: 14px;
  height: 14px;
}

.demo-timeline__step.is-done .demo-timeline__marker svg {
  display: block;
}

.demo-timeline__step.is-done .demo-timeline__num {
  display: none;
}

.demo-timeline__info {
  padding-top: 3px;
}

.demo-timeline__info-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--stone-800);
}

.demo-timeline__info-sub {
  font-size: 12px;
  color: var(--stone-500);
  margin-top: 2px;
}

/* Connector line */
.demo-timeline__connector {
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 9999px;
  background: var(--stone-200);
  z-index: 0;
}

.demo-timeline__connector-fill {
  height: 0%;
  width: 100%;
  border-radius: 9999px;
  background: var(--brand-600);
  transition: height 0.7s ease-out;
}

/* Balance display */
.demo__balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--brand-100);
  background: rgba(240, 253, 244, 0.5);
  text-align: center;
}

.demo__balance-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand-700);
}

.demo__balance-amount {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--stone-900);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}

.demo__balance-amount.is-settled {
  color: var(--brand-600);
}

.demo__balance-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--stone-500);
}

.demo__balance-bar {
  margin-top: 24px;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--white);
  overflow: hidden;
}

.demo__balance-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: var(--brand-600);
  transition: width 0.7s ease-out;
}

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

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

/* ========================================
   FINAL CTA
   ======================================== */
.cta {
  background: var(--white);
}

.cta__inner {
  padding: 0 0 80px;
}

.cta__box {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  background: var(--brand-600);
  padding: 64px 24px;
  text-align: center;
}

.cta__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.6;
  pointer-events: none;
}

.cta__glow {
  position: absolute;
  top: -96px;
  left: 50%;
  transform: translateX(-50%);
  width: 36rem;
  height: 288px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.4);
  filter: blur(80px);
  pointer-events: none;
}

.cta__content {
  position: relative;
}

.cta__title {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--white);
}

.cta__desc {
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(240, 253, 244, 0.95);
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 16px 32px;
  background: var(--white);
  color: var(--brand-700);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(22, 101, 52, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.cta__btn:hover {
  background: var(--brand-50);
  transform: translateY(-1px);
}

.cta__btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.cta__note {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(240, 253, 244, 0.8);
}

@media (min-width: 640px) {
  .cta__box {
    padding: 80px 48px;
  }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--stone-200);
  background: var(--white);
}

.footer__inner {
  padding: 48px 0;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.footer__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-600);
  color: var(--white);
}

.footer__brand-icon svg {
  width: 16px;
  height: 16px;
}

.footer__brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer__tagline {
  margin-top: 10px;
  font-size: 14px;
  color: var(--stone-500);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.footer__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-600);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--stone-900);
}

.footer__link:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__celo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--brand-200);
  background: var(--brand-50);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
}

.footer__celo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stone-100);
  font-size: 12px;
  color: var(--stone-400);
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */
@media (max-width: 767px) {
  .hero {
    padding: 40px 0 60px;
  }
  .problem__inner,
  .how-it-works__inner,
  .settlement__inner,
  .use-cases__inner,
  .celo__inner,
  .demo__inner {
    padding: 60px 0 72px;
  }
  .settlement__side-number {
    font-size: 40px;
  }
}

@media (min-width: 768px) {
  .hero__decor-1,
  .hero__decor-2 {
    display: block;
  }
  .hero__chip {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
  .hero {
    padding: 80px 0 96px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .demo-timeline__step.is-active .demo-timeline__marker::after {
    animation: none;
  }
  .demo__card-live-dot {
    animation: none;
  }
}
