/* ==========================================================================
   SenseforgeAI Scraper — shared theme (landing page + dashboard)
   Swap the brand tokens below to re-skin both pages.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #0F766E;
  --brand-hover: #0B5F58;
  --brand-soft: #E6F3F1;
  --brand-ink: #0B4F49;

  /* Neutrals */
  --ink: #0B1220;
  --text: #1F2937;
  --text-muted: #5B6472;
  --text-subtle: #8A93A0;
  --border: #E4E7EC;
  --border-strong: #D0D5DD;
  --surface: #FFFFFF;
  --surface-alt: #F7F8FA;
  --surface-sunken: #F1F3F6;
  --bg: #FAFAFB;

  /* Status */
  --success: #067647;
  --success-soft: #ECFDF3;
  --info: #175CD3;
  --info-soft: #EFF6FF;
  --warning: #B54708;
  --warning-soft: #FFFAEB;
  --danger: #B42318;
  --danger-soft: #FEF3F2;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Shape */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, 0.16), 0 4px 8px -4px rgba(16, 24, 40, 0.06);
  --focus-ring: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.icon-lg {
  width: 20px;
  height: 20px;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wordmark-mark svg {
  width: 16px;
  height: 16px;
}

.wordmark-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.wordmark-product {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #1D2939;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--surface-sunken);
  color: var(--text);
}

.btn-danger {
  background: var(--surface);
  color: var(--danger);
  border-color: var(--border-strong);
}

.btn-danger:hover {
  background: var(--danger-soft);
  border-color: #FECDCA;
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  gap: 6px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-icon {
  width: 30px;
  padding: 0;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
