:root {
  color-scheme: light dark;

  --primary-100: #EBF7EB;
  --primary-200: #C6ECC7;
  --primary-300: #92DB95;
  --primary-400: #5EC663;
  --primary-500: #319C1A;
  --primary-600: #0F5C24;
  --primary-700: #0A431A;

  --accent-300: #FDD495;
  --accent-400: #FBC878;
  --accent-500: #FFBB50;

  --secondary-400: #626894;
  --secondary-500: #41476E;

  --neutral-100: #FFFFFF;
  --neutral-200: #F4F2F1;
  --neutral-300: #D7CEC9;
  --neutral-400: #B6ACA6;
  --neutral-500: #978F8A;
  --neutral-600: #564E4A;
  --neutral-700: #3C3836;
  --neutral-800: #191015;
  --neutral-900: #000000;

  --bg: var(--neutral-100);
  --bg-soft: var(--primary-100);
  --surface: #FFFFFF;
  --text: var(--neutral-800);
  --text-dim: var(--neutral-600);
  --border: var(--neutral-300);
  --header-bg: rgba(255, 255, 255, 0.82);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 12px 30px -12px rgba(15, 92, 36, 0.25);
  --max-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1210;
    --bg-soft: #12241a;
    --surface: #171b18;
    --text: #f1efe9;
    --text-dim: #b7ad9f;
    --border: #2a2f2a;
    --header-bg: rgba(15, 18, 16, 0.78);
    --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-100);
  border-radius: 999px;
  padding: 6px 14px;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--primary-300); background: rgba(94, 198, 99, 0.12); }
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0;
}

section {
  padding: 88px 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--primary-400), var(--primary-600));
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--primary-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-600); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary-500); color: var(--primary-600); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background:
    radial-gradient(closest-side, rgba(94, 198, 99, 0.35), transparent),
    radial-gradient(closest-side at 80% 20%, rgba(255, 187, 80, 0.28), transparent 60%);
  filter: blur(10px);
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
}

.hero h1 .accent { color: var(--primary-500); }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg { flex-shrink: 0; color: var(--primary-500); }

/* Phone mockup */

.phone-frame-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 260px;
  border-radius: 34px;
  background: linear-gradient(160deg, var(--neutral-800), #05130a);
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(15, 92, 36, 0.4);
}

.phone-screen {
  background: var(--bg-soft);
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  gap: 10px;
}

.phone-screen .ps-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-screen .ps-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-400);
}

.phone-screen .ps-bell {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-screen .ps-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--border);
}

.phone-screen .ps-card.primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
}

.phone-screen .ps-line {
  height: 8px;
  border-radius: 6px;
  background: var(--border);
}
.phone-screen .ps-card.primary .ps-line { background: rgba(255,255,255,0.35); }
.phone-screen .ps-line.w60 { width: 60%; }
.phone-screen .ps-line.w40 { width: 40%; }
.phone-screen .ps-line.w80 { width: 80%; }

.phone-screen .ps-row {
  display: flex;
  gap: 8px;
}
.phone-screen .ps-chip {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.phone-screen .ps-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-400);
}

.phone-screen .ps-tabbar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.phone-screen .ps-tabbar span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--border);
}
.phone-screen .ps-tabbar span.active {
  background: var(--primary-500);
}

/* ---------- Logos / partners strip ---------- */

.strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-100);
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
@media (prefers-color-scheme: dark) {
  .icon-badge { background: rgba(94, 198, 99, 0.14); color: var(--primary-300); }
}

.about-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.about-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.94rem;
}

/* ---------- How it works ---------- */

.how-it-works { background: var(--bg-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
}

.step .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  border-color: var(--primary-400);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1.02rem;
  margin: 14px 0 6px;
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ---------- Download ---------- */

.download {
  background: linear-gradient(160deg, var(--primary-600), var(--primary-700));
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: calc(var(--max-width) - 0px);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.download .container {
  padding: 64px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.download h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}
.download p {
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  margin: 0 0 26px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 10px 18px;
  color: #fff;
  transition: background 0.15s ease;
}
.store-btn:hover { background: rgba(255,255,255,0.18); }
.store-btn.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store-btn .store-text small { font-size: 0.68rem; opacity: 0.85; }
.store-btn .store-text strong { font-size: 0.98rem; }

.download-note {
  margin-top: 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.download-side {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 22px;
}
.download-side h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.download-side p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-item h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.contact-item p, .contact-item a {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.contact-item a:hover { color: var(--primary-600); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
}
.contact-form label:first-child { margin-top: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.contact-form button {
  margin-top: 20px;
  width: 100%;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h5 {
  color: var(--text);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a:hover { color: var(--primary-600); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .phone-frame-wrap { order: -1; }
  .phone-frame { width: 220px; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }

  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  section { padding: 60px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .download { margin: 0 16px; }
}
