/* Shared stylesheet for the audience landing pages (for-sellers / for-suppliers).
   Builds on the design tokens in styles.css; adds the marketing layout and the
   animation system (scroll reveal, hero motion, floating mock). */

:root { --nav-h: 64px; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: "Inter", "Noto Sans JP", sans-serif; }
html[lang="zh"] body { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px; }

/* ---- sticky nav ---- */
.topnav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topnav .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.topnav img.nav-logo { height: 34px; flex-shrink: 0; }
.topnav nav { display: flex; gap: 14px; font-size: 13.5px; flex-wrap: nowrap; min-width: 0; }
.topnav nav a { color: var(--text); opacity: .8; white-space: nowrap; }
.topnav nav a:hover { opacity: 1; color: var(--primary); }
.topnav nav a.xlink { color: var(--primary); opacity: 1; font-weight: 700; }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
/* Hamburger + scrim for the accessible mobile nav drawer (shown ≤860px). */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink, #1d1b29); stroke-width: 2; stroke-linecap: round; fill: none; }
.nav-scrim { display: none; }
.btn-ghost { padding: 9px 14px; border-radius: 10px; font-size: 13.5px; color: var(--text); border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.btn-primary { padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #1e7bf6, #00c2c4); box-shadow: 0 6px 16px rgba(13,99,243,.3); white-space: nowrap; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ---- hero with animated gradient ---- */
.hero { position: relative; padding: 88px 0 64px; overflow: hidden; background: var(--bg); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
  animation: blob-drift 16s ease-in-out infinite alternate;
}
.hero::before { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, rgba(30,123,246,.22), transparent 70%); }
.hero::after { width: 460px; height: 460px; bottom: -200px; right: -80px; background: radial-gradient(circle, rgba(45,180,220,.18), transparent 70%); animation-delay: -8s; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; font-size: 12.5px; font-weight: 800; color: var(--primary); letter-spacing: .04em; margin-bottom: 18px; box-shadow: 0 4px 14px rgba(9,42,92,.06); }
.hero .eyebrow-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pill-pulse 2s ease-in-out infinite; }
@keyframes pill-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { margin: 18px 0 28px; color: var(--muted); font-size: 16.5px; max-width: 34em; line-height: 1.9; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.hero-points span::before { content: "✓ "; color: var(--primary); font-weight: 800; }

/* floating dashboard mock */
/* The hero panel no longer bobs continuously (§ motion: no perpetually
   floating cards) — a single soft ambient glow behind the hero is the only
   looping motion. The panel gets a calm one-shot entrance instead. */
.mock { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(9,42,92,.14); padding: 20px; animation: mock-enter var(--dur-emphasis, 400ms) var(--ease-enter, cubic-bezier(.16,.84,.44,1)) both; }
/* The hero panel shows sample figures — label it as demo data (§ no fake
   business metrics presented as real). */
.mock::before { content: "DEMO"; position: absolute; top: 12px; right: 14px; z-index: 2; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
@keyframes mock-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.mock-head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #dbe7f8; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mock-stat { background: var(--primary-tint, #eef6ff); border-radius: 12px; padding: 12px; }
.mock-stat b { display: block; font-size: 19px; }
.mock-stat span { font-size: 11px; color: #5c5a70; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 4px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.mock-row:last-child { border-bottom: none; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 99px; background: #e8f7ee; color: #1d7a45; font-weight: 700; }
.tag.b { background: #eef3ff; color: #2b56c4; }

/* ---- value strip ---- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px 24px; }
.strip div { text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.strip div b { display: block; font-size: 21px; margin-bottom: 2px; color: var(--text); }

/* ---- sections / cards ---- */
section.block { padding: 82px 0; }
section.block.alt { background: #fff; border-block: 1px solid var(--line); }
.kicker { color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h2.title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: -0.02em; margin: 10px 0 14px; line-height: 1.3; }
p.sub { color: var(--muted); max-width: 46em; line-height: 1.9; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.fcard { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.fcard:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(9,42,92,.11); border-color: #b9d7fb; }
.fcard .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-tint, #eef6ff); font-size: 21px; margin-bottom: 14px; }
/* Marketing line-icon system: original two-tone (brand blue + cyan) SVGs that
   replace the old functional emoji. Unified 24px grid, single stroke weight. */
.mkt-ico { width: 24px; height: 24px; display: block; fill: none; stroke: var(--ds-brand, #0d63f3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mkt-ico .accent { stroke: var(--ds-cyan-strong, #059b9d); }
.fcard:hover .mkt-ico { stroke: var(--ds-brand-strong, #0a4fd4); }
.fcard h3 { font-size: 16.5px; margin-bottom: 8px; }
.fcard p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 14px; right: 18px; font-size: 30px; font-weight: 900; color: var(--primary); opacity: .25; }

/* ---- economics / fee showcase card ---- */
.show-card { max-width: 720px; margin: 40px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: 0 18px 44px rgba(9,42,92,.09); }
.flow-line { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; }
.flow-box { flex: 1; min-width: 130px; text-align: center; padding: 18px 10px; }
.flow-box small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.flow-box b { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.flow-box.hl b { color: var(--primary); }
.flow-box.good b { color: #16a34a; }
.flow-arrow { display: flex; align-items: center; font-size: 20px; color: var(--muted); opacity: .6; }
.show-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.meter { height: 10px; border-radius: 99px; background: #e6f0fc; overflow: hidden; margin: 18px 0 6px; }
.meter span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #0d63f3, #5aa2f8); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.9; }

/* ---- final CTA / footer ---- */
.final { background: linear-gradient(135deg, #0d63f3, #058b96); color: #fff; text-align: center; padding: 90px 24px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; top: -300px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); animation: blob-drift 14s ease-in-out infinite alternate; }
.final h2 { position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.final p { position: relative; margin: 14px auto 30px; max-width: 36em; color: rgba(255,255,255,.85); line-height: 1.9; }
.final .btn-white { position: relative; background: #fff; color: #0d63f3; font-weight: 800; padding: 15px 34px; border-radius: 12px; font-size: 16px; display: inline-block; transition: transform .15s ease; }
.final .btn-white:hover { transform: translateY(-2px); }
footer.mini { background: #07152b; color: #93aecd; padding: 28px 0; font-size: 12.5px; }
footer.mini .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
footer.mini a { color: #93aecd; margin-right: 16px; }
footer.mini a:hover { color: #fff; }

/* ---- scroll reveal animation system (progressive enhancement) ----
   Content is visible by DEFAULT. The hidden-then-reveal state applies only
   after landing.js adds `.js` to <html>, so no-JS / script-failure / disabled-
   JS visitors always see the full body and CTAs. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal.on { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mock, .hero::before, .hero::after, .final::before { animation: none; }
  .meter span { transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .topnav nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .topnav nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mock { display: none; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Nav becomes an accessible off-canvas drawer instead of a horizontal
     scroller (§八). The bar stays a single row: logo · actions · hamburger. */
  /* backdrop-filter makes .topnav a containing block for position:fixed
     descendants, which would trap the drawer to the 64px header. Drop it on
     mobile so the drawer is sized to the viewport. */
  .topnav { height: var(--nav-h); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topnav .wrap { flex-wrap: nowrap; gap: 8px; padding: 10px 16px; }
  .topnav img.nav-logo { height: 26px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-actions { margin-left: auto; gap: 6px; }
  .btn-ghost, .btn-primary { padding: 8px 12px; font-size: 12.5px; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }

  .topnav nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(82vw, 320px); flex-direction: column; align-items: stretch;
    gap: 2px; overflow-y: auto; white-space: normal;
    background: #fff; box-shadow: var(--ds-shadow-overlay, 0 18px 50px rgba(7,21,43,.22));
    padding: 72px 16px calc(24px + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform var(--dur-standard, 220ms) var(--ease-standard, cubic-bezier(.2,0,.2,1));
    visibility: hidden;
  }
  body.nav-open .topnav { z-index: 62; } /* lift header (holds drawer) above scrim (z:55) so drawer links are tappable */
  body.nav-open .topnav nav { transform: translateX(0); visibility: visible; }
  .topnav nav a { padding: 13px 12px; border-radius: 10px; font-size: 15px; opacity: 1; }
  .topnav nav a:hover, .topnav nav a:focus-visible { background: var(--ds-surface-subtle, #f2f3f9); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: var(--ds-overlay, rgba(7,21,43,.46)); border: 0; padding: 0; opacity: 0; pointer-events: none; transition: opacity var(--dur-standard, 220ms) var(--ease-standard, ease); }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .hero { padding: 46px 0 40px; }
  .hero h1 br { display: none; }
  section.block { padding: 54px 0; }
  .show-card { padding: 24px 16px; }
  .flow-arrow { display: none; }
  .flow-box { min-width: 46%; }
  .final { padding: 60px 20px; }
  .nav-actions a[data-i="nav-login"] { display: none; }
}

/* ================================================================
   Brand refresh: logo blue→teal, constellation hero, richer motion
   ================================================================ */
:root {
  --brand-grad: linear-gradient(135deg, #1e7bf6 0%, #00c2c4 100%);
}

/* Gradient headline word (welcome hero uses <em>) */
.hero h1 em, .grad-text {
  background: linear-gradient(120deg, #0d63f3, #00c2c4, #0d63f3);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-slide 6s linear infinite;
}
@keyframes grad-slide { to { background-position: 200% center; } }

/* Third teal blob + constellation dots echoing the logo network */
.hero .blob3 {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  top: 30%; right: 22%; filter: blur(70px); opacity: .35; pointer-events: none;
  background: radial-gradient(circle, rgba(0,194,196,.5), transparent 70%);
  animation: blob-drift 20s ease-in-out infinite alternate-reverse;
}
.hero .net {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
}
.hero .net circle { fill: url(#netgrad); }
.hero .net line { stroke: url(#netgrad); stroke-width: 1; opacity: .35; }
.hero .net .pulse { animation: net-pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero .net .pulse.p2 { animation-delay: -1.1s; }
.hero .net .pulse.p3 { animation-delay: -2.2s; }
@keyframes net-pulse { 0%,100% { opacity: .45; transform: scale(1);} 50% { opacity: 1; transform: scale(1.55);} }

/* Primary button: sheen sweep on hover */
.btn-primary { position: relative; overflow: hidden; transition: transform 150ms ease, box-shadow 150ms ease; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 46%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .45s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13,99,243,.38); }
.btn-primary:hover::after { left: 115%; }

/* Feature cards: gradient border sweep + icon pop */
.fcard { position: relative; }
.fcard::before {
  content: ""; position: absolute; inset: 0 auto auto 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0; background: var(--brand-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.fcard:hover::before { transform: scaleX(1); }
.fcard:hover .ico { transform: translateY(-3px) scale(1.08); box-shadow: 0 8px 18px rgba(13,99,243,.22); }
.fcard .ico { transition: transform .22s ease, box-shadow .22s ease; background: var(--brand-grad-soft, #eef6ff); }

/* Value strip numbers get the gradient */
.strip div b { background: linear-gradient(135deg, #0d63f3, #00a8b8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fee meter in full brand gradient */
.meter span { background: var(--brand-grad); }

/* Steps number watermark in gradient */
.step::before { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }

/* Final CTA: slow-shifting gradient */
.final { background: linear-gradient(120deg, #0a4fd4, #0d63f3, #058b96, #0a4fd4); background-size: 300% 300%; animation: final-shift 14s ease infinite; }
@keyframes final-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .grad-text { animation: none; }
  .hero .blob3, .hero .net .pulse { animation: none; }
  .btn-primary::after { display: none; }
  .final { animation: none; }
}
