/* ============================================================
   PDFBatchSigner — marketing site
   Design language from the Claude Design handoff.
   Light, warm paper background · purple accent · SF Pro / mono labels.
   ============================================================ */

:root {
  --accent: #6a57e0;
  --accent-press: #5847c9;
  --bg: #fcfbf9;
  --panel: #f6f4ef;
  --dark: #14141a;
  --ink: #17161b;
  --muted: #55535e;
  --faint: #8e8c97;
  --faint-2: #a5a3ae;
  --hair: rgba(23, 22, 27, 0.1);
  --hair-soft: rgba(23, 22, 27, 0.08);
  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: rgba(106, 87, 224, 0.18); }

/* grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/></svg>");
}

/* ---- animations ---- */
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-20px) rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes glowPulse { 0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: riseIn 0.6s ease both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.18s; }
.rise-4 { animation-delay: 0.24s; }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.mono-label--accent { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 560;
  padding: 14px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(106, 87, 224, 0.6);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(106, 87, 224, 0.7); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--hair); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(252, 251, 249, 0.72);
  border-bottom: 1px solid var(--hair-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.brand span { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__menu { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--muted); }
.nav__menu a { font-weight: 500; }
.nav__menu a:hover { color: var(--accent); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 92px 32px 40px; text-align: center; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin: 0 auto;
  max-width: 15ch;
}
.hero__sub { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--muted); margin: 26px auto 0; max-width: 30ch; font-weight: 420; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }
.hero__note { font-family: var(--mono); font-size: 12px; color: var(--faint-2); margin-top: 26px; letter-spacing: 0.02em; }

/* mascot stage */
.stage { position: relative; margin: 24px auto 0; max-width: 760px; height: 480px; }
.stage__glow {
  position: absolute; left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  width: min(640px, 94vw); height: 460px;
  background: radial-gradient(ellipse at center, rgba(106, 87, 224, 0.32), rgba(106, 87, 224, 0.1) 42%, rgba(106, 87, 224, 0) 68%);
  filter: blur(6px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.stage__shadow {
  position: absolute; left: 50%; bottom: 40px;
  transform: translateX(-50%);
  width: min(420px, 80vw); height: 34px;
  background: radial-gradient(ellipse at center, rgba(23, 22, 27, 0.16), rgba(23, 22, 27, 0) 70%);
  filter: blur(4px);
}
.stage__mascot {
  position: relative; z-index: 2; display: block;
  width: 460px; max-width: 88%; margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(74, 59, 176, 0.22));
  animation: bob 6s ease-in-out infinite;
}
.chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hair-soft);
  border-radius: 12px;
  padding: 10px 13px;
  box-shadow: 0 12px 28px -12px rgba(23, 22, 27, 0.28);
  font-size: 12.5px; font-weight: 520;
}
.chip i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; display: grid; place-items: center; }
.chip--a { left: 4%; top: 34%; animation: floatA 6.5s ease-in-out infinite; }
.chip--b { right: 3%; top: 46%; animation: floatB 7.5s ease-in-out infinite; }

/* ============================================================
   SHOWCASE (dark demo frame)
   ============================================================ */
.showcase { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 24px; }
.showcase__head { text-align: center; max-width: 40ch; margin: 0 auto 44px; }
.showcase__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 620; margin: 0; }
/* the app window sits directly on the page — no screen behind it */
.demo-frame { position: relative; }
.demo-hint {
  text-align: center;
  margin: 20px auto 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.demo-hint b { color: var(--ink); font-weight: 600; }

.platforms {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin: 30px auto 0;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  max-width: 620px;
}
.platforms > div { flex: 1 1 0; min-width: 160px; padding: 18px 20px; text-align: center; border-right: 1px solid var(--hair); }
.platforms > div:last-child { border-right: none; }
.platforms b { font-size: 14px; font-weight: 580; letter-spacing: -0.01em; display: block; }
.platforms span { font-size: 12.5px; color: var(--faint); margin-top: 3px; display: block; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 32px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 20px; margin-bottom: 40px;
}
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-weight: 620; margin: 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; max-width: 32ch; }

/* crypto signing */
.signing { background: var(--panel); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); }
.signing__inner { max-width: var(--maxw); margin: 0 auto; padding: 84px 32px; }
.signing h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 640; margin: 22px 0 0; max-width: 18ch; }
.signing__lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--muted); margin: 26px 0 0; max-width: 54ch; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 52px; }
.mode { background: var(--bg); border: 1px solid var(--hair); border-radius: 18px; padding: 30px; }
.mode__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hair);
  border-radius: 999px; padding: 4px 11px;
}
.mode h3 { font-size: 1.4rem; font-weight: 620; letter-spacing: -0.02em; margin: 18px 0 10px; }
.mode p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* trust grid */
.trust h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; font-weight: 620; margin: 0 0 40px; max-width: 20ch; }
.trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); border-radius: 16px; overflow: hidden;
}
.trust__cell { background: var(--bg); padding: 28px 26px; }
.trust__cell i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-bottom: 18px; display: block; }
.trust__cell h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.trust__cell p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ============================================================
   BETA
   ============================================================ */
.beta { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 96px; }
.beta__card {
  position: relative; text-align: center;
  border: 1px solid rgba(23, 22, 27, 0.12);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px) 32px;
  background: linear-gradient(180deg, #fcfbf9, #f6f4ef);
  overflow: hidden;
}
.beta__card::before {
  content: "";
  position: absolute; left: 50%; top: -40%;
  transform: translateX(-50%);
  width: 520px; height: 320px;
  background: radial-gradient(ellipse at center, rgba(106, 87, 224, 0.14), transparent 70%);
  pointer-events: none;
}
.beta__card > * { position: relative; }
.beta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; font-weight: 620; margin: 18px 0 6px; }
.beta__sub { font-size: 15px; color: var(--muted); margin: 6px auto 0; max-width: 40ch; line-height: 1.55; }

.beta-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px auto 0; max-width: 480px; }
.beta-form__field {
  flex: 1 1 240px;
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 11px;
  padding: 0 4px 0 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.beta-form__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 87, 224, 0.14); }
.beta-form input[type="email"] {
  flex: 1; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 8px 14px 0;
}
.beta-form input::placeholder { color: var(--faint-2); }
.beta-form .btn { flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; }
.beta-form__msg { margin: 16px auto 0; font-size: 14px; min-height: 20px; max-width: 44ch; }
.beta-form__msg.is-ok { color: #1f8a5b; }
.beta-form__msg.is-err { color: #c2410c; }
.beta-form.is-done .beta-form__field, .beta-form.is-done .btn { display: none; }
.beta__foot { margin-top: 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint-2); }

/* success check for beta */
.beta-success {
  display: none;
  flex-direction: column; align-items: center; gap: 14px;
  margin-top: 26px;
}
.beta-form.is-done ~ .beta-success { display: flex; animation: riseIn 0.4s ease both; }
.beta-success__badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 0 0 8px rgba(106, 87, 224, 0.14);
}
.beta-success p { font-size: 15px; color: var(--muted); margin: 0; max-width: 40ch; }
.beta-success b { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: #c9c7d2; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 32px 40px; }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.footer__brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer__brand span { font-weight: 600; font-size: 16px; color: #fff; }
.footer__tag { font-size: 14px; color: #85838f; margin: 0 0 44px; max-width: 40ch; }
.footer__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #6c6a76; margin-bottom: 20px; }
.footer__cases {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
}
.footer__cases a { font-size: 13.5px; color: #a9a7b2; padding: 3px 0; }
.footer__cases a:hover { color: #fff; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px; padding-top: 26px;
  font-size: 12.5px; color: #6c6a76;
}

/* ============================================================
   USE-CASE PAGES
   ============================================================ */
.uc-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(252, 251, 249, 0.72);
  border-bottom: 1px solid var(--hair-soft);
}
.uc-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.uc-hero { max-width: 880px; margin: 0 auto; padding: 76px 32px 32px; text-align: center; }
.uc-hero__kw {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 22px;
}
.uc-hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 640; margin: 0 auto; max-width: 18ch; }
.uc-hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--muted); margin: 24px auto 0; max-width: 52ch; line-height: 1.45; }
.uc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.uc-hero__note { font-family: var(--mono); font-size: 12px; color: var(--faint-2); margin-top: 22px; }

.uc-product { max-width: var(--maxw); margin: 0 auto; padding: 24px 32px 8px; }

.uc-section { max-width: 820px; margin: 0 auto; padding: 56px 32px; }
.uc-section > h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -0.03em; font-weight: 620; margin: 0 0 20px; }
.uc-section > p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; max-width: 60ch; }

.uc-rows .uc-row {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--hair);
}
.uc-rows .uc-row:first-of-type { border-top: none; }
.uc-row .num { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 600; grid-row: span 2; padding-top: 3px; }
.uc-row h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.uc-row p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 6px 0 0; }

.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; margin-top: 8px; }
.fit-grid article { background: var(--bg); padding: 26px 24px; }
.fit-grid h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.fit-grid p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

.uc-section .modes { margin-top: 8px; }

.reference-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.reference-block li { background: var(--bg); padding: 16px 20px; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.reference-block li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.faq-block details { border-top: 1px solid var(--hair); padding: 4px 0; }
.faq-block details:first-of-type { border-top: none; }
.faq-block summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-size: 1.05rem; font-weight: 550; position: relative; }
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 400; color: var(--faint); transition: transform 0.2s ease; }
.faq-block details[open] summary::after { transform: rotate(45deg); }
.faq-block details p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; max-width: 62ch; }

.closing-cta { text-align: center; }
.closing-cta h2 { margin-bottom: 22px; }
.closing-cta p { color: var(--muted); font-size: 15px; margin-top: 18px; }

.related-links { text-align: left; }
.related-links h2 { font-size: 1.2rem; }
.related-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related-links a {
  display: block; padding: 16px 18px;
  border: 1px solid var(--hair); border-radius: 12px;
  font-size: 14.5px; font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.related-links a::first-letter { text-transform: uppercase; }
.related-links a:hover { border-color: var(--accent); color: var(--accent); background: rgba(106, 87, 224, 0.04); }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .stage__glow, .stage__mascot, .chip, .btn { animation: none !important; transition: none !important; }
}

/* ---- responsive ---- */
@media (max-width: 720px) {
  .wrap, .nav__inner, .hero, .showcase, .section, .signing__inner, .beta, .footer__inner,
  .uc-header__inner, .uc-hero, .uc-product, .uc-section { padding-left: 20px; padding-right: 20px; }
  .nav__menu { display: none; }
  .stage { height: 380px; }
  .stage__mascot { width: 320px; }
  .chip--a { left: -2%; top: 30%; }
  .chip--b { right: -2%; top: 48%; }
  .platforms > div { border-right: none; border-bottom: 1px solid var(--hair); }
  .section__head { padding-bottom: 16px; margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 64px; }
  .btn { padding: 13px 20px; }
  .beta-form .btn { flex: 1 1 100%; justify-content: center; }
}
