:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --border: #e5e8ef;
  --primary: #2357ff;
  --primary-dark: #1742c4;
  --primary-soft: #eaf0ff;
  --green: #0f9f6e;
  --shadow: 0 20px 45px rgba(23, 32, 51, 0.08);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
p { margin-top: 0; }
.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}
.topbar {
  background: #0f172a;
  color: #dbeafe;
  font-size: 14px;
  padding: 10px 0;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 22px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}
.nav-links a:hover { color: var(--primary); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 15px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 24px rgba(35, 87, 255, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-block { width: 100%; }
.hero {
  padding: 82px 0 52px;
  background:
    radial-gradient(circle at 20% 10%, rgba(35,87,255,0.12), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(124,58,237,0.12), transparent 32%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #dbe5ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 14px;
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
}
.hero p,
.page-hero p {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 720px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.trust span {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
}
.hero-card,
.card,
.form-card,
.output-card,
.content-card,
.article-card,
.article-body,
.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 24px; border-radius: 28px; }
.mock-window {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.mock-header {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.red { background: #ef4444; }
.yellow { background: #f59e0b; }
.green { background: #22c55e; }
.mock-body { padding: 20px; }
.mock-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.mock-line {
  height: 14px;
  border-radius: 999px;
  background: #e5e7eb;
  margin-bottom: 10px;
}
.mock-line.short { width: 70%; }
.result-box {
  margin-top: 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 16px;
  color: #166534;
  font-weight: 700;
}
section { padding: 56px 0; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 18px;
}
.cards,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.blog-grid { grid-template-columns: repeat(2, 1fr); }
.card,
.article-card,
.content-card,
.form-card,
.output-card,
.sidebar-card {
  padding: 24px;
}
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3,
.article-card h2,
.article-card h3 {
  font-size: 23px;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.card p,
.article-card p {
  color: var(--muted);
}
.band {
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.page-hero {
  padding: 62px 0 38px;
  background:
    radial-gradient(circle at 20% 0%, rgba(35,87,255,0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(124,58,237,0.10), transparent 35%);
}
.page-hero .container { max-width: 900px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 700;
}
.breadcrumb a { color: var(--primary); }
.tool-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}
label {
  display: block;
  font-weight: 850;
  margin-bottom: 8px;
  font-size: 14px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fbfcff;
  color: var(--text);
  outline: none;
  margin-bottom: 16px;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(35,87,255,0.12);
}
.output {
  min-height: 360px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 18px;
  white-space: pre-wrap;
  color: #243044;
}
.copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.small {
  color: var(--muted);
  font-size: 14px;
}
.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 16px;
  padding: 16px;
  margin-top: 18px;
  font-size: 14px;
}
.tag {
  display: inline-flex;
  background: #ecfeff;
  color: #0e7490;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 12px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}
.article-body { padding: 30px; }
.article-body h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
  margin-top: 34px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p,
.article-body li {
  color: #334155;
}
.article-body a {
  color: var(--primary);
  font-weight: 800;
}
.sidebar {
  position: sticky;
  top: 96px;
}
.sidebar-card {
  margin-bottom: 16px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: #334155;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.site-footer {
  padding: 44px 0;
  background: #0f172a;
  color: #cbd5e1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 24px;
}
.site-footer h3,
.site-footer h4 {
  color: white;
  margin-top: 0;
}
.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
  font-size: 15px;
}
.legal {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  color: #94a3b8;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #0f172a;
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  display: none;
  z-index: 100;
  box-shadow: var(--shadow);
}
@media (max-width: 920px) {
  .nav { padding: 16px 0; }
  .nav-links,
  .nav .btn { display: none; }
  .hero-grid,
  .tool-grid,
  .footer-grid,
  .article-layout,
  .cards,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions,
  .copy-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn { width: 100%; }
  .article-body { padding: 22px; }
  .sidebar { position: static; }
}
