/* Suntrudo Tools Hub — Premium Editorial & Obsidian-Amber Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #070709;
  --surface: #101014;
  --surface-2: #17171d;
  --surface-glass: rgba(16, 16, 20, 0.72);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 149, 0, 0.45);
  --text: #f6f6f8;
  --muted: #9ca3af;
  --amber: #ff9500;
  --amber-light: #ffb74d;
  --amber-dark: #d97706;
  --amber-glow: rgba(255, 149, 0, 0.14);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 16px;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(255, 149, 0, 0.14), transparent 70%),
    radial-gradient(circle at 85% 20%, rgba(255, 149, 0, 0.05), transparent 45%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--amber-light);
}

/* Header / Nav */
.st-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.st-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.st-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.025em;
}
.st-brand:hover { text-decoration: none; }
.st-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(255, 149, 0, 0.05));
  border: 1px solid rgba(255, 149, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.st-brand-badge {
  background: var(--amber-glow);
  color: var(--amber-light);
  border: 1px solid rgba(255, 149, 0, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
}
.st-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}
.st-nav-links a { color: var(--muted); transition: color 0.15s ease; }
.st-nav-links a:hover, .st-nav-links a.active { color: var(--text); text-decoration: none; }
.st-nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #070709 !important;
  font-weight: 800 !important;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(255, 149, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.st-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 149, 0, 0.35);
}

/* Container & Hero */
.st-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px 22px 72px;
}
.st-hero {
  text-align: center;
  padding: 42px 16px 32px;
}
.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-glow);
  color: var(--amber-light);
  border: 1px solid rgba(255, 149, 0, 0.32);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.st-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.st-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.13;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #b8bec8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.st-hero p {
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 24px;
  font-size: 1.04rem;
}
.st-trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.st-trust-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Filter Tabs & Search */
.st-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.st-tab {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.st-tab:hover { color: var(--text); border-color: rgba(255, 149, 0, 0.45); }
.st-tab.active {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #070709;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 149, 0, 0.25);
}
.st-search {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  min-width: 265px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.st-search:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.14);
}

/* Tool Grid & Cards */
.st-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.st-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.9), rgba(14, 14, 18, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color: 0.2s ease, box-shadow 0.2s ease;
}
.st-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 14px 36px rgba(255, 149, 0, 0.1);
  text-decoration: none;
}
.st-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.st-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--amber-glow);
  border: 1px solid rgba(255, 149, 0, 0.28);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.st-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber-light);
  background: rgba(255, 149, 0, 0.09);
  padding: 4px 10px;
  border-radius: 999px;
}
.st-card h2, .st-card h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}
.st-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--muted);
  flex: 1;
}
.st-card-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amber);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-card:hover .st-card-link { color: var(--amber-light); }

/* Tool Page Workspace */
.st-breadcrumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.st-tool-box {
  background: linear-gradient(180deg, rgba(20, 20, 26, 0.95), rgba(14, 14, 18, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.st-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.st-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 7px;
}
.st-input, .st-select, .st-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.st-input:focus, .st-select:focus, .st-textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.14);
}
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #070709;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 149, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.st-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 149, 0, 0.34);
  text-decoration: none;
}
.st-btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.st-btn-secondary:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}
.st-result-box {
  background: rgba(23, 23, 29, 0.85);
  border: 1px solid rgba(255, 149, 0, 0.3);
  border-radius: 14px;
  padding: 20px;
  margin-top: 20px;
}
.st-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.st-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.st-kpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.st-kpi-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* CLS-Safe Ad Slots & Affiliate Box */
.ad-slot {
  min-height: 100px;
  margin: 26px 0;
  background: rgba(255, 255, 255, 0.015);
  border: 1px dashed rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
}
.st-affiliate-box {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(16, 16, 20, 0.96));
  border: 1px solid rgba(255, 149, 0, 0.32);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.st-affiliate-box h3 { margin: 0 0 4px; font-size: 1.04rem; color: var(--text); }
.st-affiliate-box p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* SEO Article Content */
.st-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  margin-top: 28px;
}
.st-article h1 { font-size: 1.9rem; margin-top: 0; letter-spacing: -0.025em; }
.st-article h2 {
  font-size: 1.38rem;
  margin: 26px 0 10px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.st-article h2:first-child { margin-top: 0; }
.st-article h3 { font-size: 1.08rem; margin: 20px 0 8px; color: var(--amber-light); }
.st-article p, .st-article li { color: #d4d4d8; font-size: 0.97rem; }
.st-article ul, .st-article ol { padding-left: 20px; }

/* Footer */
.st-footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(7, 7, 9, 0.6);
}
.st-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.st-footer-links a { color: var(--muted); }
.st-footer-links a:hover { color: var(--amber); }

@media (max-width: 680px) {
  .st-nav-links a:not(.st-keep-mobile) { display: none; }
  .st-search { width: 100%; }
  .st-tool-box, .st-article { padding: 20px 16px; }
}
