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

:root {
  --bg: #0a0a0a;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --bg4: #1e1e1e;
  --text: #e8e5de;
  --text2: #888888;
  --text3: #444444;
  --teal: #5bffd8;
  --teal-d: rgba(91, 255, 216, 0.12);
  --teal-dd: rgba(91, 255, 216, 0.06);
  --teal-b: rgba(91, 255, 216, 0.2);
  --red: #ff5050;
  --red-d: rgba(255, 80, 80, 0.15);
  --amber: #ffaa33;
  --amber-d: rgba(255, 170, 51, 0.15);
  --violet: #a78bfa;
  --violet-d: rgba(167, 139, 250, 0.15);
  --border: rgba(255, 255, 255, 0.07);
  --border-t: rgba(91, 255, 216, 0.2);
  --mono: 'SF Mono', 'Fira Code', monospace;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: 'Inter', sans-serif;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--bg4);
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────
   MOBILE / RESPONSIVE
   ──────────────────────────────────────────────────────────
   Strategy: classes below are used by both the marketing
   site and the dashboard. Inline styles in JSX still set
   the desktop layout; these rules only activate at narrow
   widths and override the inline values via !important.
*/

@media (max-width: 768px) {
  /* SECTION PADDING --------------------------------------- */
  .sect-pad      { padding: 56px 18px !important; }
  .sect-pad-tight{ padding: 36px 16px !important; }
  .hero-pad      { padding: 110px 16px 50px !important; }
  .nav-bar       { padding: 0 16px !important; }
  .footer-pad    { padding: 50px 18px 28px !important; }
  .footer-bar-pad{ padding: 18px 18px !important; }

  /* GRIDS ------------------------------------------------- */
  .grid-2-stack,
  .grid-3-stack,
  .grid-4-stack,
  .grid-6-stack { grid-template-columns: 1fr !important; }
  .grid-2-stack { gap: 24px !important; }
  .grid-3-stack { gap: 16px !important; }
  .grid-2x      { grid-template-columns: 1fr 1fr !important; }
  .grid-2x      { gap: 10px !important; }

  /* HERO -------------------------------------------------- */
  .hero-grid {
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .hero-mock { display: none !important; }

  /* HEADINGS --------------------------------------------- */
  .h-xl { font-size: clamp(34px, 9vw, 50px) !important; line-height: 1.1 !important; }
  .h-lg { font-size: clamp(26px, 7vw, 38px) !important; line-height: 1.15 !important; }

  /* FOOTER ----------------------------------------------- */
  .footer-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
  .footer-bot   { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; text-align: left !important; }

  /* NAV --------------------------------------------------- */
  .nav-center-desktop, .nav-buttons-desktop { display: none !important; }
  .nav-mobile-toggle  { display: flex !important; }

  /* PRICING / PLANS -------------------------------------- */
  .plans-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* SUPPORT PAGE ----------------------------------------- */
  .support-grid    { grid-template-columns: 1fr !important; gap: 28px !important; }
  .support-grid > * { min-width: 0 !important; overflow: hidden !important; }
  .support-sidebar { position: static !important; }
  .support-topics  { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; overflow-x: auto !important; padding-bottom: 4px !important; }
  .support-topics > button { flex: 1 1 auto !important; white-space: nowrap !important; }
  pre { overflow-x: auto !important; max-width: 100% !important; word-break: break-all !important; }

  /* CONTACT PAGE ----------------------------------------- */
  .contact-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .contact-row  { grid-template-columns: 1fr !important; gap: 14px !important; }

  /* GENERIC OVERFLOW PROTECTION -------------------------- */
  pre, code { max-width: 100% !important; overflow-x: auto !important; }

  /* DASHBOARD -------------------------------------------- */
  .dash-shell        { flex-direction: column !important; height: auto !important; min-height: 100vh !important; }
  .dash-shell { overflow-y: auto !important; }
  html.dash-html, html.dash-html body { overflow: auto !important; height: auto !important; }
  .dash-sidebar      { width: 100% !important; height: auto !important; border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .dash-sidebar-body { display: none !important; }
  .dash-sidebar.open .dash-sidebar-body { display: block !important; }
  .dash-sidebar-toggle { display: flex !important; }
  .dash-main         { padding: 16px !important; }
  .dash-kpis         { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .dash-kpis > div   { padding: 12px 14px !important; }
  .dash-charts-row   { grid-template-columns: 1fr !important; }
  .dash-filter-row   { flex-wrap: wrap !important; gap: 8px !important; }
  .dash-finding-row  { grid-template-columns: 1fr !important; gap: 10px !important; }
  .dash-finding-meta { justify-content: flex-start !important; flex-wrap: wrap !important; }
  .dash-detail-grid  { grid-template-columns: 1fr !important; gap: 14px !important; }
  .dash-asset-grid   { grid-template-columns: 1fr !important; }

  /* LOGIN / REGISTER ------------------------------------- */
  .auth-card { padding: 24px 20px !important; max-width: 100% !important; width: calc(100vw - 32px) !important; }
}

/* Hide mobile-only elements on desktop */
.nav-mobile-toggle,
.dash-sidebar-toggle { display: none; }

