/* ============================================
   Cloud Tinkerers — Roadmaps
   Global Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital,wght@0,400;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f6ff;
  --accent-primary: #7c3aed;
  --accent-secondary: #a855f7;
  --highlight: #ddd6fe;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --border: #ede9fe;
  --white: #ffffff;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.12);
  --transition: 250ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utility --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.glow { box-shadow: var(--shadow-glow); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  padding: 10px 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.15rem; color: var(--text-dark); }
.navbar-logo .logo-symbol { color: var(--accent-primary); font-size: 0.85rem; }
.navbar-logo .logo-badge {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  background: var(--accent-primary); color: var(--white);
  padding: 2px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition); position: relative;
}
.navbar-links a:hover { color: var(--accent-primary); }
.navbar-links .external-link { opacity: 0.7; font-size: 0.85rem; }
.navbar-links .external-link:hover { opacity: 1; }

/* --- Hero Section --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg .orb-1 { width: 500px; height: 500px; background: var(--highlight); top: -10%; left: -5%; }
.hero-bg .orb-2 { width: 400px; height: 400px; background: var(--accent-secondary); bottom: -10%; right: -8%; animation-delay: -6s; opacity: 0.18; }
.hero-bg .orb-3 { width: 300px; height: 300px; background: var(--accent-primary); top: 40%; left: 55%; animation-delay: -12s; opacity: 0.12; }
@keyframes drift {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
  100% { transform: translate(-20px,30px) scale(0.95); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--accent-primary);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 18px; margin-bottom: 28px; background: rgba(255,255,255,0.7);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-primary);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1.15; margin-bottom: 20px; font-weight: 400;
}
.hero h1 em { font-family: var(--font-heading); color: var(--accent-primary); font-style: italic; }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 520px;
  margin: 0 auto 36px; line-height: 1.7; font-weight: 300;
}
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-primary); color: var(--white);
  padding: 13px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(124,58,237,0.3); background: #6d28d9; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); color: var(--text-dark);
  padding: 12px 28px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.95rem;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: translateY(-2px); }
.hero-proof {
  margin-top: 32px; font-size: 0.82rem; color: var(--text-muted); font-weight: 400;
  letter-spacing: 0.01em;
}

/* --- Section Heading --- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px; position: relative; display: inline-block;
}
.section-header h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--accent-primary); border-radius: 2px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin: 18px auto 0; }

/* --- Roadmap Cards Grid --- */
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.roadmap-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.roadmap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.roadmap-card.coming-soon { opacity: 0.65; }
.roadmap-card.coming-soon:hover { transform: none; box-shadow: none; }
.card-badge-soon {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  background: var(--bg-secondary); color: var(--text-muted);
  padding: 4px 12px; border-radius: var(--radius-pill); letter-spacing: 0.04em;
}
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.card-icon.live { background: rgba(124,58,237,0.1); }
.card-icon.muted { background: var(--bg-secondary); }
.roadmap-card h3 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 8px; }
.roadmap-card .card-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.card-tags span {
  font-size: 0.75rem; font-weight: 500; padding: 4px 12px;
  border-radius: var(--radius-pill); background: var(--bg-secondary);
  color: var(--accent-primary); border: 1px solid var(--border);
}
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.stage-count { font-size: 0.82rem; font-weight: 600; color: var(--accent-primary); }
.card-link {
  font-size: 0.88rem; font-weight: 600; color: var(--accent-primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.card-link:hover { gap: 8px; }

/* --- Timeline (Featured Preview & DevOps Parent) --- */
.timeline-section { padding: 80px 0; }
.timeline-section .section-header { margin-bottom: 40px; }
.timeline { max-width: 680px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  display: flex; align-items: flex-start; gap: 20px; padding: 18px 0;
  position: relative; cursor: pointer;
  transition: background var(--transition);
  border-radius: var(--radius-md); padding-left: 4px;
}
.timeline-item:hover { background: var(--bg-secondary); }
.timeline-dot {
  width: 42px; height: 42px; min-width: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--white);
  position: relative; z-index: 1;
}
.timeline-body { flex: 1; padding-top: 2px; }
.timeline-body h4 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 4px; }
.timeline-body p { color: var(--text-muted); font-size: 0.88rem; }
.timeline-arrow {
  opacity: 0; transition: opacity var(--transition), transform var(--transition);
  color: var(--text-muted); align-self: center; font-size: 1.1rem;
}
.timeline-item:hover .timeline-arrow { opacity: 1; transform: translateX(4px); }
.timeline-cta { text-align: center; margin-top: 48px; }

/* --- Features Grid --- */
.features-section { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 2rem; margin-bottom: 18px; display: block; }
.feature-card h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border); padding: 32px 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-heading); color: var(--text-dark); font-size: 0.95rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-primary); }
.footer-right .logo-symbol { color: var(--accent-primary); }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 100px 0 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--accent-primary); transition: opacity var(--transition); }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* --- DevOps Parent Hero --- */
.devops-hero {
  padding: 40px 0 80px; text-align: center;
}
.devops-hero .hero-badge {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  color: var(--accent-primary); background: rgba(124,58,237,0.08);
  padding: 6px 18px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.devops-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}
.devops-hero h1 em { color: var(--accent-primary); font-style: italic; }
.devops-hero .hero-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto 20px; font-size: 1.05rem; }
.devops-hero .meta-row { font-size: 0.85rem; color: var(--text-muted); }

/* --- DevOps Layout with Sidebar --- */
.devops-layout { display: flex; gap: 48px; align-items: flex-start; }
.devops-main { flex: 1; min-width: 0; }
.devops-sidebar {
  position: sticky; top: 90px; width: 240px; min-width: 240px;
  padding: 24px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.sidebar-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.sidebar-nav a {
  display: block; padding: 8px 12px; font-size: 0.85rem; color: var(--text-muted);
  border-left: 2px solid var(--border); margin-bottom: 2px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.sidebar-nav a:hover { color: var(--accent-primary); }
.sidebar-nav a.active {
  color: var(--accent-primary); border-left-color: var(--accent-primary);
  background: rgba(124,58,237,0.04); font-weight: 500;
}

/* --- Expanded Timeline (DevOps Parent) --- */
.timeline-expanded .timeline-item { padding: 24px 8px 24px 4px; }
.timeline-expanded .timeline-body p { margin-bottom: 10px; }
.timeline-expanded .tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-expanded .tool-chips span {
  font-size: 0.72rem; font-weight: 500; padding: 3px 10px;
  border-radius: var(--radius-pill); background: var(--bg-secondary);
  color: var(--text-dark); border: 1px solid var(--border);
}
.timeline-expanded .stage-badge {
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: var(--radius-pill); color: var(--white); margin-left: auto; white-space: nowrap;
}

/* --- Stage Page --- */
.stage-hero { padding: 40px 0 48px; }
.stage-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.stage-nav-link {
  font-size: 0.88rem; font-weight: 500; color: var(--accent-primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition), opacity var(--transition);
}
.stage-nav-link:hover { gap: 10px; }
.stage-nav-link.disabled { opacity: 0.3; pointer-events: none; }
.stage-badge-label {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  padding: 6px 18px; border-radius: var(--radius-pill);
  color: var(--white); margin-bottom: 20px;
}
.stage-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

/* --- Intro Dark Box --- */
.intro-box {
  background: var(--text-dark); color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg); padding: 36px 40px;
  margin-bottom: 48px; line-height: 1.8; font-size: 0.95rem;
}
.intro-box strong { color: #fbbf24; }

/* --- Stage Steps --- */
.stage-steps { margin-bottom: 48px; }
.step-item {
  display: flex; gap: 20px; margin-bottom: 32px;
  padding: 24px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}
.step-item:hover { box-shadow: var(--shadow-sm); }
.step-number {
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--white);
}
.step-content h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; }

/* --- Timeline Bar (Stage Page) --- */
.timeline-bar {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 48px;
}
.timeline-bar h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 20px; text-align: center; }
.bar-stages { display: flex; justify-content: space-between; position: relative; }
.bar-stages::before {
  content: ''; position: absolute; top: 14px; left: 0; right: 0;
  height: 2px; background: var(--border);
}
.bar-stage {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1; font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
}
.bar-stage .bar-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--white);
}
.bar-stage.current .bar-dot { box-shadow: 0 0 0 4px rgba(124,58,237,0.2); }

/* --- Tips Grid --- */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.tips-grid h2 { grid-column: 1 / -1; font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 4px; }
.tip-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.tip-card h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 8px; }
.tip-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* --- Closing Quote --- */
.closing-quote {
  text-align: center; padding: 48px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.closing-quote blockquote {
  font-family: var(--font-heading); font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--accent-primary); max-width: 560px; margin: 0 auto 12px;
}
.closing-quote cite { font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* --- Continue Banner --- */
.continue-banner {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-primary); color: var(--white);
  padding: 22px; border-radius: var(--radius-lg);
  font-weight: 600; font-size: 1.05rem; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 48px;
}
.continue-banner:hover { background: #6d28d9; transform: translateY(-2px); }

/* --- Coming Soon Page --- */
.coming-soon-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.coming-soon-page h1 {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.coming-soon-page p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

/* --- Fade-in Animation --- */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .devops-sidebar { display: none; }
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .navbar-links { gap: 16px; }
  .tips-grid { grid-template-columns: 1fr; }
  .bar-stages { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .step-item { flex-direction: column; }
  .intro-box { padding: 24px 20px; }
  .stage-nav-top { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .navbar-links .external-link { display: none; }
}

/* --- Print --- */
@media print {
  .navbar, .site-footer, .btn-primary, .btn-ghost, .continue-banner, .stage-nav-top, .devops-sidebar { display: none !important; }
  .hero { min-height: auto; padding: 20px 0; }
  .section { padding: 20px 0; }
  body { font-size: 11pt; }
  .container { max-width: 100%; padding: 0; }
  .breadcrumb { padding-top: 0; }
}

/* ============================================
   ADDITIONS — 8-Card Grid, Path Visual, etc.
   ============================================ */

/* --- 8-Card Grid Layout --- */
.cards-grid-8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199px) and (min-width: 769px) {
  .cards-grid-8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cards-grid-8 { grid-template-columns: 1fr; }
}

/* --- Card Accent Strip --- */
.cards-grid-8 .roadmap-card {
  border-top: 3px solid var(--card-accent, var(--accent-primary));
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cards-grid-8 .roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 24px color-mix(in srgb, var(--card-accent, var(--accent-primary)) 12%, transparent);
  border-top-width: 4px;
}

/* --- Card Stage Badge (top-right pill) --- */
.card-stage-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.02em; white-space: nowrap;
}

/* --- Card Icon Accent --- */
.card-icon-accent {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(124,58,237,0.1);
}

/* --- Card Link Arrow --- */
.card-link-arrow {
  display: inline-block;
  transition: transform var(--transition);
}
.roadmap-card:hover .card-link-arrow {
  transform: translateX(4px);
}

/* --- Roadmap Path Visual --- */
.roadmap-path {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 40px; padding: 16px 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.roadmap-path::-webkit-scrollbar { display: none; }
.path-dot {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.72rem; font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; z-index: 1;
}
.path-dot:hover {
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
/* Tooltip */
.path-dot[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark); color: var(--white);
  font-size: 0.7rem; font-weight: 500; white-space: nowrap;
  padding: 5px 12px; border-radius: var(--radius-sm);
  pointer-events: none; z-index: 10;
}
.path-dot[data-tooltip]:hover::before {
  content: '';
  position: absolute; bottom: calc(100% + 4px); left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--text-dark);
  pointer-events: none; z-index: 10;
}
.path-line {
  width: 32px; min-width: 20px; height: 2px;
  border-top: 2px dashed var(--border);
}

/* --- Timeline Overview Entry Point --- */
.timeline-item-overview {
  padding: 22px 8px 22px 4px;
  margin-bottom: 8px;
  border: 1.5px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.02);
}
.timeline-item-overview:hover {
  background: rgba(124,58,237,0.06);
}
.timeline-dot-overview {
  width: 48px; height: 48px; min-width: 48px;
  font-size: 1rem;
}
.timeline-item-overview .timeline-body h4 {
  font-size: 1.2rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.timeline-start-pill {
  display: inline-block; font-family: var(--font-body);
  font-size: 0.68rem; font-weight: 600;
  background: var(--accent-primary); color: var(--white);
  padding: 2px 10px; border-radius: var(--radius-pill);
  vertical-align: middle; letter-spacing: 0.02em;
}

/* ============================================
   ROADMAP PAGE COMPONENTS (.rp-*)
   Uses --page-accent set per-page in <head>
   ============================================ */

/* --- Roadmap Page Hero --- */
.rp-hero {
  padding: 120px 0 48px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.rp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--page-accent, var(--accent-primary)) 0%, transparent 70%);
  opacity: 0.07;
  pointer-events: none;
}

/* --- Breadcrumb --- */
.rp-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.rp-breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.rp-breadcrumb a:hover {
  color: var(--page-accent, var(--accent-primary));
}
.rp-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* --- Page Badge --- */
.rp-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--page-accent, var(--accent-primary));
  margin-bottom: 20px;
}

/* --- Page Hero Heading --- */
.rp-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 400;
}
.rp-hero h1 em {
  font-family: var(--font-heading);
  color: var(--page-accent, var(--accent-primary));
  font-style: italic;
}
.rp-hero .rp-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 300;
}
.rp-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Prev / Next Navigation Bar --- */
.rp-prevnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
}
.rp-prevnext a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--page-accent, var(--accent-primary));
  transition: gap var(--transition), opacity var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rp-prevnext a:hover {
  gap: 10px;
}
.rp-prevnext-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-prevnext-dots .rp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), transform var(--transition);
}
.rp-prevnext-dots .rp-dot.active {
  background: var(--page-accent, var(--accent-primary));
  transform: scale(1.25);
}
.rp-prevnext .rp-prev-placeholder,
.rp-prevnext .rp-next-placeholder {
  width: 120px;
}

/* --- Two-Column Layout --- */
.rp-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 0;
}
.rp-main {
  min-width: 0;
}

/* --- Sidebar --- */
.rp-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.rp-sidebar-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.rp-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rp-sidebar-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  text-decoration: none;
}
.rp-sidebar-item:hover {
  color: var(--page-accent, var(--accent-primary));
}
.rp-sidebar-item.active {
  color: var(--page-accent, var(--accent-primary));
  border-left-color: var(--page-accent, var(--accent-primary));
  background: color-mix(in srgb, var(--page-accent, var(--accent-primary)) 5%, transparent);
  font-weight: 500;
}
.rp-sidebar-back {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.rp-sidebar-back:hover {
  color: var(--page-accent, var(--accent-primary));
}

/* --- Intro Card --- */
.rp-intro-card {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.85);
  border-left: 4px solid var(--page-accent, var(--accent-primary));
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-size: 0.95rem;
}
.rp-intro-card strong {
  color: #f8b56a;
}

/* --- Section Heading with Underline --- */
.rp-section-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  font-weight: 400;
}
.rp-section-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--page-accent, var(--accent-primary));
  border-radius: 2px;
  margin-top: 10px;
}

/* --- Step Cards --- */
.rp-steps {
  margin-bottom: 48px;
}
.rp-step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  /* Fade-in animation */
  opacity: 0;
  transform: translateY(20px);
}
.rp-step-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--transition), border-color var(--transition);
}
.rp-step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Step Timeline (left column) --- */
.rp-step-timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}
.rp-step-num {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.rp-step-connector {
  flex: 1;
  width: 2px;
  border-left: 2px dashed var(--border);
  min-height: 20px;
  margin-top: 6px;
}

/* --- Step Content --- */
.rp-step-content {
  flex: 1;
  min-width: 0;
}
.rp-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 400;
}
.rp-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  color: var(--white);
  margin-bottom: 10px;
}
.rp-step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.rp-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rp-tool-chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

/* --- Timeline Bar --- */
.rp-timeline {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 48px;
}
.rp-timeline h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 400;
}
.rp-timeline-bar {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  height: 14px;
  margin-bottom: 12px;
}
.rp-timeline-segment {
  height: 100%;
  transition: opacity var(--transition);
}
.rp-timeline-segment:hover {
  opacity: 0.8;
}
.rp-timeline-labels {
  display: flex;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.rp-timeline-label {
  text-align: center;
}

/* --- Tips Grid --- */
.rp-tips-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 400;
}
.rp-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.rp-tip-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.rp-tip-card:hover {
  border-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.rp-tip-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
}
.rp-tip-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 400;
}
.rp-tip-text {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

/* --- Closing Quote --- */
.rp-closing {
  background: var(--bg-secondary);
  border-top: 3px solid var(--text-dark);
  border-radius: 0 0 12px 12px;
  padding: 48px 32px;
  margin-bottom: 48px;
  position: relative;
}
.rp-closing-mark {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: -12px;
  display: block;
}
.rp-closing-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
}

/* --- Continue Banner --- */
.rp-continue-banner {
  padding: 56px 24px;
  text-align: center;
  color: var(--white);
}
.rp-continue-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-weight: 400;
}
.rp-continue-banner p {
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.rp-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--page-accent, var(--accent-primary));
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.rp-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* --- Completion Banner (iac-monitoring only) --- */
.rp-completion-banner {
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  color: var(--white);
  margin-bottom: 48px;
}
.rp-completion-banner .rp-completion-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.rp-completion-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 400;
}
.rp-completion-banner p {
  opacity: 0.9;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Roadmap Page Responsive --- */
@media (max-width: 1024px) {
  .rp-layout {
    grid-template-columns: 1fr;
  }
  .rp-sidebar {
    display: none;
  }
}
@media (max-width: 768px) {
  .rp-hero {
    padding: 100px 0 36px;
  }
  .rp-hero h1 {
    font-size: 1.8rem;
  }
  .rp-tips-grid {
    grid-template-columns: 1fr;
  }
  .rp-prevnext-dots {
    display: none;
  }
  .rp-step-card {
    flex-direction: column;
  }
  .rp-step-timeline {
    flex-direction: row;
    gap: 8px;
  }
  .rp-step-connector {
    display: none;
  }
  .rp-intro-card {
    padding: 24px 20px;
  }
  .rp-closing {
    padding: 32px 20px;
  }
  .rp-timeline-labels {
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
  }
  .rp-prevnext {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .rp-hero h1 {
    font-size: 1.5rem;
  }
}
