:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  padding: 32px 6vw 16px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

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

.logo {
  font-size: 28px;
}

.brand-title {
  margin: 0;
  font-weight: 700;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-text h1 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.panel-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.panel-note {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 32px 6vw;
}

.section-head {
  margin-bottom: 20px;
}

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

.tool-card {
  background: var(--surface);
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.tool-card p {
  color: var(--muted);
  margin: 0;
}

.pill {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.muted {
  background: #f9fafb;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer {
  padding: 24px 6vw 40px;
  text-align: center;
  color: var(--muted);
}

.tool-page {
  min-height: 100vh;
  background: var(--bg);
}

.tool-header {
  padding: 24px 6vw 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.back-link {
  color: var(--accent);
  font-weight: 600;
}

.tool-content {
  padding: 24px 6vw 48px;
}

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

.tool-row {
  display: grid;
  gap: 8px;
}

.tool-row textarea,
.tool-row input,
.tool-row select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
}

.tool-controls {
  display: grid;
  gap: 12px;
}

.tool-actions {
  display: flex;
  gap: 12px;
}

.primary,
.ghost {
  border-radius: 10px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
}

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

.ghost {
  background: #fff;
  color: var(--text);
}

.tool-note {
  color: var(--muted);
  font-size: 14px;
}

.tool-subtitle {
  color: var(--muted);
  margin: 0;
}

.code-block {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-wysiwyg {
  min-height: 160px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
