:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f6;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --key-top: #ffffff;
  --key-bottom: #f1f1f4;
  --key-edge: #c9c9d1;
  --key-text: #1d1d1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 30px 60px -12px rgba(30, 41, 80, 0.25);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0f;
    --bg-alt: #121218;
    --card: #17171e;
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.09);
    --accent: #5b8cff;
    --accent-2: #a78bfa;
    --accent-soft: rgba(91, 140, 255, 0.14);
    --key-top: #2a2a33;
    --key-bottom: #212128;
    --key-edge: #0c0c10;
    --key-text: #ececf1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 60px -12px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }
.muted { color: var(--muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-dim { color: var(--muted); font-weight: 500; }
.brand-icon {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(160deg, #3b82f6, #2563eb 60%, #1d4ed8);
  color: #fff; font-size: 19px; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 6px rgba(37, 99, 235, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; }

@media (max-width: 760px) {
  .nav-links a:not(.nav-gh) { display: none; }
  .brand-dim { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px rgba(37, 99, 235, 0.45); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-center { justify-content: center; margin-top: 48px; }

/* ---------- Keycaps ---------- */
.key {
  position: relative;
  display: inline-grid; place-items: center;
  min-width: 2.4em; height: 2.4em; padding: 0 0.7em;
  font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--key-text);
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 2px 0 var(--key-edge), 0 3px 6px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}
.key-cmd {
  color: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--key-top)), color-mix(in srgb, var(--accent) 16%, var(--key-bottom)));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  padding-left: 1.55em;
}
.key-cmd::before { content: "⌘"; position: absolute; left: 0.55em; font-size: 0.85em; opacity: 0.85; }
.k-inline {
  font-family: var(--font); font-size: 0.82em; font-weight: 600;
  padding: 0.08em 0.45em; border-radius: 6px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--key-edge);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 75% 35%, rgba(37, 99, 235, 0.16), transparent 70%),
    radial-gradient(35% 45% at 95% 10%, rgba(124, 58, 237, 0.13), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, rgba(14, 165, 233, 0.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 18px; }
h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.grad { background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 24px 0 32px; font-size: 19px; color: var(--muted); max-width: 34em; }
.lede strong { color: var(--text); font-weight: 600; }
.fineprint { margin-top: 18px; font-size: 14px; color: var(--muted); }

.demo-card {
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 24px 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  text-align: center;
}
.examples { list-style: none; margin: 0; padding: 0; display: grid; align-items: center; grid-template-columns: auto auto auto auto; justify-content: center; gap: 22px 10px; }
.examples li { display: contents; }
.ex-name { justify-self: start; text-align: left; padding-right: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.ex-keys { display: contents; }
.ex-arrow { display: block; align-self: center; height: 14px; width: 28px; justify-self: center; color: var(--muted); }
.ex-keys .combo { min-width: 0; gap: 6px; }
.ex-keys .key { font-size: 15px; border-radius: 10px; }
.demo-more { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 16px; color: var(--muted); }
.demo-more a { font-weight: 600; }

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 480px) {
  .demo-card { padding: 28px 12px 22px; }
  .examples { column-gap: 4px; }
  .ex-name { font-size: 15px; padding-right: 4px; }
  .ex-keys .combo { gap: 4px; }
  .ex-keys .key { font-size: 14px; }
  .ex-arrow { width: 22px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* ---------- Tour ---------- */
.tour { display: flex; flex-direction: column; align-items: center; }
.tour-tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  max-width: 100%; overflow-x: auto;
}
.tour-tabs button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 15px; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tour-tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.tour-tabs button:hover:not([aria-selected="true"]) { color: var(--text); }
.tour-caption { color: var(--muted); margin: 20px 0 28px; text-align: center; min-height: 1.55em; }
.shot-frame {
  width: 100%; max-width: 980px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background: var(--card);
}
.shot-frame img { display: block; width: 100%; height: auto; }

/* ---------- Tray mock ---------- */
.tray { margin: 64px auto 0; display: flex; flex-direction: column; align-items: flex-end; width: fit-content; max-width: 100%; }
.tray-menu {
  width: 248px; padding: 6px; margin-right: 52px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 14px; color: var(--text); text-align: left;
}
.tm-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 34px; border-radius: 6px; position: relative; }
.tm-item:first-child { background: color-mix(in srgb, var(--text) 7%, transparent); }
.tm-default { font-weight: 650; }
.tm-check { position: absolute; left: 12px; font-size: 13px; }
.tm-shield { position: absolute; left: 11px; width: 16px; height: 16px; }
.tm-sep { height: 1px; margin: 4px 8px; background: var(--border); }
.tray-bar {
  display: flex; align-items: center; gap: 14px; height: 48px; margin-top: 10px; padding: 0 16px;
  border-radius: 12px; background: color-mix(in srgb, var(--card) 88%, var(--bg-alt)); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 12px; line-height: 1.15; color: var(--muted);
}
.tb-chev { font-size: 14px; }
.tb-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.tb-icon img { display: block; border-radius: 4px; }
.tb-ic { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); opacity: .7; }
.tb-vol { border-radius: 3px; }
.tb-clock { text-align: right; }
.tray figcaption { align-self: center; margin-top: 16px; color: var(--muted); font-size: 15px; text-align: center; }
@media (max-width: 420px) { .tray-menu { margin-right: 0; width: 100%; } .tray { width: 100%; } }

/* ---------- Shortcut cards ---------- */
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.sc-card h3 { margin-bottom: 16px; }
.sc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sc-card li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.combo { display: inline-flex; align-items: center; gap: 4px; flex: none; min-width: 128px; color: var(--muted); font-size: 13px; }
.combo .key { font-size: 13px; min-width: 2.2em; height: 2.2em; padding: 0 0.55em; border-radius: 7px; }
.combo .key-cmd { padding-left: 1.5em; }
.plus { color: var(--muted); }
.badge {
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  padding: 2px 7px; border-radius: 999px; margin-left: 4px; white-space: nowrap;
}
.sc-card-note { background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--card); display: flex; flex-direction: column; gap: 14px; }
.sc-card-note h3 { margin-bottom: 0; }
.sc-card-note p { font-size: 15px; }
@media (max-width: 980px) { .sc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sc-grid { grid-template-columns: 1fr; } }

/* ---------- Full shortcut list ---------- */
.all { margin-top: 32px; }
.more { margin-top: 24px; text-align: center; color: var(--muted); font-size: 16px; }
.more a { font-weight: 600; }
.all summary {
  list-style: none; cursor: pointer; width: fit-content; margin: 0 auto; padding: 12px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600; color: var(--accent);
}
.all summary::-webkit-details-marker { display: none; }
.all summary:hover { text-decoration: underline; }
.all .all-close, .all[open] .all-open { display: none; }
.all[open] .all-close { display: inline; }
.all-body { margin-top: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px 12px; }
.all-note { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.all-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.all-table thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--border); }
.all-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.all-table td:nth-child(1) { white-space: nowrap; width: 1%; }
.all-table td:nth-child(2) { color: var(--muted); }
.all-table .cat th { text-align: left; font-family: var(--font-display); font-size: 17px; font-weight: 650; padding: 28px 12px 8px; border-bottom: 1px solid var(--border); }
.all-table .cat th span { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.all-table tbody:last-child tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .all-body { padding: 18px 16px 8px; }
  .all-table thead { display: none; }
  .all-table tr:not(.cat) { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .all-table td { display: block; padding: 2px 4px; border: 0; width: auto !important; white-space: normal !important; }
  .all-table td:nth-child(2)::before { content: "Sends "; opacity: 0.7; }
  .all-table .cat th { display: block; padding: 22px 4px 8px; }
}

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.feat h3 { margin: 18px 0 8px; }
.feat p { color: var(--muted); font-size: 15px; }
.feat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-ic svg .fill { fill: currentColor; stroke: none; }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(160deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 56px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { width: 100%; font-size: 13px; color: var(--muted); }
