:root {
  --primary: #161616;
  --primary-light: #333333;
  --primary-dark: #000000;
  --primary-tint: #EDEDED;
  --secondary: #30847E;
  --accent: #FF9F43;
  --accent-dark: #E8890F;
  --bg-grey: #F7F8F9;
  --text-primary: #16201F;
  --text-secondary: #667070;
  --text-tertiary: #A3ADAC;
  --success: #1FA971;
  --success-tint: #E5F7EE;
  --border: #E7ECEB;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 24, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 23, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 800; margin: 0; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; background: none; border: none; padding: 8px; color: var(--text-primary); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  border: none; transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36); }
.btn-outline { background: #fff; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -220px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,0,0,0.08), transparent 70%);
  border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: 46px; line-height: 1.12; margin: 18px 0 18px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.hero-trust-item svg { color: var(--success); flex-shrink: 0; }

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: 300px;
  margin: 0 auto;
  border-radius: 42px;
  background: #101a19;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.phone-screen {
  background: var(--bg-grey);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
}
.phone-notch { height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.phone-notch::before { content: ""; width: 70px; height: 6px; border-radius: 4px; background: #101a19; }
.phone-topbar {
  background: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.phone-topbar .title { font-size: 13.5px; font-weight: 800; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mock-cart-item {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 9px 10px; border: 1px solid var(--border);
}
.mock-thumb { width: 34px; height: 34px; border-radius: 8px; background: var(--primary-tint); flex-shrink: 0; }
.mock-lines { flex: 1; }
.mock-line { height: 7px; border-radius: 4px; background: var(--border); margin-bottom: 5px; }
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }
.mock-price { font-size: 12px; font-weight: 800; color: var(--primary); }
.mock-total-card {
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: 14px; padding: 14px; color: #fff;
}
.mock-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.mock-total-row .lbl { font-size: 11px; opacity: 0.75; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.mock-total-row .val { font-size: 22px; font-weight: 800; }
.mock-pay-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.16); padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-top: 10px; }
.float-badge {
  position: absolute;
  background: #fff; border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--border);
}
.float-badge.badge-1 { top: -5%; left: -8%; }
.float-badge.badge-2 { bottom: 10%; right: -8%; }
.float-badge .icon-dot {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ---------- Logo strip ---------- */
.logo-strip { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logo-strip-inner { display: flex; align-items: center; justify-content: center; gap: 42px; flex-wrap: wrap; color: var(--text-tertiary); font-weight: 700; font-size: 13.5px; }
.logo-strip-inner span { display: flex; align-items: center; gap: 8px; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: 34px; margin: 14px 0 14px; }
.section-head p { font-size: 15.5px; color: var(--text-secondary); }

/* ---------- Interactive feature tabs ---------- */
.feature-shell { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-md); overflow: hidden; }
.feature-tablist { background: var(--bg-grey); padding: 14px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--border); }
.feature-tab {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 13px 14px; border-radius: 12px; background: transparent; border: none;
  color: var(--text-secondary); transition: all 0.15s ease;
}
.feature-tab:hover { background: #fff; color: var(--text-primary); }
.feature-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.feature-tab .tab-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); flex-shrink: 0; transition: all 0.15s ease;
}
.feature-tab.active .tab-icon { background: var(--primary); color: #fff; }
.feature-tab .tab-label { font-size: 14px; font-weight: 700; }
.feature-tab .tab-sub { font-size: 11.5px; color: var(--text-tertiary); margin-top: 1px; }

.feature-panels { position: relative; padding: 44px; min-height: 460px; }
.feature-panel { display: none; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: fadeIn 0.35s ease; }
.feature-panel.active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.feature-panel h3 { font-size: 24px; margin-bottom: 12px; }
.feature-panel p.desc { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-primary); font-weight: 500; list-style: none; }
.feature-list li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* Illustrative mock panels per tab */
.mock-panel { background: var(--bg-grey); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--border); }
.mock-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: var(--success-tint); color: var(--success); }
.pill-amber { background: #FFF4E5; color: var(--accent-dark); }
.mock-card { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--border); margin-bottom: 10px; }
.mock-card:last-child { margin-bottom: 0; }
.mock-card-row { display: flex; align-items: center; justify-content: space-between; }
.mock-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-stat { background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--border); }
.mock-stat .num { font-size: 20px; font-weight: 800; color: var(--primary); }
.mock-stat .lbl { font-size: 11px; color: var(--text-tertiary); font-weight: 600; margin-top: 2px; }
.mock-progress { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.mock-progress > div { height: 100%; background: var(--primary); border-radius: 4px; }

/* ---------- Feature grid (secondary) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all 0.15s ease; }
.mini-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.mini-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 16px;
}
.mini-card h4 { font-size: 16px; margin-bottom: 8px; }
.mini-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-left: 4px; }
.step .step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
.step-connector { position: absolute; top: 20px; left: 100%; width: 28px; height: 2px; background: var(--border); }

/* ---------- Bottom CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--primary-light));
  border-radius: var(--radius-xl);
  padding: 56px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 55%);
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; position: relative; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 15px; margin-bottom: 26px; position: relative; }
.cta-band .hero-ctas { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-grey); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 52px 0 32px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--text-secondary); font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-tertiary); flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { max-width: none; }
  .feature-shell { grid-template-columns: 1fr; }
  .feature-tablist { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .feature-tab { flex-shrink: 0; }
  .feature-tab .tab-sub { display: none; }
  .feature-panels { padding: 26px; min-height: 0; }
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel .mock-panel { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 24px; }
  .cta-band h2 { font-size: 24px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .float-badge { display: none; }
}

/* ---------- App download modal ---------- */
.download-modal-overlay {
  position: fixed; inset: 0; background: rgba(16, 24, 23, 0.55);
  align-items: center; justify-content: center;
  padding: 20px; z-index: 1000;
}
.download-modal-overlay[hidden] { display: none; }
.download-modal-overlay:not([hidden]) { display: flex; }
.download-modal {
  position: relative; width: 100%; max-width: 380px; background: #fff;
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 32px 28px; text-align: center;
}
.download-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: var(--bg-grey); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.download-modal-close:hover { background: var(--border); color: var(--text-primary); }
.download-modal-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary-tint);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.download-modal h3 { margin: 0 0 6px; font-size: 18px; }
.download-modal p#download-modal-status { margin: 0 0 16px; color: var(--text-secondary); font-size: 14px; }
.download-modal .mock-progress { margin-top: 0; height: 8px; }
.download-modal .mock-progress > div { transition: width 0.2s ease; }
.download-modal-actions { margin-top: 20px; }
.download-modal-actions .btn { width: 100%; }
.download-modal-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
