/* ============================================================================
 * FollioPDF marketing landing page — dark, glowing, futuristic theme.
 * Self-contained: does not import the app's tokens/layout (those assume a
 * fixed-height app shell with overflow:hidden, which would break a scrolling page).
 * ==========================================================================*/
:root {
  --bg: #05060b;
  --surface: rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --text: #f5f6fa;
  --text-muted: #9aa1b8;
  --text-faint: #676f88;
  --accent: #818cf8;
  --accent-2: #6366f1;
  --violet: #c084fc;
  --cyan: #22d3ee;
  --success: #34d399;
  --glow: rgba(129,140,248,.5);
  --shadow-glow: 0 0 0 1px rgba(129,140,248,.25), 0 12px 40px -8px rgba(99,102,241,.55);
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", "Roboto Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
ul { margin: 0; }
.muted { color: var(--text-faint); font-weight: 400; }

.skip-link {
  position: absolute; left: -9999px; top: auto; z-index: 1000;
  background: var(--accent-2); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---- background effects (fixed behind everything) ---- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob-a { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; left: -10vw; top: -15vw;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%); opacity: .55;
  animation: driftA 26s ease-in-out infinite alternate; }
.blob-b { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; right: -15vw; top: 5vw;
  background: radial-gradient(circle at 60% 40%, var(--violet), transparent 70%); opacity: .45;
  animation: driftB 32s ease-in-out infinite alternate; }
.blob-c { width: 45vw; height: 45vw; max-width: 620px; max-height: 620px; left: 20vw; bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 70%); opacity: .3;
  animation: driftC 40s ease-in-out infinite alternate; }
@keyframes driftA { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,8vh) scale(1.12); } }
@keyframes driftB { from { transform: translate(0,0) scale(1); } to { transform: translate(-8vw,10vh) scale(.94); } }
@keyframes driftC { from { transform: translate(0,0) scale(1); } to { transform: translate(5vw,-6vh) scale(1.08); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  opacity: .6;
}

/* ---- nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 0;
  transition: background .3s, border-color .3s, padding .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,6,11,.72); backdrop-filter: blur(14px) saturate(150%); border-color: var(--border); padding: 11px 0; }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
.brand-mark { display: block; filter: drop-shadow(0 0 14px var(--glow)); }
.nav-links { display: flex; gap: 28px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; margin-left: auto; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 24px 22px; }
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { text-decoration: none; color: var(--text-muted); padding: 13px 2px; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 10px; width: 100%; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; height: 40px;
  border-radius: var(--r-full); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease-spring), box-shadow .2s, border-color .2s, background .2s; }
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--violet)); color: #fff;
  box-shadow: var(--shadow-glow); position: relative; overflow: hidden; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(129,140,248,.4), 0 16px 46px -6px rgba(99,102,241,.7); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { animation: btnShine .8s ease-out; }
@keyframes btnShine { to { left: 160%; } }
.btn-ghost { background: rgba(255,255,255,.03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.32); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }

/* ---- eyebrow chip ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: rgba(129,140,248,.1); border: 1px solid rgba(129,140,248,.25); padding: 6px 14px; border-radius: var(--r-full); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulseDot 2s ease-out infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(129,140,248,.55); } 70% { box-shadow: 0 0 0 8px rgba(129,140,248,0); } 100% { box-shadow: 0 0 0 0 rgba(129,140,248,0); } }
.eyebrow.center { display: flex; margin: 0 auto 18px; width: fit-content; }

/* ---- hero ---- */
.hero { position: relative; padding: 168px 24px 100px; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.4rem, 5.4vw, 3.8rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 18px; }
.grad-text { background: linear-gradient(100deg, #a5b4fc, #c4b5fd 45%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 520px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-faint); }
.trust-row svg { vertical-align: -2px; margin-right: 5px; color: var(--success); }

.hero-visual { position: relative; perspective: 1000px; }
.doc-card { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 18px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
  transform-style: preserve-3d; transition: transform .4s var(--ease-out); }
.doc-toolbar { display: flex; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.doc-tool { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.04); color: var(--text-muted); }
.doc-tool:first-child { background: var(--accent); color: #fff; box-shadow: 0 0 14px rgba(129,140,248,.6); }
.doc-page { background: rgba(255,255,255,.02); border-radius: 12px; padding: 22px 20px; min-height: 260px; position: relative; }
.doc-line { height: 9px; border-radius: 4px; background: rgba(255,255,255,.14); margin-bottom: 12px; }
.doc-line.hl { background: linear-gradient(90deg, rgba(250,204,21,.35), rgba(250,204,21,.15)); }
.doc-redaction { height: 12px; border-radius: 3px; background: #0b0d13; margin: 4px 0 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.doc-sig { width: 120px; height: auto; color: var(--accent); margin-top: 6px; display: block; }
.doc-caret { position: absolute; width: 2px; height: 14px; background: var(--accent); right: 26%; bottom: 30%; animation: caretBlink 1s step-end infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.chip { position: absolute; display: flex; align-items: center; gap: 6px; background: rgba(10,12,20,.75);
  border: 1px solid var(--border-strong); backdrop-filter: blur(12px); padding: 8px 12px; border-radius: 12px;
  font-size: 12px; color: var(--text); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); animation: floaty 5s ease-in-out infinite; }
.chip span { color: var(--text-faint); }
.chip-font { top: -18px; left: -20px; font-family: var(--font-mono); animation-delay: .2s; }
.chip-color { bottom: 14%; right: -24px; animation-delay: 1s; }
.chip-color i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.chip-status { bottom: -18px; left: 10%; animation-delay: .5s; }
.chip-status .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulseDotGreen 2s infinite; display: inline-block; }
@keyframes pulseDotGreen { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- marquee ---- */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: rgba(255,255,255,.015); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marqueeScroll 28s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.pill svg { color: var(--accent); }

/* ---- generic sections ---- */
.section { position: relative; padding: 110px 24px; }
.section-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.section-inner.narrow { max-width: 760px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto 56px; line-height: 1.6; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: transform .3s var(--ease-spring), border-color .3s, background .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(129,140,248,.4); background: rgba(255,255,255,.06); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(129,140,248,.25), rgba(167,139,250,.15));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent); }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* ---- how-it-works steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.step-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: .05em; margin-bottom: 14px; }
.step-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(129,140,248,.14); display: flex;
  align-items: center; justify-content: center; color: var(--accent); margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 26px;
  display: flex; flex-direction: column; position: relative; transition: transform .3s var(--ease-spring), border-color .3s; }
.price-card:hover { transform: translateY(-6px); }
.price-card.featured { border-color: rgba(129,140,248,.5); background: linear-gradient(180deg, rgba(129,140,248,.1), rgba(255,255,255,.03)); box-shadow: var(--shadow-glow); }
.price-badge { position: absolute; top: -13px; right: 24px; background: linear-gradient(135deg, var(--accent-2), var(--violet));
  color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-full); letter-spacing: .02em; }
.price-card h3 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.price-amt { font-size: 40px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.02em; }
.price-amt span { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.price-note { color: var(--text-faint); font-size: 13px; margin: 0 0 24px; }
.price-feats { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.price-feats svg { color: var(--success); flex: none; }
.price-card .btn { width: 100%; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  background: none; border: none; color: var(--text); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; font-family: inherit; }
.faq-q svg { color: var(--text-faint); transition: transform .3s var(--ease-out), color .3s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(90deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a p { margin: 0; padding: 0 20px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ---- CTA band ---- */
.cta-band { max-width: 900px; margin: 0 auto 40px; text-align: center; padding: 70px 40px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(129,140,248,.16), rgba(167,139,250,.08)); border: 1px solid rgba(129,140,248,.3); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 14px; font-weight: 800; }
.cta-band p { color: var(--text-muted); margin: 0 0 30px; font-size: 16px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 24px 30px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 60px; justify-content: space-between; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-faint); font-size: 13px; margin: 12px 0 0; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 0 0 14px; font-family: var(--font-mono); font-weight: 600; }
.footer-col a { display: block; text-decoration: none; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1180px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-faint); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto 12px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-inner { gap: 36px; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 18px 60px; }
  .section { padding: 80px 18px; }
  .cta-band { padding: 48px 24px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .marquee-track, .chip, .eyebrow .dot, .doc-caret, .btn-primary::after, .chip-status .pulse { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .doc-card { transition: none; }
}
