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

:root {
  --blue: #0042FF;
  --blue-dark: #0035CC;
  --blue-light: rgba(0,66,255,.08);
  --gold: #FFC700;
  --green: #4BCA37;
  --red: #DC1D40;
  --orange: #FF8A00;
  --grey: #B1B1B1;
  --slate: #333333;
  --bg: #FAFAFA;
  --bg-card: #FFFFFF;
  --text: #555;
  --text-dark: #1a1a2e;
  --text-muted: #888;
  --border: #E8EAED;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
  --font: 'Poppins', sans-serif;
  --max-w: 1140px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--text-dark); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 1.1rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), #0078FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-light {
  background: linear-gradient(135deg, #7CB3FF, #fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

section { padding: 100px 24px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 12px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; background: rgba(250,250,250,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-img { width: 34px; height: 34px; object-fit: contain; }
.logo-text { font-weight: 800; font-size: 1.3rem; color: var(--text-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--text-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-dark); border-radius: 2px; }

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 280px; }
  .nav-links a { padding: 14px 32px; width: 100%; border-top: 1px solid var(--border); }
  .nav-toggle { display: flex; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 12px; border: none;
  cursor: pointer; transition: all .2s; font-size: .9rem;
}
.btn-sm { padding: 8px 20px; font-size: .84rem; border-radius: 10px; }
.btn-lg { padding: 14px 32px; font-size: .95rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 12px rgba(0,66,255,.2); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* === HERO === */
.hero {
  padding-top: calc(var(--nav-h) + 60px); padding-bottom: 80px;
  padding-left: 24px; padding-right: 24px;
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; min-height: 92vh;
}
.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 440px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }

/* Phone */
.phone-mockup {
  width: 320px; background: var(--text-dark);
  border-radius: 44px; padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset;
  position: relative;
}
.phone-mockup::before {
  content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px; background: var(--text-dark);
  border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  background: #fff; border-radius: 34px; overflow: hidden;
  padding: 44px 16px 20px; min-height: 580px;
}
.screen-header { text-align: center; padding: 8px 0 12px; }
.screen-greeting { display: block; font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.screen-balance-card {
  background: linear-gradient(135deg, var(--blue), #0035CC);
  border-radius: 14px; padding: 14px 16px; margin-top: 8px; color: #fff;
}
.screen-currency { display: block; font-size: .55rem; font-weight: 600; opacity: .7; letter-spacing: .05em; margin-bottom: 2px; }
.screen-balance { display: block; font-weight: 800; font-size: 1.8rem; color: #fff; }
.screen-balance small { font-size: .55em; opacity: .6; }

.screen-send-again { margin-top: 12px; }
.send-again-label { display: block; font-size: .6rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.send-again-row { display: flex; gap: 14px; }
.send-again-person { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.send-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 700; }
.send-again-person span { font-size: .55rem; color: var(--text-muted); font-weight: 500; }

.screen-chat { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; border-top: 1px solid #f0f1f3; padding-top: 10px; }
.chat-bubble { padding: 8px 12px; border-radius: 14px; font-size: .68rem; line-height: 1.5; max-width: 88%; }
.chat-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-ai { background: #f0f1f3; color: var(--text-dark); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-ai-label { display: block; font-size: .55rem; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.mini-sku { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 4px 7px; font-size: .58rem; margin-top: 3px; line-height: 1.4; }
.mini-sku + .mini-sku { margin-top: 2px; }
.sku-src { display: inline-block; font-size: .48rem; font-weight: 700; color: #fff; background: var(--blue); padding: 1px 4px; border-radius: 3px; margin-right: 3px; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: auto; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-mockup { width: 280px; }
  .phone-screen { min-height: auto; padding: 40px 14px 18px; }
}

/* === LIFESTYLE GRID === */
.lifestyle { max-width: var(--max-w); margin: 0 auto; }
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.lifestyle-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: default; transition: transform .3s;
}
.lifestyle-card:hover { transform: scale(1.02); }
.lifestyle-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.lc-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.lc-overlay span {
  color: #fff; font-weight: 600; font-size: .88rem;
  letter-spacing: .01em;
}
.lc-tall { grid-row: span 2; }
.lc-wide { grid-column: span 2; }

@media (max-width: 768px) {
  .lifestyle-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .lc-tall { grid-row: span 1; }
  .lc-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .lifestyle-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
}

/* === DEMO CHAT CARDS === */
.demos { max-width: var(--max-w); margin: 0 auto; }
.demo-grid { display: flex; flex-direction: column; gap: 32px; }
.demo-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); transition: transform .3s;
}
.demo-card:hover { transform: translateY(-2px); }
.demo-convo { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

.d-bubble { padding: 14px 20px; border-radius: 18px; font-size: .9rem; line-height: 1.6; max-width: 90%; }
.d-user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.d-bot {
  background: #f4f5f7; color: var(--text-dark);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.d-label { display: block; font-size: .7rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; letter-spacing: .02em; }

/* Carousel inside demo */
.d-carousel {
  display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 4px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.d-carousel::-webkit-scrollbar { display: none; }

.d-result {
  flex-shrink: 0; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; width: 180px;
}
.d-result img { width: 100%; height: 150px; object-fit: cover; }
.d-result-info { padding: 10px 12px; }
.d-result-name { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dark); }
.d-result-meta { display: block; font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

.d-result-flight { width: 300px; }
.d-result-flight img { height: 170px; }
.d-result-ride { width: 320px; }
.d-result-ride img { height: 140px; }
.d-result-grocery { width: 340px; }
.d-result-grocery img { height: 80px; object-fit: contain; background: #f8f9fa; padding: 8px; }

@media (max-width: 768px) {
  .demo-card { padding: 20px; }
  .d-bubble { font-size: .84rem; padding: 12px 16px; max-width: 100%; }
  .d-result { width: 160px; }
  .d-result img { height: 120px; }
  .d-result-flight { width: 260px; }
  .d-result-flight img { height: 140px; }
  .d-result-ride { width: 280px; }
  .d-result-ride img { height: 120px; }
  .d-result-grocery { width: 300px; }
}

/* === SPENDING === */
.spending { max-width: var(--max-w); margin: 0 auto; }
.spending-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.spending-card, .timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.spending-card h3, .timeline-card h3 { margin-bottom: 4px; }
.spending-period { font-size: .8rem; color: var(--text-muted); margin-bottom: 20px; }
.spending-total { font-weight: 800; font-size: 2.2rem; color: var(--text-dark); margin-bottom: 20px; }
.spending-total small { font-size: .4em; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.category-bar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-bottom: 18px; gap: 2px; }
.cat-seg { border-radius: 8px; }
.categories { display: flex; flex-direction: column; gap: 10px; }
.cat-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.cat-dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.cat-name { flex: 1; color: var(--text-dark); font-weight: 500; }
.cat-amount { font-weight: 700; color: var(--text-dark); }
.cat-pct { font-size: .75rem; color: var(--text-muted); width: 32px; text-align: right; }

.timeline-card h3 { margin-bottom: 18px; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f2f3f5; }
.tl-item:last-child { border-bottom: none; }
.tl-dot { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.tl-food { background: #FFF3E0; border: 1.5px solid #FFE0B2; }
.tl-peer { background: #E8F5E9; border: 1.5px solid #C8E6C9; }
.tl-ride { background: #E3F2FD; border: 1.5px solid #BBDEFB; }
.tl-travel { background: #F3E5F5; border: 1.5px solid #E1BEE7; }
.tl-bank { background: #E0F7FA; border: 1.5px solid #B2EBF2; }
.tl-info { flex: 1; }
.tl-title { display: block; font-size: .84rem; font-weight: 600; color: var(--text-dark); }
.tl-desc { display: block; font-size: .74rem; color: var(--text-muted); margin-top: 1px; }
.tl-amount { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tl-amount.neg { color: var(--text-dark); }
.tl-amount.pos { color: var(--green); }

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

/* === SERVICES === */
.services { max-width: var(--max-w); margin: 0 auto; background: var(--bg); }
.services-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.services-tab {
  padding: 10px 24px; border-radius: 100px;
  font-size: .86rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; color: var(--text-muted);
}
.services-tab:hover { border-color: var(--blue); color: var(--blue); }
.services-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.services-panel { display: none; }
.services-panel.active { display: block; }
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px; max-width: 720px; margin: 0 auto;
}
.service-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s; cursor: default;
}
.service-item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.service-icon::after {
  content: ''; display: block; width: 20px; height: 20px; border-radius: 5px; margin: auto;
}
.si-elec { background: #FFF8E1; }
.si-elec::after { background: var(--gold); }
.si-water { background: #E3F2FD; }
.si-water::after { background: var(--blue); }
.si-net { background: #F3E5F5; }
.si-net::after { background: #9C27B0; }
.si-food { background: #FFF3E0; }
.si-food::after { background: var(--orange); }
.si-ride { background: #E8F5E9; }
.si-ride::after { background: var(--green); }
.si-shop { background: #E3F2FD; }
.si-shop::after { background: var(--blue); }
.si-grocery { background: #E8F5E9; }
.si-grocery::after { background: var(--green); }
.si-fly { background: #E8EAF6; }
.si-fly::after { background: #3F51B5; }
.si-hotel { background: #FCE4EC; }
.si-hotel::after { background: var(--red); }
.si-pass { background: #E0F7FA; }
.si-pass::after { background: #00ACC1; }
.si-more { background: #F5F5F5; }
.si-more::after { background: var(--grey); }
.service-item span:last-child { font-size: .8rem; font-weight: 600; color: var(--text-dark); text-align: center; }

@media (max-width: 768px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .services-tab { padding: 8px 16px; font-size: .8rem; }
}

/* === HOW === */
.how { max-width: var(--max-w); margin: 0 auto; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative; max-width: 900px; margin: 0 auto;
}
.steps::before {
  content: ''; position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 2px; background: var(--border);
}
.step { text-align: center; position: relative; padding: 0 12px; }
.step-num {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--blue); color: #fff;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 18px; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,66,255,.2);
}
.step h3 { margin-bottom: 6px; font-size: 1rem; }
.step p { color: var(--text-muted); font-size: .84rem; line-height: 1.5; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* === PERKS / TIERS === */
.perks {
  background: linear-gradient(135deg, var(--slate), #1a1a2e);
  color: #fff;
}
.perks .section-header h2 { color: #fff; }
.perks .section-header p { color: rgba(255,255,255,.5); }
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; max-width: 860px; margin: 0 auto;
}
.tier-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px; text-align: center;
  transition: all .3s; position: relative; overflow: hidden;
}
.tier-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.09); }
.tier-featured { border-color: rgba(255,255,255,.25); }
.tier-badge {
  display: block; width: 44px; height: 44px; border-radius: 50%;
  margin: 0 auto 12px;
}
.tier-bronze { background: linear-gradient(135deg, #CD7F32, #E8A860); }
.tier-silver { background: linear-gradient(135deg, #B0B0B0, #D8D8D8); }
.tier-gold { background: linear-gradient(135deg, #FFC700, #FFD54F); }
.tier-name { font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.tier-req { font-size: .76rem; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.tier-perks { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tier-perks li {
  font-size: .82rem; color: rgba(255,255,255,.75);
  display: flex; align-items: flex-start; gap: 8px;
}
.tier-perks li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }

@media (max-width: 768px) {
  .tiers { grid-template-columns: 1fr; max-width: 380px; }
}

/* === WAITLIST === */
.waitlist {
  background: linear-gradient(135deg, var(--blue), var(--slate));
  text-align: center; color: #fff;
}
.waitlist-content { max-width: 560px; margin: 0 auto; }
.waitlist h2 { color: #fff; margin-bottom: 12px; }
.waitlist p { color: rgba(255,255,255,.65); margin-bottom: 28px; font-size: 1rem; }
.input-group { display: flex; flex-direction: column; gap: 10px; max-width: 400px; margin: 0 auto; }
.input-group input {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; outline: none;
  padding: 14px 18px; color: #fff; font-size: .92rem; width: 100%;
}
.input-group input::placeholder { color: rgba(255,255,255,.45); }
.input-group .btn {
  background: #fff; color: var(--blue); font-weight: 700;
  width: 100%; padding: 14px; border-radius: 12px;
}
.input-group .btn:hover { background: #f0f4ff; }
@media (min-width: 520px) {
  .input-group { flex-direction: row; max-width: 460px; }
  .input-group input { flex: 1; }
  .input-group .btn { width: auto; padding: 14px 24px; white-space: nowrap; }
}
.waitlist-note { display: block; margin-top: 10px; font-size: .75rem; color: rgba(255,255,255,.4); }
.waitlist-success { padding: 20px 0; }
.waitlist-success h3 { color: #fff; margin-bottom: 6px; font-size: 1.2rem; }
.waitlist-success p { color: rgba(255,255,255,.6); }

/* === FOOTER === */
.footer { background: var(--slate); color: rgba(255,255,255,.8); padding: 56px 24px 28px; }
.footer-content {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px; margin-bottom: 36px;
}
.footer-brand .logo-img { filter: brightness(0) invert(1); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: 10px; }
.footer-col h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 14px;
}
.footer-col a { display: block; font-size: .85rem; color: rgba(255,255,255,.5); padding: 3px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: rgba(255,255,255,.35);
  display: flex; justify-content: space-between; align-items: center;
}

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero h1 { animation: fadeInUp .6s ease .1s both; }
.hero-sub { animation: fadeInUp .6s ease .2s both; }
.hero-actions { animation: fadeInUp .6s ease .3s both; }
.hero-visual { animation: fadeInUp .8s ease .2s both; }
