/* chrisipeters.com Components
   All UI components for the dark editorial magazine.
   Extracted from mockup HTML source of truth. */

/* ================================================================
   NAV — frosted glass
   ================================================================ */
.cp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cp-nav-brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--cp-text);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.cp-nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.cp-nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--cp-text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.cp-nav-link:hover,
.cp-nav-link.active {
  color: var(--cp-text);
}

.cp-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cp-emerald);
}

/* ================================================================
   HERO EDITORIAL — full page hero with animated gradient
   ================================================================ */
.hero-editorial {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--cp-gutter) 80px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(12, 12, 12, 0.05), rgba(12, 12, 12, 0.97)),
    linear-gradient(135deg, #1a1a2e, #16213e, #222244, #1a1a2e);
  background-size: 100%, 300% 300%;
  animation: heroGradient 12s ease infinite;
}

/* Grid overlay */
.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-editorial__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: fadeUp 1s ease;
}

.hero-editorial__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(0, 229, 160, 0.25);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--cp-emerald);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-editorial h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--cp-text);
  letter-spacing: -3px;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero-editorial__excerpt {
  font-size: 17px;
  color: var(--cp-text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-editorial__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-editorial__avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cp-emerald), var(--cp-cyan));
}

.hero-editorial__author {
  font-size: 14px;
  font-weight: 500;
  color: #e8e8e8;
}

.hero-editorial__date {
  font-size: 12px;
  color: var(--cp-text-muted);
  font-family: var(--cp-font-mono);
}

/* ================================================================
   HERO GRADIENT — inner page hero (smaller)
   ================================================================ */
.hero-gradient {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--cp-gutter) 60px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(12, 12, 12, 0.05), rgba(12, 12, 12, 0.97)),
    linear-gradient(135deg, #1a1a2e, #16213e, #222244, #1a1a2e);
  background-size: 100%, 300% 300%;
  animation: heroGradient 12s ease infinite;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-gradient__content {
  position: relative;
  z-index: 2;
  max-width: var(--cp-content-width);
  animation: fadeUp 1s ease;
}

/* ================================================================
   CARDS — article cards
   ================================================================ */
.cp-card {
  background: var(--cp-deep);
  border: none;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.cp-card:hover {
  box-shadow: var(--cp-shadow-lg);
  transform: translateY(-2px);
}

.cp-card__image {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.cp-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--cp-deep), transparent 50%);
}

.cp-card__image .cp-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.cp-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cp-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cp-card__excerpt {
  font-size: 13px;
  color: #888899;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.cp-card__date {
  font-size: 11px;
  color: var(--cp-text-dim);
  font-family: var(--cp-font-mono);
}

/* Image gradient placeholders */
.cp-card__image--ai       { background: linear-gradient(135deg, #16213e 0%, #222244 40%, #1a1a2e 100%); }
.cp-card__image--strategy { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0c0c0c 100%); }
.cp-card__image--platform { background: linear-gradient(135deg, #222244 0%, #1a1a2e 50%, #16213e 100%); }
.cp-card__image--leadership { background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 40%, #222244 100%); }

/* ================================================================
   TEXT CARD — no image, padding-based
   ================================================================ */
.cp-text-card {
  background: var(--cp-deep);
  border: none;
  border-radius: 2px;
  padding: 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  text-decoration: none;
}

.cp-text-card:hover {
  box-shadow: var(--cp-shadow-md);
  transform: translateY(-2px);
}

.cp-text-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #e8e8e8;
  line-height: 1.35;
  margin: 10px 0 8px;
}

.cp-text-card__excerpt {
  font-size: 12px;
  color: var(--cp-text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ================================================================
   TAGS — category / product labels
   ================================================================ */
.cp-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  padding: 4px 10px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 2px;
}

.cp-tag--emerald { background: rgba(0, 229, 160, 0.08); color: var(--cp-emerald); }
.cp-tag--violet  { background: rgba(124, 92, 252, 0.08); color: var(--cp-violet); }
.cp-tag--cyan    { background: rgba(0, 196, 212, 0.08); color: var(--cp-cyan); }
.cp-tag--amber   { background: rgba(255, 200, 87, 0.08); color: var(--cp-amber); }
.cp-tag--coral   { background: rgba(255, 107, 107, 0.08); color: var(--cp-coral); }
.cp-tag--purple  { background: rgba(168, 85, 247, 0.08); color: var(--cp-purple); }

a.cp-tag:hover {
  filter: brightness(1.3);
}

/* ================================================================
   PRODUCT TAGS — tag with SVG icon + CTA text, clickable
   ================================================================ */
.cp-product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: all 0.2s;
}
.cp-product-tag--emerald { background: rgba(0,229,160,0.08); color: var(--cp-emerald); }
.cp-product-tag--violet { background: rgba(124,92,252,0.08); color: var(--cp-violet); }
.cp-product-tag--cyan { background: rgba(0,196,212,0.08); color: var(--cp-cyan); }
.cp-product-tag--amber { background: rgba(255,200,87,0.08); color: var(--cp-amber); }
.cp-product-tag--purple { background: rgba(168,85,247,0.08); color: var(--cp-purple); }
.cp-product-tag--coral { background: rgba(255,107,107,0.08); color: var(--cp-coral);
  border-radius: 2px;
}

.cp-product-tag:hover {
  filter: brightness(1.2);
}

.cp-product-tag svg {
  flex-shrink: 0;
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.cp-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.cp-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-section-link {
  font-size: 12px;
  color: var(--cp-text-dim);
  text-decoration: none;
}

.cp-section-link:hover {
  color: var(--cp-emerald);
}

/* ================================================================
   LIVE DOT — radiating pulse indicator
   ================================================================ */
.cp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cp-emerald);
  position: relative;
  display: inline-block;
}

.cp-live-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(0, 229, 160, 0.3);
  animation: livePulse 2s ease infinite;
}

.cp-live-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(0, 229, 160, 0.15);
  animation: livePulse 2s ease infinite 0.4s;
}

/* ================================================================
   DELIVERY PULSE — Stats Banner
   ================================================================ */
.stats-banner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
  margin-bottom: 48px;
}

.stat-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  animation: countUp 0.6s ease forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-goal {
  background: var(--cp-deep);
}

.stat-goal-timeframe {
  font-size: 12px;
  color: var(--cp-text-muted);
  font-family: var(--cp-font-mono);
  margin-bottom: 16px;
}

.stat-goal-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-text);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.stat-goal-product {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-goal-product-link {
  font-size: 11px;
  color: var(--cp-emerald);
  text-decoration: none;
  font-weight: 500;
}

.stat-goal-product-link:hover {
  text-decoration: underline;
}

.stat-shipped {
  background: var(--cp-deep);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-shipped-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stat-bugs {
  background: var(--cp-deep);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-bugs-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.stat-number {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cp-text-dim);
  position: relative;
  z-index: 1;
}

/* ================================================================
   SPEED LINES — warp streaks for Items Shipped
   ================================================================ */
.speed-line {
  position: absolute;
  height: 1px;
  left: 0;
  width: 100%;
}

.speed-line::after {
  content: '';
  position: absolute;
  top: 0;
  height: 1px;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(0, 196, 212, 0.5), rgba(0, 196, 212, 0.15), transparent);
  animation: speedStreak var(--duration) linear infinite;
  animation-delay: var(--delay);
}

/* ================================================================
   REPAIR PARTICLES — rising dots for Bugs Squashed
   ================================================================ */
.repair-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 229, 160, 0.5);
  animation: repairFloat var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  bottom: -10px;
}

/* ================================================================
   FEED — activity stream
   ================================================================ */
.feed-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-tab {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cp-text-dim);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
}

.feed-tab:hover {
  color: var(--cp-text-secondary);
}

.feed-tab.active {
  color: var(--cp-text);
}

.feed-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cp-emerald);
}

.feed-tab .count {
  font-family: var(--cp-font-mono);
  font-size: 10px;
  color: #444;
  margin-left: 6px;
}

.feed-item {
  display: grid;
  grid-template-columns: 90px 6px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: all 0.15s;
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.015);
  margin: 0 -16px;
  padding: 14px 16px;
}

/* Milestone — expanded feed item */
.feed-item--milestone {
  grid-template-columns: 90px 6px 1fr auto;
  padding: 18px 0;
}

.feed-date {
  font-size: 11px;
  font-family: var(--cp-font-mono);
  color: #444;
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.feed-dot--shipped { background: var(--cp-emerald); }
.feed-dot--active  { background: var(--cp-violet); animation: statusBlink 1.5s ease infinite; }
.feed-dot--writing { background: var(--cp-cyan); animation: statusBlink 1.5s ease infinite 0.3s; }
.feed-dot--bug     { background: var(--cp-coral); }

.feed-content {
  min-width: 0;
}

.feed-title {
  font-size: 13px;
  font-weight: 500;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-type {
  font-size: 10px;
  font-family: var(--cp-font-mono);
  color: #444;
}

.feed-value-prop {
  font-size: 11px;
  color: var(--cp-text-muted);
  margin-top: 4px;
  line-height: 1.5;
  white-space: normal;
}

.feed-product-link {
  font-size: 10px;
  color: var(--cp-emerald);
  text-decoration: none;
  margin-top: 6px;
  display: inline-block;
  font-weight: 500;
}

.feed-product-link:hover {
  text-decoration: underline;
}

/* ================================================================
   CARD PRODUCT HOOK — flywheel link at bottom of article cards
   ================================================================ */
.card-product-hook {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-product-hook-text {
  font-size: 11px;
  color: var(--cp-text-dim);
}

.card-product-hook-link {
  font-size: 11px;
  color: var(--cp-emerald);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.card-product-hook-link:hover {
  text-decoration: underline;
}

/* ================================================================
   MODAL — terminal-style detail view
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #0a0a0f;
  border: 1px solid var(--cp-glass-border);
  border-radius: 2px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--cp-glass-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.modal-title-bar {
  font-size: 11px;
  color: var(--cp-text-dim);
  font-family: var(--cp-font-mono);
  margin-left: 8px;
  flex: 1;
}

.modal-close {
  font-size: 16px;
  color: var(--cp-text-dim);
  cursor: pointer;
  border: none;
  background: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #e8e8e8;
}

.modal-body {
  padding: 24px;
  font-family: var(--cp-font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.m-dim       { color: #333344; }
.m-label     { color: var(--cp-text-dim); }
.m-value     { color: var(--cp-text-secondary); }
.m-highlight { color: #e8e8e8; font-weight: 500; }
.m-shipped   { color: var(--cp-emerald); }

.m-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.m-section-title {
  color: var(--cp-violet);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.m-bullet {
  color: #333344;
  margin-right: 8px;
}

.m-link {
  color: var(--cp-emerald);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--cp-font-mono);
}

.m-link:hover {
  text-decoration: underline;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 229, 160, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-footer-shipped {
  color: var(--cp-emerald);
  font-weight: 500;
  font-size: 12px;
  font-family: var(--cp-font-mono);
}

.modal-footer-label {
  color: var(--cp-text-dim);
  font-size: 12px;
  font-family: var(--cp-font-mono);
}

/* ================================================================
   CTA — call to action section
   ================================================================ */
.cp-cta {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.05), rgba(0, 196, 212, 0.03));
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.cp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 229, 160, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 196, 212, 0.04) 0%, transparent 50%);
}

.cp-cta h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--cp-text);
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
}

.cp-cta p {
  font-size: 16px;
  color: var(--cp-text-secondary);
  margin-bottom: 40px;
  position: relative;
}

.cp-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.cp-btn-primary {
  padding: 14px 32px;
  background: var(--cp-emerald);
  color: var(--cp-void);
  border: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cp-btn-primary:hover {
  background: var(--cp-emerald-hover);
  box-shadow: 0 4px 20px rgba(0, 229, 160, 0.3);
}

.cp-btn-ghost {
  padding: 14px 32px;
  background: transparent;
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cp-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   FOOTER — minimal
   ================================================================ */
.cp-footer {
  padding: 48px var(--cp-gutter);
  max-width: calc(var(--cp-page-width) + var(--cp-gutter) * 2);
  margin: 0 auto;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cp-footer-copy {
  font-size: 13px;
  color: var(--cp-text-dim);
}

.cp-footer-links {
  display: flex;
  gap: 24px;
}

.cp-footer-link {
  font-size: 13px;
  color: var(--cp-text-muted);
  text-decoration: none;
}

.cp-footer-link:hover {
  color: var(--cp-emerald);
}

/* ================================================================
   ARTICLE BODY — dark theme typography for long-form content
   ================================================================ */
.cp-article-body {
  max-width: var(--cp-content-width);
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--cp-text-secondary);
}

.cp-article-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--cp-text);
  letter-spacing: -1px;
  margin: 48px 0 16px;
  line-height: 1.2;
}

.cp-article-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--cp-text);
  letter-spacing: -0.5px;
  margin: 36px 0 12px;
  line-height: 1.3;
}

.cp-article-body strong {
  color: var(--cp-text);
  font-weight: 600;
}

.cp-article-body a {
  color: var(--cp-emerald);
  text-decoration: none;
}

.cp-article-body a:hover {
  text-decoration: underline;
}

.cp-article-body blockquote {
  border-left: 3px solid var(--cp-emerald);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(0, 229, 160, 0.03);
  color: var(--cp-text-secondary);
  font-style: italic;
  border-radius: 0 2px 2px 0;
}

.cp-article-body code {
  font-family: var(--cp-font-mono);
  font-size: 0.9em;
  color: var(--cp-emerald);
  background: rgba(0, 229, 160, 0.06);
  padding: 2px 6px;
  border-radius: 2px;
}

.cp-article-body pre {
  background: var(--cp-deep);
  border: 1px solid var(--cp-glass-border);
  border-radius: 2px;
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.cp-article-body pre code {
  background: none;
  padding: 0;
  color: var(--cp-text-secondary);
}

.cp-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 24px 0;
}

.cp-article-body hr {
  border: none;
  height: 1px;
  background: var(--cp-glass-border);
  margin: 48px 0;
}

.cp-article-body ul,
.cp-article-body ol {
  padding-left: 24px;
  margin: 16px 0;
}

.cp-article-body li {
  margin-bottom: 8px;
}

.cp-article-body li::marker {
  color: var(--cp-text-muted);
}

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.cp-section {
  padding: 80px var(--cp-gutter);
  max-width: calc(var(--cp-page-width) + var(--cp-gutter) * 2);
  margin: 0 auto;
  box-sizing: border-box;
}

.cp-bento {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.cp-text-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cp-delivery {
  max-width: calc(var(--cp-page-width) + var(--cp-gutter) * 2);
  margin: 0 auto;
  padding: 80px var(--cp-gutter);
  box-sizing: border-box;
}

.cp-delivery-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cp-delivery-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--cp-violet);
}

/* Roadmap status badges */
.roadmap-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.roadmap-badge--emerald {
    background: rgba(0, 229, 160, 0.12);
    color: #00e5a0;
}
.roadmap-badge--violet {
    background: rgba(124, 92, 252, 0.12);
    color: #7c5cfc;
}
.roadmap-badge--amber {
    background: rgba(255, 200, 87, 0.12);
    color: #ffc857;
}

/* Roadmap cards */
.roadmap-card {
    display: block;
    background: var(--cp-deep);
    padding: 24px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.roadmap-card:hover {
    transform: translateY(-2px);
    border-color: var(--cp-surface, #2a2a4a);
}
.roadmap-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.roadmap-card__target {
    font-size: 12px;
    color: var(--cp-text-secondary);
    font-family: var(--cp-font-mono);
}
.roadmap-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--cp-text);
    margin: 0 0 8px 0;
}
.roadmap-card__excerpt {
    font-size: 14px;
    color: var(--cp-text-secondary);
    line-height: 1.6;
    margin: 0;
}
.roadmap-card__product {
    margin-top: 16px;
}

/* Roadmap section */
.roadmap-section {
    max-width: calc(var(--cp-page-width, 1200px) + var(--cp-gutter) * 2);
    margin: 0 auto;
    padding: 80px var(--cp-gutter);
}
.roadmap-section__header {
    margin-bottom: 32px;
}
.roadmap-section__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cp-emerald, #00e5a0);
}
.roadmap-section__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--cp-text);
    margin: 8px 0 0 0;
}
.roadmap-section__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2px;
}

/* Roadmap page */
.roadmap-page {
    max-width: var(--cp-page-width, 1200px);
    margin: 0 auto;
    padding: 120px var(--cp-gutter, 24px) 64px;
}
.roadmap-page__hero {
    margin-bottom: 48px;
}
.roadmap-page__hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--cp-text);
    margin: 8px 0 12px 0;
    letter-spacing: -1.5px;
}
.roadmap-page__subtitle {
    font-size: 16px;
    color: var(--cp-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}
.roadmap-page__group {
    margin-bottom: 48px;
}
.roadmap-page__group-title {
    margin: 0 0 16px 0;
}
