/* ==== Base theme ==== */
:root {
  --bg: #050711;
  --bg-alt: #0c0f1f;
  --panel: #0a0d1a;
  --panel-alt: #101632;
  --border-subtle: #22263a;
  --accent: #57d6c4;
  --accent-soft: rgba(87, 214, 196, 0.15);
  --accent-warm: #f3b36c;
  --text-main: #f5f7ff;
  --text-muted: #a2a7c4;
  --danger: #ff6c8a;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.65);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #181f4a 0, transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(243, 179, 108, 0.2), transparent 55%),
    #050711;
}

/* Layout */

main {
  padding: 2rem 1.5rem 2.8rem;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

/* ==== Top nav (your .nav structure) ==== */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(
    to right,
    rgba(5, 7, 17, 0.97),
    rgba(5, 7, 17, 0.88)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.nav-logo {
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--accent);
}

/* Links */

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(87, 214, 196, 0.16);
}
/* Global link styling */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

a:visited {
  color: var(--accent);
}

/* Footer links */
.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--accent);
}

/* Links inside cards */
.card a {
  color: var(--accent);
}

.card a:hover {
  opacity: 0.85;
}

/* Links inside bullets */
.bullets a {
  color: var(--accent);
  text-decoration: none;
}
.doc-pill {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(87, 214, 196, 0.12);
  border: 1px solid rgba(87, 214, 196, 0.25);
}

.doc-pill:hover {
  opacity: 1;
  background: rgba(87, 214, 196, 0.2);
}

/* Dropdown */

.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.nav-drop-btn .chevron {
  font-size: 0.7rem;
}

.nav-drop-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-drop-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 210px;
  background: #050814;
  border-radius: 14px;
  padding: 0.5rem 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  display: none;
}

.nav-drop-menu a {
  display: block;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.nav-drop-menu a:hover {
  color: var(--accent);
  background: rgba(87, 214, 196, 0.12);
}

.nav-dropdown.open .nav-drop-menu {
  display: block;
}

/* Mobile button */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 1.6rem;
    top: 3.1rem;
    background: #050814;
    border-radius: 14px;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }
}

/* ==== Hero (your .hero markup) ==== */

.hero {
  max-width: 1120px;
  margin: 2rem auto 2.5rem;
  padding: 2.1rem 2rem;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(87, 214, 196, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(243, 179, 108, 0.2), transparent 55%),
    linear-gradient(135deg, #141a3a, #070918);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-inner {
  max-width: 640px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  letter-spacing: 0.18em;
}

.hero-subtitle {
  margin: 1rem 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.hero-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Buttons */

.btn-primary,
.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #041014;
  box-shadow: 0 16px 36px rgba(87, 214, 196, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(87, 214, 196, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(87, 214, 196, 0.7);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(87, 214, 196, 0.12);
}

/* ==== Sections & grids ==== */

.section {
  padding: 2.1rem 0;
}

.section.alt {
  background: radial-gradient(circle at top, rgba(24, 31, 76, 0.6), transparent 60%);
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}

.section-lead {
  margin: 0 0 1.3rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feature {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.feature-icon {
  font-size: 1.2rem;
}

.feature h3 {
  margin: 0.4rem 0 0.3rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Callout box */

.callout {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(10, 14, 35, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.callout a {
  color: var(--accent);
  text-decoration: none;
}

.callout a:hover {
  text-decoration: underline;
}

/* Cards for MVP suite */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.1rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--panel-alt);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin: 0 0 0.3rem;
}

.card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}

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

/* Roadmap preview */

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.4rem;
}

.roadmap-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(10, 14, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem 1.4rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-note {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
}
/* Developers page: two-column card grid on desktop */
.card-grid.dev-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Bullet list styling inside cards */
.bullets {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bullets li + li {
  margin-top: 0.25rem;
}
/* Architecture page: 2-column card layout */
.card-grid.arch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Small note under principles */
.arch-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
/* Contact page small note */
.contact-note {
  margin: 0.2rem 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Solivre Wallet mock */

.wallet-shell {
  max-width: 980px;
}

.wallet-frame {
  background: radial-gradient(circle at top, #191b32 0, #05060b 55%, #010109 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  padding: 18px 18px 22px;
  margin-top: 20px;
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.wallet-top-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wallet-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.wallet-identity {
  font-size: 1.1rem;
  font-weight: 600;
}

.wallet-identity span {
  color: var(--accent);
}

.wallet-status-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 30, 0.9);
  color: var(--text-muted);
}

.wallet-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.panel {
  background: rgba(8, 10, 24, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 16px 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.panel-header h3 {
  font-size: 0.96rem;
}

.panel-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.claims-list,
.requests-list {
  list-style: none;
  margin-top: 6px;
  padding-left: 0;
}

.claims-list li,
.requests-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.claims-list li:last-child,
.requests-list li:last-child {
  border-bottom: none;
}

.claim-name {
  font-weight: 500;
  color: var(--text-main);
}

.claim-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.claim-status {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.claim-status.valid {
  color: #12d864;
  border-color: rgba(18, 216, 100, 0.5);
}

.claim-status.pending {
  color: #ffd86b;
  border-color: rgba(255, 216, 107, 0.6);
}

.badge-ephemeral {
  font-size: 0.72rem;
  color: var(--accent);
}

.mini-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.mini-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(8, 10, 26, 0.9);
  text-decoration: none;
  cursor: pointer;
}

.mini-btn.primary {
  border-color: rgba(243, 179, 108, 0.7);
  color: #05060b;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.wallet-bottom {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.pill-card {
  background: rgba(5, 7, 20, 0.96);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pill-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.pill-value {
  color: var(--text-main);
  font-size: 0.8rem;
}

.pill-action {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.wallet-footnote {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .wallet-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* --- MVP Suite: hero, motion, statuses --- */

.hero-mvps {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero-mvps::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(87, 214, 196, 0.28), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(244, 180, 60, 0.18), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(87, 214, 196, 0.14), transparent 55%);
  opacity: 0.8;
  filter: blur(8px);
  animation: heroBreath 18s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.hero-mvps h1 {
  font-size: clamp(2.1rem, 2.8vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.hero-tagline {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* MVP sections */

.mvp-section {
  position: relative;
}

.mvp-section + .mvp-section {
  scroll-margin-top: 80px;
}

.mvp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.mvp-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Status pills */

.mvp-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 10, 26, 0.9);
}

.mvp-status.live {
  border-color: rgba(87, 214, 196, 0.7);
  color: #7cf8dd;
  box-shadow: 0 0 14px rgba(87, 214, 196, 0.4);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.mvp-status.forging {
  border-color: rgba(244, 180, 60, 0.65);
  color: #ffd996;
  box-shadow: 0 0 14px rgba(244, 180, 60, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(244, 180, 60, 0.2), rgba(8, 10, 26, 0.95));
}

/* Layout refinements */

.mvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.mvp-aside {
  background: rgba(5, 7, 20, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.mvp-aside h3 {
  margin-top: 0;
  font-size: 0.98rem;
}

.aside-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.aside-footnote {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* MVP cards: subtle hover motion */

.mvp-grid {
  margin-top: 1rem;
}

.mvp-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mvp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
  border-color: rgba(87, 214, 196, 0.4);
}

/* Pills */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pill-soft {
  border: 1px solid rgba(244, 180, 60, 0.6);
  color: #ffdba3;
  background: rgba(244, 180, 60, 0.1);
}

/* Bullet list tweaks */

.bullet-list {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.bullet-list.numbered {
  list-style: decimal;
}

.bullet-list li + li {
  margin-top: 0.3rem;
}

/* Animations */

@keyframes heroBreath {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(0, 10px, 0) scale(1.02);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(0, -6px, 0) scale(1.01);
    opacity: 0.8;
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 6px rgba(87, 214, 196, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(87, 214, 196, 0.7);
  }
  100% {
    box-shadow: 0 0 6px rgba(87, 214, 196, 0.2);
  }
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .hero-mvps {
    padding-top: 3.4rem;
    padding-bottom: 2.6rem;
  }

  .mvp-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mvp-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* --- Fix: ensure button-style links keep their text color --- */

a.btn-primary,
a.btn-primary:visited {
  color: #041014 !important; /* dark text on teal */
}

a.btn-secondary,
a.btn-secondary:visited {
  color: var(--text-main) !important; /* light text */
}

a.btn-ghost,
a.btn-ghost:visited {
  color: var(--accent) !important; /* teal text */
}
/* === Roadmap page === */

.hero-roadmap {
  position: relative;
  overflow: hidden;
  padding: 3.8rem 1.5rem 3rem;
}

.hero-roadmap::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(87, 214, 196, 0.35), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(243, 179, 108, 0.25), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(87, 214, 196, 0.12), transparent 60%);
  opacity: 0.85;
  filter: blur(8px);
  animation: heroBreath 20s ease-in-out infinite alternate;
  z-index: -1;
}

.hero-roadmap h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin-bottom: 0.7rem;
}

/* Shell */

.roadmap-shell {
  max-width: 960px;
  margin: 0 auto;
}

.roadmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  font-size: 0.78rem;
  margin-bottom: 1rem;
}

.roadmap-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 20, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.roadmap-status-chip.done {
  border-color: rgba(87, 214, 196, 0.6);
  color: #8ffbe0;
}

.roadmap-status-chip.active {
  border-color: rgba(243, 179, 108, 0.8);
  color: #ffd9a3;
}

.roadmap-status-chip.planned {
  border-color: rgba(162, 167, 196, 0.6);
  color: var(--text-muted);
}

/* Timeline track */

.roadmap-track {
  position: relative;
  margin-top: 0.8rem;
}

.roadmap-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  margin-bottom: 1.3rem;
}

.roadmap-node {
  position: relative;
  padding-top: 0.3rem;
}

.roadmap-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle, var(--accent) 0, #050711 55%);
  box-shadow: 0 0 18px rgba(87, 214, 196, 0.7);
  display: block;
}

.roadmap-line {
  position: absolute;
  top: 18px;
  left: 6px;
  width: 2px;
  height: calc(100% - 10px);
  background: linear-gradient(
    to bottom,
    rgba(87, 214, 196, 0.4),
    rgba(243, 179, 108, 0.3),
    rgba(5, 7, 20, 0.2)
  );
  opacity: 0.4;
}

/* Card */

.roadmap-card {
  background: radial-gradient(circle at top left, rgba(87, 214, 196, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(243, 179, 108, 0.08), transparent 55%),
    var(--panel-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1rem 0.9rem;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
  border-color: rgba(87, 214, 196, 0.4);
}

.roadmap-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.roadmap-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.roadmap-status-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 7, 20, 0.96);
}

.roadmap-status-pill.active {
  border-color: rgba(243, 179, 108, 0.8);
  color: #ffd9a3;
  box-shadow: 0 0 16px rgba(243, 179, 108, 0.45);
  animation: statusPulse 2.6s ease-in-out infinite;
}

.roadmap-status-pill.planned {
  border-color: rgba(162, 167, 196, 0.7);
  color: var(--text-muted);
}

.roadmap-title {
  margin: 0.1rem 0 0.3rem;
  font-size: 0.98rem;
}

.roadmap-body {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roadmap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.roadmap-tag {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 214, 196, 0.45);
  background: rgba(87, 214, 196, 0.09);
  color: #8ffbe0;
}

.roadmap-tag.warm {
  border-color: rgba(243, 179, 108, 0.7);
  background: rgba(243, 179, 108, 0.12);
  color: #ffd9a3;
}

/* State variations */

.roadmap-item.done .roadmap-card {
  border-color: rgba(87, 214, 196, 0.4);
}

.roadmap-item.active .roadmap-dot {
  animation: statusPulse 2.6s ease-in-out infinite;
}

.roadmap-item.planned .roadmap-dot {
  border-color: rgba(162, 167, 196, 0.6);
  background: radial-gradient(circle, rgba(162, 167, 196, 0.8) 0, #050711 55%);
  box-shadow: 0 0 12px rgba(162, 167, 196, 0.5);
}

.roadmap-footnote {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 768px) {
  .roadmap-item {
    column-gap: 0.75rem;
  }

  .roadmap-card {
    padding: 0.8rem 0.85rem 0.85rem;
  }

  .roadmap-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
