/* Quickshort landing — nextjs.org/Vercel direction: monochrome,
   hairline-bordered grid cells, + cross marks, Geist, minimal motion.
   Dark-locked. One accent (cyan) used only for interactive hints. */

:root {
  --bg: #000;
  --bg-raised: #0a0a0a;
  --ink: #ededed;
  --muted: #a1a1a1;
  --faint: #6b6b6b;
  --line: #262626;
  --line-soft: #1a1a1a;
  --accent: #52c7ea;
  --radius: 8px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle top glow, the only atmosphere on the page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% -8%, rgba(82, 199, 234, 0.07), transparent 70%),
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%);
}

nav, .hero, .strip, .section, .footer { position: relative; z-index: 1; }

/* cross marks at cell-grid corners — Vercel signature */
.cross {
  position: absolute; z-index: 3;
  font-family: var(--mono); font-size: 15px; font-weight: 400;
  color: var(--faint);
  width: 17px; height: 17px; line-height: 17px; text-align: center;
  user-select: none; pointer-events: none;
}
.cross.tl { top: -9px; left: -9px; }
.cross.tr { top: -9px; right: -9px; }
.cross.bl { bottom: -9px; left: -9px; }
.cross.br { bottom: -9px; right: -9px; }

/* ---------- nav: full-width bar with hairline ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.nav-brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links > a:not(.btn) {
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: color 0.15s;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #000;
}
.btn-primary:hover { background: #c9c9c9; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #4d4d4d; background: #0d0d0d; }
.btn-nav { padding: 7px 16px; font-size: 13px; background: var(--ink); color: #000; }
.btn-nav:hover { background: #c9c9c9; }

/* ---------- hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 150px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 760px; position: relative; z-index: 1; }

/* dashed hairline grid behind the hero, nextjs.org-style */
.hero-lines { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vline, .hline { position: absolute; }
.vline { top: 0; bottom: 0; border-left: 1px dashed #232323; }
.hline { left: 0; right: 0; border-top: 1px dashed #232323; }
.lcircle { position: absolute; border: 1px dashed #232323; border-radius: 50%; }

/* bright dash segment running along a line */
.runv, .runh { position: absolute; overflow: hidden; }
.runv { top: 0; bottom: 0; width: 1px; }
.runv::before {
  content: ""; position: absolute; left: 0; width: 1px; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: runV 6s linear infinite;
  animation-delay: inherit;
}
@keyframes runV { from { top: -12%; } to { top: 112%; } }
.runh { left: 0; right: 0; height: 1px; }
.runh::before {
  content: ""; position: absolute; top: 0; height: 1px; width: 140px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: runH 7.5s linear infinite;
  animation-delay: inherit;
}
@keyframes runH { from { left: -12%; } to { left: 112%; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.headline {
  margin-top: 24px;
  font-size: clamp(42px, 7.5vw, 84px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.02;
}
.headline .line { display: block; overflow: hidden; }
.js .headline .line > span { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.js.ready .headline .line > span { transform: translateY(0); }

.sub {
  margin: 20px auto 0; max-width: 540px;
  font-size: 16px; line-height: 1.65; color: var(--muted);
}

.cta-row {
  margin-top: 32px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* showcase: css-only tab switcher over the framed media */
.sh-r { position: absolute; opacity: 0; pointer-events: none; }
.sh-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.sh-tabs label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--muted); cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sh-tabs label:hover { color: var(--ink); border-color: #4d4d4d; }
#sh-demo:checked ~ .sh-tabs label[for="sh-demo"],
#sh-overlay:checked ~ .sh-tabs label[for="sh-overlay"],
#sh-annotate:checked ~ .sh-tabs label[for="sh-annotate"],
#sh-tray:checked ~ .sh-tabs label[for="sh-tray"],
#sh-settings:checked ~ .sh-tabs label[for="sh-settings"] {
  color: var(--accent); border-color: rgba(82,199,234,.5);
  background: rgba(82,199,234,.1);
}
.sh-panel { display: none; }
#sh-demo:checked ~ .showcase-frame .sh-p-demo,
#sh-overlay:checked ~ .showcase-frame .sh-p-overlay,
#sh-annotate:checked ~ .showcase-frame .sh-p-annotate,
#sh-tray:checked ~ .showcase-frame .sh-p-tray,
#sh-settings:checked ~ .showcase-frame .sh-p-settings { display: block; }

/* showcase frame: hairline-bordered screenshot with + corners */
.showcase-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: 10px;
}
.showcase-frame img, .showcase-frame video {
  display: block; width: 100%; height: auto;
  border-radius: 4px;
  background: #000;
}

/* ---------- strip: static hairline row ---------- */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.strip-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
  padding: 18px 24px;
}
.strip-inner span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--faint);
}

/* ---------- sections ---------- */
.section { max-width: 1080px; margin: 0 auto; padding: 110px 24px 0; }
.sec-head { margin-bottom: 48px; }
.sec-head h2 {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1;
}
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* reveals */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.shown {
  opacity: 1; transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- hairline cell grids ---------- */
.grid-cells {
  position: relative;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
#features .grid-cells { grid-template-columns: repeat(3, 1fr); }
.pipe-cells { grid-template-columns: repeat(4, 1fr); }
.dl-cells { grid-template-columns: 1fr 1.3fr; }
.grid-cells[hidden] { display: none; }

.cell {
  background: var(--bg);
  padding: 32px 28px;
  min-width: 0;
  transition: background 0.2s;
}
.cell:hover { background: #080808; }

.cell h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; }
.cell p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.cell p code {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px;
}

.cell-glyph {
  font-family: var(--mono); font-size: 15px;
  color: var(--ink);
  width: 36px; height: 36px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.cell-media .cell-media-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-raised);
}
.cell-media img { display: block; width: 100%; height: auto; }

/* pipeline cells */
.pipe-num {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

/* download cells */
.dl-desc { margin-bottom: 22px; }
.dl-note {
  font-family: var(--mono); font-size: 12px; color: var(--faint);
  margin-top: 14px;
}
.sec-head .dl-note { margin-top: 10px; }

.code-block {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.code-block code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  color: var(--muted); white-space: pre;
}

/* donate */
.donate-cells { grid-template-columns: 1fr 1fr; }
.donate-qr { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donate-qr img {
  display: block; width: 170px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.donate-qr-info code {
  display: block; font-family: var(--mono); font-size: 12.5px;
  color: var(--muted); line-height: 1.8;
}
.copy-btn {
  flex-shrink: 0;
  font-family: var(--mono); font-size: 11px;
  padding: 5px 12px; border-radius: 6px;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--ink); border-color: #4d4d4d; }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); }

/* language switch */
.lang-sw-group {
  display: flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden;
}
.lang-sw {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 5px 10px; border: 0; background: transparent;
  color: var(--faint); cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-sw:hover { color: var(--ink); }
.lang-sw.on { color: var(--accent); background: rgba(82,199,234,.1); }

/* feature request form */
.req-desc {
  max-width: 560px; margin-top: 14px;
  font-size: 14px; line-height: 1.7; color: var(--muted);
}
.req-form { max-width: 640px; }
.req-in {
  display: block; width: 100%;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.req-in::placeholder { color: var(--faint); }
.req-in:focus { outline: none; border-color: rgba(82,199,234,.55); }
textarea.req-in { resize: vertical; min-height: 120px; }
.req-row { display: flex; gap: 12px; align-items: stretch; }
.req-contact { flex: 1; margin-bottom: 0; }
.req-row .btn { flex-shrink: 0; }
.req-status {
  margin-top: 14px;
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
}
.req-status.ok { color: #6fcf97; }
.req-status.err { color: #eb5757; }
.req-status a { color: var(--accent); text-decoration: none; }
.req-status a:hover { text-decoration: underline; }

/* supporters wall */
.sup-wall {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-raised);
}
.sup-title {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; color: var(--accent);
  margin-bottom: 16px;
}
.sup-names { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; }
.sup-chip {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px;
  background: var(--bg);
}
.sup-empty {
  font-family: var(--mono); font-size: 12.5px; color: var(--faint);
  align-self: center;
}
.sup-form { display: flex; gap: 10px; margin-top: 20px; }
.sup-name { flex: 1; margin-bottom: 0; }
.sup-form .btn { flex-shrink: 0; }
.sup-hint {
  margin-top: 10px;
  font-family: var(--mono); font-size: 11.5px; color: var(--faint);
}

/* ---------- footer ---------- */
.footer {
  margin-top: 110px;
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 24px;
}
.footer-brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--muted);
}
.footer-brand img { border-radius: 5px; }
.footer-inner a {
  color: var(--faint); text-decoration: none;
  font-family: var(--mono); font-size: 12px;
  transition: color 0.15s;
}
.footer-inner a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #features .grid-cells { grid-template-columns: 1fr 1fr; }
  .pipe-cells { grid-template-columns: 1fr 1fr; }
  .dl-cells { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  #features .grid-cells { grid-template-columns: 1fr; }
  .pipe-cells { grid-template-columns: 1fr; }
  .section { padding: 80px 18px 0; }
  .headline { font-size: clamp(34px, 11vw, 44px); }
  .cell { padding: 26px 22px; }
  .req-row { flex-direction: column; }
  .req-row .btn { align-self: flex-start; }
  .sup-form { flex-direction: column; }
  .sup-form .btn { align-self: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .headline .line > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
