:root {
  --bg: #F5F5F7;
  --surface: #EAEAEC;
  --surface-alt: #E2E2E5;
  --text: #1C1C1E;
  --text-secondary: #6E6E73;
  --text-tertiary: #AEAEB2;
  --blue: #52B3F0;
  --purple: #9B7FE8;
  --teal: #45C9BB;
  --border: rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);
  --radius: 20px;
  --max: 1080px;
  --nav-h: 60px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* No CSS scroll-behavior — JS handles it precisely */
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: var(--nav-h);
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; padding: 6px 14px; border-radius: 20px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { margin-left: 8px; padding: 7px 16px; font-size: 13px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  cursor: pointer; border: none; font-family: inherit; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: #fff; -webkit-text-fill-color: #fff; }
.btn-primary:hover { opacity: 0.8; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { font-size: 16px; padding: 13px 28px; }

/* ── Layout ── */
section { padding: 112px 40px; }
.container { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: 80px;
  text-align: center;
}
.hero-inner { max-width: 740px; margin: 0 auto; }

.hero-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: clamp(44px, 6.5vw, 76px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 28px;
}
.hero-sub {
  font-size: 20px; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 48px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--text-tertiary); margin-top: 20px; }

/* ── Problem ── */
.problem-wrap {
  margin: 0 40px;
  background: var(--text); color: #fff;
  border-radius: 32px; padding: 104px 56px;
  text-align: center;
}
.problem-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 36px; display: block;
}
.problem-wrap h2 {
  font-size: clamp(36px, 5.5vw, 68px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1;
}
.problem-wrap h2 .blue { color: var(--blue); }
.divider-dot {
  width: 1px; height: 52px; background: rgba(255,255,255,0.12);
  margin: 32px auto;
}
.problem-sub {
  font-size: 19px; color: rgba(255,255,255,0.45);
  max-width: 500px; margin: 32px auto 0;
  line-height: 1.7;
}

/* ── Gap ── */
.gap h2 {
  font-size: clamp(28px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 20px;
}
.gap-lead {
  color: var(--text-secondary); font-size: 18px;
  max-width: 640px; line-height: 1.7; margin-bottom: 56px;
}
.gap-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 48px;
}
.gap-card {
  background: var(--surface); border-radius: var(--radius); padding: 40px 32px;
  transition: background 0.2s;
}
.gap-card:hover { background: var(--surface-alt); }
.gap-card-platform {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 14px;
}
.gap-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.gap-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.gap-footer {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7; font-style: italic;
}

/* ── Product / Solution ── */
#product h2 {
  font-size: clamp(28px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 20px;
}
.solution-lead {
  font-size: 19px; color: var(--text-secondary);
  max-width: 580px; margin-bottom: 64px; line-height: 1.7;
}
.solution-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.solution-card {
  background: var(--surface); border-radius: var(--radius); padding: 36px 28px;
  transition: background 0.2s;
}
.solution-card:hover { background: var(--surface-alt); }
.solution-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 20px;
  flex-shrink: 0;
}
.solution-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.solution-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ── Stats ── */
.stats-wrap {
  background: var(--surface); border-radius: 32px;
  margin: 0 40px; padding: 96px 56px;
}
.stats-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-tertiary);
  text-align: center; margin-bottom: 64px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; text-align: center;
}
.stat-num {
  font-size: 52px; font-weight: 700; line-height: 1;
  letter-spacing: -0.035em; margin-bottom: 12px;
}
.stat-num.blue { color: var(--blue); }
.stat-num.purple { color: var(--purple); }
.stat-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.stat-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.stats-footer {
  text-align: center; margin-top: 64px; padding-top: 48px;
  border-top: 1px solid var(--border-strong);
  font-size: 18px; color: var(--text-secondary); line-height: 1.6;
}
.stats-footer .blue { color: var(--blue); font-weight: 600; }

/* ── CTA Banner ── */
.cta-banner { text-align: center; }
.cta-banner h2 {
  font-size: clamp(34px, 5.5vw, 64px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 20px;
}
.cta-banner p {
  font-size: 19px; color: var(--text-secondary);
  max-width: 480px; margin: 0 auto 40px; line-height: 1.7;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Contact ── */
#contact .contact-header { margin-bottom: 64px; }
#contact .contact-header h2 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
#contact .contact-header p {
  font-size: 18px; color: var(--text-secondary); line-height: 1.7; max-width: 480px;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start;
}
.contact-info-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 20px;
}
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: var(--surface);
  border-radius: 14px; text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.contact-link-item:hover { background: var(--surface-alt); }
.contact-link-icon {
  font-size: 18px; flex-shrink: 0; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.contact-link-label { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.contact-link-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.contact-email-card {
  margin-top: 24px; padding: 22px 24px;
  background: var(--surface); border-radius: 14px;
}
.contact-email-label {
  font-size: 12px; font-weight: 600; color: var(--text-tertiary);
  letter-spacing: 0.04em; margin-bottom: 6px;
}
.contact-email-link {
  font-size: 16px; font-weight: 600; color: var(--blue); text-decoration: none;
}
.contact-email-link:hover { text-decoration: underline; }
.contact-form-card {
  background: #fff; border-radius: 24px; padding: 44px;
  box-shadow: 0 2px 32px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border-radius: 12px; border: 1.5px solid var(--border-strong);
  background: var(--bg); font-size: 16px; font-family: inherit;
  color: var(--text); outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success { display: none; text-align: center; padding: 64px 20px; }
.form-success .success-icon { font-size: 44px; margin-bottom: 16px; }
.form-success h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.form-success p { color: var(--text-secondary); font-size: 16px; }

/* ── App Screenshots ── */
.mockup-lead {
  font-size: 18px; color: var(--text-secondary);
  max-width: 540px; line-height: 1.7; margin-bottom: 72px;
}
.screenshots-section {
  padding: 32px 40px 112px;
  overflow: visible;
}
.phones-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.hero-phone { flex-shrink: 0; }
.hero-phone.side { transform: translateY(40px); }
.hero-phone.center { transform: translateY(0); }
.phone-frame {
  background: #1A1A1C;
  border-radius: 50px;
  padding: 10px;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.20)) drop-shadow(0 6px 16px rgba(0,0,0,0.12));
}
.hero-phone.side .phone-frame { width: 300px; }
.hero-phone.center .phone-frame { width: 344px; }
.phone-screen {
  border-radius: 42px;
  overflow: hidden;
  line-height: 0;
}
.phone-screen img { width: 100%; display: block; }

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.hero-phone.side:first-child .phone-frame { animation: phoneFloat 3.8s ease-in-out infinite 0.4s; }
.hero-phone.center .phone-frame            { animation: phoneFloat 3.8s ease-in-out infinite 0s; }
.hero-phone.side:last-child .phone-frame   { animation: phoneFloat 3.8s ease-in-out infinite 0.8s; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 40px 40px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px; color: var(--text-secondary); text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }

/* ── Fade-in ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .gap-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 860px) {
  .hero-phone.side .phone-frame { width: 240px; }
  .hero-phone.center .phone-frame { width: 276px; }
  .hero-phone.side { transform: translateY(28px); }
  .gap-cards { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}
@media (max-width: 740px) {
  nav { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 72px 20px; }
  .screenshots-section { padding: 16px 0 0; }
  /* swipeable carousel — scroll snap, one phone at a time */
  .phones-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 16px;
    padding: 48px calc(50% - 130px) 80px;
  }
  .phones-row::-webkit-scrollbar { display: none; }
  .hero-phone.side { display: flex; transform: none; }
  .hero-phone.center { transform: none; }
  .hero-phone { scroll-snap-align: center; }
  .hero-phone.side .phone-frame { width: 260px; }
  .hero-phone.center .phone-frame { width: 260px; }
  .problem-wrap { margin: 0 16px; padding: 64px 28px; }
  .stats-wrap { margin: 0 16px; padding: 56px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .solution-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-sub { font-size: 17px; }
  .gap-footer { font-size: 16px; }
  .stats-footer { font-size: 16px; }
  .cta-banner p { font-size: 17px; }
}
