/* DeskShare landing page. One family (IBM Plex Sans), mono only for the passkey digits. */
:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --ink: #132238;
  --muted: #5a6b7e;
  --line: #d3dbe5;
  --accent: #2f7bf5;
  --accent-ink: #1b5fd0;
  --online: #22a35b;
  --screen: #1a1a1a;
  --screen-2: #2a2a2a;
  --max: 1040px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; max-width: 62ch; }

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

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.site-header nav { display: flex; gap: 22px; align-items: center; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { text-decoration: underline; }
.lang { border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; background: var(--surface); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 1.25rem 0 1.75rem; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.meta { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.meta span { white-space: nowrap; }

/* Illustration: a viewer window showing the shared desktop, drawn in CSS so it stays crisp and light. */
.viewer { position: relative; aspect-ratio: 16 / 11; }
.laptop { position: absolute; inset: 0 0 8% 0; background: var(--screen); border-radius: 14px; padding: 2.6%; box-shadow: 0 30px 60px -30px rgba(19, 34, 56, 0.45); }
.laptop::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -7%; height: 7%; background: linear-gradient(#cfd7e1, #b7c2cf); border-radius: 0 0 12px 12px; }
.desktop { position: absolute; inset: 2.6%; background: #e9eef4; border-radius: 6px; overflow: hidden; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: #f6f8fb; border-top: 1px solid #d8dfe8; }
.window { position: absolute; left: 10%; top: 9%; width: 78%; height: 76%; background: var(--surface); border-radius: 6px; box-shadow: 0 10px 30px -10px rgba(19, 34, 56, 0.35); overflow: hidden; display: flex; flex-direction: column; }
.titlebar { display: flex; align-items: center; gap: 8px; padding: 5% 4% 3%; font-size: clamp(9px, 1.2vw, 13px); color: var(--muted); }
.titlebar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); flex: none; }
.remote { position: relative; flex: 1; margin: 0 4% 4%; background: var(--screen-2); border-radius: 4px; overflow: hidden; }
.remote .pane { position: absolute; background: var(--accent); }
.remote .pane:nth-child(1) { left: 8%; top: 18%; width: 24%; height: 50%; opacity: 0.3; }
.remote .pane:nth-child(2) { left: 38%; top: 18%; width: 24%; height: 50%; opacity: 0.5; }
.remote .pane:nth-child(3) { left: 68%; top: 18%; width: 24%; height: 50%; opacity: 0.7; }
.remote .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: #1f1f1f; }
.cursor { position: absolute; left: 20%; top: 30%; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.4); animation: roam 9s ease-in-out 1s both; }
@keyframes roam {
  0% { left: 20%; top: 30%; }
  35% { left: 50%; top: 42%; }
  70% { left: 76%; top: 34%; }
  100% { left: 48%; top: 58%; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; left: 48%; top: 58%; } }

.passkey { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 12px 30px -16px rgba(19, 34, 56, 0.4); }
.passkey code { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 1.35rem; letter-spacing: 0.18em; font-weight: 500; }
.passkey small { display: block; color: var(--muted); font-size: 0.78rem; }
.ring { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--accent) 0 70%, var(--line) 70% 100%); position: relative; flex: none; }
.ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }

/* How it works: a real 3-step sequence, so the numbers carry meaning. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }

/* Downloads: rows, not cards. The primary action is the only filled button on the page. */
.downloads { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 24px; }
.dl + .dl { border-top: 1px solid var(--line); }
.dl h3 { margin-bottom: 4px; }
.dl p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note { margin-top: 18px; font-size: 0.95rem; color: var(--muted); max-width: 70ch; }
.note strong { color: var(--ink); font-weight: 600; }

/* Security facts as a definition list */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin: 0; }
.facts div { border-left: 3px solid var(--accent); padding-left: 16px; }
.facts dt { font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer p { margin: 6px 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .steps, .facts { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
}
