@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #ffce2d;
  --primary-dark: #e8b600;
  --primary-soft: #fff4c4;
  --destructive: #e30561;
  --success: #4ad9a2;
  --success-soft: #d9f7ea;
  --bg: #ffffff;
  --fg: oklch(0.141 0.005 285.823);
  --muted: oklch(0.967 0.001 286.375);
  --muted-fg: oklch(0.552 0.016 285.938);
  --border: oklch(0.92 0.004 286.32);
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --ink-3: #2a2a2a;
  --off-white: #faf9f5;
  --radius: 0.65rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.45rem;
  --radius-lg: 0.65rem;
  --radius-xl: 1.05rem;
  --radius-2xl: 1.75rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }

.h-display {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h-section {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.h-sub {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--muted-fg);
  font-weight: 400;
}

.highlight-yellow {
  background: linear-gradient(180deg, transparent 55%, var(--primary) 55%);
  padding: 0 4px;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary);
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 206, 45, 0.4);
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--muted-fg); transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--primary);
  color: #1a1200;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 8px 24px -8px rgba(255, 206, 45, 0.6);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 2px 0 rgba(0,0,0,0.08), 0 12px 28px -8px rgba(255, 206, 45, 0.7); }
.btn-ghost { color: var(--fg); padding: 12px 16px; }
.btn-ghost:hover { background: var(--muted); }
.btn-dark {
  background: var(--ink);
  color: white;
}
.btn-dark:hover { background: var(--ink-2); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- cards / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--muted);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-fg);
}
.chip-yellow {
  background: var(--primary-soft);
  color: #6b4e00;
}
.chip-dark {
  background: var(--ink);
  color: white;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

/* ---------- noise / texture ---------- */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ---------- utils ---------- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.center { text-align: center; }
.muted { color: var(--muted-fg); }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; } .mt-20 { margin-top: 80px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-badges {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px;
}

.hero-ctas {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 36px;
}
.hero-trust {
  display: flex; align-items: center; gap: 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-fg);
}
.hero-trust .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--success-soft); color: #14532d;
  display: inline-grid; place-items: center;
  font-size: 11px; font-weight: 700;
}

/* iphone frame */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: 340px;
  height: 700px;
  background: #0a0a0a;
  border-radius: 54px;
  padding: 10px;
  box-shadow:
    0 0 0 2px #1a1a1a inset,
    0 60px 120px -40px rgba(0,0,0,0.35),
    0 24px 48px -20px rgba(0,0,0,0.2);
  transform: rotate(-2deg);
}
.phone-screen {
  background: white;
  border-radius: 44px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 28px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 3;
}

/* decorations */
.hero-deco {
  position: absolute;
  pointer-events: none;
}
.deco-blob {
  top: -120px; right: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.35;
  filter: blur(40px);
}
.deco-dot {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
}

/* floating callouts around phone */
.float-card {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  z-index: 4;
  font-size: 13px;
}
.float-projection {
  top: 60px;
  left: -40px;
  width: 200px;
}
.float-whats {
  bottom: 80px;
  right: -20px;
  width: 220px;
  display: flex; align-items: center; gap: 10px;
}
.float-daily {
  bottom: 260px;
  left: -64px;
  width: 180px;
  background: var(--ink);
  color: white;
}
@media (max-width: 960px) {
  .float-projection { left: -10px; top: 20px; }
  .float-whats { right: -10px; bottom: 40px; }
  .float-daily { left: -10px; bottom: 220px; }
}
@media (max-width: 520px) {
  .float-projection, .float-whats, .float-daily { display: none; }
  .phone { transform: rotate(0); width: 300px; height: 620px; }
}

.whats-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #25D366; color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ---------- phone interior (dashboard) ---------- */
.dash {
  padding: 54px 20px 20px;
  height: 100%;
  background: linear-gradient(180deg, #fffbe8 0%, #ffffff 260px);
  display: flex; flex-direction: column;
  gap: 14px;
}
.dash-topbar { display: flex; align-items: center; justify-content: space-between; }
.dash-greet { font-size: 13px; color: var(--muted-fg); }
.dash-name { font-size: 15px; font-weight: 600; }
.dash-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.dash-saldo-card {
  background: var(--ink);
  color: white;
  border-radius: 20px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.dash-saldo-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--primary); opacity: 0.15;
}
.dash-saldo-label { font-size: 12px; opacity: 0.7; }
.dash-saldo-value {
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 2px;
}
.dash-saldo-row { display: flex; gap: 20px; margin-top: 14px; font-size: 12px; }
.dash-saldo-row .item .lbl { opacity: 0.6; }
.dash-saldo-row .item .val { font-weight: 600; margin-top: 2px; font-size: 14px; }
.dash-saldo-row .up { color: var(--success); }
.dash-saldo-row .down { color: #ff6b9a; }

.dash-daily {
  background: var(--primary);
  color: #1a1200;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.dash-daily-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(0,0,0,0.08);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash-daily-lbl { font-size: 11px; font-weight: 500; opacity: 0.75; }
.dash-daily-val { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.dash-daily-pill {
  margin-left: auto;
  background: rgba(0,0,0,0.12);
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}

.dash-section-title {
  font-size: 12px; font-weight: 600; color: var(--muted-fg);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 6px;
}

.dash-tx {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dash-tx:last-child { border-bottom: none; }
.dash-tx-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 16px;
}
.dash-tx-title { font-size: 14px; font-weight: 500; }
.dash-tx-sub { font-size: 11px; color: var(--muted-fg); margin-top: 1px; }
.dash-tx-amt { margin-left: auto; font-weight: 600; font-size: 14px; }
.dash-tx-amt.neg { color: var(--destructive); }
.dash-tx-amt.pos { color: #069966; }

/* mini projection line in floating card */
.mini-chart {
  width: 100%; height: 44px; margin-top: 8px;
}

/* ---------- animated ticker ---------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}
