:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --text: #172033;
  --muted: #5d687a;
  --line: #dde4ef;
  --accent: #3157d5;
  --accent-dark: #2444a8;
  --accent-soft: #eef2ff;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent);
}

img,
svg {
  max-width: 100%;
}

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

.narrow {
  width: min(780px, calc(100% - 32px));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  padding: 80px 0;
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.16rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.workflow-card,
.card,
.article-card,
.mini-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.workflow-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.workflow-card p,
.card p,
.article-card p,
.newsletter p,
.page-hero p,
.content p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.card-grid,
.article-grid,
.use-case-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.article-card {
  display: block;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.article-card:hover {
  border-color: rgba(49, 87, 213, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3,
.article-card h3 {
  margin-bottom: 10px;
}

.profession-card h2 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-live {
  background: var(--accent-soft);
  color: var(--accent);
}

.card-disabled {
  color: var(--text);
  opacity: 0.82;
}

.card-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.mini-card {
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
}

.newsletter {
  padding: 56px 0;
  background: #111827;
  color: #fff;
}

.newsletter .eyebrow,
.newsletter p {
  color: #b8c6ff;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 28px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
}

.newsletter-form input {
  border-color: transparent;
}

.site-footer {
  padding: 44px 0;
  background: #f9fafc;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 32px;
}

.footer-grid p {
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
}

.footer-grid h2 {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 70px 0 24px;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.page-hero p:last-child {
  margin-top: 18px;
  font-size: 1.08rem;
}

.content h2,
.article-body h2,
.faq h2 {
  margin: 30px 0 12px;
  font-size: 1.55rem;
}

.content p + p,
.article-body p + p {
  margin-top: 16px;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-form label {
  color: var(--text);
  font-weight: 800;
}

.contact-form button {
  width: fit-content;
  margin-top: 8px;
}

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

.breadcrumb a {
  color: var(--accent);
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 48px;
  align-items: start;
}

.article-body {
  padding-bottom: 72px;
}

.article-body .intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-body table {
  width: 100%;
  margin: 18px 0 28px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--bg-soft);
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body ul {
  padding-left: 20px;
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.faq details p {
  margin-top: 10px;
}

.sidebar-box {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.sidebar-box h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.sidebar-box p {
  margin-bottom: 16px;
  color: var(--muted);
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
  }

  .hero {
    padding: 54px 0;
  }

  .hero-grid,
  .newsletter-inner,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .article-grid,
  .use-case-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-box {
    position: static;
  }
}

@media (max-width: 560px) {
  .container,
  .narrow {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 52px 0;
  }

  .card-grid,
  .article-grid,
  .use-case-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form,
  .button-row {
    flex-direction: column;
  }

  .button,
  .contact-form button {
    width: 100%;
  }

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
