/* =============================================================
   PicPocket website · home page
   Surfaces are separated by tone steps and space: no hairlines,
   shadows, outlined boxes, gradients or glows. Type: 13 small,
   16 body, 18 lede, 24 item heading, display for h1/h2.
   ============================================================= */

:root { --h2: clamp(36px, 4.4vw, 60px); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 40px; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 92px);
  max-width: 21ch;
  line-height: 1;
}
html[lang="zh"] .hero h1 { max-width: 9em; font-size: clamp(44px, 6.6vw, 96px); line-height: 1.1; }
.hero .lede { max-width: 60ch; margin-top: 32px; }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-3);
  list-style: none;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: var(--ok-text); }
.case-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Product mock (a real fragment of the app) ---------- */
.stage { margin: 72px 0 0; }
.mock {
  text-align: left;
  border-radius: 20px;
  background: var(--bg-sunken);
  overflow: hidden;
}
.mock-bar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.url {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  height: 30px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ext-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  flex-shrink: 0;
}
.ext-btn img { width: 20px; height: 20px; border-radius: 5px; }

.mock-body { display: grid; grid-template-columns: 1fr 360px; height: 580px; }

/* the "web page" being browsed */
.webpage { position: relative; padding: 24px; overflow: hidden; background: var(--bg); border-radius: 0 0 0 20px; }
.wp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.wp-title { display: grid; gap: 7px; }
.wp-title i { display: block; height: 9px; border-radius: 4px; background: var(--line-strong); }
.wp-title i:first-child { width: 150px; height: 12px; background: var(--ink-3); opacity: 0.55; }
.wp-title i:last-child { width: 96px; }
.wp-pills { display: flex; gap: 6px; }
.wp-pills i { width: 48px; height: 22px; border-radius: 999px; background: var(--bg-sunken); }

.masonry { columns: 3; column-gap: 12px; }
.tile { position: relative; break-inside: avoid; margin-bottom: 12px; border-radius: 10px; overflow: hidden; background: var(--bg-sunken); }
.tile.t1 { height: 250px; }
.tile.t2 { height: 150px; }
.tile.t3 { height: 190px; }
.tile.t4 { height: 210px; }
.tile.t5 { height: 170px; }
.tile.t6 { height: 230px; }

/* Snip marquee animating over the hero tile */
.snip { position: absolute; inset: 0; pointer-events: none; }
.snip-shade {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 19, 0.5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 8% 10%, 8% 92%, 92% 92%, 92% 10%, 8% 10%);
  animation: shade 7s ease-in-out infinite;
}
.snip-box {
  position: absolute;
  left: 8%; top: 10%; right: 8%; bottom: 8%;
  border: 2px solid #fff;
  animation: marquee 7s ease-in-out infinite;
}
.snip-size {
  position: absolute;
  left: -2px; top: -30px;
  font-size: 13px;
  background: #fff;
  color: #10131c;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
@keyframes marquee {
  0%, 8% { opacity: 0; transform: scale(0.35); transform-origin: 0 0; }
  22%, 78% { opacity: 1; transform: scale(1); transform-origin: 0 0; }
  90%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes shade {
  0%, 8% { opacity: 0; }
  22%, 78% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

.capture-pill {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16,19,28,0.9);
  font-size: 13px;
  font-weight: 600;
  color: #10131c;
  white-space: nowrap;
  animation: pill 7s ease-in-out infinite;
  animation-delay: -3.5s;
}
.capture-pill .pill-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; }
.capture-pill .pill-btn svg { width: 12px; height: 12px; flex-shrink: 0; }
.capture-pill .pill-reverse { background: #e0f2fe; color: #0369a1; }
@keyframes pill {
  0%, 20% { opacity: 0; transform: translateY(-4px); }
  30%, 80% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; }
}

svg.cursor,
.tile svg.cursor,
.viz-hover .img svg.cursor {
  position: absolute;
  width: 18px;
  height: 22px;
  left: 62%; top: 78%;
  animation: cursor 7s ease-in-out infinite;
}
@keyframes cursor {
  0%, 6% { left: 10%; top: 13%; }
  22%, 70% { left: 91%; top: 91%; }
  100% { left: 91%; top: 91%; }
}

/* side panel */
.panel { background: var(--bg-raised); display: flex; flex-direction: column; min-width: 0; border-radius: 0 0 20px 0; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 14px; }
.panel-head img { width: 22px; height: 22px; border-radius: 6px; }
.panel-head strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.panel-tabs {
  margin-left: auto;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  background: var(--bg-sunken);
  font-size: 13px;
  white-space: nowrap;
}
.panel-tabs span { padding: 3px 8px; border-radius: 6px; color: var(--ink-3); }
.panel-tabs span.on { background: var(--bg-raised); color: var(--ink); font-weight: 600; }

.panel-scroll { padding: 14px; overflow: hidden; display: grid; gap: 12px; align-content: start; }

.asset { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.asset-thumb { height: 104px; border-radius: 8px; overflow: hidden; }
.asset-meta { display: grid; gap: 6px; min-width: 0; }
.asset-meta b { font-size: 13px; font-weight: 600; line-height: 1.3; }
.asset-meta small { font-size: 13px; color: var(--ink-3); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok-text);
  font-size: 13px;
  font-weight: 600;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.chip {
  font-size: 13px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--bg-sunken);
  color: var(--ink-2);
  white-space: nowrap;
}

.master {
  border-radius: 10px;
  background: var(--bg-sunken);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  position: relative;
}
.master-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.master-copy { font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); }

/* ---------- Works-with strip ---------- */
.works { padding: 72px 0 24px; }
.works p { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.works ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.works li { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 128px 0 0; }
.section-head { max-width: 900px; margin-bottom: 56px; text-align: left; }
.section-head.center { margin-left: 0; margin-right: 0; text-align: left; max-width: 900px; }
.section-head h2 { font-size: var(--h2); line-height: 1.04; }
html[lang="zh"] .section-head h2 { line-height: 1.16; }
.section-head .lede { margin-top: 20px; max-width: 60ch; }
.section-head .lede a { color: var(--ink); }

/* Product tour: real screenshots + demo loop */
.tour-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tour-item { margin: 0; }
.tour-frame { border-radius: var(--r-lg); background: var(--bg-sunken); overflow: hidden; aspect-ratio: 460 / 900; }
.tour-frame img, .tour-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-item figcaption { margin-top: 16px; }
.tour-item figcaption strong { display: block; font-size: 16px; color: var(--ink); }
.tour-item figcaption span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.tour-note { margin-top: 28px; font-size: 13px; color: var(--ink-3); }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--r-lg);
  background: var(--bg-sunken);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.w4 { grid-column: span 4; }
.card.w3 { grid-column: span 3; }
.card h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.card p { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 56ch; }
.viz {
  margin-top: 28px;
  flex: 1;
  min-height: 180px;
  border-radius: 14px;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}

/* Prompt viz */
.viz-4d { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 24px; align-items: center; }
.viz-4d .src { height: 220px; border-radius: 10px; overflow: hidden; }
.viz-4d .rows { display: grid; gap: 12px; }
.viz-4d .master { background: var(--bg-sunken); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions > span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; background: var(--bg-sunken); color: var(--ink-2); }
.actions > span.primary { background: var(--ink); color: var(--bg); }
.panel-scroll .actions { margin-top: 10px; }

/* snip viz */
.viz-snip .art { position: absolute; inset: 0; }
.viz-snip .snip-box { left: 18%; top: 16%; right: 22%; bottom: 26%; animation: none; }
.viz-snip .snip-shade {
  animation: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 18% 16%, 18% 74%, 78% 74%, 78% 16%, 18% 16%);
}
.snip-banner {
  position: absolute;
  left: 50%; bottom: 12px;
  transform: translateX(-50%);
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 19, 28, 0.85);
  color: #fff;
  white-space: nowrap;
}

/* hover viz */
.viz-hover { display: grid; place-items: center; padding: 20px; }
.viz-hover .img { position: relative; width: 72%; height: 150px; border-radius: 10px; overflow: hidden; }
.viz-hover .capture-pill { animation: none; }
.viz-hover .cursor { animation: none; left: 78%; top: 20%; }

/* vault viz */
.viz-vault { padding: 14px; display: grid; gap: 8px; align-content: start; }
.vault-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; background: var(--bg-sunken); }
.vault-row .th { width: 40px; height: 40px; border-radius: 7px; overflow: hidden; }
.vault-row b { display: block; font-size: 13px; font-weight: 600; }
.vault-row small { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-row > div { min-width: 0; }
.vault-row .src-tag { font-size: 13px; padding: 2px 8px; border-radius: 5px; background: var(--bg-raised); color: var(--ink-3); white-space: nowrap; }

/* generate viz */
.viz-gen { padding: 14px; display: grid; gap: 10px; align-content: start; }
.gen-input { border-radius: 10px; background: var(--bg-sunken); padding: 10px 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.gen-input .caret { display: inline-block; width: 2px; height: 14px; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gen-bar .go { margin-left: auto; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); white-space: nowrap; }
.gen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gen-grid div { height: 64px; border-radius: 8px; overflow: hidden; }
.gen-grid .loading { background: var(--bg-sunken); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* canvas viz */
.viz-canvas { background: var(--bg-sunken); min-height: 240px; }
.viz-canvas svg.links { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; width: 112px; border-radius: 10px; background: var(--bg-raised); padding: 5px; }
.node .ni { height: 66px; border-radius: 6px; overflow: hidden; }
.node small { display: block; font-size: 13px; color: var(--ink-3); padding: 4px 2px 0; white-space: nowrap; }
.node.sel { background: var(--gold-soft); }
.node.prompt { width: 150px; padding: 8px 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* mcp viz */
.viz-mcp {
  background: #0b0f1a;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #b4b8c5;
  padding: 16px 18px;
  line-height: 1.75;
  min-height: 240px;
}
.viz-mcp .agents { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.viz-mcp .agents span { font-family: var(--font); font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #1c2336; color: #f3f1ea; white-space: nowrap; }
.viz-mcp .agents span:first-child { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.viz-mcp .k { color: #fcd34d; }
.viz-mcp .s { color: #86efac; }
.viz-mcp .m { color: #7c8296; }
.viz-mcp .line { display: block; font-family: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { position: relative; }
.step h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.step p { font-size: 16px; color: var(--ink-2); line-height: 1.65; max-width: 40ch; }

/* ---------- Install ---------- */
.install { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inst { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-lg); background: var(--bg-sunken); min-width: 0; }
.inst h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.inst p { font-size: 16px; color: var(--ink-2); margin-bottom: 24px; line-height: 1.65; }
.inst p b { color: var(--ink); font-weight: 600; }
.term {
  position: relative;
  margin-top: auto;
  border-radius: 12px;
  background: #0b0f1a;
  padding: 14px 16px;
  padding-right: 72px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #f3f1ea;
}
.term code { font-family: inherit; display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .m { color: #7c8296; margin-right: 6px; }
.term-copy {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--font);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 0;
  background: #1c2336;
  color: #b4b8c5;
  cursor: pointer;
}
.term-copy:hover { color: #fff; background: #2a3349; }
.install-note { margin-top: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; color: var(--ink-3); }
.install-note svg { flex-shrink: 0; }
.install-cta { margin-top: 28px; }
.install-sub { margin: 64px 0 20px; font-size: 16px; color: var(--ink-3); }
.install-sub a { color: var(--ink); }

/* ---------- Privacy band ---------- */
.privacy-band {
  border-radius: var(--r-xl);
  background: #0b0f1a;
  color: #f3f1ea;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.privacy-band h2 { font-size: var(--h2); margin: 0 0 20px; }
.privacy-band .lede { color: #b4b8c5; }
.privacy-band .btn { margin-top: 28px; background: #1c2336; color: #f3f1ea; }
.privacy-band .btn:hover { background: #2a3349; }
.p-list { list-style: none; display: grid; gap: 28px; }
.p-list li { display: block; }
.p-list b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.p-list span { font-size: 16px; color: #9ca1b2; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-radius: var(--r-md); background: var(--bg-sunken); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .plus {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary .plus { transform: rotate(45deg); }
.faq-list .answer { padding: 0 64px 24px 24px; font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }

/* ---------- Final CTA ---------- */
.final { padding: 160px 0 128px; }
.final img { width: 96px; height: 96px; margin: 0 0 32px; border-radius: 24px; }
.final h2 { font-size: var(--h2); max-width: 14ch; }
html[lang="zh"] .final h2 { max-width: 10em; }
.final .lede { max-width: 56ch; margin-top: 24px; }
.final .hero-ctas { margin-top: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .mock-body { grid-template-columns: 1fr 320px; height: 540px; }
  .masonry { columns: 2; }
  .card, .card.w3, .card.w4 { grid-column: span 3; }
  .card.w4 { grid-column: 1 / -1; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .install { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 56px 36px; gap: 40px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq .section-head { position: static; }
}
@media (max-width: 720px) {
  .hero { padding-top: 48px; }
  .stage { margin-top: 48px; }
  .mock-body { grid-template-columns: 1fr; height: auto; }
  .webpage { display: none; }
  .panel { border-radius: 0 0 20px 20px; }
  .url { max-width: none; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.w3, .card.w4 { grid-column: 1 / -1; padding: 24px; }
  .viz-4d { grid-template-columns: 1fr; padding: 16px; }
  .viz-4d .src { height: 180px; }
  .viz-canvas .node { width: 96px; }
  .viz-canvas .node .ni { height: 50px; }
  .viz-canvas .node.prompt { width: 120px; left: 30% !important; padding: 6px 8px; }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 36px; }
  .privacy-band { padding: 40px 24px; border-radius: var(--r-lg); }
  .faq-list .answer { padding-right: 24px; }
  .final { padding: 104px 0 80px; }
  .works li { font-size: 18px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 33px; max-width: none; }
  html[lang="zh"] .hero h1 { font-size: 36px; max-width: none; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-item { max-width: 320px; }
}
