:root {
  --ink: #0d1321;
  --deep: #1d2d44;
  --slate: #3e5c76;
  --denim: #748cab;
  --shell: #f0ebd8;
  --accent-cyan: #58b7cf;
  --accent-violet: #9c8aff;
  --surface: #ffffff;
  --border: #d7deeb;
  --shadow: 0 12px 32px rgba(13, 19, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #f9fbff 0%, #eff3fa 100%);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--deep);
}

.container {
  width: min(1280px, 94vw);
  margin: 0 auto;
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(240, 235, 216, 0.9);
  border-bottom: 1px solid rgba(13, 19, 33, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  width: 100%;
  padding: 1rem clamp(1rem, 2.8vw, 2.25rem);
}

.logo {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.48rem 0.76rem;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-list a:hover {
  transform: translateY(-1px);
  background: rgba(61, 92, 118, 0.15);
  box-shadow: 0 4px 10px rgba(13, 19, 33, 0.08);
}

.nav-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  color: #34506f;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav-label {
  line-height: 1.2;
}

.breadcrumbs {
  margin: 0 0 0.95rem;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: #3a5773;
  font-size: 0.9rem;
}

.article-shell .breadcrumbs-list {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(116, 140, 171, 0.26);
  border-radius: 10px;
  background: rgba(245, 249, 255, 0.88);
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
  content: ">";
  margin-left: 0.45rem;
  color: #7a8fa7;
}

.breadcrumbs-item a {
  text-decoration: none;
  color: #355579;
  font-weight: 600;
}

.breadcrumbs-item a:hover {
  text-decoration: underline;
}

.breadcrumbs-item [aria-current="page"] {
  color: #2b435f;
  font-weight: 700;
}

.hero {
  margin-top: 3rem;
  margin-bottom: 2rem;
  background: radial-gradient(circle at top right, #748cab 0%, #3e5c76 42%, #1d2d44 100%);
  color: #f7fbff;
  border-radius: 28px;
  padding: clamp(1.6rem, 4vw, 3.25rem);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.88;
  margin: 0;
}

.hero h1 {
  margin: 0.8rem 0;
  line-height: 1.2;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
}

.hero-copy {
  margin: 0;
  max-width: 72ch;
  color: #e4ebf7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: var(--shell);
  box-shadow: 0 8px 20px rgba(15, 18, 30, 0.22);
}

.button-ghost {
  color: #e6efff;
  border: 1px solid rgba(230, 239, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.section-heading p {
  margin: 0.4rem 0 0;
  color: var(--slate);
}

.cta-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.cta-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.15rem;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(13, 19, 33, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cta-card h3 {
  margin: 0.75rem 0 0.35rem;
  line-height: 1.25;
  font-size: 1.1rem;
}

.cta-card p {
  margin: 0;
  color: var(--slate);
}

.card-link {
  margin-top: 0.8rem;
  display: inline-block;
  font-weight: 700;
}

.icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cta-card-blue .icon-wrap {
  background: rgba(62, 92, 118, 0.12);
  color: var(--deep);
}

.cta-card-cyan .icon-wrap {
  background: rgba(88, 183, 207, 0.16);
  color: #0d6f87;
}

.cta-card-violet .icon-wrap {
  background: rgba(156, 138, 255, 0.17);
  color: #5540d4;
}

.cta-card-blue:hover {
  border-color: var(--denim);
}

.cta-card-cyan:hover {
  border-color: var(--accent-cyan);
}

.cta-card-violet:hover {
  border-color: var(--accent-violet);
}

.article-shell {
  margin-top: 2rem;
  margin-bottom: 3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 10px 28px rgba(13, 19, 33, 0.06);
}

.article-shell h1,
.article-shell h2,
.article-shell h3 {
  color: var(--deep);
  line-height: 1.3;
}

.article-shell > h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 0.25rem;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #1d2d44 0%, #3e5c76 60%, #4f6d92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 8px 18px rgba(62, 92, 118, 0.2));
}

.article-shell > h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: min(230px, 100%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--denim) 0%, var(--accent-cyan) 55%, rgba(88, 183, 207, 0) 100%);
  transition: transform 220ms ease;
  transform-origin: left center;
}

.article-shell > h1:hover::after {
  transform: scaleX(1.05);
}

.article-shell h2,
.article-shell h3,
.article-shell h4 {
  position: relative;
  scroll-margin-top: 6rem;
}

.article-shell h2 {
  margin-top: 2rem;
  padding-bottom: 0.4rem;
}

.article-shell h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(180px, 38%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--denim) 0%, var(--accent-cyan) 70%, rgba(88, 183, 207, 0) 100%);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.article-shell h2:hover::after {
  transform: scaleX(1.08);
}

.article-shell h3 {
  margin-top: 1.5rem;
  color: #2a4763;
}

.article-shell h4 {
  color: #365472;
}

.article-shell pre {
  background: linear-gradient(145deg, #f8fbff 0%, #eff4fb 100%);
  color: #1f3248;
  border: 1px solid rgba(116, 140, 171, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 0.9rem;
  overflow-x: auto;
  position: relative;
}

.copy-code-button {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 1px solid rgba(62, 92, 118, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #24415e;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.copy-code-button:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(36, 65, 94, 0.45);
}

.copy-code-button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.copy-code-button.is-copied {
  background: rgba(88, 183, 207, 0.2);
  color: #0d6f87;
  border-color: rgba(88, 183, 207, 0.5);
}

.copy-code-button.is-error {
  background: rgba(156, 138, 255, 0.2);
  color: #553da5;
  border-color: rgba(156, 138, 255, 0.5);
}

.article-shell p code,
.article-shell li code,
.article-shell h1 code,
.article-shell h2 code,
.article-shell h3 code,
.article-shell td code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  border: 0;
  font-family: inherit;
}

.article-shell pre code {
  color: #1f3248;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-shell pre .token.keyword,
.article-shell pre .token.atrule,
.article-shell pre .token.operator,
.article-shell pre .token.important {
  color: #355d9a;
}

.article-shell pre .token.string,
.article-shell pre .token.char,
.article-shell pre .token.attr-value,
.article-shell pre .token.regex {
  color: #0f7b6b;
}

.article-shell pre .token.number,
.article-shell pre .token.boolean,
.article-shell pre .token.constant {
  color: #a46016;
}

.article-shell pre .token.function,
.article-shell pre .token.class-name,
.article-shell pre .token.builtin {
  color: #6a4eb4;
}

.article-shell pre .token.comment,
.article-shell pre .token.prolog,
.article-shell pre .token.doctype,
.article-shell pre .token.cdata {
  color: #5b7690;
  font-style: italic;
}

.article-shell pre .token.punctuation {
  color: #48637d;
}

.article-shell pre .token.property,
.article-shell pre .token.parameter,
.article-shell pre .token.variable,
.article-shell pre .token.symbol {
  color: #7a3e83;
}

.article-shell .faq-heading {
  margin-top: 2.25rem;
}

.article-shell .faq-item {
  margin: 0.95rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(116, 140, 171, 0.35);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(248, 251, 255, 0.9) 0%, rgba(240, 245, 253, 0.95) 100%);
}

.article-shell .faq-question {
  margin: 0;
  font-weight: 750;
  color: #1f3e5d;
}

.article-shell .faq-answer {
  margin: 0.45rem 0 0;
  color: #2d4b66;
}

.article-shell .checklist {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.article-shell .checklist-item {
  margin: 0.45rem 0;
}

.article-shell .checklist-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.article-shell .checklist-box {
  margin-top: 0.22rem;
  width: 1rem;
  height: 1rem;
  accent-color: #3e5c76;
  cursor: pointer;
}

.article-shell .checklist-text {
  color: inherit;
}

.article-shell .checklist-box:checked + .checklist-text {
  color: #4b657f;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.site-footer {
  margin-top: 2rem;
  background: #0e1625;
  color: #dce7fc;
}

.footer-inner {
  padding: 1.2rem 0 2rem;
}

.footer-inner p {
  margin: 0.35rem 0;
}

.footer-inner a {
  color: #c7d7ff;
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav-list {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-list a {
    font-size: 0.88rem;
    padding: 0.42rem 0.62rem;
  }

  .breadcrumbs {
    margin-bottom: 0.75rem;
  }

  .breadcrumbs-list {
    font-size: 0.83rem;
  }
}

