:root {
  --bg: #fbfbfd;
  --tint: #f2f4f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e5e8;
  --accent: #0a6cff;
  --accent-2: #5ac8fa;
  --ok: #1f9d55;
  --bad: #e5484d;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}
.wrap.wide { max-width: 1100px; }
.center { text-align: center; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 253, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  padding-top: env(safe-area-inset-top);
}
.nav-in {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
}
.logo b { font-weight: 400; color: var(--muted); margin-left: 5px; }

/* Type */
h1 {
  font-size: clamp(44px, 8.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}
h2 {
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.07;
  letter-spacing: -.03em;
  font-weight: 700;
}
h3 { font-size: 19px; letter-spacing: -.015em; font-weight: 600; }
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.lead {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 34em;
  margin-top: 20px;
}
.center .lead { margin-left: auto; margin-right: auto; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; color: var(--text); }

/* Buttons */
.cta { display: flex; align-items: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.center .cta { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 32px; padding: 0 15px; font-size: 14px; }
.btn-light { background: #fff; color: var(--text); }
.link { color: var(--accent); font-weight: 500; }
@media (hover: hover) {
  .btn:hover { background: #005ae0; }
  .btn-light:hover { background: #e8e8ed; }
  .link:hover { text-decoration: underline; }
}

/* Sections */
.hero { padding: 88px 0 24px; overflow: hidden; }
.sec { padding: 120px 0; }
.tint { background: var(--tint); }
.dark { background: #0b0b0d; color: #f5f5f7; }
.dark .lead { color: #a1a1a6; }
.fine { margin-top: 18px; font-size: 14px; color: #86868b; }

/* Dashboard mockup */
.screen {
  margin-top: 72px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(10, 40, 90, .25), 0 2px 6px rgba(0, 0, 0, .04);
  overflow: hidden;
  font-size: 13px;
  letter-spacing: 0;
}
.screen-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #f5f6f8;
  border-bottom: 1px solid var(--line);
}
.screen-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dcdfe3; }
.screen-bar span { margin: 0 auto; color: var(--muted); font-size: 12px; transform: translateX(-24px); }
.dash { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
.dash-side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.dash-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 10px 16px; }
.dash-side a { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.dash-side a.on { background: #eef4ff; color: var(--accent); font-weight: 600; }
.dash-main { padding: 22px 26px; background: #fafbfc; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.dash-head small { display: block; color: var(--muted); }
.dash-head strong { font-size: 22px; letter-spacing: -.02em; }
.pill { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi, .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kpi { padding: 14px; }
.kpi small { color: var(--muted); display: block; }
.kpi strong { display: block; font-size: 20px; letter-spacing: -.02em; margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.kpi em.up { color: var(--ok); }
.kpi em.down { color: var(--bad); }
.card { padding: 14px 16px 6px; }
.card-h { font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.card-h span { font-weight: 400; color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 0; border-bottom: 1px solid #f0f1f3; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.r { text-align: right; }
td.ok { color: var(--muted); }
td.bad { color: var(--bad); font-weight: 600; }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.prob {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.prob-q {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.prob p:last-child { color: var(--muted); }

/* Split + phone */
.split { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: #1d1d1f;
  box-shadow: 0 30px 70px -20px rgba(10, 40, 90, .35);
}
.phone-in {
  border-radius: 36px;
  background: #f5f6f8;
  padding: 26px 18px 20px;
  font-size: 14px;
  letter-spacing: 0;
}
.ph-top span { display: block; color: var(--muted); font-size: 12px; }
.ph-top b { font-size: 24px; letter-spacing: -.02em; }
.ph-cust, .ph-items { background: #fff; border-radius: 14px; padding: 14px; margin-top: 14px; }
.ph-cust small { color: var(--muted); font-size: 12px; display: block; }
.ph-cust strong { display: block; font-size: 16px; margin: 2px 0; }
.ph-cust span { color: var(--muted); font-size: 12px; }
.ph-items div { display: flex; justify-content: space-between; padding: 6px 0; }
.ph-items div + div { border-top: 1px solid #f0f1f3; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #e6e8ec; border-radius: 10px; padding: 2px; margin-top: 14px; text-align: center; font-size: 13px; }
.seg span { padding: 6px 0; border-radius: 8px; color: var(--muted); }
.seg .on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ph-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 2px 14px; }
.ph-total strong { font-size: 22px; letter-spacing: -.02em; }
.ph-btn { background: var(--accent); color: #fff; text-align: center; border-radius: 14px; padding: 13px; font-weight: 600; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feat { padding-top: 18px; border-top: 1px solid var(--line); }
.feat p, .trio p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }

/* Footer */
.foot { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: #86868b; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .phone { margin: 0 auto; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .sec { padding: 84px 0; }
  .screen { margin-top: 52px; font-size: 12px; }
  .dash-main { padding: 16px 14px; }
  .kpi strong { font-size: 17px; }
  .hide-s { display: none; }
  .problems, .trio { grid-template-columns: 1fr; gap: 14px; }
  .trio { gap: 32px; }
  .prob { padding: 26px; }
  .phone { width: 280px; }
}
