/* keysnag.dev: same visual language as the launch poster and README hero. */
:root {
  --bg: #0a1020;
  --bg2: #0f1d3a;
  --panel: #0e1830;
  --term: #070c18;
  --termbar: #0d1527;
  --line: #1f2b47;
  --line2: #243352;
  --white: #f8fafc;
  --text: #e2e8f0;
  --text2: #cbd5e1;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --cyan2: #67e8f9;
  --lime: #a3e635;
  --lime2: #bef264;
  --red: #f87171;
  --red2: #fca5a5;
  --redpale: #fee2e2;
  --redbg: #2a1216;
  --redline: #7f1d1d;
  --greenbg: #10261f;
  --greenline: #365314;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --tick-cyan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2322d3ee'/%3E%3Cpath d='M4.5 8.5 7 11 11.5 5.5' fill='none' stroke='%230a1020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick-lime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23a3e635'/%3E%3Cpath d='M4.5 8.5 7 11 11.5 5.5' fill='none' stroke='%230a1020' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text2);
  background-color: var(--bg);
  background-image:
    radial-gradient(640px 520px at 22% 6%, rgba(34, 211, 238, 0.20), transparent 70%),
    radial-gradient(620px 520px at 88% 96%, rgba(163, 230, 53, 0.13), transparent 70%),
    linear-gradient(rgba(24, 37, 65, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 37, 65, 0.55) 1px, transparent 1px),
    linear-gradient(135deg, var(--bg), var(--bg2));
  background-size: auto, auto, 36px 36px, 36px 36px, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); }
p code, li code { font-size: 0.92em; color: var(--white); background: rgba(14, 24, 48, 0.9); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
.brand:hover { text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--white); text-decoration: none; }

/* shared */
h1, h2, h3 { color: var(--white); margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; }
.section { padding: 96px 0 0; }
.section > .intro { color: var(--muted); font-size: 18px; max-width: 680px; margin: 14px 0 36px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; color: var(--text2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--tick-cyan) no-repeat center / contain; }
.ticks.lime li::before { background-image: var(--tick-lime); }
.ticks li span { display: block; font-weight: 400; color: var(--muted); font-size: 15.5px; margin-top: 2px; }
.ticks li span.name, .ticks li span.warn { display: inline; margin-top: 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; padding: 40px 0 24px; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -2px; line-height: 1.04; }
.hero .sub { color: var(--muted); font-size: 20px; line-height: 1.5; margin: 22px 0 34px; max-width: 520px; }
.hero .ticks { grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-bottom: 38px; }
.hero .ticks li { font-size: 15.5px; }

.cmd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.install {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--panel); border: 1.5px solid var(--line2); border-radius: 14px;
  padding: 12px 12px 12px 20px; font-family: var(--mono); font-size: 19px; color: var(--white);
}
.install .p { color: var(--lime); margin-right: 10px; }
.copy {
  font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer;
  color: var(--text); background: #152241; border: 1px solid var(--line2); border-radius: 9px; padding: 8px 13px;
}
.copy:hover { border-color: var(--cyan); color: var(--white); }
.cmd .alt { color: var(--muted); font-size: 15px; }
.cmd .alt a { font-weight: 600; }

/* terminal card, identical to the poster */
.term { background: var(--term); border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.term-bar { position: relative; display: flex; gap: 8px; align-items: center; background: var(--termbar); padding: 13px 18px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-bar .title { position: absolute; left: 0; right: 0; text-align: center; color: var(--dim); font-size: 13px; pointer-events: none; }
.term-body { padding: 20px 22px 22px; font-family: var(--mono); font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.term-body .c { color: var(--text); }
.term-body .k { color: var(--cyan2); }
.term-body .cm { color: var(--dim); }
.alert { background: var(--redbg); border: 1px solid var(--redline); border-radius: 10px; padding: 12px 16px; margin: 12px 0 18px; }
.alert .t { color: var(--red2); font-weight: 700; }
.alert .w { color: var(--redpale); }
.alert .loc { color: #f1a5a5; }
.ok { background: var(--greenbg); border: 1px solid var(--greenline); border-radius: 10px; padding: 12px 16px; margin-top: 12px; }
.ok .t { color: var(--lime2); font-weight: 700; }
.ok .w { color: var(--lime); }

/* 30-second test */
.test { background: var(--redbg); border: 1.5px solid var(--redline); border-radius: 18px; padding: 30px 34px; }
.test ol { margin: 0 0 18px; padding-left: 22px; color: var(--redpale); font-size: 17.5px; }
.test li { margin: 7px 0; padding-left: 4px; }
.test li::marker { color: var(--red2); font-weight: 800; }
.test p { margin: 0; color: var(--red2); }
.test strong { color: #fecaca; }

/* what it checks */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.checks h3 { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.checks .ticks { gap: 18px; }
.checks .ticks li { padding-left: 32px; }
.checks .name { font-family: var(--mono); color: var(--cyan2); font-weight: 600; font-size: 15.5px; }
.checks .ticks.lime .name { color: var(--lime2); }
.checks .warn { color: var(--dim); font-weight: 500; font-size: 13.5px; font-family: var(--sans); }
.checks .note { color: var(--dim); font-size: 14.5px; margin-top: 22px; }

/* how it works */
.flow { display: grid; grid-template-columns: 1.05fr 0.85fr 1.2fr 1.05fr; gap: 0; align-items: stretch; }
.step { position: relative; background: var(--panel); border: 1.5px solid var(--line2); border-radius: 18px; padding: 24px 24px 26px; margin-right: 46px; }
.step:last-child { margin-right: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -40px; top: 50%; width: 30px; height: 3px; background: var(--dim); border-radius: 2px;
}
.step:not(:last-child)::before {
  content: ""; position: absolute; right: -43px; top: calc(50% - 6px); border: 7.5px solid transparent; border-left: 10px solid var(--dim);
}
.step.gate { background: #0b1a33; border: 2px solid var(--cyan); }
.step.gate::after { background: var(--lime); }
.step.gate::before { border-left-color: var(--lime); }
.step.done { background: var(--greenbg); border: 2px solid var(--lime); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); color: var(--bg); font-weight: 800; font-size: 15px; display: grid; place-items: center; margin-bottom: 14px; }
.step.done .n { background: var(--lime); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step.gate h3 { color: var(--cyan2); }
.step.done h3 { color: #ecfccb; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.step.done p { color: var(--lime2); }
.blocked {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--redbg); border: 1px solid var(--redline); color: var(--red2);
  border-radius: 999px; padding: 9px 18px; font-size: 14.5px; font-weight: 700;
}

/* proof */
.proof { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.claim { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; color: var(--white); letter-spacing: -0.9px; line-height: 1.25; margin: 0; }
.claim .n { color: var(--cyan2); }
.claim .good { color: var(--lime2); }
.claim-sub { color: var(--muted); margin: 16px 0 0; }

/* install */
.install-card .term-body { font-size: 15px; line-height: 1.9; }
.install-card .p { color: var(--lime); }
.install-card .gap { height: 14px; }

/* faq */
.faq details, .faq h2 { max-width: 860px; }
.faq details { border-top: 1px solid var(--line2); padding: 18px 2px; }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { cursor: pointer; list-style: none; color: var(--white); font-weight: 700; font-size: 17.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan2); font-weight: 700; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 720px; }

/* footer */
footer { padding: 110px 0 56px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 18px; border-top: 1px solid var(--line2); padding-top: 30px; font-size: 15px; color: var(--muted); }
.foot a { color: var(--text); font-weight: 600; }
.works { color: var(--dim); font-size: 14.5px; margin: 18px 0 0; }
.disclaimer { color: var(--dim); font-size: 14px; margin: 8px 0 0; }

/* responsive */
@media (max-width: 980px) {
  .hero, .proof { grid-template-columns: 1fr; gap: 44px; }
  .checks { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .step { margin-right: 0; }
  .step::after, .step::before { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-links .opt { display: none; }
  .hero { padding-top: 12px; }
  .hero .ticks { grid-template-columns: 1fr; }
  .hero .sub { font-size: 18px; }
  .install { font-size: 16px; padding-left: 16px; }
  .flow { grid-template-columns: 1fr; }
  .term-body { font-size: 12.5px; padding: 16px; }
  .term-bar .title { display: none; }
  .test { padding: 24px 22px; }
  .section { padding-top: 76px; }
}
