/* soltools — light theme design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --surface-2: #F4F6F8;
  --surface-3: #EEF1F4;
  --border: #E4E7EC;
  --border-strong: #D0D5DD;
  --text: #0B1220;
  --text-muted: #5B6573;
  --text-faint: #98A2B3;
  --accent: #2D6CDF;
  --accent-hover: #1F58C2;
  --accent-soft: #E8F0FE;
  --success: #16A34A;
  --success-soft: #ECFDF5;
  --warning: #D97706;
  --warning-soft: #FEF3C7;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --sol-grad: linear-gradient(135deg, #9945FF 0%, #14F195 100%);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);

  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --sidebar-w: 256px;
}

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

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- SIDEBAR ---------------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  text-decoration: none;
  color: inherit;
}
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand img { height: 40px; }

.sidebar-section { margin-top: 14px; }

.sidebar-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 10px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  transition: background-color 120ms ease, color 120ms ease;
}
.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-link .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
  stroke-width: 1.8;
}
.sidebar-link .pill {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 6px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 6px 6px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
  padding: 12px 10px 4px;
}

/* ---------------- MAIN ---------------- */
.main {
  padding: 28px 40px 60px;
  max-width: 1200px;
  width: 100%;
}

.page-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text); text-decoration: none; }
.crumbs .sep { margin: 0 6px; opacity: 0.5; }

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.page-sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------------- SECTIONS ---------------- */
.section { margin-bottom: 36px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-head .sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------------- CARDS ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

/* ---------------- TOOL TILES ---------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.tool-tile {
  display: block;
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.tool-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}
.tool-tile-name {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.tool-tile-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-tile-meta {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ---------------- PILLS ---------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pill-free    { background: var(--success-soft); color: var(--success); }
.pill-paid    { background: var(--accent-soft);  color: var(--accent); }
.pill-beta    { background: var(--warning-soft); color: var(--warning); }
.pill-muted   { background: var(--surface-2);    color: var(--text-muted); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #FFF;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #FFF; }
.btn-ghost { border-color: transparent; }

/* ---------------- FEATURED BANNERS ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feature-card {
  position: relative;
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sol-grad);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  mix-blend-mode: multiply;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.feature-card-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-card-name .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--sol-grad);
}
.feature-card-desc {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.feature-card-cta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- TERMINAL PANEL ---------------- */
.terminal {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #0F1525;
  color: #E4E9F2;
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.55;
  overflow: auto;
  max-height: 360px;
}
.terminal .ok    { color: #6EE7B7; }
.terminal .warn  { color: #FCD34D; }
.terminal .err   { color: #FCA5A5; }
.terminal .dim   { color: #9CA3AF; }

/* ---------------- STATUS DOT ---------------- */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}
.status-dot.up { background: var(--success); }
.status-dot.down { background: var(--danger); }

/* ---------------- TOPBAR (mobile menu toggle) ---------------- */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 200ms ease;
    z-index: 50;
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .main { padding: 60px 18px 40px; }
  .feature-grid { grid-template-columns: 1fr; }
}
