:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #2f6df6;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --shadow: 0 30px 80px -20px rgba(15, 25, 60, 0.35), 0 10px 30px -10px rgba(15, 25, 60, 0.2);
  --radius: 14px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e11;
    --bg-soft: #16181d;
    --text: #f2f2f5;
    --muted: #9a9aa3;
    --line: #26282f;
    --accent: #4a85ff;
    --card: #16181d;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { padding: 7px 15px; font-size: 14px; }
.nav nav .btn { color: var(--accent-ink); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 90px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(closest-side at 22% 40%, rgba(47, 109, 246, .28), transparent),
    radial-gradient(closest-side at 50% 25%, rgba(235, 64, 64, .18), transparent),
    radial-gradient(closest-side at 78% 42%, rgba(52, 199, 89, .22), transparent),
    radial-gradient(closest-side at 62% 70%, rgba(245, 200, 30, .18), transparent);
  filter: blur(20px);
}
.hero .app-icon { width: 104px; height: 104px; margin: 0 auto 22px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.25)); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 750; }
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* Window mockup around screenshots */
.window {
  margin: 56px auto 0; max-width: 1040px; border-radius: 12px; overflow: hidden;
  background: #1e1f22; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08);
}
.window .titlebar {
  height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: linear-gradient(#2b2c30, #242528); border-bottom: 1px solid #111;
}
.window .titlebar span { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.window .titlebar span:nth-child(1) { background: #ff5f57; }
.window .titlebar span:nth-child(2) { background: #febc2e; }
.window .titlebar span:nth-child(3) { background: #28c840; }
.window .titlebar b { color: #d8d8dc; font-size: 13px; font-weight: 600; margin-left: 12px; }
.window .titlebar small { color: #8b8b92; font-size: 12px; margin-left: 6px; }

/* Sections */
section { padding: 90px 0; }
section.soft { background: var(--bg-soft); }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 16px; }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .dot { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  box-shadow: inset 6px 6px 12px rgba(255,255,255,.45), inset -6px -6px 14px rgba(0,0,0,.25); }
.feature h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.caption h3 { margin: 22px 0 6px; font-size: 21px; }
.caption p { margin: 0; color: var(--muted); }

.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote p { font-size: 22px; line-height: 1.5; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; margin: 10px 0 4px; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ol, .faq details ul { color: var(--muted); margin: 12px 0 0; }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: 70px 24px 90px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.015em; }
.page p, .page li { color: var(--text); }
.page .muted { color: var(--muted); }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.release { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
.release h2 { margin-top: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); margin-left: 8px; vertical-align: middle; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 50px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .split, .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .hero { padding-top: 60px; }
  footer nav { margin-left: 0; }
}
