/* ===== SynovixLabs base styles ===== */
:root {
  --bg: #0b0d12;
  --bg-soft: #141821;
  --card: #181d28;
  --border: #262d3b;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #5b8cff;
  --accent-soft: #1e2740;
  --radius: 12px;
  --max: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--accent); }
.nav a {
  color: var(--muted);
  margin-left: 18px;
  font-size: 0.92rem;
}
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 { font-size: 2.6rem; margin: 0 0 12px; line-height: 1.15; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn.secondary { background: var(--accent-soft); color: var(--text); }

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 40px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 36px 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 8px; }

/* Content pages */
.content { padding: 48px 0; max-width: 720px; }
.content h1 { font-size: 2rem; line-height: 1.2; }
.content h2 { font-size: 1.4rem; margin-top: 2em; }
.content p, .content li { color: #d2d8e3; }
.content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* List of posts */
.post-list { list-style: none; padding: 0; }
.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.post-list .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); margin-right: 16px; }

/* Tool UI */
.tool-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
textarea, input, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.9rem; }
.result { font-size: 1.4rem; font-weight: 700; color: var(--accent); }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .nav a { margin-left: 12px; font-size: 0.85rem; }
}
