/* ============================================================
   BiziNus — shared docs/hub stylesheet
   Dark theme matching the BiziNus Android app & legal pages.
   ============================================================ */

/* ─── Reset & tokens ──────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0d14;
  --surface: #111420;
  --card: #161924;
  --border: rgba(255, 255, 255, 0.07);
  --teal: #00d4a1;
  --teal-dim: rgba(0, 212, 161, 0.12);
  --teal-glow: rgba(0, 212, 161, 0.22);
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --sell: #00c896;
  --buy: #ffb020;
  --loss: #ff5c7a;
  --text: #f0f4ff;
  --muted: #8892a4;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--teal);
}

.wrap { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }

/* ─── Animated mesh background ─────────────────────────────── */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(0, 212, 161, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(139, 92, 246, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 110%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  animation: meshDrift 18s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  from { opacity: 1; transform: scale(1) translate(0, 0); }
  to   { opacity: 0.85; transform: scale(1.06) translate(1%, -1%); }
}

/* ─── Navbar ──────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.82);
  backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #00a87e);
  display: grid; place-items: center; font-size: 14px; font-weight: 900;
  box-shadow: 0 0 18px var(--teal-glow);
}
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-ctas { display: flex; gap: 10px; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--radius-sm); padding: 11px 20px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05);
  color: var(--text); transition: all 180ms ease; cursor: pointer;
}
.btn:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #000; border-color: var(--teal); box-shadow: 0 0 20px var(--teal-glow); }
.btn-primary:hover { background: #00edb4; border-color: #00edb4; box-shadow: 0 0 32px rgba(0, 237, 180, 0.35); transform: translateY(-2px); }
.btn-ghost { background: transparent; }

/* ─── Generic sections ────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section { padding: 80px 0; }
.section-alt { background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-family: ui-monospace, monospace; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px; font-weight: 700;
}
.h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ─── Cards / grid ────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: all 200ms ease;
}
.card:hover { border-color: rgba(0, 212, 161, 0.4); transform: translateY(-3px); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 14px; background: var(--teal-dim);
}
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 700; font-size: 14px; }
.card .more:hover { color: #00edb4; }

/* ─── Doc article layout ──────────────────────────────────── */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.breadcrumbs { position: relative; z-index: 1; padding: 24px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal); }
.toc {
  position: sticky; top: 92px; align-self: start;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  background: var(--card);
}
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); font-size: 14px; padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px; }
.toc a:hover, .toc a.active { color: var(--teal); border-left-color: var(--teal); }

.article { position: relative; z-index: 1; max-width: 820px; padding: 24px 0 40px; }
.article h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }
.article .subtitle { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.article h2 { font-size: 26px; font-weight: 800; margin: 44px 0 16px; letter-spacing: -0.01em; scroll-margin-top: 90px; }
.article h3 { font-size: 19px; font-weight: 700; margin: 28px 0 12px; scroll-margin-top: 90px; }
.article p { color: var(--muted); font-size: 16.5px; line-height: 1.75; margin-bottom: 16px; }
.article ul, .article ol { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 700; }
.article a.link { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(59, 130, 246, 0.4); text-underline-offset: 4px; }
.article a.link:hover { color: #60a5fa; }
.article blockquote {
  border-left: 3px solid var(--teal); background: var(--teal-dim);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 16px; color: var(--text); font-size: 15.5px;
}
.article .step {
  display: flex; gap: 14px; margin: 14px 0; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px;
}
.article .step .num {
  flex: 0 0 28px; height: 28px; width: 28px; border-radius: 50%;
  background: var(--teal); color: #000; font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.article .step .body { flex: 1; }
.article .step .body p { margin-bottom: 0; }
.note {
  display: flex; gap: 12px; background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 0 0 16px; font-size: 15px; color: var(--text);
}
.note .ni { font-size: 18px; }

/* ─── FAQ accordion ───────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-size: 16px; font-weight: 700; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .chev { transition: transform 200ms ease; color: var(--teal); font-size: 18px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ─── Pricing ─────────────────────────────────────────────── */
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.plan.featured { border-color: var(--teal); box-shadow: 0 0 40px rgba(0, 212, 161, 0.12); }
.plan .badge { position: absolute; top: -12px; left: 28px; background: var(--teal); color: #000; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 6px; }
.plan h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan .price { font-size: 34px; font-weight: 900; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 18px 0 22px; padding-left: 0; list-style: none; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plan li.off { opacity: 0.5; }
.plan li.off::before { content: "–"; color: var(--muted); }

/* ─── Doc hub cards ───────────────────────────────────────── */
.doc-card { display: flex; flex-direction: column; gap: 8px; }
.doc-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--teal); font-weight: 700; }
.doc-card h3 { font-size: 18px; font-weight: 800; }
.doc-card p { font-size: 14.5px; }

/* ─── Footer ──────────────────────────────────────────────── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 36px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ─── Hero (homepage) ────────────────────────────────────── */
.hero { position: relative; z-index: 1; padding: 90px 0 70px; text-align: center; }
.hero h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
.hero h1 .g { background: linear-gradient(90deg, var(--teal), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 19px; max-width: 620px; margin: 22px auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip { font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--card); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
