/*
 * Shared stylesheet for the website's inner pages (features / pricing /
 * about / privacy / terms). Mirrors the home page draft's design language:
 * same tokens, fixed glow/grid/grain background layers, mono kickers,
 * tight-tracked headings, glass cards and gradient primary buttons —
 * rendered as a normal scrolling document instead of a slide deck.
 */
:root {
  --bg: #eef3fa;
  --paper: #ffffff;
  --ink: #152033;
  --muted: #3e4d68;
  --faint: #6b7a94;
  --line: #d5deee;
  --primary: #386bf3;
  --violet: #6f8cff;
  --soft: #e8eeff;
  --ok: #18764a;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Fixed background layers, straight from the home draft. */
.glow, .grain, .grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.glow {
  z-index: 0;
  background:
    radial-gradient(720px 420px at 12% 18%, rgba(56, 107, 243, 0.16), transparent 60%),
    radial-gradient(640px 380px at 88% 78%, rgba(111, 140, 255, 0.14), transparent 62%),
    radial-gradient(520px 280px at 70% 8%, rgba(195, 210, 251, 0.45), transparent 55%);
}

.grid {
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(56, 107, 243, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 107, 243, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 35%, transparent 78%);
}

.grain {
  z-index: 9;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid rgba(213, 222, 238, 0.75);
  background: rgba(238, 243, 250, 0.72);
  backdrop-filter: blur(14px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.brand svg, .brand img { width: 32px; height: 32px; display: block; }

nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links { display: inline-flex; gap: 22px; margin-right: 8px; }

nav a.nav-link {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

nav a.nav-link:hover { color: var(--primary); }
nav a.nav-link.active { color: var(--primary); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, filter 0.2s;
}

.btn:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
}

.btn-primary:hover { color: #fff; filter: brightness(1.06); }

main {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

/* Entrance reveal, same feel as the draft's .in stagger (driven by site.js). */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-on {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.page-head { max-width: 760px; margin-bottom: 56px; }

.kicker {
  margin: 0;
  color: var(--primary);
  font-family: "Azeret Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.page-head h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-head .lead {
  max-width: 34em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

section.block { margin-bottom: 56px; }

section.block h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

section.block h3 { margin: 26px 0 8px; font-size: 17px; }

section.block p, section.block li { color: var(--muted); font-size: 15px; }

section.block ul { padding-left: 22px; margin: 8px 0 0; }
section.block li { margin-bottom: 6px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* Glass card, borrowed from the draft's .stat / .stage treatment. */
.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 107, 243, 0.35);
  box-shadow: 0 18px 44px rgba(21, 32, 51, 0.09);
}

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

.card .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  font-family: "Azeret Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.price-card {
  background: linear-gradient(180deg, #fff, #f7f9ff);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(21, 32, 51, 0.08);
  border-radius: 22px;
}

.price-card .price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
}

.price-card .per {
  font-family: "Azeret Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.price-card ul { padding-left: 20px; margin: 14px 0 0; }
.price-card li { font-size: 14px; margin-bottom: 6px; }

.note-box {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px dashed #b7c6e2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
  white-space: pre-line;
}

.contact-list { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-list li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.contact-list .k {
  min-width: 84px;
  color: var(--faint);
  font-family: "Azeret Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 2.1;
}
.contact-list a { color: var(--primary); }

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 38px 36px;
  border-radius: 22px;
  border: 1px solid rgba(56, 107, 243, 0.18);
  background: linear-gradient(135deg, rgba(56, 107, 243, 0.1), rgba(111, 140, 255, 0.16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}

.cta-band.is-on::after { animation: sweep 1.5s var(--ease) 0.25s both; }

@keyframes sweep {
  from { transform: translateX(0); }
  to { transform: translateX(520%); }
}

.cta-band h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--muted); font-size: 14px; }

footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}

.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--primary); }

.doc h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.02em; }
.doc section.block { margin-bottom: 34px; }
.doc p, .doc li { font-size: 15px; }
.doc a { color: var(--primary); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  main, .footer-inner { width: calc(100% - 48px); }
  main { padding-top: 44px; }
}
