/* ============================================================
   TallShot — tallshot.app
   Palette:  ink #0B0D17 · surface #131730 · violet #7B5CFF
             violet-deep #4A2FD9 · cyan #59E3FF · paper #EEF0FF
   Type:     Sora (display) · Inter (body) · JetBrains Mono (utility)
   Signature: hero browser that performs a real capture (scan →
              stitch → annotate), violet = product, cyan = scan beam
   ============================================================ */

:root {
  --ink: #0b0d17;
  --ink-2: #10132a;
  --surface: #151936;
  --line: rgba(158, 168, 255, 0.14);
  --violet: #7b5cff;
  --violet-deep: #4a2fd9;
  --cyan: #59e3ff;
  --paper: #eef0ff;
  --muted: #9aa0c3;
  --ok: #4ade80;
  --danger: #ff5c7a;
  --r: 14px;
  --wrap: 1120px;
  --shadow: 0 20px 60px rgba(5, 6, 20, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font: 16px/1.7 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
kbd {
  font: 600 0.78em "JetBrains Mono", monospace;
  background: var(--surface); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.fine a { color: var(--violet); }

/* ---------- eyebrow / chips ---------- */
.eyebrow {
  font: 600 0.78rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow.center { justify-content: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.chip {
  font: 700 0.62rem/1 "JetBrains Mono", monospace; letter-spacing: 0.08em;
  color: #16182b; background: linear-gradient(135deg, #ffd479, #f2a33d);
  padding: 3px 7px; border-radius: 5px; vertical-align: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font: 600 0.95rem/1 "Inter", sans-serif;
  padding: 14px 24px; border-radius: 10px; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  box-shadow: 0 8px 28px rgba(123, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(123, 92, 255, 0.5); }
.btn-ghost { color: var(--paper); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn.full { display: block; text-align: center; margin-top: 18px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 23, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font: 700 1.1rem "Sora", sans-serif; display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 22px; height: 22px; display: block; border-radius: 6px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--paper); }
@media (max-width: 820px) { .nav-links { display: none; } .nav-in { justify-content: space-between; } }

/* ---------- hero ---------- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.lede { font-size: 1.08rem; margin-top: 18px; max-width: 54ch; }
.proof { display: flex; gap: 26px; list-style: none; margin-top: 30px; font-size: 0.88rem; color: var(--muted); }
.proof strong { color: var(--cyan); font-family: "Sora", sans-serif; margin-right: 5px; }

/* ---------- hero demo (signature) ----------
   Timeline (10s loop):
   0–55%   page scrolls under a cyan scan band; result segments pop in
   55–90%  annotations draw themselves (box → arrow → highlight → mosaic)
   90–100% saved badge, hold, loop
------------------------------------------------ */
.demo { position: relative; }
.demo-glow {
  position: absolute; inset: 8% -6% -10% -6%; z-index: -1; border-radius: 30px;
  background: radial-gradient(closest-side, rgba(89, 227, 255, 0.12), transparent 75%);
}
.demo-frame {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.tl-dot { width: 10px; height: 10px; border-radius: 50%; }
.tl-dot.r { background: #ff5f57; } .tl-dot.y { background: #febc2e; } .tl-dot.g { background: #28c840; }
.demo-url {
  flex: 1; margin: 0 10px; font: 500 0.72rem "JetBrains Mono", monospace; color: var(--muted);
  background: var(--ink); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-ext {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff; font-size: 0.85rem;
  animation: extPulse 10s infinite;
}
@keyframes extPulse {
  0%, 2% { box-shadow: 0 0 0 0 rgba(123, 92, 255, 0.7); }
  6% { box-shadow: 0 0 0 9px rgba(123, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 92, 255, 0); }
}
.demo-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; padding: 14px; }

/* left: page under capture */
.demo-page { position: relative; height: 300px; overflow: hidden; border-radius: 9px; background: #fbfcff; border: 1px solid var(--line); }
.page-scroll { padding: 14px; animation: pageScroll 10s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
@keyframes pageScroll {
  0%, 8% { transform: translateY(0); }
  20% { transform: translateY(-120px); }
  33% { transform: translateY(-260px); }
  46%, 100% { transform: translateY(-390px); }
}
.art { font-family: "Inter", sans-serif; color: #4b5170; }
.art h4 { font: 700 13px/1.3 "Sora", sans-serif; color: #1d2340; letter-spacing: -0.01em; margin-bottom: 6px; }
.art .byline { font-size: 7.5px; color: #8b90ad; margin-bottom: 8px; }
.art .byline .em { color: #6a7090; text-decoration: underline dotted; }
.art p { font-size: 8.5px; line-height: 1.65; color: #4b5170; margin-bottom: 8px; }
.art p.key { font-weight: 600; color: #23294a; }
.art .fig {
  position: relative; height: 74px; border-radius: 6px; margin: 4px 0 10px; padding: 8px 10px 16px;
  background: linear-gradient(135deg, #8a6bff, #59e3ff);
  display: flex; align-items: flex-end; gap: 8px;
}
.art .fig i { flex: 1; background: rgba(255,255,255,0.88); border-radius: 2px 2px 0 0; }
.art .fig figcaption { position: absolute; left: 10px; bottom: 4px; font-size: 6.5px; color: rgba(255,255,255,0.9); }
.art .fig.f2 { height: 46px; background: linear-gradient(135deg, #59e3ff, #7b5cff); padding: 0; }
.art .datacard {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.art .datacard div {
  flex: 1; background: #fff; border: 1px solid #dfe3f2; border-radius: 5px;
  padding: 6px 8px; font: 700 10px/1 "Sora", sans-serif; color: #1d2340;
}
.art .datacard b { display: block; font: 600 6.5px/1 "JetBrains Mono", monospace; color: #7b5cff; margin-bottom: 4px; }
.scan-band {
  position: absolute; left: 0; right: 0; height: 56px; top: 0;
  background: linear-gradient(180deg, transparent, rgba(89, 227, 255, 0.16) 45%, rgba(89, 227, 255, 0.28) 50%, rgba(89, 227, 255, 0.16) 55%, transparent);
  border-top: 1px solid rgba(89, 227, 255, 0.5); border-bottom: 1px solid rgba(89, 227, 255, 0.5);
  animation: scanMove 10s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  filter: drop-shadow(0 0 12px rgba(89, 227, 255, 0.4));
}
@keyframes scanMove {
  0%, 8% { top: 8%; opacity: 1; }
  20% { top: 34%; }
  33% { top: 60%; }
  44% { top: 82%; opacity: 1; }
  47%, 100% { top: 82%; opacity: 0; }
}

/* right: stitched result + annotations */
.demo-result { display: flex; flex-direction: column; gap: 8px; }
.result-canvas {
  position: relative; flex: 1; border-radius: 9px; overflow: hidden;
  background: #f4f5ff; border: 1px solid rgba(89, 227, 255, 0.35);
}
.mirror { position: absolute; inset: 0; width: 100%; height: 100%; }
.rseg { opacity: 0; transform-box: fill-box; transform-origin: center; }
.rseg.r1 { animation: segIn 10s infinite; }
.rseg.r2 { animation: segIn2 10s infinite; }
.rseg.r3 { animation: segIn3 10s infinite; }
.rseg.r4 { animation: segIn4 10s infinite; }
@keyframes segIn  { 0%, 8%  { opacity: 0; transform: translateY(6px);} 12%, 100% { opacity: 1; transform: none; } }
@keyframes segIn2 { 0%, 20% { opacity: 0; transform: translateY(6px);} 24%, 100% { opacity: 1; transform: none; } }
@keyframes segIn3 { 0%, 33% { opacity: 0; transform: translateY(6px);} 37%, 100% { opacity: 1; transform: none; } }
@keyframes segIn4 { 0%, 44% { opacity: 0; transform: translateY(6px);} 48%, 100% { opacity: 1; transform: none; } }


.a-box {
  fill: none; stroke: var(--danger); stroke-width: 2.5;
  transform-origin: center; opacity: 0;
  animation: popIn 10s infinite; animation-delay: 0.001s;
}
@keyframes popIn { 0%, 55% { opacity: 0; transform: scale(0.6); } 60%, 100% { opacity: 1; transform: scale(1); } }
.a-arrow, .a-head {
  fill: none; stroke: var(--danger); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: draw 10s infinite;
}
@keyframes draw { 0%, 62% { stroke-dashoffset: 90; } 72%, 100% { stroke-dashoffset: 0; } }
.a-hl {
  fill: rgba(255, 212, 121, 0.55); transform-origin: left center; transform: scaleX(0);
  animation: sweep 10s infinite;
}
@keyframes sweep { 0%, 72% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.a-mosaic rect { fill: #a9aecb; opacity: 0; animation: mosaicIn 10s infinite; }
.a-mosaic rect:nth-child(2n) { fill: #8d93b6; }
@keyframes mosaicIn { 0%, 80% { opacity: 0; } 86%, 100% { opacity: 1; } }
.result-badge {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%) translateY(8px);
  font: 600 0.66rem "JetBrains Mono", monospace; color: #0c3; color: #128a4d;
  background: #eafff3; border: 1px solid #9ae6bd; border-radius: 99px; padding: 4px 10px;
  opacity: 0; animation: badgeIn 10s infinite; white-space: nowrap;
}
@keyframes badgeIn { 0%, 88% { opacity: 0; transform: translateX(-50%) translateY(8px); } 93%, 98% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; } }
.result-label { text-align: center; font: 500 0.72rem "JetBrains Mono", monospace; color: var(--muted); }

.demo-progress { height: 3px; background: var(--ink); }
.demo-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: prog 10s linear infinite;
}
@keyframes prog { 0% { width: 0; } 46% { width: 100%; } 100% { width: 100%; } }

/* ---------- sections / cards ---------- */
.section { padding: 96px 0; }
.grid { display: grid; gap: 20px; margin-top: 44px; }
.feat-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(123, 92, 255, 0.55); }
.card.pro { border-color: rgba(242, 163, 61, 0.4); }
.card-ic {
  width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 16px;
  font-size: 1.15rem; color: var(--cyan);
  background: rgba(89, 227, 255, 0.08); border: 1px solid rgba(89, 227, 255, 0.25); border-radius: 10px;
}
.card p { font-size: 0.93rem; }

/* ---------- steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: left; }
.step p { font-size: 0.93rem; }
.step-vis {
  height: 120px; border-radius: var(--r); margin-bottom: 18px; position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.step-vis .icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff; font-size: 1.2rem;
}
.step-vis .cursor {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--cyan); left: 26%; top: 62%;
  animation: cursorGo 3.4s ease-in-out infinite;
}
@keyframes cursorGo {
  0%, 15% { left: 26%; top: 62%; transform: scale(1); }
  55% { left: calc(50% - 7px); top: calc(50% - 7px); transform: scale(1); }
  65% { transform: scale(0.7); } 75%, 100% { left: calc(50% - 7px); top: calc(50% - 7px); transform: scale(1); }
}
.step-vis .strip {
  width: 54px; height: 22px; border-radius: 4px; background: rgba(158, 168, 255, 0.25);
  animation: stripIn 2.8s ease infinite;
}
.step-vis .strip:nth-child(2) { animation-delay: 0.35s; }
.step-vis .strip:nth-child(3) { animation-delay: 0.7s; }
@keyframes stripIn { 0% { opacity: 0; transform: translateY(10px); } 30%, 100% { opacity: 1; transform: none; } }
.step-vis .tool {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.step:hover .tool { border-color: var(--violet); }
.step:hover .tool:nth-child(1) { transform: translateY(-4px); }
.step:hover .tool:nth-child(3) { transform: translateY(-4px); }

/* ---------- privacy band ---------- */
.privacy-band { background: linear-gradient(180deg, rgba(123, 92, 255, 0.07), transparent); border-block: 1px solid var(--line); }
.privacy-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .privacy-in { grid-template-columns: 1fr; } }
.privacy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 22px; }
.pc-row {
  display: flex; justify-content: space-between; gap: 18px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--muted);
}
.pc-row:last-child { border-bottom: 0; }
.pc-row strong { color: var(--paper); font-family: "Sora", sans-serif; font-weight: 600; text-align: right; }
.pc-row strong.ok { color: var(--ok); }

/* ---------- pricing ---------- */
.price-grid { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 30px;
}
.price-card.featured {
  border-color: rgba(123, 92, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(123, 92, 255, 0.4), 0 24px 60px rgba(123, 92, 255, 0.18);
}
.flag {
  position: absolute; top: -12px; left: 30px;
  font: 700 0.68rem "JetBrains Mono", monospace; letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep)); color: #fff;
  padding: 5px 12px; border-radius: 99px;
}
.price { margin: 8px 0 20px; color: var(--muted); font-size: 0.95rem; }
.price span { font: 800 2.5rem/1 "Sora", sans-serif; color: var(--paper); margin-right: 8px; }
.price-card ul { list-style: none; }
.price-card li { padding: 9px 0 9px 26px; position: relative; font-size: 0.94rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card li strong { color: var(--paper); }

/* ---------- FAQ ---------- */
.faq {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  margin-top: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font: 600 0.98rem "Sora", sans-serif; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--violet); font-size: 1.3rem; transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 22px 20px; font-size: 0.94rem; }
.faq a { color: var(--violet); }

/* ---------- final CTA / footer ---------- */
.cta-final { padding-bottom: 120px; }
.cta-final .lede { margin: 10px auto 26px; }
.footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: var(--ink-2); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.foot-in nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 0.9rem; color: var(--muted); }
.foot-in nav a:hover { color: var(--paper); }
.foot-in .muted { font-size: 0.88rem; margin-top: 8px; max-width: 34ch; }

/* ---------- legal pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 24px 110px; }
.doc h1 { font-size: 2.1rem; margin-bottom: 6px; }
.doc .updated { font: 500 0.8rem "JetBrains Mono", monospace; color: var(--muted); margin-bottom: 40px; display: block; }
.doc h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 0.97rem; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--paper); }
.doc a { color: var(--violet); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); color: var(--muted); }
.doc th { color: var(--paper); font-family: "Sora", sans-serif; font-weight: 600; background: var(--surface); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .rseg, .a-box { opacity: 1; transform: none; }
  .a-arrow, .a-head { stroke-dashoffset: 0; }
  .a-hl { transform: scaleX(1); }
  .a-mosaic rect { opacity: 1; }
  .scan-band { display: none; }
}

/* ---------- 窄屏:demo 竖排 ---------- */
@media (max-width: 560px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-page { height: 220px; }
  .result-canvas { min-height: 190px; }
  .proof { flex-wrap: wrap; gap: 14px 22px; }
}
