:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #657084;
  --brand: #3657ff;
  --brand-soft: #eef1ff;
  --accent: #12a594;
  --danger: #d64a4a;
  --border: #dfe5ef;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #eef3ff, transparent 28rem), var(--bg);
  line-height: 1.55;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(223, 229, 239, 0.8);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.nav-links a:hover { color: var(--brand); }

.tool-menu {
  position: relative;
}

.tool-menu summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 9px 12px;
  background: #fff;
}

.tool-menu summary::-webkit-details-marker { display: none; }

.tool-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(760px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.tool-menu-panel div {
  display: grid;
  gap: 7px;
}

.tool-menu-panel strong {
  font-size: 0.84rem;
  color: var(--ink);
}

.tool-menu-panel a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.9rem;
}

.tool-menu-panel a:hover { color: var(--brand); }

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 76px 0 42px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.hero-card, .card, .tool-panel, .article-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card { padding: 34px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.86rem;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.045em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 20px 0 16px; }
h2 { font-size: clamp(1.85rem, 3vw, 3rem); margin: 0 0 14px; }
h3 { font-size: 1.35rem; margin: 0 0 10px; }
p { color: var(--muted); margin: 0 0 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(54, 87, 255, 0.24);
}
.btn.secondary { background: var(--ink); box-shadow: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.btn.small { padding: 8px 11px; border-radius: 11px; font-size: 0.9rem; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 24px; }
.card .tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2f5fb;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.section { padding: 42px 0; }
.section-title { max-width: 760px; margin-bottom: 22px; }

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.tool-panel { padding: 24px; }
label { display: block; color: var(--ink); font-weight: 800; margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(54,87,255,0.09); }
.field { margin-bottom: 16px; }
.help { font-size: 0.9rem; color: var(--muted); }

.result-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: #f6f9ff;
  border: 1px solid #e2e9ff;
}
.result-box strong { font-size: 1.5rem; display: block; color: var(--ink); }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active { background: var(--brand); color: white; border-color: var(--brand); }
.tab-content[hidden] { display: none; }

.article-card { padding: 24px; }
.article-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.article-card li { margin: 6px 0; }

.footer {
  border-top: 1px solid var(--border);
  margin-top: 50px;
  padding: 28px 0;
  color: var(--muted);
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 650; }

.kpi-list { display: grid; gap: 10px; }
.kpi {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
}
.kpi strong { display: block; }
.kpi span { color: var(--muted); font-size: 0.92rem; }

.copy-status { min-height: 20px; color: var(--accent); font-weight: 800; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 6px 9px; background: #f3f6fb; color: var(--muted); border-radius: 999px; font-weight: 750; font-size: 0.82rem; }

@media (max-width: 860px) {
  .hero, .tool-layout, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .tool-menu { width: 100%; }
  .tool-menu summary { width: 100%; }
  .tool-menu-panel {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }
  .hero { padding-top: 46px; }
  .hero-card { padding: 24px; }
  .nav-links { justify-content: flex-start; }
}
