@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Noto+Sans+Ethiopic:wght@400;500;600;700;800&display=swap');

:root {
  /* Mint (primary brand) */
  --mint-50:  #EAF8F2;
  --mint-100: #D3F1E4;
  --mint-200: #A9E4CC;
  --mint-300: #7ED5B3;
  --mint-400: #5CC49D;
  --mint-500: #3EB489;
  --mint-600: #2E9A73;
  --mint-700: #23795B;
  --mint-800: #1B5C46;
  --mint-900: #143F31;

  /* Forest ink */
  --forest-950: #081712;
  --forest-900: #0B1F19;
  --forest-800: #12241E;
  --forest-700: #1A3129;
  --forest-600: #24443A;

  /* Neutrals */
  --neutral-0:   #FFFFFF;
  --neutral-50:  #F4F9F7;
  --neutral-100: #E9F2EE;
  --neutral-200: #DCE9E4;
  --neutral-300: #C3D5CE;
  --neutral-400: #93A8A0;
  --neutral-500: #5B6E67;
  --neutral-600: #40534C;

  /* Semantic */
  --positive: #2E9A73;
  --warning:  #E8930C;
  --negative: #D64545;
  --sun: #F8C630;

  --surface-app:    var(--neutral-50);
  --border-subtle:  var(--neutral-200);
  --border-strong:  var(--neutral-300);
  --text-primary:   var(--forest-900);
  --text-secondary: var(--neutral-500);
  --text-on-dark:   #F2FBF7;
  --text-on-dark-dim: rgba(242, 251, 247, 0.66);
  --text-on-mint:   #FFFFFF;
  --accent:         var(--mint-500);
  --accent-hover:   var(--mint-600);
  --focus-ring:     rgba(62, 180, 137, 0.45);

  --font-display: "Plus Jakarta Sans", "Noto Sans Ethiopic", "Helvetica Neue", sans-serif;
  --font-body:    "Plus Jakarta Sans", "Noto Sans Ethiopic", "Helvetica Neue", sans-serif;

  --text-hero: clamp(40px, 5vw, 64px);
  --text-h1: 32px;
  --text-body-lg: 17px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --container-max: 1200px;

  --shadow-card: 0 1px 2px rgba(11, 31, 25, 0.04), 0 4px 16px rgba(11, 31, 25, 0.06);
  --shadow-overlay: 0 16px 48px rgba(11, 31, 25, 0.18);
  --shadow-mint-glow: 0 4px 20px rgba(62, 180, 137, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--neutral-50);
  font-family: var(--font-body);
  color: var(--text-primary);
}
img { max-width: 100%; }
::selection { background: var(--mint-200); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; border: none; cursor: pointer;
  border-radius: var(--radius-md); transition: all 160ms var(--ease-out);
  background: var(--mint-500); color: var(--text-on-mint);
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); box-shadow: var(--shadow-mint-glow); }
.btn:active { transform: scale(0.98); }
.btn-sm { font-size: 13px; padding: 8px 16px; min-height: 36px; }
.btn-lg { font-size: 16px; padding: 16px 28px; min-height: 52px; }

.wrap { max-width: var(--container-max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; }
.nav-inner img { height: 22px; display: block; }

/* Hero */
.hero { background: var(--forest-800); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 900px 500px at 85% 15%, rgba(62,180,137,0.14), transparent 70%);
}
.hero-inner { padding: 76px 32px 0; position: relative; }
.slider-row { position: relative; min-height: 460px; display: flex; align-items: center; }
.slider-viewport { position: relative; width: 100%; min-height: 460px; padding-bottom: 56px; }
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
}
.slide.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.slide-overline { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-300); margin-bottom: 18px; }
.slide-title { font-family: var(--font-display); font-size: clamp(38px,4.6vw,58px); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: var(--text-on-dark); margin: 0 0 20px; white-space: pre-line; }
.slide-title span { color: var(--mint-300); }
.slide-body { font-size: var(--text-body-lg); line-height: 1.6; color: var(--text-on-dark-dim); max-width: 440px; margin: 0 0 32px; }
.slide-visual { display: flex; justify-content: center; }

.arrow-btn {
  position: absolute; bottom: 0; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: var(--text-on-dark);
  cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: background 160ms var(--ease-out);
}
.arrow-btn:hover { background: rgba(255,255,255,0.14); }
.arrow-prev { left: -8px; }
.arrow-next { left: 44px; }

.dots { display: flex; gap: 8px; padding: 36px 0 32px; justify-content: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: rgba(255,255,255,0.22); transition: background 160ms var(--ease-out); }
.dot.active { background: var(--mint-500); }

/* Dark card visuals (hero) */
.card-dark { width: 100%; max-width: 460px; background: var(--forest-700); border-radius: var(--radius-xl); box-shadow: var(--shadow-overlay); }
.card-label { font-size: 12px; font-weight: 600; color: var(--text-on-dark-dim); }
.card-money { font-size: 32px; font-weight: 800; color: var(--text-on-dark); letter-spacing: -0.01em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.card-foot { font-size: 12px; color: var(--text-on-dark-dim); margin-top: 10px; }

@keyframes drawLine { from { stroke-dashoffset: 640; } to { stroke-dashoffset: 0; } }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ringSweep { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 96; } }
@keyframes floatDrift {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-26px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.goal-row { margin-top: 18px; }
.goal-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text-on-dark); }
.goal-top span:last-child { color: var(--text-on-dark-dim); font-variant-numeric: tabular-nums; }
.goal-track { height: 8px; background: rgba(255,255,255,0.09); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.goal-fill { height: 100%; background: var(--mint-500); border-radius: 99px; transform-origin: left; transform: scaleX(0); }
.slide.active .goal-fill { animation: fillBar 1.1s var(--ease-out) both; }

.bill-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.bill-name { font-size: 14px; font-weight: 700; color: var(--text-on-dark); }
.bill-due { font-size: 12px; margin-top: 2px; font-weight: 600; color: var(--warning); }
.bill-due.paid { color: var(--text-on-dark-dim); }
.bill-amt { font-size: 14px; font-weight: 700; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.bill-tag-paid { font-size: 12px; font-weight: 700; color: var(--mint-300); }
.bill-tag-pay { font-size: 12px; font-weight: 700; color: var(--forest-800); background: var(--mint-500); padding: 6px 12px; border-radius: 8px; }

/* Tagline */
.tagline { padding: 104px 32px 88px; text-align: center; }
.tagline p.headline { max-width: 680px; margin: 0 auto; font-family: var(--font-display); font-size: clamp(28px,3.4vw,40px); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; }
.tagline p.headline span { color: var(--mint-600); }
.tagline p.sub { margin: 20px auto 0; font-size: 16px; color: var(--text-secondary); }

/* Features */
.features-wrap { position: relative; overflow: hidden; }
.decor { position: absolute; inset: 0; pointer-events: none; }
.decor svg { position: absolute; opacity: 0.14; animation: floatDrift 13s ease-in-out infinite; }
.features { padding: 0 32px 40px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0;
  border-top: 1px solid var(--border-subtle);
  opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.feature-row.visible { opacity: 1; transform: translateY(0); }
.feature-row .text-1 { order: 0; }
.feature-row .visual-1 { order: 1; display: flex; justify-content: center; }
.feature-row.reverse .text-1 { order: 1; }
.feature-row.reverse .visual-1 { order: 0; }
.feature-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-600); margin-bottom: 14px; }
.feature-title { font-family: var(--font-display); font-size: clamp(24px,2.6vw,32px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.01em; }
.feature-body { font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0; max-width: 420px; }

/* Light card visuals (features) */
.card-light { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.card-light .card-label { color: var(--text-secondary); }
.card-light .card-money { color: var(--text-primary); font-size: 28px; }
.card-light .card-foot { color: var(--text-secondary); }
.row-line { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
.row-line:last-child { border-bottom: none; }
.row-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.row-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.row-tag { font-size: 12px; font-weight: 700; color: var(--mint-600); background: var(--mint-50); padding: 5px 11px; border-radius: 8px; }
.row-value { font-size: 14px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.row-value.strong { color: var(--mint-600); font-weight: 800; }

/* CTA */
.cta-wrap { padding: 40px 32px 96px; }
.cta-card {
  background: var(--forest-800); border-radius: var(--radius-xl); padding: 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.cta-card h2 { font-family: var(--font-display); font-size: var(--text-h1); font-weight: 800; color: var(--text-on-dark); margin: 0; letter-spacing: -0.01em; }
.cta-card p { font-size: var(--text-body-lg); color: var(--text-on-dark-dim); line-height: 1.6; margin: 0; max-width: 480px; }

/* Footer */
.footer { background: var(--forest-950); padding: 48px 32px 32px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.footer-top img { height: 20px; opacity: 0.9; }
.footer-top a { font-size: 13px; color: var(--text-on-dark-dim); text-decoration: none; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; color: var(--text-on-dark-dim); line-height: 1.6; }
.footer-legal .copyright { margin-top: 10px; opacity: 0.7; }

@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; }
  .slide-visual { display: none; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row .visual-1, .feature-row.reverse .visual-1 { order: 2; }
  .feature-row .text-1, .feature-row.reverse .text-1 { order: 1; }
}
