:root {
  --bg: #0b1120;
  --bg-raised: #111a2e;
  --bg-card: #142039;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --text-strong: #f8fafc;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-strong: #34d399;
  --accent-ink: #052e22;
  --warn: #f59e0b;
  --radius: 16px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: rgba(148, 163, 184, 0.12); padding: 0.08em 0.35em; border-radius: 5px; }
.codeline code { background: none; padding: 0; }
kbd { background: var(--bg-card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0.05em 0.4em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); font-weight: 750; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--muted); font-weight: 550; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text-strong); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 650; font-size: 1rem;
  border: 1px solid var(--line); color: var(--text-strong); background: var(--bg-card);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(148, 163, 184, 0.35); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-small { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--accent-strong); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 650; background: rgba(16, 185, 129, 0.14); color: var(--accent-strong); }
.badge-soon { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.pro { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px; background: rgba(16, 185, 129, 0.16); color: var(--accent-strong); vertical-align: middle; }
.note { color: var(--muted); font-size: 0.92rem; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--accent-strong); }
.hero .lede { margin-bottom: 28px; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 0.92rem; }

/* Mac window illustration */
.mac-window {
  border-radius: 14px; overflow: hidden; background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-size: 13px; color: #cbd5e1;
}
.mac-titlebar { display: flex; gap: 8px; padding: 12px 14px; background: #1b2438; border-bottom: 1px solid rgba(0, 0, 0, 0.4); }
.mac-titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mac-titlebar i:nth-child(2) { background: #febc2e; }
.mac-titlebar i:nth-child(3) { background: #28c840; }
.mac-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.mac-sidebar { background: #131c30; padding: 12px 8px; border-right: 1px solid rgba(0, 0, 0, 0.35); }
.mac-sidebar b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; padding: 10px 8px 4px; }
.mac-sidebar span { display: block; padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mac-sidebar .on { background: rgba(16, 185, 129, 0.22); color: #fff; }
.mac-list { padding: 8px 14px; }
.mac-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.mac-row:last-child { border: 0; }
.app-dot { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; }
.mac-row strong { display: block; color: #f1f5f9; font-size: 13px; }
.mac-row small { color: #64748b; font-size: 11px; }
.mac-pick { padding: 4px 10px; border-radius: 6px; background: #1e293b; border: 1px solid rgba(148, 163, 184, 0.2); font-size: 12px; white-space: nowrap; }
.mac-pick::after { content: " ⌄"; color: #64748b; }
.mac-row.pending small { color: #f59e0b; }

/* Platform cards */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.platform-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 32px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line);
}
.platform-card.is-yours { border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 20px 50px -25px rgba(16, 185, 129, 0.5); }
.platform-card.is-yours::before { content: "Your device"; position: absolute; top: 16px; right: 16px; font-size: 0.75rem; font-weight: 700; color: var(--accent-strong); }
.platform-card header { display: flex; align-items: center; gap: 14px; }
.platform-card header img { width: 56px; height: 56px; border-radius: 14px; }
.platform-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.platform-card li { margin: 4px 0; }
.platform-card .btn-row { margin-top: auto; padding-top: 8px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.feature .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(16, 185, 129, 0.14); color: var(--accent-strong); margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature .platform-tags { margin-top: 12px; display: flex; gap: 6px; }
.tag { font-size: 0.72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(16, 185, 129, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2334d399'%3E%3Cpath d='M8.1 13.4 4.7 10l-1.2 1.2 4.6 4.6 9.4-9.4-1.2-1.2z'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Notification illustration */
.notif {
  max-width: 420px; margin-inline: auto; padding: 16px 18px; border-radius: 18px;
  background: rgba(30, 41, 59, 0.92); border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6); display: grid; grid-template-columns: 40px 1fr; gap: 12px;
}
.notif img { width: 40px; height: 40px; border-radius: 10px; }
.notif strong { color: #fff; display: block; font-size: 0.95rem; }
.notif p { margin: 2px 0 10px; font-size: 0.9rem; color: #cbd5e1; }
.notif .actions { display: flex; gap: 8px; }
.notif .actions span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: rgba(148, 163, 184, 0.16); font-size: 0.85rem; font-weight: 600; }
.notif .actions span:first-child { background: var(--accent); color: var(--accent-ink); }

/* Phone gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 2px 20px; scroll-snap-type: x mandatory; margin-top: 36px; }
.gallery img { width: 240px; flex: none; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 32px; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: rgba(16, 185, 129, 0.08); color: var(--text-strong); font-size: 0.95rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 110px; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent-strong); font-weight: 800; }
.no { color: #475569; }
.table-scroll { overflow-x: auto; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: rgba(16, 185, 129, 0.6); }
.plan .price { font-size: 2.2rem; font-weight: 800; color: var(--text-strong); }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 1.1em; color: var(--muted); margin: 6px 0 16px; }
.plan .btn-row { margin-top: auto; }

/* Install box */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.install-card { padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.codeline { display: flex; align-items: center; gap: 10px; background: #070b14; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 0.88rem; overflow-x: auto; white-space: nowrap; }
.codeline button { margin-left: auto; flex: none; background: var(--bg-card); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 0.8rem; cursor: pointer; }

/* FAQ */
.faq { max-width: 760px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Articles (guides, legal) */
.article { max-width: 760px; margin-inline: auto; padding: 72px 0 96px; }
.article h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.article h2 { font-size: 1.6rem; margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #cbd5e1; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }
.callout { margin: 32px 0; padding: 22px 24px; border-radius: var(--radius); background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.35); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.guide-card { display: block; padding: 24px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); color: var(--text); }
.guide-card:hover { text-decoration: none; border-color: rgba(16, 185, 129, 0.5); }
.guide-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: #080d19; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: #cbd5e1; font-size: 0.93rem; margin: 6px 0; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; margin-top: 12px; max-width: 280px; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #64748b; font-size: 0.82rem; }

@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid, .split, .platforms, .plans, .install { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split > :last-child { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; height: auto; padding: 10px 0; gap: 8px 16px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .features, .guide-list { grid-template-columns: 1fr; }
  .mac-body { grid-template-columns: 1fr; }
  .mac-sidebar { display: none; }
  .platform-card, .plan { padding: 24px; }
  .compare th, .compare td { padding: 12px; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
