:root {
  --gtm-navy: #0f172a;
  --gtm-navy-2: #172554;
  --gtm-blue: #2563eb;
  --gtm-blue-dark: #1e40af;
  --gtm-cyan: #38bdf8;
  --gtm-green: #16a34a;
  --gtm-amber: #d97706;
  --gtm-red: #dc2626;
  --gtm-muted: #64748b;
  --gtm-line: #dce3ec;
  --gtm-line-soft: #e9eef5;
  --gtm-canvas: #f5f7fa;
  --gtm-surface: #fff;
  --gtm-radius: 16px;
  --gtm-radius-sm: 10px;
  --gtm-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  --gtm-shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gtm-canvas);
  color: var(--gtm-navy);
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover {
  color: var(--gtm-blue-dark);
}

button,
input,
select {
  font: inherit;
}

img {
  height: auto;
  max-width: 100%;
}

.gtm-shell {
  margin-inline: auto;
  max-width: var(--gtm-shell);
  padding-inline: 24px;
  width: 100%;
}

.gtm-skip-link {
  background: var(--gtm-navy);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 9999;
}

.gtm-skip-link:focus {
  top: 16px;
}

.gtm-site-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--gtm-line);
}

.gtm-brand-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.gtm-brand {
  align-items: center;
  color: var(--gtm-navy);
  display: inline-flex;
  gap: 12px;
}

.gtm-brand:hover {
  color: var(--gtm-navy);
}

.gtm-brand__mark {
  align-items: center;
  background: linear-gradient(150deg, var(--gtm-blue), var(--gtm-blue-dark));
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
  color: #fff;
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.gtm-brand strong,
.gtm-brand small {
  display: block;
}

.gtm-brand strong {
  font-size: 19px;
  line-height: 1.15;
}

.gtm-brand small {
  color: var(--gtm-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  margin-top: 3px;
}

.gtm-site-status {
  align-items: center;
  color: var(--gtm-muted);
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  gap: 7px;
}

.gtm-status-dot {
  background: var(--gtm-amber);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #fef3e2;
  height: 8px;
  width: 8px;
}

.gtm-tabs-wrap {
  border-top: 1px solid #eef1f6;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gtm-tabs {
  display: flex;
  min-width: max-content;
}

.gtm-tabs__link {
  border-bottom: 2px solid transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 17px 11px;
}

.gtm-tabs__link:first-child {
  margin-left: -17px;
}

.gtm-tabs__link:hover,
.gtm-tabs__link.is-active {
  border-bottom-color: var(--gtm-blue);
  color: var(--gtm-blue);
}

.gtm-main {
  min-height: 65vh;
  padding-block: 22px 60px;
}

.gtm-slider {
  align-items: center;
  background: linear-gradient(120deg, #172554 0%, #1d4ed8 65%, #3b82f6 100%);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(30, 64, 175, .18);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 158px;
  overflow: hidden;
  padding: 28px 34px;
  position: relative;
}

.gtm-slider::after {
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  content: "";
  height: 280px;
  position: absolute;
  right: -90px;
  top: -130px;
  width: 280px;
}

.gtm-slider h1 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.25;
  margin: 8px 0 4px;
  max-width: 700px;
}

.gtm-slider p {
  color: #dbeafe;
  font-size: 13px;
  margin: 0;
}

.gtm-eyebrow {
  color: inherit;
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.gtm-slider__stats {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.gtm-slider__stats div {
  text-align: center;
}

.gtm-slider__stats strong,
.gtm-slider__stats span {
  display: block;
}

.gtm-slider__stats strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 27px;
}

.gtm-slider__stats span {
  color: #bfdbfe;
  font-size: 11px;
}

.gtm-home-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 312px;
  margin-top: 26px;
}

.gtm-home-primary {
  min-width: 0;
}

.gtm-home-sidebar {
  position: sticky;
  top: 14px;
}

.gtm-sidebar-cta {
  background: linear-gradient(155deg, #0f172a, #1e3a8a);
  border: 1px solid #27438c;
  border-radius: var(--gtm-radius);
  box-shadow: var(--gtm-shadow);
  color: #fff;
  padding: 26px;
}

.gtm-sidebar-cta .gtm-eyebrow {
  color: #93b4ff;
}

.gtm-sidebar-cta h2 {
  font-size: 23px;
  line-height: 1.25;
  margin: 12px 0;
}

.gtm-sidebar-cta p,
.gtm-sidebar-cta li {
  color: #c4d4f5;
  font-size: 13px;
}

.gtm-sidebar-cta ul {
  border-block: 1px solid rgba(255,255,255,.12);
  list-style: none;
  margin: 18px 0;
  padding: 14px 0;
}

.gtm-sidebar-cta li {
  padding: 3px 0;
}

.gtm-sidebar-cta li::before {
  color: #7dd3fc;
  content: "✓";
  margin-right: 8px;
}

.gtm-button {
  align-items: center;
  background: var(--gtm-blue);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 11px 16px;
}

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

.gtm-button--light {
  background: #fff;
  color: var(--gtm-blue-dark);
  width: 100%;
}

.gtm-button--light:hover {
  background: #eff6ff;
  color: var(--gtm-blue-dark);
}

.gtm-mobile-cta {
  align-items: center;
  background: #fff;
  border: 1px solid var(--gtm-line);
  border-radius: 14px;
  box-shadow: var(--gtm-shadow);
  display: none;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px;
}

.gtm-demo-badge {
  background: #fef3e2;
  border: 1px solid #fbe3bd;
  border-radius: 6px;
  color: #b45309;
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 8px;
}

.gtm-notice {
  background: #fff;
  border: 1px solid var(--gtm-line);
  border-radius: var(--gtm-radius-sm);
  padding: 16px;
}

.gtm-notice--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.gtm-page-hero {
  background: linear-gradient(135deg, #fff, #f8fbff);
  border: 1px solid var(--gtm-line);
  border-radius: var(--gtm-radius);
  box-shadow: var(--gtm-shadow);
  margin-bottom: 24px;
  padding: 34px;
}

.gtm-page-hero .gtm-eyebrow {
  color: var(--gtm-blue);
}

.gtm-page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 8px 0 10px;
}

.gtm-page-hero p {
  color: var(--gtm-muted);
  margin: 0 0 15px;
  max-width: 720px;
}

.gtm-inner-filters {
  margin: -8px 0 22px;
  overflow: hidden;
}

.gtm-inner-filters__scroll {
  display: flex;
  gap: 7px;
  min-width: max-content;
  overflow-x: auto;
  padding: 8px 2px 9px;
  scrollbar-color: #94a3b8 transparent;
  scrollbar-width: thin;
}

.gtm-inner-filter {
  background: #fff;
  border: 1px solid var(--gtm-line);
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 12px;
  white-space: nowrap;
}

.gtm-inner-filter:hover,
.gtm-inner-filter.is-active {
  background: var(--gtm-blue);
  border-color: var(--gtm-blue);
  color: #fff;
}

.gtm-filter-empty {
  background: #fff;
  border: 1px dashed var(--gtm-line);
  border-radius: var(--gtm-radius-sm);
  color: var(--gtm-muted);
  padding: 18px;
  text-align: center;
}

.gtm-post-card[hidden] {
  display: none;
}

.gtm-empty-state {
  background: #fff;
  border: 1px dashed var(--gtm-line);
  border-radius: var(--gtm-radius);
  padding: clamp(28px, 6vw, 58px);
  text-align: center;
}

.gtm-empty-state .gtm-eyebrow {
  color: var(--gtm-blue);
}

.gtm-empty-state h2 {
  font-size: 28px;
  margin: 8px 0;
}

.gtm-empty-state p {
  color: var(--gtm-muted);
  margin: 0 auto;
  max-width: 680px;
}

.gtm-article-hero {
  background: linear-gradient(135deg, #0f172a, #172554);
  color: #fff;
  margin-top: -22px;
  padding-block: 58px;
}

.gtm-article-hero__grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.gtm-article-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 16px 0;
}

.gtm-article-deck {
  color: #cbd5e1;
  font-size: 18px;
  max-width: 760px;
}

.gtm-article-meta {
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  gap: 9px 18px;
  margin-top: 22px;
}

.gtm-pill,
.gtm-impact {
  background: #eef3ff;
  border-radius: 999px;
  color: var(--gtm-blue);
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 9px;
}

.gtm-impact {
  background: #fef3e2;
  color: var(--gtm-amber);
}

.gtm-impact--high {
  background: #fdecec;
  color: var(--gtm-red);
}

.gtm-cost-snapshot {
  background: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--gtm-radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  color: var(--gtm-navy);
  padding: 24px;
}

.gtm-cost-snapshot .gtm-eyebrow {
  color: var(--gtm-blue);
}

.gtm-cost-snapshot strong {
  display: block;
  font-size: 22px;
  margin-top: 10px;
}

.gtm-cost-snapshot p {
  color: var(--gtm-muted);
  font-size: 13px;
}

.gtm-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  padding-block: 46px;
}

.gtm-article-content {
  background: #fff;
  border: 1px solid var(--gtm-line-soft);
  border-radius: var(--gtm-radius);
  box-shadow: var(--gtm-shadow);
  font-size: 17px;
  padding: clamp(24px, 5vw, 54px);
}

.gtm-article-content h2 {
  font-size: 30px;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-top: 48px;
}

.gtm-article-content h3 {
  font-size: 22px;
  margin-top: 34px;
}

.gtm-article-content p,
.gtm-article-content li {
  color: #334155;
}

.gtm-sources {
  border-top: 1px solid var(--gtm-line);
  color: var(--gtm-muted);
  font-size: 13px;
  margin-top: 42px;
  padding-top: 22px;
}

.gtm-masonry {
  display: grid;
  gap: 16px;
  grid-auto-rows: 210px;
  grid-template-columns: repeat(4, 1fr);
}

.gtm-post-card {
  background: #fff;
  border: 1px solid var(--gtm-line);
  border-radius: var(--gtm-radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
}

.gtm-post-card--lead {
  background: linear-gradient(145deg, #0f172a, #1e3a8a);
  color: #fff;
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
}

.gtm-post-card--medium {
  grid-column: span 2;
}

.gtm-post-card__top,
.gtm-post-card__meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.gtm-post-card h2 {
  font-size: 20px;
  letter-spacing: -.02em;
  line-height: 1.28;
  margin: 18px 0 8px;
}

.gtm-post-card--lead h2 {
  font-size: 34px;
}

.gtm-post-card h2 a {
  color: inherit;
}

.gtm-post-card p {
  color: var(--gtm-muted);
  font-size: 13px;
  margin: 0;
}

.gtm-post-card--lead p,
.gtm-post-card--lead .gtm-post-card__meta {
  color: #cbd5e1;
}

.gtm-post-card__meta {
  color: var(--gtm-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.gtm-featured-guide {
  align-items: center;
  background: linear-gradient(120deg, #eef3ff, #fff);
  border: 1px solid #cddcff;
  border-radius: var(--gtm-radius);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 28px;
}

.gtm-featured-guide h2 {
  margin: 6px 0;
}

.gtm-featured-guide p {
  color: var(--gtm-muted);
  margin: 0;
}

.gtm-featured-guide .gtm-eyebrow {
  color: var(--gtm-blue);
}

.gtm-article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.gtm-standard-page {
  max-width: 920px;
}

.gtm-site-footer {
  background: var(--gtm-navy);
  color: #fff;
  padding-block: 42px 24px;
}

.gtm-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.gtm-footer-grid p {
  color: #94a3b8;
  font-size: 13px;
  max-width: 520px;
}

.gtm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  color: #64748b;
  display: flex;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
}

@media (max-width: 920px) {
  .gtm-home-layout,
  .gtm-article-hero__grid {
    grid-template-columns: 1fr;
  }

  .gtm-home-sidebar {
    display: none;
  }

  .gtm-mobile-cta {
    display: flex;
  }

  .gtm-masonry {
    grid-auto-rows: auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .gtm-post-card,
  .gtm-post-card--lead,
  .gtm-post-card--medium {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .gtm-post-card--lead {
    grid-column: span 2;
  }

  .gtm-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gtm-shell {
    padding-inline: 16px;
  }

  .gtm-brand-row {
    min-height: 64px;
  }

  .gtm-brand small,
  .gtm-site-status span:not(.gtm-status-dot) {
    display: none;
  }

  .gtm-tabs__link {
    padding-inline: 14px;
  }

  .gtm-tabs__link:first-child {
    margin-left: -14px;
  }

  .gtm-main {
    padding-top: 16px;
  }

  .gtm-slider {
    align-items: flex-start;
    min-height: 150px;
    padding: 24px;
  }

  .gtm-slider h1 {
    font-size: 25px;
  }

  .gtm-slider__stats {
    display: none;
  }

  .gtm-page-hero {
    padding: 24px;
  }

  .gtm-page-hero h1 {
    font-size: 36px;
  }

  .gtm-article-hero {
    padding-block: 38px;
  }

  .gtm-article-hero h1 {
    font-size: 37px;
  }

  .gtm-article-content {
    border-inline: 0;
    border-radius: 0;
    margin-inline: -16px;
    padding: 28px 20px;
  }

  .gtm-masonry,
  .gtm-article-grid,
  .gtm-footer-grid {
    grid-template-columns: 1fr;
  }

  .gtm-post-card--lead {
    grid-column: auto;
  }

  .gtm-post-card--lead h2 {
    font-size: 28px;
  }

  .gtm-featured-guide {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
