/* JanitorAI Toolkit website — design tokens match the extension's Tailwind config */

:root {
  --surface-0: rgb(12 12 18);
  --surface-1: rgb(255 255 255 / 0.08);
  --surface-2: rgb(255 255 255 / 0.12);
  --surface-3: rgb(0 0 0 / 0.32);
  --line-subtle: rgb(255 255 255 / 0.08);
  --line: rgb(255 255 255 / 0.12);
  --line-strong: rgb(255 255 255 / 0.20);
  --ink-hi: rgb(255 255 255 / 0.92);
  --ink-mid: rgb(255 255 255 / 0.62);
  --ink-lo: rgb(255 255 255 / 0.42);
  --accent: rgb(168 85 247);
  --accent-soft: rgb(168 85 247 / 0.18);
  --accent-firm: rgb(168 85 247 / 0.45);
  --accent-ring: rgb(168 85 247 / 0.35);
  --ok: rgb(74 222 128);
  --warn: rgb(252 211 77);
  --err: rgb(248 113 113);
  --info: rgb(125 211 252);
  --radius-ctl: 6px;
  --radius-card: 10px;
}

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

html {
  background: var(--surface-0);
  color: var(--ink-hi);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

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

/* Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line-subtle);
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: var(--surface-0);
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-hi);
  text-decoration: none;
}
.site-logo:hover {
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-card);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  font-size: 14px;
  color: var(--ink-mid);
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--ink-hi);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgb(168 85 247 / 0.12), transparent 70%);
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 18px;
  color: var(--ink-mid);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-ctl);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink-hi);
  border: 1px solid var(--line-subtle);
}
.btn-secondary:hover {
  background: var(--line);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-mid);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink-hi);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-ctl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-pro {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgb(168 85 247 / 0.25);
}
.badge-free {
  background: var(--surface-1);
  color: var(--ink-mid);
  border: 1px solid var(--line-subtle);
}

/* Cards */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* Sections */
.section {
  padding: 64px 0;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-lo);
  margin-bottom: 8px;
}
.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section p {
  font-size: 15px;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.6;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: border-color 0.15s;
}
.feature-card:hover {
  border-color: rgb(168 85 247 / 0.25);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-card);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 18px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* Comparison table */
.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-subtle);
}
.comparison th,
.comparison td {
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 14px;
}
.comparison th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-lo);
  background: var(--surface-3);
}
.comparison th:last-child,
.comparison td:last-child {
  text-align: center;
  border-left: 1px solid var(--line-subtle);
}
.comparison td:first-child {
  color: var(--ink-hi);
}
.comparison td:last-child {
  color: var(--accent);
  font-weight: 600;
}
.comparison .check {
  color: var(--ok);
}
.comparison .dash {
  color: var(--ink-lo);
}
.comparison tr:last-child td {
  border-bottom: none;
}

/* CTA section */
.cta {
  text-align: center;
  padding: 64px 0 80px;
  background: radial-gradient(ellipse at 50% 100%, rgb(168 85 247 / 0.10), transparent 70%);
}
.cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta p {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 28px;
}

/* Downloads */
.download-section {
  margin-top: 32px;
}
.download-card {
  background: var(--surface-1);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.download-card .info {
  min-width: 0;
}
.download-card .name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.download-card .meta {
  font-size: 13px;
  color: var(--ink-lo);
}
.download-card .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  padding: 32px 0;
  font-size: 13px;
  color: var(--ink-lo);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-lo);
}
.footer-links a:hover {
  color: var(--ink-mid);
}

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 64px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}
.legal .updated {
  font-size: 13px;
  color: var(--ink-lo);
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--ink-hi);
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--ink-hi);
}
.legal p, .legal li {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul, .legal ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal a {
  color: var(--accent);
}
.legal blockquote {
  border-left: 3px solid var(--accent-firm);
  padding: 8px 16px;
  margin: 16px 0;
  background: var(--surface-1);
  border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0;
  color: var(--ink-mid);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 16px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 24px; }
  .features { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .comparison { font-size: 13px; }
  .comparison th, .comparison td { padding: 10px 14px; }
}
