:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --ink: #0b0c0e;
  --muted: #5b616a;
  --line: #eceef1;
  --btn: #0b0c0e;
  --btn-text: #ffffff;
  --accent: #3b6cff;
  --danger: #e24b3b;
  --ok: #1f9d6a;
  --shadow: 0 24px 80px rgba(11, 12, 14, 0.12);
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
body { min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: 22px;
  display: block;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 14px/1 var(--font);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d9dde3;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero {
  text-align: center;
  padding: 88px 24px 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
}
.hero h1 {
  max-width: 18ch;
  margin: 22px auto 16px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 650;
}
.hero p.lede {
  max-width: 46ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(6px);
  animation: rise 800ms cubic-bezier(.16,1,.3,1) forwards;
}
.d1 { animation-delay: 60ms; }
.d2 { animation-delay: 140ms; }
.d3 { animation-delay: 220ms; }
.d4 { animation-delay: 320ms; }
@keyframes rise {
  to { opacity: 1; transform: none; filter: none; }
}

.stage-wrap { padding: 28px 24px 80px; }
.stage {
  max-width: 980px;
  margin: 0 auto;
  background: linear-gradient(180deg, #eef1f6 0%, #e6eaf1 100%);
  border: 1px solid #e1e5ec;
  border-radius: 24px;
  padding: 18px 18px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.os {
  position: relative;
  height: 520px;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(1200px 400px at 50% -10%, #ffffff 0%, transparent 60%),
    #c5ccd8;
  overflow: hidden;
}
.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: #222;
}
.mb-left, .mb-right { display: flex; gap: 10px; align-items: center; }
.tray {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}
.tray img { width: 14px; height: 14px; display: block; }
.tray.on img { filter: none; }

.desktop {
  position: absolute;
  inset: 28px 0 0;
}
.file {
  position: absolute;
  width: 76px;
  text-align: center;
  font-size: 10px;
  color: #1b1c1e;
  transition: transform 700ms cubic-bezier(.2,.8,.2,1), opacity 500ms ease;
}
.file .thumb {
  width: 54px;
  height: 40px;
  margin: 0 auto 6px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  border: 1px solid #ddd;
}
.file .thumb.red { background: linear-gradient(180deg, #fff, #f3d0cc); }
.file .thumb.blue { background: linear-gradient(180deg, #fff, #d5def6); }
.os.clean .file {
  transform: translate(var(--to-x), var(--to-y)) scale(0.2);
  opacity: 0;
}

.popover {
  position: absolute;
  top: 36px;
  right: 18px;
  width: 280px;
  background: rgba(255,255,255,0.94);
  border: 1px solid #e3e6eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  overflow: hidden;
  transform: translateY(-8px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 280ms ease;
}
.os.clean .popover {
  transform: none;
  opacity: 1;
}
.pop-h, .pop-f {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
}
.pop-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid #f0f2f5;
  font-size: 13px;
}
.dot {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: #e8ebf1;
}

.stage-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 6px 16px;
  color: var(--muted);
  font-size: 14px;
}
.toggle {
  border: 1px solid #d7dbe2;
  background: #fff;
  border-radius: 999px;
  padding: 3px;
  display: flex;
}
.toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font: 600 12px var(--font);
  color: var(--muted);
  cursor: pointer;
}
.toggle button.active {
  background: var(--ink);
  color: #fff;
}

.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.kicker {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 10px;
}
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  max-width: 16ch;
}
.section .sub {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 36px;
  font-size: 17px;
}

.grid-2, .grid-3 {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 400ms cubic-bezier(.2,.8,.2,1), box-shadow 400ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11,12,14,0.06);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.mock button.fake {
  display: block;
  width: calc(100% - 24px);
  margin: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  font: 500 14px var(--font);
}

.stat {
  font-size: 40px;
  letter-spacing: -0.05em;
  font-weight: 650;
}
.stat em { font-style: normal; color: var(--accent); }

.cta-band {
  text-align: center;
  padding: 88px 24px 100px;
}
.cta-band h2 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 24px 48px;
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site a { text-decoration: none; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
}
.plan.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.plan.featured p, .plan.featured li { color: #c9cdd4; }
.price {
  font-size: 48px;
  letter-spacing: -0.05em;
  font-weight: 650;
  margin: 8px 0 18px;
}
.price span { font-size: 16px; font-weight: 500; color: inherit; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 7px 0; border-top: 1px solid rgba(127,127,127,.16); }
.compare { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 14px; }
.compare th, .compare td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.compare th { color: var(--muted); font-weight: 500; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .split, .plans { grid-template-columns: 1fr; }
  .os { height: 420px; }
  .hero { padding-top: 56px; }
}

::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 420ms;
}
