/* Minimal, clean, spacious design system for the whole site */

:root{
  --bg: #fbfbfc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #16a34a;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 252, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  font-weight: 800;
  letter-spacing: -0.02em;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 20px 52px;
}

.hero{
  padding: 18px 0 6px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 70ch;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  box-shadow: var(--shadow);
}

.btn:hover{
  transform: translateY(-1px);
}

.btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tools{
  margin-top: 26px;
}

.tools__header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tools__header h2{
  margin: 0;
  font-size: 18px;
}

.muted{
  color: var(--muted);
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card{
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
}

.card__top{
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.card h3{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.badge{
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  white-space: nowrap;
}

.badge--beta{
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.badge--experimental{
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.badge--live{
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.card p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
}

.error{
  margin-top: 14px;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.footer{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.tool h1{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.tool .lead{
  margin: 0 0 18px;
  color: var(--muted);
}

.panel{
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
