/* =========================================================
   NotifyForward — promo website design system
   Brand: local-first notification forwarder
   Palette: indigo (#4F46E5) + cyan (#06B6D4) "flow" accent
   Supports light/dark via prefers-color-scheme.
   ========================================================= */

:root {
  --brand: #4F46E5;
  --brand-600: #4F46E5;
  --brand-500: #6366F1;
  --brand-700: #4338CA;
  --accent: #06B6D4;
  --accent-600: #0891B2;

  --bg: #f7f8fc;
  --bg-soft: #eef1fb;
  --card: #ffffff;
  --ink: #0f1222;
  --ink-soft: #4b5168;
  --muted: #8b91a8;
  --line: #e6e9f5;

  --brand-ink: #3730a3;
  --grad: linear-gradient(135deg, #4F46E5 0%, #6366F1 45%, #06B6D4 120%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #e6fbff 100%);
  --shadow-sm: 0 4px 14px rgba(79, 70, 229, 0.06);
  --shadow: 0 16px 40px rgba(79, 70, 229, 0.10);
  --shadow-lg: 0 30px 70px rgba(79, 70, 229, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --maxw: 1140px;
  --nav-h: 66px;
  --font: "PingFang SC", "Microsoft YaHei", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d1a;
    --bg-soft: #11142480;
    --card: #151a2e;
    --ink: #eef1ff;
    --ink-soft: #aab1cf;
    --muted: #6f769a;
    --line: #232a44;
    --brand-ink: #c7d2fe;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
    --grad-soft: linear-gradient(135deg, #161b35 0%, #0e2230 100%);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.sub { color: var(--ink-soft); margin-top: 12px; font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.01em; }
h3 { font-size: 21px; }
a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-line { background: var(--card); color: var(--brand-ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--brand-ink); border-color: var(--line); padding: 9px 16px; }
.btn-lg { padding: 17px 32px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.brand-logo { height: 34px; width: auto; border-radius: 9px; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--brand-ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) {
  .nav-links a:not(.lang-switch) { display: none; }
  .nav-actions .btn-line { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(6,182,212,.16), transparent 60%),
    radial-gradient(800px 600px at 10% 10%, rgba(99,102,241,.18), transparent 55%),
    var(--bg);
  padding: 72px 0 80px;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); color: var(--brand-ink);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; font-weight: 700; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 850; letter-spacing: -.02em; }
.accent {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede { color: var(--ink-soft); font-size: 18.5px; margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 38px; }
.hero-stats li { color: var(--ink-soft); font-size: 14px; }
.hero-stats strong { display: block; font-size: 30px; font-weight: 850; color: var(--brand-ink);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* phone mockup */
.hero-visual { display: grid; place-items: center; }
.phone {
  width: 290px; height: 580px; background: #0b0d1a; border-radius: 42px; padding: 14px;
  box-shadow: var(--shadow-lg); position: relative; border: 1px solid #1c2138;
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #0b0d1a; border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #f4f6ff, #ffffff);
  border-radius: 30px; padding: 36px 16px 16px; display: flex; flex-direction: column; gap: 11px; }
.n-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.n-app { font-weight: 800; color: var(--ink); }
.n-msg { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px;
  font-size: 13.5px; color: var(--ink); box-shadow: var(--shadow-sm); }
.n-chan { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  color: var(--brand); background: var(--bg-soft); border-radius: 999px; padding: 3px 9px; }
.n-badge { margin-top: auto; text-align: center; font-size: 12.5px; font-weight: 700; color: #fff;
  background: var(--grad); border-radius: 999px; padding: 9px; box-shadow: var(--shadow); }

/* ---------- Section shells ---------- */
section { position: relative; }
.band { padding: 84px 0; }
.band-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }

/* ---------- Pain ---------- */
.pain-grid, .feature-grid, .steps, .shot-grid, .lang-grid {
  display: grid; gap: 22px; margin-top: 8px;
}
.pain-grid { grid-template-columns: repeat(3, 1fr); }
.pain-card, .feature-card, .step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pain-card:hover, .feature-card:hover, .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.pain-card .emoji { font-size: 34px; }
.pain-card h3 { margin: 14px 0 9px; font-size: 19px; }
.pain-card p, .feature-card p { color: var(--ink-soft); }
.feature-card p b { color: var(--brand-ink); }

/* feature icon (inline svg) */
.f-icon {
  width: 54px; height: 54px; border-radius: 15px; background: var(--grad-soft);
  display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--line);
}
.f-icon svg { width: 27px; height: 27px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: 9px; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 850; display: grid; place-items: center; margin-bottom: 15px; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--ink-soft); }

.arch-note {
  margin-top: 30px; background: var(--grad-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: 14px; padding: 20px 24px; color: var(--ink-soft);
}
.arch-note strong { color: var(--brand-ink); }

/* ---------- Privacy highlight ---------- */
.privacy-band { background: var(--grad); color: #fff; }
.privacy-band .section-head h2, .privacy-band .section-head .eyebrow { color: #fff; }
.privacy-band .eyebrow { color: #dbeafe; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 8px; }
.privacy-card {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px);
}
.privacy-card .pc-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; margin-bottom: 14px; }
.privacy-card .pc-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-card h3 { color: #fff; margin-bottom: 8px; }
.privacy-card p { color: rgba(255,255,255,.85); }

/* ---------- Screenshots ---------- */
.shot-grid { grid-template-columns: repeat(4, 1fr); }
.shot { aspect-ratio: 9 / 19; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-sm); }
.shot-tip { text-align: center; color: var(--muted); margin-top: 18px; font-size: 14px; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-wrap { text-align: center; }
.shot-cap { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Languages ---------- */
.lang-grid { grid-template-columns: repeat(4, 1fr); }
.lang { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  text-align: center; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease; }
.lang:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Download ---------- */
.download { background: var(--grad); color: #fff; padding: 90px 0; }
.download h2 { color: #fff; }
.download .sub { color: rgba(255,255,255,.88); }
.dl-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0 18px; }
.download .btn-line { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.download .btn-line:hover { background: rgba(255,255,255,.2); }
.dl-note { color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 660px; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 40px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 15px;
  padding: 2px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 22px; transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); padding: 0 0 18px; }

/* ---------- Footer ---------- */
.footer { background: #0b0d1a; color: #aab1cf; padding: 54px 0 26px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: #fff; font-size: 18px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.footer-cols a, .footer-cols .muted { display: block; color: #8b91a8; margin-bottom: 9px; font-size: 14px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { max-width: var(--maxw); margin: 34px auto 0; padding: 22px 24px 0;
  text-align: center; color: #6f769a; font-size: 13px; border-top: 1px solid #1c2138; }

/* ---------- Docs pages (help / manual) ---------- */
.doc { max-width: 1180px; margin: 0 auto; padding: 48px 24px 80px; }
.doc-hero { padding: 54px 0 30px; }
.doc-grid { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 18px); align-self: start; }
.doc-toc a { display: block; color: var(--ink-soft); font-size: 14px; padding: 7px 0; border-left: 2px solid var(--line); padding-left: 14px; }
.doc-toc a:hover, .doc-toc a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 700; }
.doc-content { min-width: 0; }
.doc-content h2 { font-size: 30px; margin: 38px 0 14px; padding-top: 8px; }
.doc-content h3 { font-size: 21px; margin: 26px 0 10px; }
.doc-content p { color: var(--ink-soft); margin: 12px 0; }
.doc-content ul, .doc-content ol { color: var(--ink-soft); margin: 12px 0 12px 22px; }
.doc-content li { margin: 6px 0; }
.doc-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.doc-content th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.doc-content code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: 13px; }
.doc-content .callout { background: var(--grad-soft); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0; color: var(--ink-soft); }
.doc-content .callout strong { color: var(--brand-ink); }
.doc-content .warn { border-left-color: #f59e0b; background: #fff7ed; }
  @media (prefers-color-scheme: dark) { .doc-content .warn { background: #2a1f08; } }

/* ---------- Docs: phone screenshots ---------- */
.shot-fig { margin: 24px 0; }
.shot-fig img { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b0d1a; }
.shot-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.shot-row .shot-fig { margin: 0; }
.shot-fig figcaption { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 12px; line-height: 1.5; }
.shot-fig figcaption .tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--brand-ink); margin-bottom: 6px; }
.shot-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
@media (max-width: 520px) { .shot-row, .shot-gallery { grid-template-columns: 1fr; } .shot-fig img { max-width: 260px; } }
@media print { .shot-fig, .shot-row, .shot-gallery { page-break-inside: avoid; } }

@media print { .nav, .footer, .doc-toc, .lang-switch { display: none !important; } .doc-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .pain-grid, .feature-grid, .steps, .privacy-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
}
@media (max-width: 520px) {
  .hero-stats { gap: 20px; }
  .shot-grid, .lang-grid { grid-template-columns: 1fr; }
}
