/* ManyWe Brand Design System */
:root {
  --brand-green: #4CAF50;
  --brand-green-dark: #3d8b40;
  --brand-teal: #26A69A;
  --sky-blue: #4A9BD9;
  --sea-green: #6BC5B8;
  --ink: #1a2e28;
  --muted: #5d6e66;
  --bg: #f7faf9;
  --bg-deep: #eef5f3;
  --panel: rgba(255, 255, 255, 0.85);
  --line: #d4e0dc;
  --code-bg: linear-gradient(135deg, #2a6b8a, #2a7a72);
  --code-bg-solid: #2a6f80;
  --code-text: #f0f8f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(26, 46, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 46, 40, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 46, 40, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono", "Cascadia Code", Menlo, monospace;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-green); }

/* Container */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== Navigation ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--panel);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.topbar-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
}
.topbar-brand img { width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0; }
.topbar-nav { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.topbar-nav a {
  color: var(--muted); font-size: 0.88rem; padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm); transition: background 0.2s, color 0.2s;
}
.topbar-nav a:hover { background: var(--bg-deep); color: var(--ink); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--sky-blue), var(--sea-green));
  color: #fff; padding: 4rem 0 3.5rem; text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 1rem;
}
.hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: 0.92; max-width: 600px; margin: 0 auto 2rem; }
.hero .badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.4rem; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
  color: #fff; box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(76, 175, 80, 0.35); color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.7); color: var(--ink);
  border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: #fff; }
.btn-hero {
  background: #fff; color: var(--brand-green);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.btn-hero:hover { color: var(--brand-green-dark); box-shadow: 0 8px 28px rgba(0,0,0,0.15); }
.btn-hero-outline {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== Cards ===== */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.92rem; }
.card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-deep); display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1.3rem;
}

/* ===== Grid ===== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ===== Sections ===== */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-deep); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
  margin-bottom: 0.6rem; color: var(--ink);
}
.section .subtitle { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

/* ===== Code blocks ===== */
pre {
  background: var(--code-bg-solid); background: var(--code-bg); color: var(--code-text);
  padding: 1.2rem 1.4rem; border-radius: var(--radius-md);
  overflow-x: auto; font-family: var(--font-mono); font-size: 0.88rem;
  line-height: 1.6; position: relative;
}
code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--bg-deep); padding: 0.15em 0.4em;
  border-radius: 4px;
}
pre code { background: none; padding: 0; font-size: inherit; }

/* Install command card */
.install-card {
  background: var(--code-bg-solid); background: var(--code-bg); border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem; position: relative;
  max-width: 560px; margin: 0 auto;
}
.install-card code { color: var(--code-text); background: none; font-size: 0.95rem; }
.install-card .copy-btn {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.1); border: none; color: var(--code-text);
  padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.78rem; font-family: var(--font); transition: background 0.2s;
}
.install-card .copy-btn:hover { background: rgba(255,255,255,0.2); }

/* ===== Callout ===== */
.callout {
  background: var(--bg-deep); border-left: 4px solid var(--brand-teal);
  padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-size: 0.95rem;
}
.callout-warn {
  background: #fff8e6; border-left-color: #e6a817;
}

/* ===== FAQ ===== */
details {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  margin-bottom: 0.6rem; overflow: hidden;
}
details summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 600;
  font-size: 0.95rem; list-style: none; display: flex;
  align-items: center; justify-content: space-between;
  transition: background 0.2s;
}
details summary:hover { background: var(--bg-deep); }
details summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .faq-body { padding: 1rem 1.25rem; color: var(--muted); font-size: 0.93rem; }

/* ===== Table ===== */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--bg-deep); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
tr:hover td { background: var(--bg-deep); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line); padding: 2rem 0;
  color: var(--muted); font-size: 0.85rem; text-align: center;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--brand-green); }
.footer-links { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }

/* ===== Page header (non-hero) ===== */
.page-header {
  background: var(--bg-deep); padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 0.3rem; }
.page-header p { color: var(--muted); font-size: 1rem; }

/* ===== Content prose ===== */
.prose h2 { font-size: 1.4rem; margin: 2rem 0 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.prose h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.6rem; }
.prose p { margin-bottom: 1rem; color: var(--ink); }
.prose ul, .prose ol { margin: 0.5rem 0 1.2rem 1.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ===== Download buttons ===== */
.dl-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.dl-btn {
  padding: 0.65rem 1.1rem; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
}
.dl-btn:hover { border-color: var(--brand-teal); box-shadow: var(--shadow-sm); color: var(--ink); }
.dl-btn.recommended {
  background: var(--brand-green); color: #fff; border-color: var(--brand-green);
}
.dl-btn.recommended:hover { background: var(--brand-green-dark); color: #fff; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }

/* ===== Responsive: tablet+ ===== */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 5rem 0 4.5rem; }
  .section { padding: 4.5rem 0; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
