/* ==========================================================================
   site.css — the public marketing site (extends base.css)
   ========================================================================== */

/* ---- platform avatar (shared component) ---- */
.pf-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; overflow: hidden; }
.pf-avatar .pf-mark { display: inline-flex; align-items: center; justify-content: center; }
.pf-avatar .pf-mark svg { width: 100%; height: 100%; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,245,247,.72); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(244,245,247,.9); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 13px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(20,22,28,.05); color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 9px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }

.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 66px 0 0; z-index: 99; background: var(--paper);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    padding: 20px 24px; overflow-y: auto;
  }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 14px 4px; font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--line); font-family: var(--serif); }
  .mobile-menu .btn { width: 100%; margin-top: 8px; }
}

/* ---- hero ---- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); letter-spacing: -.03em; margin-bottom: 22px; }
.hero h1 .accent { color: var(--brand); font-style: italic; }
.hero-sub { font-size: 20px; color: var(--ink-2); max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }

/* seconds counter chip */
.sec-chip { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-weight: 500; }
.sec-chip .big { font-size: 15px; color: var(--brand); }

/* ---- platform constellation (hero visual) ---- */
.constellation { position: relative; height: 440px; }
.constellation .center-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-l); padding: 16px; z-index: 3;
}
.constellation .center-card .cc-caption { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.constellation .center-card .cc-bar { height: 5px; border-radius: 3px; background: var(--paper-2); margin: 10px 0 6px; overflow: hidden; }
.constellation .center-card .cc-bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 3px; animation: fillbar 2.6s var(--ease-out) infinite; }
@keyframes fillbar { 0% { width: 0 } 40% { width: 78% } 60% { width: 78% } 100% { width: 100% } }
.constellation .orbit-node {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-m); z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.constellation .orbit-node .pf-avatar { box-shadow: none; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.constellation svg.links line { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dashmove 22s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -100; } }

/* ---- logo strip ---- */
.logostrip { padding: 26px 0 8px; }
.logostrip .lbl { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 20px; }
.logostrip .marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 40px; }
.logostrip .marks .pf-avatar { filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.logostrip .marks .pf-avatar:hover { filter: none; opacity: 1; }

/* ---- section scaffolding ---- */
.section { padding: 96px 0; }
.section.tint { background: var(--paper-2); }
.section.ink { background: var(--ink); color: #f2f3f6; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section.ink .muted { color: #9aa1b0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
.section-head p { font-size: 18px; color: var(--muted); }

/* ---- feature rows ---- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 84px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feat-media { order: -1; }
.feat-text h3 { font-size: 28px; font-family: var(--serif); margin-bottom: 14px; }
.feat-text p { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.feat-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.feat-list li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.feat-media { position: relative; }

/* generic product frame */
.frame {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-l);
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame-bar .lbl { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.frame-body { padding: 18px; }

/* mini preview cards used inside feature media */
.mini-previews { display: grid; gap: 12px; }
.mini-post { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.mini-post-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.mini-post-head .name { font-weight: 600; font-size: 13.5px; }
.mini-post-head .h { font-size: 12px; color: var(--muted); }
.mini-post-body { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* ---- stat band ---- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat-band .stat .num { font-family: var(--serif); font-size: 46px; font-weight: 540; letter-spacing: -.03em; }
.stat-band .stat .lbl { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

/* ---- testimonials ---- */
.tgrid { columns: 3; column-gap: 22px; }
.tcard { break-inside: avoid; margin-bottom: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-s); }
.tcard p { font-size: 15.5px; line-height: 1.55; color: var(--ink); margin-bottom: 16px; }
.tcard .who { display: flex; align-items: center; gap: 11px; }
.tcard .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-2); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: none; }
.tcard .who .nm { font-weight: 600; font-size: 14px; line-height: 1.2; }
.tcard .who .rl { font-size: 12.5px; color: var(--muted); }

/* ---- pricing ---- */
.price-toggle { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; gap: 4px; margin: 0 auto 44px; }
.price-toggle button { border: none; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 550; font-size: 14px; color: var(--muted); transition: all .15s; }
.price-toggle button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }
.price-toggle .save { font-family: var(--mono); font-size: 11px; color: var(--brand); margin-left: 6px; }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-s); position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 50px -20px rgba(59,50,255,.4); }
.price-card .badge { position: absolute; top: -12px; left: 30px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price-card .pname { font-weight: 600; font-size: 19px; }
.price-card .pfor { font-size: 14px; color: var(--muted); margin: 4px 0 20px; }
.price-card .amt { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-card .amt .cur { font-size: 22px; font-weight: 600; }
.price-card .amt .val { font-family: var(--serif); font-size: 52px; font-weight: 540; letter-spacing: -.03em; }
.price-card .amt .per { font-size: 14px; color: var(--muted); }
.price-card .pfeatures { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card .pfeatures li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.price-card .pfeatures li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; font-size: 18px; font-weight: 550; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--sans); }
.faq-q .ic { flex: none; width: 22px; height: 22px; position: relative; transition: transform .2s; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--muted); border-radius: 2px; }
.faq-q .ic::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-q .ic::after { left: 10px; top: 0; width: 2px; height: 22px; transition: transform .2s; }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); }
.faq-a-inner { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }

/* ---- CTA band ---- */
.cta-band { text-align: center; padding: 110px 0; }
.cta-band h2 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
.cta-band p { font-size: 19px; color: var(--muted); margin-bottom: 30px; }
.section.ink .cta-band p { color: #9aa1b0; }

/* ---- footer ---- */
.footer { background: var(--ink); color: #c9ccd6; padding: 72px 0 40px; }
.footer a { color: #c9ccd6; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; margin-bottom: 56px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .fdesc { font-size: 14.5px; color: #8f94a3; max-width: 32ch; line-height: 1.55; }
.footer .fcol h4 { font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7b8091; margin-bottom: 16px; font-weight: 500; }
.footer .fcol a { display: block; font-size: 14.5px; padding: 5px 0; }
.footer-bottom { border-top: 1px solid #2a2d38; padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #7b8091; }
.footer-bottom .socials { display: flex; gap: 8px; }
.footer-bottom .socials a { width: 34px; height: 34px; border: 1px solid #2a2d38; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.footer-bottom .socials a svg { width: 16px; height: 16px; }

/* ---- article / blog / legal / docs prose ---- */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 30px; margin: 44px 0 16px; color: var(--ink); }
.prose h3 { font-size: 22px; margin: 32px 0 12px; color: var(--ink); font-family: var(--serif); }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote { border-left: 3px solid var(--brand); margin: 24px 0; padding: 6px 0 6px 22px; font-family: var(--serif); font-size: 22px; color: var(--ink); font-style: italic; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; color: var(--brand-2); }
.prose pre { background: var(--ink); color: #e6e8ef; padding: 20px; border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; margin: 0 0 24px; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img, .prose .figure { border-radius: 12px; border: 1px solid var(--line); margin: 12px 0 28px; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

/* page header for interior pages */
.page-head { padding: 72px 0 40px; }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.blog-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-s); transition: transform .18s var(--ease-out), box-shadow .18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.blog-card .cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.blog-card .cover .glyph { position: absolute; inset: 0; }
.blog-card .bc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card .bc-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.blog-card h3 { font-size: 20px; font-family: var(--serif); margin-bottom: 8px; line-height: 1.2; }
.blog-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.blog-card .rd { margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 550; color: var(--brand); }

/* newsletter inline */
.news-inline { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; gap: 24px; align-items: center; box-shadow: var(--shadow-s); }
.news-inline .txt { flex: 1; }
.news-form { display: flex; gap: 10px; }
.news-form .input { flex: 1; min-width: 200px; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .constellation { height: 360px; max-width: 460px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .feature-row.flip .feat-media { order: 0; }
  .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .tgrid { columns: 2; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-band { grid-template-columns: repeat(2,1fr); gap: 32px 20px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .tgrid { columns: 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-inline { flex-direction: column; align-items: stretch; }
  .stat-band .stat .num { font-size: 38px; }
}
