/* ───────── Tokens (same palette as the app) ───────── */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5b677a;
  --faint: #94a3b8;
  --line: #e6eaf0;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #e8efff;
  --success: #16a34a;
  --danger: #dc2626;
  --hero-a: #e9f0ff;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .18);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --card: #131c31;
    --ink: #e8edf6;
    --muted: #9aa6ba;
    --faint: #64748b;
    --line: #1e293b;
    --accent: #4f83ff;
    --accent-ink: #8fb0ff;
    --accent-soft: #1a2647;
    --hero-a: #111c38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { font: .9em/1 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--bg-soft); padding: .15em .4em; border-radius: 6px; border: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.accent { color: var(--accent); }
.muted { color: var(--faint); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font);
  border-radius: 12px; border: 1px solid transparent;
  padding: 12px 18px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-white { background: #fff; color: #1d4ed8; }
.btn-white:hover { background: #eef3ff; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-sm { font-size: 15px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 75% -10%, var(--hero-a), transparent 70%),
              linear-gradient(180deg, var(--hero-a), var(--bg) 62%);
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 700; margin-bottom: 22px; }
.lead { font-size: 19px; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 16px; }
.meta { font-size: 14px; color: var(--faint); }
.platform-note { color: var(--accent-ink); margin-top: 6px; }

.hero-visual { position: relative; height: 600px; }
.glow {
  position: absolute; inset: 10% 0 0 10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  filter: blur(20px);
}
.shot { width: 400px; height: auto; user-select: none; }
.hero-visual .shot-front { width: 430px; }
.shot-back {
  position: absolute; right: -10px; top: 20px; width: 360px;
  transform: rotate(4deg); opacity: .96;
  filter: drop-shadow(0 30px 40px rgba(15, 23, 42, .12));
}
.shot-front {
  position: absolute; left: 0; top: 64px;
  filter: drop-shadow(0 40px 50px rgba(15, 23, 42, .18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }

.toast {
  position: absolute; left: 230px; top: 0; width: 300px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 13px; line-height: 1.45;
  box-shadow: var(--shadow);
  animation: toast-in 1s .6s cubic-bezier(.2, .8, .2, 1) both;
}
.toast-head { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.toast-head span { margin-left: auto; }
.toast p { color: var(--muted); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.98); } }

.taskbar {
  position: absolute; left: 30px; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 14px; font-size: 12px; color: var(--muted);
  box-shadow: var(--shadow);
}
.tb-chevron { font-weight: 700; transform: translateY(2px); }
.tb-icon { position: relative; width: 20px; height: 20px; }
.tb-icon img { position: absolute; inset: 0; }
.tb-dot, .pulse { animation: blink 1.6s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tb-time { color: var(--ink); font-weight: 600; }

/* ───────── Sources strip ───────── */
.sources { border-block: 1px solid var(--line); background: var(--bg); }
.sources-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; padding: 22px 0; color: var(--muted); font-size: 15px; }
.sources ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sources li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: 14px;
}
.sources i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* ───────── Sections ───────── */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2, .split-copy h2, .cta h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.f-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 18px;
}
.f-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse .split-visual { order: -1; }
.split-copy p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 30em; }
.split-visual { display: grid; place-items: center; }
.split-visual .shot { filter: drop-shadow(0 30px 40px rgba(15, 23, 42, .14)); }
.split-visual.crop { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.split-visual.crop { align-items: start; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink); font-size: 17px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--success) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tray-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.state {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; display: grid; justify-items: center; gap: 4px;
}
.state-icon {
  position: relative; width: 84px; height: 84px; border-radius: 22px; margin-bottom: 10px;
  display: grid; place-items: center;
  background: #f3f4f6; border: 1px solid #e5e7eb;
}
.state-icon img { width: 56px; height: 56px; }
.state-icon .pulse { position: absolute; }
.state-live { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--danger) 60%, transparent); }
.state b { font-size: 16px; }
.state span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; }
.how li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.how-num {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.how h3 { font-size: 19px; margin-bottom: 8px; }
.how p { color: var(--muted); font-size: 15px; }

.cta { padding: 0 0 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #3b82f6);
  color: #fff; border-radius: 26px; padding: 44px 48px;
  box-shadow: 0 30px 60px -30px rgba(37, 99, 235, .7);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); margin-top: 6px; font-size: 17px; }

.faq-wrap { max-width: 760px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; transition: border-color .2s ease; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; position: relative;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding: 0 0 18px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.footer-inner p:last-child { margin-left: auto; }

/* ───────── Download guide (modal) ───────── */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); animation: fade .2s ease both; }
.modal-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--card); border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .45);
  animation: pop .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.modal-x:hover { background: var(--bg-soft); color: var(--ink); }
.modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal-grid { display: grid; grid-template-columns: 1fr 1.08fr; }
.modal-copy { padding: 40px 36px 34px 40px; }
.modal-copy h2 { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.modal-copy > p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 10px; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.steps li div { display: grid; }
.steps li b { font-size: 16px; }
.steps li small { color: var(--muted); font-size: 13px; }
.steps .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--bg-soft); color: var(--muted); font-weight: 700; border: 1px solid var(--line);
  transition: inherit;
}
.steps li.is-active { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); box-shadow: 0 8px 22px -14px var(--accent); }
.steps li.is-active .num { background: var(--accent); color: #fff; border-color: var(--accent); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }
.note .ico { margin-top: 3px; color: var(--accent-ink); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.retry { font-size: 14px; color: var(--muted); margin-top: 14px; }

.modal-visual {
  background: linear-gradient(160deg, #dfe8f7, #c8d6ee);
  display: grid; align-content: center; justify-items: center; gap: 14px;
  padding: 40px 28px; border-left: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .modal-visual { background: linear-gradient(160deg, #18233d, #0f1830); } }
.ss-caption { font-size: 13px; color: var(--muted); }

/* Illustration of the Windows SmartScreen box (not the real thing, for guidance only) */
.ss {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 440 / 300;
  background: #1662b8; color: #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 50px -20px rgba(15, 40, 90, .55);
  font-family: "Segoe UI", system-ui, sans-serif;
  container-type: inline-size;
}
.ss-stage { position: absolute; inset: 0; padding: 7% 7% 6%; display: flex; flex-direction: column; transition: opacity .35s ease; }
.ss-2 { opacity: 0; }
.ss.stage-2 .ss-1 { opacity: 0; }
.ss.stage-2 .ss-2 { opacity: 1; }
.ss h3 { font: 300 clamp(17px, 6.4cqw, 28px)/1.15 "Segoe UI Light", "Segoe UI", sans-serif; letter-spacing: 0; margin-bottom: 4.5cqw; }
.ss p { font-size: clamp(10px, 3.1cqw, 14px); line-height: 1.45; opacity: .95; }
.ss-link { position: relative; align-self: flex-start; margin-top: 3.5cqw; font-size: clamp(10px, 3.1cqw, 14px); text-decoration: underline; text-underline-offset: 2px; }
.ss dl { display: grid; grid-template-columns: auto 1fr; gap: .2em 1em; margin: 3.5cqw 0 0; font-size: clamp(10px, 3.1cqw, 14px); }
.ss dd { margin: 0; }
.ss-buttons { margin-top: auto; display: flex; justify-content: flex-end; gap: 2.2cqw; }
.ss-btn {
  position: relative; min-width: 25cqw; text-align: center;
  font-size: clamp(10px, 3.1cqw, 14px); padding: 1.6cqw 3cqw;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .55);
}
.ss-run { background: rgba(255, 255, 255, .22); }
.ss .is-target { outline: 2px solid #fde047; outline-offset: 3px; border-radius: 2px; }
.ss .is-pressed { background: rgba(255, 255, 255, .4); }

.pin {
  position: absolute; top: -12px; right: -14px;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #fde047; color: #1e293b; font: 700 12px/1 var(--font); font-style: normal; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.ss-cursor {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 3;
  fill: #fff; stroke: #0f172a; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45));
  transition: transform 1s cubic-bezier(.45, 0, .2, 1);
  transform: translate(60%, 280%);
}
.ss-ripple {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid #fde047; opacity: 0; pointer-events: none; z-index: 2;
}
.ss-ripple.go { animation: ripple .55s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.6); } }

/* Pointer to the browser's download bubble */
.dl-pointer {
  position: fixed; top: 10px; right: 18px; z-index: 60;
  display: flex; align-items: flex-start; gap: 6px; pointer-events: none;
  animation: nudge 1.4s ease-in-out infinite;
}
.dl-pointer[hidden] { display: none; }
.dl-pointer svg { width: 64px; height: 64px; fill: none; stroke: #fde047; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); order: 2; }
.dl-pointer span {
  margin-top: 46px; max-width: 220px; order: 1;
  background: #0f172a; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35;
  padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
@keyframes nudge { 50% { transform: translate(4px, -4px); } }

/* ───────── Small screens ───────── */
@media (max-width: 960px) {
  .hero-grid, .split, .modal-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { height: 500px; max-width: 460px; margin: 0 auto; width: 100%; }
  .split-reverse .split-visual { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; }
  .modal-visual { border-left: 0; border-top: 1px solid var(--line); order: -1; padding: 56px 20px 18px; }
  .modal-copy { padding: 28px 24px 26px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .hero h1 { font-size: 46px; }
  .lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 430px; }
  .shot-back { display: none; }
  .shot-front { width: 100%; max-width: 360px; left: 50%; transform: translateX(-50%); animation: none; top: 70px; }
  .toast { left: auto; right: 0; width: 260px; }
  .taskbar { left: 50%; transform: translateX(-50%); }
  .features, .tray-states { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .cta-inner { padding: 32px 26px; }
  .cta-inner .btn { width: 100%; }
  .footer-inner p:last-child { margin-left: 0; }
  .dl-pointer span { max-width: 170px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
