:root {
  --primary: #0f2744;
  --secondary: #2b4c7e;
  --innovation: #4fb3bf;
  --text: #1f2937;
  --muted: #526174;
  --soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 4px;
  background: rgba(43, 76, 126, 0.08);
}

.reading-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--innovation);
}

.article-topbar {
  width: min(1440px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.article-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-home {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(43, 76, 126, 0.22);
  padding: 0 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
}

.topbar-home:hover {
  border-color: var(--innovation);
  color: var(--primary);
}

.brand-link img {
  display: block;
  width: clamp(176px, 15vw, 220px);
  max-height: 66px;
  object-fit: contain;
}

.topbar-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary);
  padding: 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.article-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.article-hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(79, 179, 191, 0.16), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.article-hero::before,
.article-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 76, 126, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 76, 126, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-bg-nodes span {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--innovation);
  box-shadow: 0 0 22px rgba(79, 179, 191, 0.44);
  animation: drift 8s ease-in-out infinite;
}

.hero-bg-nodes span:nth-child(1) { left: 12%; top: 25%; }
.hero-bg-nodes span:nth-child(2) { left: 42%; top: 16%; animation-delay: -1.3s; }
.hero-bg-nodes span:nth-child(3) { right: 12%; top: 34%; animation-delay: -2.6s; }
.hero-bg-nodes span:nth-child(4) { left: 22%; bottom: 18%; animation-delay: -3.9s; }
.hero-bg-nodes span:nth-child(5) { right: 34%; bottom: 12%; animation-delay: -5.2s; }

.hero-grid {
  min-height: 674px;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.78fr);
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 880px;
  color: var(--primary);
  font-size: clamp(54px, 6.2vw, 96px);
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: #475569;
  font-size: 21px;
  line-height: 1.62;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.hero-chips span,
.use-case-grid span,
.benefit-grid div {
  padding: 9px 11px;
  border: 1px solid rgba(43, 76, 126, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-intelligence-panel,
.dashboard-card,
.executive-summary,
.soft-band {
  border: 1px solid rgba(43, 76, 126, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 86px rgba(15, 39, 68, 0.12);
  backdrop-filter: blur(18px);
}

.hero-intelligence-panel {
  padding: 26px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.panel-header span,
.panel-metrics span {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel-header strong {
  color: var(--primary);
}

.signal-orbit {
  width: 260px;
  height: 260px;
  margin: 48px auto;
  display: grid;
  place-items: center;
  position: relative;
  background: var(--primary);
  color: #fff;
}

.signal-orbit i {
  position: absolute;
  inset: -24px;
  border: 1px solid rgba(79, 179, 191, 0.5);
  animation: pulse 5s ease-in-out infinite;
}

.signal-orbit i:nth-child(2) {
  inset: -52px;
  border-color: rgba(43, 76, 126, 0.22);
  animation-delay: -1.7s;
}

.signal-orbit i:nth-child(3) {
  inset: 36px;
  border-color: rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

.signal-orbit strong {
  font-size: 72px;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.panel-metrics div,
.dashboard-side div {
  padding: 14px;
  border: 1px solid rgba(43, 76, 126, 0.1);
  background: #f8fafc;
}

.panel-metrics strong,
.dashboard-side strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 54px;
  position: relative;
  padding: 90px 0 120px;
}

.article-nav {
  position: sticky;
  top: 28px;
  height: fit-content;
  padding: 18px;
  border: 1px solid rgba(43, 76, 126, 0.12);
  background: rgba(248, 250, 252, 0.86);
  z-index: 2;
}

.article-nav strong,
.article-nav a {
  display: block;
}

.article-nav strong {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
}

.article-nav a {
  padding: 9px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.article-nav a:hover {
  color: var(--innovation);
}

.article-content {
  max-width: 980px;
  position: relative;
  z-index: 2;
}

.content-section {
  padding: 54px 0;
  border-bottom: 1px solid rgba(43, 76, 126, 0.1);
}

.content-section h2,
.closing-section h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.04;
}

.content-section p {
  color: #475569;
  font-size: 18px;
  line-height: 1.72;
}

.soft-band {
  margin: 32px 0;
  padding: 34px;
}

.executive-summary,
.problem-grid,
.model-list,
.benefit-grid,
.implementation-timeline {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.executive-summary {
  grid-template-columns: repeat(3, 1fr);
  padding: 18px;
}

.executive-summary div,
.problem-grid div,
.model-list div,
.implementation-timeline div {
  padding: 18px;
  border: 1px solid rgba(43, 76, 126, 0.12);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.executive-summary div:hover,
.problem-grid div:hover,
.model-list div:hover,
.implementation-timeline div:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 179, 191, 0.55);
  box-shadow: 0 18px 50px rgba(15, 39, 68, 0.1);
}

.executive-summary strong,
.model-list strong,
.implementation-timeline strong {
  display: block;
  color: var(--primary);
}

.executive-summary span,
.model-list span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  line-height: 1.5;
}

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

.problem-grid div {
  color: var(--primary);
  font-size: 19px;
  font-weight: 900;
}

.use-case-grid,
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

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

.dashboard-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.chart-head span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chart-head strong {
  color: var(--primary);
  font-size: 32px;
}

.line-chart {
  margin-top: 18px;
  border: 1px solid rgba(43, 76, 126, 0.1);
  background:
    linear-gradient(rgba(43, 76, 126, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 76, 126, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.line-chart svg {
  width: 100%;
  display: block;
}

.chart-grid-line {
  stroke: rgba(43, 76, 126, 0.12);
}

.chart-area {
  fill: rgba(79, 179, 191, 0.12);
}

.chart-line {
  fill: none;
  stroke: var(--innovation);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(79, 179, 191, 0.3));
}

.dashboard-side {
  display: grid;
  gap: 10px;
}

.dashboard-side span {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.implementation-timeline {
  grid-template-columns: 1fr;
}

.implementation-timeline div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.implementation-timeline span {
  color: var(--innovation);
  font-weight: 900;
}

.closing-section {
  padding: 80px 0 20px;
  text-align: center;
}

.closing-section a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 0 22px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.article-nav a.is-active {
  color: #0f2744;
  border-color: rgba(79, 179, 191, 0.65);
  background: rgba(79, 179, 191, 0.1);
}

.is-changing {
  color: #4fb3bf !important;
  transform: translateY(-1px);
  transition: color 180ms ease, transform 180ms ease;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.4; }
  50% { transform: translate3d(12px, -16px, 0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.98); opacity: 0.55; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 1050px) {
  .hero-grid,
  .article-layout,
  .dashboard-card {
    grid-template-columns: 1fr;
  }

  .article-nav {
    display: none;
  }

  .hero-intelligence-panel {
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  *,
  *::before,
  *::after {
    min-width: 0;
  }

  .article-topbar,
  .article-shell {
    width: min(100% - 24px, 1440px);
  }

  .article-topbar {
    min-height: 76px;
    height: auto;
    padding: 10px 0;
    gap: 12px;
  }

  .brand-link img {
    width: min(160px, 48vw);
  }

  .article-topbar-actions {
    gap: 7px;
  }

  .topbar-home {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  .topbar-cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: 10px;
  }

  .article-hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding: 42px 0 64px;
    gap: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 50px);
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.02;
  }

  .hero-subtitle,
  .content-section p {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-chips {
    gap: 7px;
  }

  .hero-chips span,
  .use-case-grid span,
  .benefit-grid div {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.35;
  }

  .signal-orbit {
    width: 210px;
    height: 210px;
  }

  .panel-metrics,
  .executive-summary,
  .problem-grid,
  .model-list,
  .dashboard-card,
  .dashboard-side,
  .implementation-timeline {
    grid-template-columns: 1fr !important;
  }

  .soft-band {
    padding: 20px;
    margin: 24px 0;
  }

  .content-section {
    padding: 42px 0;
  }

  .content-section h2,
  .closing-section h2 {
    font-size: clamp(28px, 9vw, 42px);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .dashboard-card {
    padding: 16px;
  }

  .chart-head {
    display: grid;
    gap: 8px;
  }

  .chart-head strong {
    font-size: 26px;
  }

  .implementation-timeline div {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .closing-section {
    padding: 56px 0 10px;
  }
}

@media (max-width: 420px) {
  .article-topbar {
    align-items: flex-start;
  }

  .article-topbar-actions {
    display: grid;
    justify-items: stretch;
  }

  .topbar-home,
  .topbar-cta {
    justify-content: center;
  }

  .brand-link img {
    width: min(142px, 45vw);
  }
}
