:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --border: #d8e1ed;
  --border-strong: #c3d0df;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #7b8494;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --shadow-card: 0 1px 2px rgba(15,23,42,0.05), 0 16px 36px rgba(70,86,112,0.08);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0) 260px),
    radial-gradient(circle at 18% 0%, rgba(37,99,235,0.07), transparent 260px),
    var(--bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  margin-top: 56px;
}

.header-inner,
.footer-inner,
.page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner,
.footer-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
}

.brand-mark {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 600;
}

.tool-link:hover {
  text-decoration: none;
  background: #1d4ed8;
}

.page {
  padding: 48px 0 0;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.lead {
  margin: 18px 0 0;
  max-width: 710px;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,0.74);
  font-weight: 600;
}

.secondary-link:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(rgba(37,99,235,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.14) 1px, transparent 1px),
    var(--surface);
  background-size: 34px 34px;
  min-height: 300px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.preview::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px solid rgba(37,99,235,0.42);
  border-radius: 4px;
}

.preview-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  padding: 9px 11px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  box-shadow: 0 8px 22px rgba(15,23,42,0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  align-items: start;
}

.section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.84);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 18px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

li + li {
  margin-top: 7px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9375rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 650;
  background: var(--surface-soft);
}

.side-card {
  position: sticky;
  top: 78px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.side-card h2 {
  font-size: 1rem;
}

.link-list {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 10px 11px;
  color: var(--text);
}

.link-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.faq dt {
  margin-top: 16px;
  font-weight: 650;
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 4px 0 0;
  color: var(--text-secondary);
}

.footer-inner {
  min-height: 76px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner,
  .page {
    width: min(100% - 28px, 1120px);
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .preview {
    min-height: 220px;
  }

  .side-card {
    position: static;
  }
}
