:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111f35;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #c7d2fe;
  --accent-500: #6366f1;
  --accent-600: #4f46e5;
  --accent-700: #4338ca;
  --glass: rgba(79, 70, 229, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --container: 1100px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop {
  0% {
    transform: translateY(6px) scale(0.98);
    opacity: 0;
  }
  60% {
    transform: translateY(-3px) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 560px at top, #111827, #020617 72%),
    linear-gradient(135deg, #0f172a 0%, #020617 85%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
}

header {
  width: calc(100% - 2rem);
  max-width: 920px;
  text-align: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin: 2.4rem auto 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  animation-name: pop;
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.16, 0.8, 0.36, 1);
  animation-fill-mode: both;
  animation-delay: 0.12s;
}

.title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #e6eefc;
  line-height: 1.08;
}

.overview {
  margin: 0.45rem 0 0;
  color: var(--muted-2);
  font-size: 0.98rem;
}

.roadmap-container {
  width: calc(100% - 2rem);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.roadmap-card {
  width: 100%;
  max-width: 920px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(99, 102, 241, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.roadmap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(2, 6, 23, 0.72);
}

.roadmap-do,
.roadmap-later,
.roadmap-wont {
  width: 100%;
  max-width: 920px;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  opacity: 0;
  transform: translateY(12px);
  animation-name: fadeUp;
  animation-duration: 560ms;
  animation-timing-function: cubic-bezier(0.16, 0.8, 0.36, 1);
  animation-fill-mode: both;
}

.roadmap-do {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.26), rgba(15, 23, 42, 0.9));
  animation-delay: 0.28s;
}

.roadmap-later {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.24), rgba(15, 23, 42, 0.9));
  animation-delay: 0.44s;
}

.roadmap-wont {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.26), rgba(15, 23, 42, 0.92));
  animation-delay: 0.6s;
}

.roadmap-do:hover,
.roadmap-later:hover,
.roadmap-wont:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 54px rgba(2, 6, 23, 0.74);
}

.do-h2,
.later-h2,
.wont-h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: var(--muted-2);
  letter-spacing: 0.2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.do-h2::before,
.later-h2::before,
.wont-h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.do-h2::before,
.later-h2::before {
  background: linear-gradient(180deg, var(--accent-600), var(--accent-700));
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.wont-h2::before {
  background: linear-gradient(180deg, #fb7185, #f43f5e);
  box-shadow: 0 4px 10px rgba(251, 113, 133, 0.25);
}

.roadmap-do ul,
.roadmap-later ul,
.roadmap-wont ul {
  list-style: none;
  margin: 0.65rem 0 0;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
}

.roadmap-do ul li,
.roadmap-later ul li,
.roadmap-wont ul li {
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.42);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  opacity: 0;
  transform: translateY(8px);
  animation-name: fadeUp;
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.16, 0.8, 0.36, 1);
  animation-fill-mode: both;
}

.roadmap-do ul li,
.roadmap-later ul li {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.62));
}

.roadmap-wont ul li {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.62));
}

.roadmap-do ul li:hover,
.roadmap-later ul li:hover,
.roadmap-wont ul li:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.58);
  background: rgba(255, 255, 255, 0.06);
}

.roadmap-do ul li:nth-child(1),
.roadmap-later ul li:nth-child(1),
.roadmap-wont ul li:nth-child(1) {
  animation-delay: 0.42s;
}

.roadmap-do ul li:nth-child(2),
.roadmap-later ul li:nth-child(2),
.roadmap-wont ul li:nth-child(2) {
  animation-delay: 0.52s;
}

.roadmap-do ul li:nth-child(3),
.roadmap-later ul li:nth-child(3),
.roadmap-wont ul li:nth-child(3) {
  animation-delay: 0.62s;
}

.roadmap-do ul li:nth-child(4),
.roadmap-later ul li:nth-child(4),
.roadmap-wont ul li:nth-child(4) {
  animation-delay: 0.72s;
}

.roadmap-do ul li:nth-child(5),
.roadmap-later ul li:nth-child(5),
.roadmap-wont ul li:nth-child(5) {
  animation-delay: 0.82s;
}

.roadmap-do ul li:nth-child(6),
.roadmap-later ul li:nth-child(6),
.roadmap-wont ul li:nth-child(6) {
  animation-delay: 0.92s;
}

.roadmap-do ul li:nth-child(7),
.roadmap-later ul li:nth-child(7),
.roadmap-wont ul li:nth-child(7) {
  animation-delay: 1.02s;
}

.roadmap-do ul li:nth-child(8),
.roadmap-later ul li:nth-child(8),
.roadmap-wont ul li:nth-child(8) {
  animation-delay: 1.12s;
}

footer {
  width: calc(100% - 2rem);
  max-width: 920px;
  text-align: center;
  color: var(--muted);
  margin: 1.25rem auto 2.6rem;
  font-size: 0.95rem;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.85rem;
}

.lead {
  color: var(--muted-2);
  font-size: 1rem;
  margin-top: 0.5rem;
}

a:focus,
button:focus {
  outline: 2px solid rgba(147, 197, 253, 0.2);
  outline-offset: 4px;
  border-radius: 8px;
}

.escape {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.4);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  z-index: 999;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.escape:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.52);
}

.escape:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.4);
}

@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-600), var(--accent-700));
    border-radius: 10px;
    border: 2px solid rgba(15, 23, 42, 0.6);
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 520px) {
  header,
  .roadmap-do,
  .roadmap-later,
  .roadmap-wont {
    width: calc(100% - 1.2rem);
    border-radius: var(--radius-md);
    padding: 1rem;
  }

  .title {
    font-size: 1.25rem;
  }

  .roadmap-do ul li,
  .roadmap-later ul li,
  .roadmap-wont ul li {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .escape {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    top: 0.8rem;
    right: 0.8rem;
  }
}

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

  header,
  .roadmap-do,
  .roadmap-later,
  .roadmap-wont,
  .roadmap-do ul li,
  .roadmap-later ul li,
  .roadmap-wont ul li,
  .escape {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
