:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: rgba(255, 255, 255, 0.72);
  --ink: #1d1d1f;
  --ink-soft: #515154;
  --ink-mute: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0066ff;
  --accent-2: #5e5ce6;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --grad: linear-gradient(135deg, #0066ff 0%, #5e5ce6 50%, #af52de 100%);
  --grad-soft: radial-gradient(1200px 600px at 50% -10%, rgba(94, 92, 230, 0.18), transparent 60%),
               radial-gradient(900px 500px at 90% 10%, rgba(0, 102, 255, 0.14), transparent 65%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.10), 0 4px 12px rgba(15, 23, 42, 0.05);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0b0b0d;
    --bg-elev: rgba(22, 22, 24, 0.7);
    --ink: #f5f5f7;
    --ink-soft: #c7c7cc;
    --ink-mute: #8e8e93;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --accent: #409cff;
    --accent-2: #7c7aed;
    --accent-soft: rgba(64, 156, 255, 0.12);
    --grad: linear-gradient(135deg, #409cff 0%, #7c7aed 50%, #c77dff 100%);
    --grad-soft: radial-gradient(1200px 600px at 50% -10%, rgba(124, 122, 237, 0.22), transparent 60%),
                 radial-gradient(900px 500px at 90% 10%, rgba(64, 156, 255, 0.18), transparent 65%);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.nav-links a.nav-cta:hover { text-decoration: none; opacity: 0.9; color: var(--bg); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
  background: var(--grad-soft);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
h1.display {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.45;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.fine {
  color: var(--ink-mute);
  font-size: 13px;
  margin-top: 6px;
}

/* Device mockup */
.device {
  margin: 64px auto 0;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 12px;
  background: linear-gradient(180deg, #1d1d1f, #0a0a0a);
  box-shadow: var(--shadow-lg), 0 40px 80px rgba(15, 23, 42, 0.18);
  position: relative;
}
.device::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
  overflow: hidden;
  position: relative;
  padding: 48px 18px 18px;
}
.shift-card {
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  text-align: left;
  font-size: 13px;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shift-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 8px;
  background: var(--accent);
}
.shift-row { display: flex; flex-direction: column; }
.shift-title { font-weight: 600; }
.shift-meta { color: #86868b; font-size: 11px; margin-top: 2px; }
.shift-tag {
  margin-left: auto;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
}

/* ---------------- Sections ---------------- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
}

.alt { background: var(--bg-soft); }

/* Feature grid */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, 1fr);
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 18px 0 8px;
}
.card p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.card.lg { grid-column: span 12; }
.card.md { grid-column: span 6; }
.card.sm { grid-column: span 4; }
@media (max-width: 880px) {
  .card.md, .card.sm { grid-column: span 12; }
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: 8px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); margin: 0; font-size: 15px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* Audience chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.chip {
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-mute);
  transition: transform 0.2s ease;
}
details[open] summary::after { content: "−"; }
details > p { color: var(--ink-soft); margin: 12px 0 0; font-size: 16px; }

/* CTA banner */
.banner {
  background: var(--grad);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.banner p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 560px; margin: 0 auto 24px; }
.banner .btn-primary {
  background: #ffffff;
  color: #1d1d1f;
}
.banner .btn-primary:hover { color: #1d1d1f; }

/* Doc pages */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  font-weight: 700;
}
.doc .updated {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0 0 40px;
}
.doc h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  font-weight: 600;
}
.doc p, .doc li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.doc-toc a {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.doc-toc a:hover { color: var(--ink); text-decoration: none; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 32px;
  color: var(--ink-mute);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer-grid a {
  display: block;
  color: var(--ink-soft);
  padding: 4px 0;
  font-size: 14px;
}
.footer-grid a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
