/* Shared marketing-site design system — index.php, pricing.php, features.php.
   Dark theme (matches the dashboard) with a green→blue gradient accent instead of flat green,
   giving the public pages a more premium feel while staying on-brand. */

:root {
  --bg: #0b0b10;
  --bg-alt: #101018;
  --card: #15151f;
  --card-hover: #191926;
  --border: #26263a;
  --text: #eef0f7;
  --muted: #98a0b3;
  --muted-dim: #6b7280;
  --brand: #25d366;
  --brand-dark: #1fb757;
  --accent: #4f8cff;
  --amber: #fbbf24;

  /* Bootstrap 5.3's own color-mode variables default to light-mode values (near-black
     .text-muted etc). Without overriding these, Bootstrap utility classes render unreadable
     on this dark background — override them the same way lib/layout.php does for the dashboard. */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-emphasis-color: #ffffff;
  --bs-tertiary-color: rgba(238, 240, 247, .5);
  --bs-border-color: var(--border);
  --bs-heading-color: var(--text);
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--brand-dark);
}

* { box-sizing: border-box; }

body.mkt {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.mkt-nav {
  background: rgba(11,11,16,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.mkt-nav .navbar-brand { color: var(--text); font-weight: 800; letter-spacing: -.02em; }
.mkt-nav .nav-link-mkt {
  color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 8px;
}
.mkt-nav .nav-link-mkt:hover, .mkt-nav .nav-link-mkt.active { color: var(--text); background: #ffffff0d; }
.mkt-nav .dropdown-toggle::after { vertical-align: 2px; }
.mkt-dropdown {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.mkt-dropdown .dropdown-item { color: var(--muted); font-size: 14px; border-radius: 8px; padding: 8px 12px; }
.mkt-dropdown .dropdown-item:hover, .mkt-dropdown .dropdown-item:focus { color: var(--text); background: #ffffff0d; }

/* ── Gradient text + glow backdrop ──────────────────────────────────── */
.grad-text {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-glow {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-glow::before, .hero-glow::after {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); opacity: .18;
}
.hero-glow::before { background: var(--brand); top: -180px; left: 10%; }
.hero-glow::after { background: var(--accent); top: -120px; right: 8%; }

/* ── Badges / chips ──────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); color: var(--muted); background: #ffffff08;
}
.chip.chip-brand { color: #7ee8a8; border-color: rgba(37,211,102,.3); background: rgba(37,211,102,.1); }
.chip.chip-soon { color: var(--amber); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }

/* .alert-danger/.alert-success default to Bootstrap's light pastel palette — restyle to match
   the dark theme instead of leaving a bright box clashing with the page. */
.alert-danger { --bs-alert-color: #fca5a5; --bs-alert-bg: rgba(220,53,69,.12); --bs-alert-border-color: rgba(220,53,69,.3); }
.alert-success { --bs-alert-color: #86efac; --bs-alert-bg: rgba(37,211,102,.12); --bs-alert-border-color: rgba(37,211,102,.3); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-grad {
  background: linear-gradient(90deg, var(--brand) 0%, #22c55e 100%);
  border: none; color: #06210f; font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,.28); color: #06210f; }
.btn-mkt-outline {
  border: 1px solid var(--border); color: var(--text); background: transparent;
}
.btn-mkt-outline:hover { border-color: #3a3a52; background: #ffffff0a; color: var(--text); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.mkt-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; height: 100%;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.mkt-card:hover { transform: translateY(-3px); border-color: #35354a; background: var(--card-hover); }
.icon-chip {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: rgba(37,211,102,.12); color: var(--brand); flex-shrink: 0;
}
.icon-chip.blue { background: rgba(79,140,255,.12); color: var(--accent); }

/* ── Section rhythm ──────────────────────────────────────────────────── */
.mkt-section { padding: 88px 0; }
.mkt-section.tight { padding: 56px 0; }
.mkt-eyebrow { color: var(--brand); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mkt-h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.mkt-sub { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

/* ── Stat strip ──────────────────────────────────────────────────────── */
.stat-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stat-num { font-size: 1.9rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.mkt-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; color: var(--muted-dim); font-size: 13.5px; }
.mkt-footer a { color: var(--muted); }
.mkt-footer a:hover { color: var(--brand); }
.mkt-footer h6 { color: var(--text); font-size: 13px; font-weight: 700; margin-bottom: 14px; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--muted); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
