:root {
  --navy: #0a2b6b;
  --blue: #0a64d8;
  --blue-2: #1e88f0;
  --sky: #e8f2ff;
  --ink: #0f1b2d;
  --muted: #5b6b82;
  --line: #e3e9f2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --amber: #f5a623;
  --green: #18a058;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 28px rgba(15, 27, 45, .08);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-name { font-size: 20px; font-weight: 800; color: var(--navy); font-style: italic; }
.brand-name b { font-weight: 400; }
.pill { font-size: 12px; font-weight: 600; color: var(--blue); background: var(--sky); padding: 4px 10px; border-radius: 999px; }
.topnav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--blue); margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 800; color: var(--navy); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 34em; margin: 20px 0 14px; }
.today { position: relative; display: inline-block; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px 8px 32px; margin: 0 0 26px; }
.today::before { content: ""; position: absolute; left: 13px; top: 50%; margin-top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(24,160,88,.15); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art { position: relative; aspect-ratio: 1.25; }
.device { position: absolute; background: #0d1626; padding: 8px; border-radius: 18px; box-shadow: 0 30px 60px rgba(10, 43, 107, .25); overflow: hidden; }
.device img { border-radius: 11px; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device.laptop { left: 0; top: 4%; width: 78%; aspect-ratio: 1.4; border-radius: 14px; }
.device.tablet { right: 0; bottom: 4%; width: 52%; aspect-ratio: 1.333; }
.device.phone { left: 34%; bottom: 0; width: 24%; aspect-ratio: .5; border-radius: 26px; padding: 6px; }
.device.phone img { border-radius: 21px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--font);
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(10,100,216,.28); }
.btn-primary:hover { background: #0857bd; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d5e6; }
.btn-small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }

/* sections */
.section { padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.section-tint { max-width: none; background: linear-gradient(180deg, #eef4ff, #f6f8fc); }
.section-tint > * { max-width: 1184px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); color: var(--navy); }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 17px; max-width: 46em; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; }
.card-shot { position: relative; height: 190px; background: linear-gradient(135deg, #0a3a8c, #1e88f0); overflow: hidden; }
.card-shot img { position: absolute; left: 50%; transform: translateX(-50%); top: 22px; width: 86%; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.card-shot.is-phone img { width: 42%; top: 18px; border-radius: 18px 18px 0 0; border: 5px solid #0d1626; border-bottom: 0; }
.card-shot.is-tablet img { width: 72%; border: 5px solid #0d1626; border-bottom: 0; border-radius: 14px 14px 0 0; }
.badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); z-index: 1; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-who { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.card h3 { font-size: 22px; color: var(--navy); margin-top: 2px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.creds { display: grid; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cred { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
.cred span { color: var(--muted); }
.cred code { font: 600 14px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred button { border: 0; background: none; color: var(--blue); font: 600 13px var(--font); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.cred button:hover { background: var(--sky); }
.creds-note { font-size: 13px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.actions .btn { flex: 1 1 auto; }
.install { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); align-items: center; }
.install a { font-weight: 600; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.step h3 { font-size: 17px; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.step .who { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }

/* notes */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.note h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 15px; }

.footer { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 30px 16px 40px; color: var(--muted); font-size: 14px; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 44, .62); backdrop-filter: blur(4px); }
.modal-body { position: relative; width: min(1200px, 96vw); height: min(900px, 94vh); background: #f2f5fb; border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.35); }
.modal-small { width: min(420px, 94vw); height: auto; padding-bottom: 22px; background: #fff; }
.modal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-bar h3 { font-size: 18px; color: var(--navy); }
.modal-bar p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.modal-actions { display: flex; gap: 10px; align-items: center; }
.stage { flex: 1; display: flex; gap: 28px; align-items: center; justify-content: center; padding: 20px; min-height: 0; }
.frame { position: relative; background: #0d1626; flex: none; box-shadow: 0 30px 60px rgba(10, 43, 107, .3); }
.frame iframe { border: 0; background: #fff; display: block; transform-origin: 0 0; }
.frame.phone { border-radius: 44px; padding: 12px; }
.frame.phone iframe { border-radius: 32px; }
.frame.tablet { border-radius: 30px; padding: 16px; }
.frame.tablet iframe { border-radius: 14px; }
.stage-side { width: 300px; flex: none; display: grid; gap: 14px; align-content: center; }
.stage-side .creds { background: #fff; }
.stage-side h4 { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.qr-box { display: grid; place-items: center; padding: 18px 18px 6px; }
.qr-box svg, .qr-box img { width: 240px; height: 240px; }
.qr-mini { display: grid; justify-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.qr-mini svg { width: 150px; height: 150px; }
.qr-url { text-align: center; font: 600 14px ui-monospace, Menlo, monospace; color: var(--ink); margin: 6px 18px 0; word-break: break-all; }
.qr-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 22px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-size: 14px;
  padding: 10px 16px; border-radius: 10px; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .stage-side { display: none; }
}
@media (max-width: 640px) {
  .topnav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step .btn { grid-column: 1 / -1; }
  .hero-cta .btn { flex: 1; }
}
