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

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #10B981;
  --primary-dark: #059669;
  --accent:       #F59E0B;
  --text:         #0F172A;
  --text-sub:     #64748B;
  --bg:           #F1F5F9;
  --white:        #FFFFFF;
  --border:       #E2E8F0;
  --error:        #EF4444;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; }

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

a { color: var(--primary); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-sub);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── FOOTER ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 56px 40px 32px;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-name img {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand-name span {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
}

.footer-brand-name span em { color: var(--accent); font-style: normal; }

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover { color: var(--primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 28px rgba(16,185,129,0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: white;
  border: 1px solid rgba(255,255,255,0.28);
}

.btn-ghost:hover { background: rgba(255,255,255,0.24); }

.btn-store {
  background: white;
  color: var(--text);
  box-shadow: 0 4px 24px rgba(0,0,0,0.16);
  padding: 13px 22px;
}

.btn-store:hover { box-shadow: 0 10px 36px rgba(0,0,0,0.22); }

.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }

.btn-store-text { text-align: left; }
.btn-store-text small { display: block; font-size: 10px; font-weight: 500; color: var(--text-sub); line-height: 1; }
.btn-store-text strong { font-size: 14px; display: block; margin-top: 2px; }

/* ── SECTION BASE ── */
.section { padding: 88px 40px; }
.section-bg { background: var(--bg); }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(16,185,129,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.65;
  max-width: 580px;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: calc(var(--nav-h) + 48px) 40px 56px;
  text-align: center;
}

.page-hero h1 { color: white; font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 16px; }

/* ── PROSE (legal pages) ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 40px 80px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--text);
}

.prose h3 {
  font-size: 17px;
  margin: 28px 0 8px;
  color: var(--text);
}

.prose p  { margin-bottom: 16px; }
.prose ul { padding-left: 24px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }
.prose a  { color: var(--primary); }

.prose .updated {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 32px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav { padding: 0 24px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 24px; }
  .footer { padding: 48px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .prose { padding: 48px 24px 64px; }
  .page-hero { padding: calc(var(--nav-h) + 32px) 24px 40px; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -280px; right: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -150px; left: -150px;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-logo {
  width: 120px; height: 120px;
  border-radius: 30px;
  margin: 0 auto 28px;
  object-fit: cover;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.hero h1 {
  font-size: clamp(56px, 10vw, 80px);
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

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

.hero-sub {
  font-size: clamp(17px, 2.5vw, 21px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 40px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── STATS ── */
.stats {
  background: white;
  padding: 36px 40px;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.stat { text-align: center; }

.stat-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label { font-size: 13px; color: var(--text-sub); font-weight: 600; margin-top: 4px; }

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.step {
  background: white;
  border-radius: 22px;
  padding: 34px 30px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
}

.step:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }

.step-num {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 22px;
}

.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-sub); line-height: 1.65; font-size: 15px; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.07); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(16,185,129,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.feature-text h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: var(--text); }
.feature-text p { font-size: 14px; color: var(--text-sub); line-height: 1.55; margin: 0; }

/* ── FOR WHO ── */
.for-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 52px;
}

@media (max-width: 760px) { .for-who { grid-template-columns: 1fr; } }

.for-card { border-radius: 28px; padding: 42px 38px; }
.for-card.client { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.for-card.provider { background: var(--bg); border: 1px solid var(--border); }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 22px;
}

.for-card.client .card-icon { background: rgba(255,255,255,0.2); }
.for-card.provider .card-icon { background: rgba(16,185,129,0.1); }

.for-card h3 { font-size: 27px; margin-bottom: 12px; }
.for-card.client h3 { color: white; }
.for-card > p { font-size: 15px; margin-bottom: 26px; line-height: 1.65; }
.for-card.client > p { color: rgba(255,255,255,0.88); }
.for-card.provider > p { color: var(--text-sub); }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 13px; }

.feature-list li {
  display: flex; align-items: center; gap: 11px;
  font-size: 15px; font-weight: 600;
}

.check {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

.for-card.client .feature-list li { color: white; }
.for-card.client .check { background: rgba(255,255,255,0.25); color: white; }
.for-card.provider .feature-list li { color: var(--text); }
.for-card.provider .check { background: rgba(16,185,129,0.15); color: var(--primary); }

/* ── CAROUSEL ── */
.carousel-wrapper { position: relative; margin-top: 48px; }

.screenshots-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 16px 0 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  scroll-behavior: smooth;
}

.screenshots-track:active { cursor: grabbing; }
.screenshots-track::-webkit-scrollbar { display: none; }

.spacer { flex-shrink: 0; width: calc(50vw - 125px); }

.shot { flex-shrink: 0; scroll-snap-align: center; width: 230px; }

.shot img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
}

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--text);
  z-index: 10;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
  background: var(--primary); color: white;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(16,185,129,0.35);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, width 0.3s;
  border: none;
}

.dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  padding: 88px 24px;
}

.cta-section h2 { color: white; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 17px; margin-bottom: 36px; }

/* ── NAV MOBILE OPEN ── */
#nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h); left: 0; right: 0;
  background: white;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  gap: 16px;
}

@media (max-width: 600px) {
  .stats { gap: 28px; padding: 28px 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .for-card { padding: 32px 24px; }
}
