:root {
  --cs-bg: #f7fbff;
  --cs-surface: #ffffff;
  --cs-surface-soft: #eef7fb;
  --cs-surface-strong: #0e1b2a;
  --cs-text: #102033;
  --cs-text-muted: #5e7188;
  --cs-text-inverse: #f7fbff;
  --cs-line: #d8e6ef;
  --cs-primary: #2aa7c9;
  --cs-primary-dark: #147693;
  --cs-accent: #8bcf6a;
  --cs-accent-strong: #4d9d39;
  --cs-warning: #f2b84b;
  --cs-radius: 18px;
  --cs-radius-sm: 12px;
  --cs-shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
  --cs-shadow-soft: 0 14px 40px rgba(16, 32, 51, 0.08);
  --cs-container: 1180px;
  --cs-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cs-bg);
  color: var(--cs-text);
  font-family: var(--cs-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cs-primary-dark); }
button, input, textarea { font: inherit; }

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--cs-surface-strong);
  color: var(--cs-text-inverse);
  border-radius: 10px;
}

.cs-container {
  width: min(calc(100% - 40px), var(--cs-container));
  margin-inline: auto;
}

.cs-narrow { max-width: 840px; }
.cs-section { padding: 92px 0; }
.cs-section--muted { background: var(--cs-surface-soft); }
.cs-section--dark { background: var(--cs-surface-strong); color: var(--cs-text-inverse); }

.cs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 230, 239, 0.85);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.cs-header.is-scrolled { box-shadow: 0 10px 30px rgba(16, 32, 51, 0.08); }
.cs-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cs-brand__mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.15rem; color: var(--cs-text); }
.cs-brand__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(135deg, var(--cs-primary), var(--cs-accent)); color: var(--cs-surface); box-shadow: 0 12px 24px rgba(42, 167, 201, 0.25); }
.cs-nav { display: flex; align-items: center; gap: 22px; }
.cs-nav__list { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; color: var(--cs-text-muted); font-weight: 700; }
.cs-nav__list a { padding: 10px 0; }
.cs-nav__list .current-menu-item > a,
.cs-nav__list a:hover { color: var(--cs-text); }

.cs-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--cs-line); border-radius: 12px; background: var(--cs-surface); padding: 10px; }
.cs-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--cs-text); margin: 6px 0; border-radius: 999px; }

.cs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.cs-button:hover { transform: translateY(-1px); }
.cs-button--small { min-height: 40px; padding: 10px 14px; font-size: 0.92rem; }
.cs-button--primary { background: var(--cs-primary); color: var(--cs-surface); box-shadow: 0 14px 30px rgba(42, 167, 201, 0.25); }
.cs-button--primary:hover { background: var(--cs-primary-dark); color: var(--cs-surface); }
.cs-button--ghost { background: rgba(255, 255, 255, 0.62); border-color: var(--cs-line); color: var(--cs-text); }
.cs-button--ghost:hover { background: var(--cs-surface); color: var(--cs-text); }
.cs-button--light { background: var(--cs-surface); color: var(--cs-surface-strong); }

.cs-hero { position: relative; overflow: hidden; padding-top: 112px; }
.cs-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; background: radial-gradient(circle at 70% 20%, rgba(139, 207, 106, 0.22), transparent 34%), radial-gradient(circle at 20% 15%, rgba(42, 167, 201, 0.22), transparent 32%); pointer-events: none; }
.cs-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.8fr); gap: 58px; align-items: center; }
.cs-eyebrow { margin: 0 0 14px; color: var(--cs-primary-dark); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.78rem; font-weight: 900; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; color: var(--cs-text); }
.cs-section--dark h2, .cs-section--dark .cs-eyebrow { color: var(--cs-text-inverse); }
h1 { font-size: clamp(2.65rem, 6vw, 5.8rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.22rem; }
.cs-hero__lead { margin: 24px 0 0; max-width: 690px; font-size: 1.2rem; color: var(--cs-text-muted); }
.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.cs-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.cs-proof span, .cs-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 11px; border-radius: 999px; background: rgba(42, 167, 201, 0.1); color: var(--cs-primary-dark); font-weight: 800; font-size: 0.85rem; }

.cs-hero-panel { border-radius: 30px; padding: 10px; background: linear-gradient(145deg, rgba(42, 167, 201, 0.2), rgba(139, 207, 106, 0.26)); box-shadow: var(--cs-shadow); }
.cs-tool-ui { overflow: hidden; border-radius: 24px; background: var(--cs-surface); border: 1px solid rgba(216, 230, 239, 0.9); }
.cs-tool-ui__top { display: flex; gap: 8px; padding: 18px; border-bottom: 1px solid var(--cs-line); }
.cs-tool-ui__top span { width: 11px; height: 11px; border-radius: 999px; background: var(--cs-line); }
.cs-tool-ui__top span:first-child { background: var(--cs-warning); }
.cs-tool-ui__top span:nth-child(2) { background: var(--cs-accent); }
.cs-tool-ui__body { padding: 28px; }
.cs-tool-ui__label { margin: 0 0 18px; font-weight: 900; color: var(--cs-text); }
.cs-input-line { height: 46px; margin-bottom: 12px; border-radius: 14px; background: var(--cs-surface-soft); border: 1px solid var(--cs-line); }
.cs-input-line--short { width: 72%; }
.cs-output-card { margin-top: 22px; padding: 20px; border-radius: 18px; background: var(--cs-surface-strong); color: var(--cs-text-inverse); }
.cs-output-card p { margin: 8px 0 0; color: rgba(247, 251, 255, 0.75); }
.cs-score-row { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: rgba(139, 207, 106, 0.14); color: var(--cs-accent-strong); font-weight: 850; }
.cs-score-row strong { color: var(--cs-text); }

.cs-section-head { max-width: 740px; margin-bottom: 36px; }
.cs-section-head p:not(.cs-eyebrow) { color: var(--cs-text-muted); font-size: 1.08rem; }
.cs-section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.cs-text-link { color: var(--cs-primary-dark); font-weight: 900; white-space: nowrap; }

.cs-feature-grid, .cs-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cs-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-feature-card, .cs-card, .cs-sidebar-card, .cs-empty-state {
  background: var(--cs-surface);
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow-soft);
}
.cs-feature-card { padding: 26px; }
.cs-feature-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 15px; background: var(--cs-surface-strong); color: var(--cs-text-inverse); font-weight: 900; }
.cs-feature-card p, .cs-card p { color: var(--cs-text-muted); }

.cs-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform 180ms ease, box-shadow 180ms ease; }
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--cs-shadow); }
.cs-card__media-link { display: block; }
.cs-card__media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cs-surface-soft); }
.cs-card__media--placeholder { display: grid; place-items: center; background: linear-gradient(135deg, rgba(42, 167, 201, 0.16), rgba(139, 207, 106, 0.22)); }
.cs-card__media--placeholder span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--cs-surface); color: var(--cs-primary-dark); font-weight: 950; box-shadow: var(--cs-shadow-soft); }
.cs-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.cs-card__body h3 { margin-top: 8px; }
.cs-card__body p { margin: 12px 0 18px; }
.cs-card__link { margin-top: auto; color: var(--cs-primary-dark); font-weight: 900; }
.cs-card__meta { margin: 0 0 8px !important; font-size: 0.86rem; font-weight: 800; color: var(--cs-text-muted); }
.cs-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.cs-cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cs-cta-band p { max-width: 720px; color: rgba(247, 251, 255, 0.78); }

.cs-page-hero { background: linear-gradient(180deg, #eef7fb 0%, var(--cs-bg) 100%); }
.cs-page-hero h1 { font-size: clamp(2.35rem, 5vw, 4.7rem); }
.cs-page-hero p:not(.cs-eyebrow) { max-width: 780px; color: var(--cs-text-muted); font-size: 1.12rem; }

.cs-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cs-filter-bar a { padding: 9px 13px; border: 1px solid var(--cs-line); border-radius: 999px; background: var(--cs-surface); font-weight: 800; color: var(--cs-text-muted); }
.cs-filter-bar a:hover { color: var(--cs-text); border-color: var(--cs-primary); }

.cs-tool-hero { background: linear-gradient(180deg, #eef7fb 0%, var(--cs-bg) 100%); }
.cs-tool-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr); gap: 46px; align-items: start; }
.cs-tool-widget { background: var(--cs-surface); border: 1px solid var(--cs-line); border-radius: 24px; padding: 28px; box-shadow: var(--cs-shadow); }
.cs-demo-form { display: grid; gap: 12px; margin-top: 18px; }
.cs-demo-form label { font-weight: 850; }
.cs-demo-form textarea, .cs-search-form input { width: 100%; border: 1px solid var(--cs-line); background: var(--cs-bg); border-radius: 15px; padding: 14px 15px; color: var(--cs-text); }
.cs-demo-form textarea:focus, .cs-search-form input:focus { outline: 3px solid rgba(42, 167, 201, 0.18); border-color: var(--cs-primary); }
.cs-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.cs-sidebar { position: sticky; top: 104px; display: grid; gap: 16px; }
.cs-sidebar-card { padding: 22px; }
.cs-sidebar-card h2 { font-size: 1.15rem; margin-bottom: 12px; }
.cs-sidebar-card ul { margin: 0; padding-left: 18px; }

.prose { font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 42px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: #31465d; }
.prose a { color: var(--cs-primary-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.prose blockquote { margin: 32px 0; padding: 22px 26px; border-left: 4px solid var(--cs-primary); background: var(--cs-surface-soft); border-radius: 0 var(--cs-radius-sm) var(--cs-radius-sm) 0; }
.cs-featured-image img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 28px; box-shadow: var(--cs-shadow); }

.cs-search-form { display: flex; gap: 10px; width: min(100%, 620px); margin-top: 24px; }
.cs-empty-state { padding: 34px; text-align: center; }
.cs-empty-state .cs-search-form { margin-inline: auto; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--cs-line); background: var(--cs-surface); font-weight: 800; }
.page-numbers.current { background: var(--cs-primary); color: var(--cs-surface); border-color: var(--cs-primary); }

.cs-footer { background: #08131f; color: rgba(247, 251, 255, 0.78); padding: 64px 0 28px; }
.cs-footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr; gap: 34px; }
.cs-footer h2 { color: var(--cs-text-inverse); font-size: 1rem; margin-bottom: 14px; }
.cs-footer .cs-brand__mark { color: var(--cs-text-inverse); }
.cs-footer__brand p { max-width: 360px; }
.cs-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.cs-footer__links a:hover { color: var(--cs-text-inverse); }
.cs-footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 251, 255, 0.12); font-size: 0.92rem; }

@media (max-width: 960px) {
  .cs-section { padding: 70px 0; }
  .cs-hero__grid, .cs-tool-hero__grid, .cs-content-layout { grid-template-columns: 1fr; }
  .cs-feature-grid, .cs-card-grid, .cs-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-sidebar { position: static; }
  .cs-section-head--row, .cs-cta-band { align-items: start; flex-direction: column; }
  .cs-menu-toggle { display: block; }
  .cs-nav { position: fixed; inset: 78px 16px auto; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--cs-line); border-radius: 20px; background: var(--cs-surface); box-shadow: var(--cs-shadow); }
  .cs-nav.is-open { display: flex; }
  .cs-nav__list { display: grid; gap: 4px; }
}

@media (max-width: 640px) {
  .cs-container { width: min(calc(100% - 28px), var(--cs-container)); }
  .cs-section { padding: 56px 0; }
  .cs-header__inner { min-height: 70px; }
  .cs-nav { inset-top: 70px; }
  .cs-feature-grid, .cs-card-grid, .cs-footer__grid { grid-template-columns: 1fr; }
  .cs-hero { padding-top: 70px; }
  h1 { font-size: 2.55rem; }
  .cs-search-form { flex-direction: column; }
  .cs-button { width: 100%; }
  .cs-actions .cs-button, .cs-nav .cs-button { width: auto; }
  .cs-tool-widget, .cs-card__body, .cs-feature-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}