/* CPBoard — official site styles
   Palette derived from app icon: deep navy, electric cyan, soft violet */

:root {
  --bg: #05070d;
  --bg-elevated: #0c111c;
  --bg-card: rgba(16, 22, 36, 0.72);
  --border: rgba(120, 150, 220, 0.14);
  --border-strong: rgba(80, 180, 255, 0.28);
  --text: #e8eef9;
  --text-muted: #93a0b8;
  --text-dim: #6b7890;
  --accent: #3db8ff;
  --accent-glow: rgba(61, 184, 255, 0.35);
  --violet-soft: rgba(123, 108, 255, 0.18);
  --success: #3dd68c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1080px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 184, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(123, 108, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(26, 163, 255, 0.06), transparent 50%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #7dd0ff;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--text);
  opacity: 0.9;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button[aria-pressed="true"] {
  background: rgba(61, 184, 255, 0.16);
  color: var(--accent);
}

/* ——— Footer ——— */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  padding: 2.25rem 0 2.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ——— Hero ——— */

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  border-radius: 26px;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 0 60px var(--accent-glow),
    0 28px 60px rgba(0, 0, 0, 0.5);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(61, 184, 255, 0.08);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 18ch;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.hero .lede {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #041018;
  background: linear-gradient(180deg, #6ecbff 0%, var(--accent) 100%);
  box-shadow: 0 10px 30px rgba(61, 184, 255, 0.28);
}

.btn-primary:hover {
  color: #041018;
  box-shadow: 0 14px 36px rgba(61, 184, 255, 0.4);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

/* ——— Sections ——— */

.section {
  padding: 3.5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.025em;
  font-weight: 700;
}

.section-header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav .hide-sm {
    display: none;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(61, 184, 255, 0.18), var(--violet-soft));
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Pricing */

.pricing {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 28, 48, 0.95), rgba(12, 14, 24, 0.95));
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(61, 184, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.pricing-card > * {
  position: relative;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.75rem 0 0.5rem;
}

.price strong {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  font-weight: 720;
  color: var(--accent);
}

.price span {
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  display: flex;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.side-note {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg-card);
}

.side-note h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.side-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.side-note p + p {
  margin-top: 0.75rem;
}

/* ——— Prose pages ——— */

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  font-weight: 720;
}

.page-hero .meta {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-box {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(61, 184, 255, 0.08), rgba(123, 108, 255, 0.06));
}

.contact-box strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.contact-box a {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.95rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
}

.not-found {
  min-height: calc(100vh - var(--header-h) - 140px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  margin: 0 0 0.5rem;
  font-size: 4rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

@media print {
  body::before,
  .site-header,
  .lang-toggle,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .prose p,
  .prose li {
    color: #222;
  }
}
