/* HupoSnap website — hand-written CSS, no build step. */

:root {
  --brand: #f09a21;
  --brand-hi: #ffb64f;
  --brand-ink: #2b1a02;

  --bg: #0b0c0f;
  --bg-2: #11131a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f3f5;
  --muted: #9ba1ad;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --radius: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-2: #f6f7f9;
    --panel: #ffffff;
    --panel-2: #f4f5f7;
    --line: rgba(15, 18, 25, 0.1);
    --line-2: rgba(15, 18, 25, 0.18);
    --text: #12151c;
    --muted: #5c6472;
    --shadow: 0 20px 50px -28px rgba(15, 18, 25, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--brand-ink);
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 7px 12px;
  border-radius: 9px;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--panel-2);
  text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang, .ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lang:hover, .ghost:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
  text-decoration: none;
}
.lang svg { opacity: 0.7; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }

.hero .glow {
  position: absolute;
  inset: -30% 0 auto -10%;
  height: 640px;
  background:
    radial-gradient(46% 52% at 22% 34%, rgba(240, 154, 33, 0.26), transparent 68%),
    radial-gradient(38% 46% at 78% 18%, rgba(255, 182, 79, 0.16), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 5px 11px;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4.7vw, 50px);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 46ch;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 550;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--panel-2); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  border-color: color-mix(in srgb, var(--brand) 70%, black);
  color: var(--brand-ink);
  box-shadow: 0 10px 26px -12px rgba(240, 154, 33, 0.75);
}
.btn.primary:hover { filter: brightness(1.05); }

.fineprint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.sep { opacity: 0.45; margin: 0 7px; }

/* ---------- hero artwork ---------- */

.hero-art { position: relative; padding: 8px 0 40px; }

.art-window {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, #1a1f2b, #10131a);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (prefers-color-scheme: light) {
  .art-window { background: linear-gradient(165deg, #eef1f6, #dfe4ec); }
}

.art-menubar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.dot-apple {
  width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; opacity: 0.55;
}
.mb-spacer { flex: 1; }
.mb-icon { display: inline-flex; padding: 2px; border-radius: 5px; }
.mb-icon.active { background: color-mix(in srgb, var(--brand) 26%, transparent); }
.mb-time { font-variant-numeric: tabular-nums; }

.art-stage {
  position: relative;
  aspect-ratio: 16 / 10.6;
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(240, 154, 33, 0.14), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 18px),
    linear-gradient(150deg, #232a38, #151a24);
}
@media (prefers-color-scheme: light) {
  .art-stage {
    background:
      radial-gradient(70% 60% at 30% 20%, rgba(240, 154, 33, 0.2), transparent 60%),
      repeating-linear-gradient(115deg, rgba(15, 18, 25, 0.035) 0 2px, transparent 2px 18px),
      linear-gradient(150deg, #ffffff, #e7ebf2);
  }
}

.art-doc {
  position: absolute;
  left: 6%;
  top: 9%;
  width: 74%;
  height: 74%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.doc-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.doc-bar i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.doc-body { padding: 14px 16px; display: grid; gap: 9px; }
.doc-title {
  width: 46%; height: 13px; border-radius: 4px;
  background: color-mix(in srgb, var(--brand) 62%, transparent);
}
.doc-line { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.doc-line.w92 { width: 92%; }
.doc-line.w85 { width: 85%; }
.doc-line.w78 { width: 78%; }
.doc-line.w60 { width: 60%; }
.doc-tile {
  height: 26%;
  min-height: 34px;
  border-radius: 7px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}
@media (prefers-color-scheme: light) {
  .art-doc { background: rgba(255, 255, 255, 0.82); border-color: rgba(15, 18, 25, 0.1); }
  .doc-bar { border-bottom-color: rgba(15, 18, 25, 0.08); }
  .doc-bar i { background: rgba(15, 18, 25, 0.18); }
  .doc-line { background: rgba(15, 18, 25, 0.14); }
  .doc-tile { background: linear-gradient(120deg, rgba(15, 18, 25, 0.14), rgba(15, 18, 25, 0.05)); }
}

.art-selection {
  position: absolute;
  left: 10%;
  top: 16%;
  width: 62%;
  height: 52%;
  border: 1.5px solid var(--brand);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 9999px rgba(6, 8, 12, 0.42);
}
@media (prefers-color-scheme: light) {
  .art-selection { box-shadow: 0 0 0 9999px rgba(10, 14, 22, 0.28); }
}

.size-tag {
  position: absolute;
  top: -26px;
  left: 0;
  font: 500 10.5px/1 var(--mono);
  color: var(--brand-ink);
  background: var(--brand);
  padding: 5px 7px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.art-selection .h {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 1px;
}
.h.tl { left: -4px; top: -4px; }
.h.tr { right: -4px; top: -4px; }
.h.bl { left: -4px; bottom: -4px; }
.h.br { right: -4px; bottom: -4px; }

.art-toolbar {
  position: absolute;
  left: 10%;
  top: calc(16% + 52% + 12px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 28, 38, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.8);
  color: #e7eaf0;
}
@media (prefers-color-scheme: light) {
  .art-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 18, 25, 0.12);
    color: #2a2f3a;
  }
}
.art-toolbar .t {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
}
.art-toolbar .t.on { background: var(--brand); color: var(--brand-ink); }
.art-toolbar .div {
  width: 1px; height: 18px; margin: 0 3px;
  background: currentColor; opacity: 0.2;
}

.art-loupe {
  position: absolute;
  right: 11%;
  bottom: 14%;
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%) 0 0 / 100% 8px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%) 0 0 / 8px 100%,
    linear-gradient(135deg, #f7ab34, #2a3140 55%, #1a1f2b);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
}
.art-loupe span {
  width: 10px; height: 10px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.art-pin {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 208px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .art-pin { background: rgba(23, 27, 36, 0.92); }
}
.pin-bar {
  display: flex; gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.pin-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: 0.5; }
.pin-bar i:first-child { background: #f2685c; opacity: 1; }
.pin-body { position: relative; padding: 14px; display: grid; gap: 9px; }
.pin-line { height: 8px; border-radius: 4px; background: var(--panel-2); }
@media (prefers-color-scheme: dark) {
  .pin-line { background: rgba(255, 255, 255, 0.12); }
}
.pin-line.w70 { width: 70%; }
.pin-line.w45 { width: 45%; }
.pin-badge {
  position: absolute;
  right: 14px; bottom: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- sections ---------- */

.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  text-wrap: balance;
}
.section-lede {
  margin-top: 14px;
  color: var(--muted);
  max-width: 62ch;
  font-size: 16.5px;
}

.grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 620; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14.8px; }

/* ---------- shortcuts ---------- */

.shortcuts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.note.center { margin-top: 20px; text-align: center; }

.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  font-size: 15.5px;
}
.kbd { display: inline-flex; gap: 5px; }
kbd {
  min-width: 30px;
  padding: 5px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--panel-2);
  font: 600 13px/1.15 var(--font);
  text-align: center;
  color: var(--text);
}

/* ---------- download ---------- */

.ver-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font: 500 13px/1.5 var(--mono);
  vertical-align: 1px;
}

.dl-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card.dl { display: block; color: var(--text); }
.card.dl:hover { text-decoration: none; background: var(--panel-2); }
.card.dl.featured { border-color: color-mix(in srgb, var(--brand) 46%, transparent); }

.card.dl .tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 650;
}

.dl-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
  color: var(--brand);
  font-size: 14.5px;
  font-weight: 600;
}
.dl-size { color: var(--muted); font: 400 12.5px/1 var(--mono); }

.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.step .num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand);
  font: 650 14px/1 var(--font);
  margin-bottom: 12px;
}
.step h3 { font-size: 16.5px; }
.step p { margin-top: 7px; color: var(--muted); font-size: 14.8px; }

/* ---------- faq ---------- */

.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 4px 18px;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 15.8px;
  font-weight: 560;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.8px solid var(--muted);
  border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 16px; color: var(--muted); font-size: 15px; }

/* ---------- closer + footer ---------- */

.closer { padding: 92px 0; text-align: center; }
.closer img { margin: 0 auto 22px; }
.closer h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  max-width: 26ch;
  margin: 0 auto;
  text-wrap: balance;
}

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; background: var(--bg-2); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.footer strong { color: var(--text); font-weight: 620; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero-inner, .shortcuts-inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero-art { margin-top: 8px; }
  .lede { max-width: none; }
  .nav-links { display: none; }
  .nav-links + .nav-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .art-pin { display: none; }
  .art-toolbar { transform: scale(0.9); transform-origin: left top; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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